﻿/* 现代化全局样式 */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 20px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    line-height: 1.6;
    color: var(--gray-800);
    overflow-x: hidden;
}

/* 响应式容器 */
.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* 确保PC端两列布局 */
@media (min-width: 768px) {
    .row {
        display: flex;
        flex-wrap: nowrap;
        gap: 1rem;
        align-items: flex-start;
        margin: 0;
        width: 100%;
    }
    
    .row .col-md-6,
    .row .col-lg-6,
    .row .col-xl-6 {
        flex: 1;
        max-width: calc(50% - 0.5rem);
        width: calc(50% - 0.5rem);
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        padding: 0;
        margin: 0;
    }
    
    /* 左侧设置区域 */
    .row .col-md-6:first-child,
    .row .col-lg-6:first-child,
    .row .col-xl-6:first-child {
        order: 1;
    }
    
    /* 右侧预览区域 */
    .row .col-md-6:last-child,
    .row .col-lg-6:last-child,
    .row .col-xl-6:last-child {
        order: 2;
    }
    
    /* 确保两个主要卡片对齐且尺寸一致 */
    .modern-settings-card,
    .modern-preview-card {
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box;
        min-height: 600px;
        max-width: 100%;
    }
    
    .modern-preview-card {
        margin-top: 1.5rem !important;
    }
}

/* 现代化导航栏 */
.modern-navbar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
    padding: 1rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.brand-icon i {
    font-size: 1.2rem;
    color: white;
}

.brand-text {
    background: linear-gradient(135deg, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-brand:hover .brand-icon {
    transform: scale(1.05) rotate(5deg);
    box-shadow: var(--shadow-lg);
}

.modern-nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.modern-nav-link:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* 导航项间隙优化 */
.modern-navbar .navbar-nav {
    gap: 1.5rem;
}

.modern-navbar .nav-item {
    margin: 0 0.5rem;
}

/* 现代化英雄区域 */
.hero-section {
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-xl);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.title-main {
    display: block;
    background: linear-gradient(135deg, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out;
}

.title-accent {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 0.6em;
    font-weight: 600;
    margin-left: 1rem;
    padding: 0.25rem 0.75rem;
    background-color: rgba(6, 182, 212, 0.1);
    border-radius: 20px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.feature-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-badge:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 现代化上传区域 */
.modern-upload-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    box-sizing: border-box;
}

.modern-upload-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.upload-area {
    border: 2px dashed var(--primary-color);
    border-radius: var(--border-radius);
    padding: 3rem;
    text-align: center;
    margin: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.upload-area:hover::before {
    opacity: 1;
}

.upload-content {
    position: relative;
    z-index: 1;
}

.upload-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.upload-icon i {
    font-size: 2rem;
    color: white;
}

.upload-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.upload-subtitle {
    font-size: 1rem;
    color: var(--gray-500);
    margin-bottom: 0;
}

.upload-area:hover {
    border-color: var(--primary-dark);
    transform: scale(1.02);
}

.upload-area:hover .upload-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

.upload-area.dragover {
    border-color: var(--success-color);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.1));
    transform: scale(1.05);
}

.upload-area.dragover .upload-icon {
    background: linear-gradient(135deg, var(--success-color), var(--accent-color));
    transform: scale(1.2);
}

/* 现代化预览区域 */
.preview-section {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* 确保所有卡片标题栏对齐 */
.modern-preview-card,
.modern-pixel-preview-card,
.modern-settings-card {
    overflow: hidden;
}

.modern-preview-card .preview-header,
.modern-pixel-preview-card .pixel-preview-header,
.modern-settings-card .settings-header {
    position: relative;
    z-index: 1;
}

/* 确保所有内容左对齐 - 精确控制 */
.settings-body {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

.preview-header {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.pixel-preview-header {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.settings-header {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

/* 强制对齐 - 确保两个面板内容完全对齐 */
.settings-body .form-label,
.settings-body .form-control,
.settings-body .form-select {
    margin-left: 0 !important;
    padding-left: 0 !important;
    position: relative;
    left: 0 !important;
}

.preview-title,
.pixel-preview-title,
.settings-title {
    margin-left: 0 !important;
    padding-left: 0 !important;
    position: relative;
    left: 0 !important;
}

/* 确保所有标题栏内容与设置面板内容对齐 */
.modern-preview-card .preview-header,
.modern-pixel-preview-card .pixel-preview-header,
.modern-settings-card .settings-header {
    position: relative;
}

.modern-preview-card .preview-header .preview-title,
.modern-pixel-preview-card .pixel-preview-header .pixel-preview-title,
.modern-settings-card .settings-header .settings-title {
    position: relative;
    left: 0 !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* 重置所有标题和内容的边距 */
.preview-title,
.pixel-preview-title,
.settings-title,
.settings-body .form-label,
.settings-body .form-control,
.settings-body .form-select {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* 重置Bootstrap的margin类 */
.preview-title .me-2,
.pixel-preview-title .me-2,
.settings-title .me-2 {
    margin-right: 0.5rem !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.modern-preview-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    margin-left: 0;
    margin-right: 0;
    min-height: 500px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.modern-preview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.preview-header {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    margin: 0;
}

.preview-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    line-height: 1.2;
    width: 100%;
    box-sizing: border-box;
}

.preview-title i,
.pixel-preview-title i,
.settings-title i,
.settings-subtitle i {
    margin-right: 0.5rem;
    flex-shrink: 0;
    margin-left: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.image-preview-container {
    margin: 0;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
    position: relative;
    overflow: hidden;
    flex: 1;
}

.preview-placeholder {
    text-align: center;
    color: var(--gray-400);
}

.preview-image {
    max-width: 100%;
    max-height: 350px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    object-fit: contain;
    transition: all 0.3s ease;
}

.preview-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

/* 现代化像素预览 */
.modern-pixel-preview-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
    flex: 1;
    min-height: 450px;
}

.pixel-preview-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    margin: 0;
}

.pixel-preview-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    line-height: 1.2;
    width: 100%;
    box-sizing: border-box;
}

/* 图标样式已在上方统一定义 */

.pixel-preview-content {
    padding: 1.5rem;
    max-height: 600px;
    overflow: auto;
}

.pixel-preview {
    background: var(--gray-50);
    border-radius: var(--border-radius);
    padding: 1rem;
    overflow: auto;
    max-height: 250px;
}

.generate-section {
    margin-top: auto;
    flex-shrink: 0;
}

.pixel-grid {
    display: grid;
    gap: 1px;
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 8px;
    justify-content: center;
}

.pixel {
    width: 10px;
    height: 10px;
    border-radius: 1px;
    border: 0.5px solid rgba(0, 0, 0, 0.1);
}

/* 无图片提示 */
#noImageMessage {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 现代化生成按钮 */
.modern-generate-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: var(--border-radius-lg);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.modern-generate-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

.modern-generate-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-md);
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.btn-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.modern-generate-btn:active .btn-ripple {
    width: 300px;
    height: 300px;
}

/* 现代化加载动画 */
.modern-loading {
    display: none;
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.loading-spinner {
    margin-bottom: 1rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.loading-text {
    color: var(--gray-600);
    font-weight: 500;
    margin: 0;
    font-size: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

canvas {
    display: none;
}

/* 确保卡片宽度完全一致 */
.modern-settings-card,
.modern-preview-card,
.modern-upload-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* 现代化设置面板 */
.modern-settings-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
    min-height: 500px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.modern-settings-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.settings-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    margin: 0;
}

.settings-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    line-height: 1.2;
    width: 100%;
    box-sizing: border-box;
}

/* 图标样式已在上方统一定义 */

/* .settings-body padding 已在上面统一定义 */

.settings-group {
    margin-bottom: 2rem;
}

.settings-group:last-child {
    margin-bottom: 0;
}

.settings-subtitle {
    color: var(--gray-700);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gray-200);
}

.form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.form-control {
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

.form-range {
    background: transparent;
    padding: 0;
}

.range-value {
    min-width: 50px;
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.settings .accordion-item {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.settings .accordion-button {
    background-color: #f8f9fa;
    border: none;
    font-weight: 600;
    color: #495057;
    padding: 1rem 1.25rem;
}

.settings .accordion-button:not(.collapsed) {
    background-color: #e9ecef;
    color: #0d6efd;
    box-shadow: none;
}

.settings .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.settings .accordion-body {
    padding: 1.25rem;
    background-color: #fff;
}

.settings label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #495057;
}

.settings input[type="number"],
.settings input[type="range"],
.settings select {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.settings input[type="number"]:focus,
.settings select:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.settings input[type="range"] {
    padding: 0;
    background: transparent;
}

.settings .form-range::-webkit-slider-track {
    background: #dee2e6;
    height: 6px;
    border-radius: 3px;
}

.settings .form-range::-webkit-slider-thumb {
    background: #0d6efd;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.settings .form-range::-moz-range-track {
    background: #dee2e6;
    height: 6px;
    border-radius: 3px;
    border: none;
}

.settings .form-range::-moz-range-thumb {
    background: #0d6efd;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 响应式设计 */
@media (min-width: 1200px) {
    /* 超大屏幕确保两列布局 */
    .row .col-xl-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* PC端预览区域优化 */
    .preview-section {
        gap: 2rem;
    }
    
    .modern-preview-card {
        min-height: 400px;
    }
    
    .modern-pixel-preview-card {
        min-height: 400px;
    }
    
    .pixel-preview-content {
        max-height: 600px;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    /* 大屏幕确保两列布局 */
    .row .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* 大屏幕预览区域优化 */
    .preview-section {
        gap: 1.5rem;
    }
    
    .modern-preview-card {
        min-height: 350px;
    }
    
    .modern-pixel-preview-card {
        min-height: 250px;
    }
}

@media (max-width: 767.98px) {
    /* 小屏幕及以下，垂直堆叠 */
    .row {
        display: block;
    }
    
    .row .col-md-6,
    .row .col-lg-6,
    .row .col-xl-6 {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .container-fluid {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-features {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .feature-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .upload-area {
        padding: 2rem 1rem;
        min-height: 200px;
    }
    
    .upload-icon {
        width: 60px;
        height: 60px;
    }
    
    .upload-icon i {
        font-size: 1.5rem;
    }
    
    .upload-title {
        font-size: 1.2rem;
    }
    
    .preview-image {
        max-height: 250px;
    }
    
    .pixel-preview {
        max-height: 200px;
    }
    
    .settings-body {
        padding: 1.5rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .brand-icon {
        width: 35px;
        height: 35px;
    }
    
    .brand-icon i {
        font-size: 1rem;
    }
    
    .modern-generate-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        min-height: 55px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .title-accent {
        font-size: 0.5em;
        margin-left: 0.5rem;
        padding: 0.2rem 0.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .upload-area {
        padding: 1.5rem 1rem;
        min-height: 180px;
    }
    
    .upload-icon {
        width: 50px;
        height: 50px;
    }
    
    .upload-icon i {
        font-size: 1.25rem;
    }
    
    .upload-title {
        font-size: 1.1rem;
    }
    
    .upload-subtitle {
        font-size: 0.9rem;
    }
    
    .preview-image {
        max-height: 200px;
    }
    
    .pixel-preview {
        max-height: 150px;
        padding: 0.75rem;
    }
    
    .pixel {
        width: 6px;
        height: 6px;
    }
    
    .settings-body {
        padding: 1rem;
    }
    
    .settings-header {
        padding: 1rem;
    }
    
    .settings-title {
        font-size: 1.1rem;
    }
    
    .modern-generate-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
        min-height: 50px;
    }
    
    .brand-text {
        font-size: 1.1rem;
    }
    
    /* 帮助区域移动端优化 */
    .help-header {
        padding: 1rem 1.5rem;
    }
    
    .help-title {
        font-size: 1.25rem;
    }
    
    .help-body {
        padding: 1.5rem;
    }
    
    .help-subtitle {
        font-size: 1.1rem;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .demo-features {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .tip-card {
        padding: 1rem;
    }
    
    .tip-icon {
        width: 50px;
        height: 50px;
    }
    
    .tip-icon i {
        font-size: 1.25rem;
    }
    
    /* 新页面移动端优化 */
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .content-body {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .business-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .business-card {
        padding: 1.5rem;
    }
    
    .business-card .card-icon {
        width: 60px;
        height: 60px;
    }
    
    .business-card .card-icon i {
        font-size: 1.5rem;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
    }
    
    .contact-icon i {
        font-size: 1.25rem;
    }
    
    .quick-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .quick-btn {
        justify-content: center;
        padding: 0.75rem 1rem;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    .info-icon {
        width: 50px;
        height: 50px;
    }
    
    .info-icon i {
        font-size: 1.25rem;
    }
    
    .protection-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .protection-card {
        padding: 1.5rem;
    }
    
    .rights-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .right-item {
        padding: 1.5rem;
    }
    
    .right-item i {
        font-size: 1.5rem;
    }
    
    .purpose-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .share-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .contact-item {
        padding: 1.5rem;
    }
    
    .note-card {
        padding: 1.5rem;
    }
    
    .hours-card {
        padding: 1.5rem;
    }
    
    .hours-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .intro-box {
        padding: 1.5rem;
    }
    
    .highlight-box {
        padding: 1rem;
    }
    
    .vision-box {
        padding: 1.5rem;
    }
    
    .third-party-box {
        padding: 1.5rem;
    }
    
    .contact-details {
        padding: 1rem;
    }
}

/* 卡片阴影效果 */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 使用帮助区域样式 */
.help-section {
    margin-top: 4rem;
}

.help-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
}

.help-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.help-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.help-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
}

.help-title i {
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.help-body {
    padding: 2rem;
}

.help-subtitle {
    color: var(--gray-700);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.help-subtitle i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* 使用步骤样式 */
.help-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.step-content h5 {
    color: var(--gray-800);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.step-content p {
    color: var(--gray-600);
    margin: 0;
    line-height: 1.5;
}

/* 案例展示样式 */
.demo-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.demo-image-container {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.demo-image-container:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

.demo-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
}

.demo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 1.5rem;
    color: white;
}

.demo-info h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.demo-info p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.demo-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--border-radius);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.feature-item i {
    font-size: 1rem;
}

.feature-item span {
    font-size: 0.9rem;
    color: var(--gray-700);
    font-weight: 500;
}

/* 使用技巧样式 */
.tips-section {
    border-top: 2px solid var(--gray-200);
    padding-top: 2rem;
}

.tip-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.tip-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.tip-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: var(--shadow-md);
}

.tip-icon i {
    font-size: 1.5rem;
    color: white;
}

.tip-card h5 {
    color: var(--gray-800);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.tip-card p {
    color: var(--gray-600);
    margin: 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* 页面通用样式 */
.page-header {
    margin-bottom: 3rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

/* 白色标题样式 */
.page-title[style*="color: white"] {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    background-clip: unset !important;
    color: white !important;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.policy-meta {
    margin-top: 1rem;
}

.content-section {
    margin-bottom: 3rem;
}

.content-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
}

.content-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.content-body {
    padding: 2.5rem;
}

.section {
    margin-bottom: 3rem;
}

.section-title {
    color: var(--gray-800);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--gray-200);
    padding-bottom: 0.75rem;
}

.section-title i {
    margin-right: 0.75rem;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.section-content {
    color: var(--gray-700);
    line-height: 1.7;
}

.section-content p {
    margin-bottom: 1rem;
}

/* 关于我们页面样式 */
.highlight-box {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.1), rgba(139, 69, 19, 0.05));
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
}

.business-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.business-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.business-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.business-card .card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-md);
}

.business-card .card-icon i {
    font-size: 2rem;
    color: white;
}

.business-card h4 {
    color: var(--gray-800);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.business-card p {
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

.social-responsibility {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.social-responsibility li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(16, 185, 129, 0.05);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--success-color);
}

.social-responsibility li i {
    margin-right: 1rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.vision-box {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.1), rgba(139, 69, 19, 0.05));
    border: 1px solid rgba(139, 69, 19, 0.2);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-top: 1.5rem;
    font-style: italic;
    position: relative;
}

.vision-box::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
}

/* 联系我们页面样式 */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.contact-icon i {
    font-size: 1.5rem;
    color: white;
}

.contact-info h4 {
    color: var(--gray-800);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-info p {
    margin: 0;
    color: var(--gray-700);
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-info a:hover {
    text-decoration: underline;
}

.note-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-top: 2rem;
}

.note-title {
    color: var(--gray-800);
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.note-title i {
    margin-right: 0.75rem;
    color: var(--primary-color);
}

.note-content p {
    margin-bottom: 1.5rem;
    color: var(--gray-700);
    line-height: 1.6;
}

.contact-tips h5 {
    color: var(--gray-800);
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-tips ul {
    list-style: none;
    padding: 0;
}

.contact-tips li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: rgba(16, 185, 129, 0.05);
    border-radius: var(--border-radius);
}

.contact-tips li i {
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.hours-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-top: 2rem;
}

.hours-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.hours-item i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.hours-item h5 {
    color: var(--gray-800);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.hours-item p {
    margin: 0;
    color: var(--gray-600);
}

.quick-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.quick-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.quick-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.quick-btn i {
    font-size: 1.2rem;
}

/* 隐私政策页面样式 */
.intro-box {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.1), rgba(139, 69, 19, 0.05));
    border: 1px solid rgba(139, 69, 19, 0.2);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

.intro-box p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--gray-700);
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-md);
}

.info-icon i {
    font-size: 1.5rem;
    color: white;
}

.info-card h4 {
    color: var(--gray-800);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.info-card p {
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

.purpose-list {
    margin-top: 2rem;
}

.purpose-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--success-color);
}

.purpose-item i {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.purpose-item strong {
    color: var(--gray-800);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.purpose-item p {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.5;
}

.protection-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.protection-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    transition: all 0.3s ease;
}

.protection-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.protection-card h4 {
    color: var(--gray-800);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.protection-card h4 i {
    margin-right: 0.75rem;
    color: var(--primary-color);
}

.protection-card p {
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

.share-list {
    margin-top: 2rem;
}

.share-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius);
}

.share-item i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.share-item span {
    color: var(--gray-700);
    line-height: 1.5;
}

.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.right-item {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.right-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.right-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.right-item h5 {
    color: var(--gray-800);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.right-item p {
    color: var(--gray-600);
    line-height: 1.5;
    margin: 0;
    font-size: 0.95rem;
}

.third-party-box {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-top: 2rem;
}

.third-party-box p {
    margin: 0;
    color: var(--gray-700);
    line-height: 1.6;
}

.contact-info {
    margin-top: 2rem;
}

.contact-item {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

.contact-item h4 {
    color: var(--gray-800);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.contact-item h4 i {
    margin-right: 0.75rem;
    color: var(--primary-color);
}

.contact-item p {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.contact-details {
    background: rgba(139, 69, 19, 0.05);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 1rem;
}

.contact-details p {
    margin-bottom: 0.5rem;
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-details a:hover {
    text-decoration: underline;
}

/* 导航栏激活状态 */
.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
}

/* 现代化页脚样式 */
footer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    z-index: -1;
}

footer .btn-group .btn {
    border-radius: var(--border-radius);
    margin: 0 4px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

footer .btn-group .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

footer p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* 范围值徽章样式 */
.range-value {
    min-width: 40px;
    text-align: center;
    font-size: 0.875rem;
}

/* 现代化动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.preview-container.show {
    animation: fadeIn 0.5s ease-out;
}

/* 卡片悬停动画 */
.modern-upload-card,
.modern-settings-card,
.modern-preview-card,
.modern-pixel-preview-card {
    animation: fadeInUp 0.6s ease-out;
}

/* 浮动动画 */
.upload-icon {
    animation: float 3s ease-in-out infinite;
}

/* 脉冲动画 */
.feature-badge:hover {
    animation: pulse 0.6s ease-in-out;
}

/* 滚动条样式 */
.pixel-preview::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.pixel-preview::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.pixel-preview::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.pixel-preview::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 现代化导航栏 */
.modern-navbar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
    padding: 1rem 0;
    position: relative;
    z-index: 1000;
}

/* Modern dropdown menu styles */
.modern-dropdown {
    z-index: 10000 !important;
    position: absolute !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    margin-top: 5px !important;
    min-width: 140px !important;
    padding: 4px 0 !important;
    top: 100% !important;
    left: auto !important;
    right: 0 !important;
}

.modern-dropdown .dropdown-item {
    padding: 8px 16px !important;
    color: #333 !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
    border-radius: 4px !important;
    margin: 2px 8px !important;
}

.modern-dropdown .dropdown-item:hover {
    background: rgba(74, 20, 140, 0.1) !important;
    color: #4a148c !important;
}

.modern-dropdown .dropdown-item.active {
    background: rgba(74, 20, 140, 0.15) !important;
    color: #4a148c !important;
    font-weight: 500 !important;
}

.modern-dropdown .dropdown-item i {
    font-size: 14px !important;
    margin-right: 8px !important;
}

/* 确保下拉菜单容器有正确的定位 */
.navbar .dropdown {
    position: relative !important;
}

.navbar .dropdown-menu {
    z-index: 10000 !important;
}