/* 自定义样式，适配 Bootstrap */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
            background-color: #f8f9fa;
            min-height: 100vh;
            line-height: 1.5;
        }

        /* 导航栏样式 */
        .navbar {
            background: white;
            box-shadow: 0 2px 12px rgba(0,0,0,0.08);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .navbar .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .logo-area {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .logo {
            width: 70px;
            height: 40px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 20px;
            font-weight: bold;
        }

        .logo-text {
            font-size: 20px;
            font-weight: 600;
            color: #333;
        }

        .logo-text span {
            color: #5FB878;
        }

        /* 导航链接样式 */
        .navbar-nav .nav-link {
            color: #555;
            text-decoration: none;
            font-size: 15px;
            font-weight: 600;
            transition: all 0.3s ease;
            padding: 8px 12px;
            border-radius: 6px;
            letter-spacing: 0.3px;
        }

        .navbar-nav .nav-link:hover {
            color: #5FB878;
            background-color: rgba(95, 184, 120, 0.08);
            transform: translateY(-1px);
        }

        .navbar-nav .nav-link.active {
            color: #5FB878;
            font-weight: 700;
            background-color: rgba(95, 184, 120, 0.1);
            box-shadow: 0 2px 8px rgba(95, 184, 120, 0.15);
        }

        /* 下拉菜单样式 */
        .dropdown-menu {
            min-width: 200px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
            border-radius: 8px;
            border: 1px solid #e8e8e8;
            animation: fadeInDown 0.3s ease;
        }

        .dropdown-item {
            color: #555;
            padding: 12px 20px;
            text-decoration: none;
            display: flex;
            align-items: center;
            text-align: left;
            border-bottom: 1px solid #f5f5f5;
            transition: all 0.2s ease;
            font-weight: 500;
            font-size: 14px;
        }

        .dropdown-item i {
            margin-right: 10px;
            color: #5FB878;
            font-size: 16px;
            width: 20px;
            text-align: center;
        }

        .dropdown-item:last-child {
            border-bottom: none;
        }

        .dropdown-item:hover {
            background-color: rgba(95, 184, 120, 0.08);
            color: #5FB878;
            padding-left: 25px;
            transform: translateX(2px);
        }

        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* 主内容容器 */
        .main-container {
            max-width: 1200px;
            margin: 30px auto;
            padding: 0 20px;
        }

        /* 卡片组件 */
        .main-card {
            background: white;
            border-radius: 12px;
            box-shadow: 0 8px 30px rgba(0,0,0,0.06);
            overflow: hidden;
            margin-bottom: 30px;
        }

        .card-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 25px 30px;
            text-align: center;
        }

        .card-header h1 {
            font-size: 28px;
            font-weight: 300;
            margin: 0;
        }

        .card-header p {
            opacity: 0.9;
            margin-top: 8px;
            font-size: 14px;
        }

        .card-body {
            padding: 30px;
        }

        /* 上传区域 */
        .upload-section {
            text-align: center;
            padding: 40px 20px;
            border: 2px dashed #e0e0e0;
            border-radius: 8px;
            background: #fafafa;
            transition: all 0.3s ease;
            margin-bottom: 30px;
            cursor: pointer;
        }

        .upload-section:hover {
            border-color: #5FB878;
            background: #f8f9fa;
        }

        .upload-section i {
            font-size: 48px;
            color: #5FB878;
            margin-bottom: 15px;
        }

        .upload-section h3 {
            color: #333;
            margin-bottom: 10px;
        }

        .upload-section p {
            color: #666;
            font-size: 14px;
        }

        /* 已选择文件信息 */
        .file-info {
            background-color: #f8f9fa;
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 20px;
            display: none;
        }

        .file-info.show {
            display: block;
        }

        .file-info h4 {
            color: #333;
            font-size: 16px;
            margin-bottom: 8px;
        }

        .file-info p {
            color: #666;
            font-size: 14px;
            margin: 0;
        }

        /* 功能区块 */
        .function-block {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 25px;
            margin-bottom: 30px;
            border-left: 4px solid #5FB878;
        }

        .function-title {
            font-size: 20px;
            color: #333;
            margin-bottom: 20px;
            font-weight: 600;
        }

        /* 语言选择样式 */
        .lang-select-container {
            margin: 20px 0;
        }

        .lang-select {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 16px;
            background-color: white;
            transition: all 0.3s;
        }

        .lang-select:focus {
            border-color: #5FB878;
            box-shadow: 0 0 0 0.2rem rgba(95, 184, 120, 0.25);
            outline: none;
        }

        /* 上传按钮样式 */
        .upload-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 12px 30px;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
            text-decoration: none;
        }

        .upload-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
            color: white;
        }

        .upload-btn i {
            margin-right: 8px;
            font-size: 18px;
        }

        .upload-btn:disabled {
            background: #cccccc;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        /* 图片对比滑块样式 */
        .hk-image-comparison-container {
            position: relative;
            width: 100%;
            max-width: 800px;
            margin: 0 auto;
            overflow: hidden;
            border-radius: 8px;
            box-shadow: 0 0 20px rgba(0,0,0,0.1);
        }
        
        .hk-image-wrapper {
            position: relative;
            width: 100%;
            padding-top: 75%; /* 4:3 比例 */
            overflow: hidden;
        }
        
        .hk-image-comparison-container img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            pointer-events: none;
        }
        
        .hk-before-image {
            z-index: 2;
            clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
        }
        
        .hk-after-image {
            z-index: 1;
        }
        
        .hk-slider-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 3;
        }
        
        .hk-slider-line {
            position: absolute;
            top: 0;
            left: 50%;
            width: 2px;
            height: 100%;
            background-color: #fff;
            transform: translateX(-50%);
            cursor: ew-resize;
            box-shadow: 0 0 10px rgba(0,0,0,0.5);
        }
        
        .hk-slider-button {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 50px;
            height: 50px;
            background-color: #fff;
            border-radius: 50%;
            transform: translate(-50%, -50%);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 0 15px rgba(0,0,0,0.3);
            transition: all 0.3s ease;
        }
        
        .hk-slider-button:hover {
            transform: translate(-50%, -50%) scale(1.1);
        }
        
        .hk-slider-button i {
            font-size: 20px;
            color: #666;
        }
        
        .hk-image-labels {
            position: absolute;
            top: 20px;
            width: 100%;
            display: flex;
            justify-content: space-between;
            padding: 0 20px;
            z-index: 4;
            pointer-events: none;
        }
        
        .hk-before-label, .hk-after-label {
            background-color: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 8px 16px;
            border-radius: 4px;
            font-size: 16px;
            font-weight: bold;
        }
        
        .hk-before-label {
            margin-right: auto;
        }
        
        .hk-after-label {
            margin-left: auto;
        }
        
        .hk-comparison-instructions {
            text-align: center;
            margin-top: 20px;
            color: #666;
            font-size: 14px;
        }

        /* 功能特性区域 */
        .features-section {
            margin-top: 40px;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
        }

        .feature-card {
            background: white;
            border-radius: 8px;
            padding: 25px;
            text-align: center;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            transition: transform 0.3s;
        }

        .feature-card:hover {
            transform: translateY(-5px);
        }

        .feature-icon {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            color: white;
            font-size: 24px;
        }

        .feature-title {
            font-size: 18px;
            color: #333;
            margin-bottom: 10px;
        }

        .feature-desc {
            color: #666;
            font-size: 14px;
            line-height: 1.5;
        }

        /* 页脚 */
        .footer {
            text-align: center;
            color: #666;
            font-size: 13px;
            margin-top: 40px;
            padding: 20px 0;
            border-top: 1px solid #eee;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .navbar-collapse {
                background-color: white;
                border-top: 1px solid #eee;
                margin-top: 10px;
                padding: 15px 0;
                border-radius: 0 0 8px 8px;
                box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            }
            
            .navbar-nav .nav-link {
                padding: 12px 20px;
                border-radius: 0;
                text-align: center;
                border-bottom: 1px solid #f5f5f5;
            }
            
            .navbar-nav .nav-link.active {
                background-color: rgba(95, 184, 120, 0.1);
            }
            
            .dropdown-menu {
                border: none;
                box-shadow: none;
                background-color: #f9f9f9;
                border-radius: 0;
                padding: 0;
            }
            
            .dropdown-item {
                border-bottom: 1px solid #eee;
                text-align: center;
                justify-content: center;
            }
            
            .dropdown-item:last-child {
                border-bottom: 1px solid #eee;
            }
            
            .card-header h1 {
                font-size: 24px;
            }
            
            .card-body {
                padding: 20px;
            }
            
            .upload-section {
                padding: 30px 15px;
            }
            
            .function-block {
                padding: 20px 15px;
            }
            
            .function-title {
                font-size: 18px;
            }
            
            .hk-slider-button {
                width: 40px;
                height: 40px;
            }
            
            .hk-slider-button i {
                font-size: 16px;
            }
            
            .hk-image-labels {
                padding: 0 10px;
            }
            
            .hk-before-label, .hk-after-label {
                padding: 6px 12px;
                font-size: 14px;
            }
        }
        
        /* 加载中样式 */
        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .loading-content {
            background: white;
            padding: 30px;
            border-radius: 8px;
            text-align: center;
        }
        
        /* 步骤样式 */
        .step-section {
            margin: 20px 0;
        }
        
        .step-title {
            font-size: 20px;
            color: #333;
            font-weight: 600;
            margin-bottom: 10px;
        }
        
        .step-content {
            margin-top: 10px;
        }
        