* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        /* Ensure background gradient covers entire page */
        html {
            height: 100%;
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            font-size: 16px; /* 为rem单位设置基准字体大小 */
        }

        body {
            font-family: 'Inter', sans-serif;
            background: transparent; /* inherit from html */
            color: #495057;
            line-height: 1.4;
            overflow-x: hidden;
            overflow-y: auto;
            min-height: 100vh;
        }

        .navbar {
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(12px);
            padding: 0.4rem 0;
            box-shadow: 0 4px 20px rgba(0, 123, 255, 0.08);
            border-bottom: 1px solid rgba(33, 150, 243, 0.1);
        }

        .nav-container {
            max-width: 1600px;
            margin: 0 auto;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 0 1rem;
        }

        .logo-container {
            display: flex;
            align-items: center;
            text-decoration: none;
        }

        .logo-image {
            height: 40px;
            width: auto;
            margin-right: 0.5rem;
            border-radius: 6px;
        }

        .logo-text {
            font-size: 1.2rem;
            font-weight: 800;
            color: #2c3e50;
            letter-spacing: -0.5px;
        }

        .nav-menu {
            display: flex;
            gap: 1.5rem;
        }

        .nav-link {
            text-decoration: none;
            color: #6c757d;
            font-weight: 500;
            padding: 0.5rem 1rem;
            border-radius: 8px;
            transition: all 0.2s ease;
        }

        .nav-link:hover {
            background: rgba(33, 150, 243, 0.05);
            color: #2196f3;
        }

        .hero-section {
            background: linear-gradient(135deg, #42a5f5 0%, #90caf9 100%);
            color: white;
            padding: 0.8rem 0;
            opacity: 0;
            animation: headerFadeIn 0.8s ease-out forwards;
        }
        
        @keyframes headerFadeIn {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .hero-content {
            max-width: 1600px;
            margin: 0 auto;
            padding: 0 2rem;
            display: flex;
            align-items: center;
            gap: 1.5rem;
        }
        
        .hero-logo {
            height: 80px;
            width: auto;
            border-radius: 8px;
            flex-shrink: 0;
        }
        
        .hero-text-content {
            text-align: left;
        }

        .hero-title {
            font-size: 1.6rem;
            font-weight: 700;
            margin-bottom: 0.3rem;
        }

        .hero-description {
            font-size: 1.1rem;
            opacity: 0.9;
        }

        .main-container {
            max-width: 1700px; /* 优化默认最大宽度以适应常见高清屏幕 */
            margin: 0 auto;
            padding: 0.8rem 2rem;
            min-height: calc(100vh - 120px);
            display: grid;
            grid-template-columns: 1fr 1fr;
            grid-template-rows: auto auto auto;
            gap: 1.2rem;
        }

        /* 通用面板样式 */
        .panel {
            background: rgba(255, 255, 255, 0.98);
            border-radius: 16px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
            border: 1px solid rgba(0, 0, 0, 0.03);
            padding: 0;
            overflow: visible;
            display: flex;
            flex-direction: column;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            height: auto;
            opacity: 0;
            animation: panelFadeInUp 0.6s ease-out forwards;
        }
        
        @keyframes panelFadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .upload-panel {
            animation-delay: 0.1s;
        }
        
        .tips-panel {
            animation-delay: 0.2s;
        }

        .panel:hover {
            transform: translateY(-2px);
        }

        .panel-title {
            font-size: 1.1rem;
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 0;
            border-bottom: 2px solid #2196f3;
            padding-bottom: 0.2rem;
            padding: 1rem;
            background: linear-gradient(135deg, #f8f9fa, #e9ecef);
            border-radius: 16px 16px 0 0;
        }

        .upload-content {
            padding: 0;
        }

        .upload-title {
            text-align: center;
            margin-bottom: 0.6rem;
        }

        .step {
            margin-bottom: 0.8rem;
        }

        .step-title {
            font-size: 0.9rem;
            font-weight: 600;
            color: #1565c0;
            margin-bottom: 0.4rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .step-title i {
            font-size: 1.1rem;
            color: #4a90e2;
        }

        .file-upload {
            position: relative;
            display: inline-block;
            width: 100%;
        }

        .file-input {
            position: absolute;
            opacity: 0;
            width: 100%;
            height: 100%;
            cursor: pointer;
        }

        .file-label {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1.5rem;
            border: 2px dashed #b0c4de;
            border-radius: 12px;
            background: #f8f9fa;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
            font-size: 0.8rem;
            position: relative;
            overflow: hidden;
        }

        .file-label::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(120deg, transparent, rgba(33, 150, 243, 0.1), transparent);
            transition: left 0.6s ease;
        }

        .file-label:hover {
            border-color: #4a90e2;
            background: #f0f8ff;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(33, 150, 243, 0.1);
        }
        
        .file-label:hover::before {
            left: 100%;
        }

        .file-icon {
            font-size: 1.3rem;
            color: #64b5f6;
            margin-right: 0.5rem;
            transition: transform 0.3s ease;
        }

        .file-label:hover .file-icon {
            transform: scale(1.1);
        }

        .file-text {
            color: #6c757d;
        }

        .file-name {
            font-weight: 600;
            color: #2196f3;
            margin-left: 0.5rem;
            font-family: 'Courier New', monospace;
            background: #e3f2fd;
            padding: 0.2rem 0.5rem;
            border-radius: 4px;
            font-size: 0.9em;
        }

        .submit-btn {
            background: linear-gradient(135deg, #4a90e2, #2196f3);
            color: white;
            border: none;
            padding: 0.9rem 1.5rem;
            border-radius: 12px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 100%;
            margin-top: 0.6rem;
            letter-spacing: 0.5px;
        }

        .submit-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
        }

        .submit-btn:disabled {
            background: #ccc;
            cursor: not-allowed;
            transform: none;
        }

        .example-section {
            background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
            border-radius: 12px;
            padding: 0.8rem;
            text-align: center;
            border: 1px solid #bbdefb;
            margin: 0 1.2rem 1rem;
        }

        .example-btn {
            background: linear-gradient(135deg, #42a5f5, #64b5f6);
            color: white;
            border: none;
            padding: 0.5rem 0.8rem;
            border-radius: 6px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
            font-size: 0.8rem;
        }

        .example-btn:hover {
            transform: translateY(-1px);
        }

        /* 通用内容区域调整 */
        .about-content,
        .workflow-content,
        .validation-content {
            gap: 0;
            padding: 0;
        }

        /* About SOS 模块 */
        .about-content {
            /* height: 320px; */ /* 缩短高度 */
            padding: 0;
        }
        .about-image {
            /* height: calc(100% - 50px); */ /* 动态高度 */
            margin: 0;
            text-align: center;
        }
        .about-image img {
            max-height: 100%;
            padding: 0;
        }

        /* Workflow 严格左右布局 */
        .workflow-content {
            display: flex;
            align-items: flex-start;
            flex-direction: row;
            /* height: 100%; */
            margin: 0;
            padding: 0 1rem 1rem;
        }
        .workflow-text {
            width: 55%;
            padding: 0 1rem 0 0;
            margin: 0;
        }
        .workflow-image {
            width: 45%;
            /* height: 100%; */
            padding: 0;
            display: flex;
            align-items: center;
        }
        .workflow-image img {
            /* max-height: 90%; */
            width: 100%;
        }

        /* Validation 模块调整 */
        .validation-image {
            height: 280px;
            margin: 0 -0.6rem;
        }
        .validation-image img {
            object-fit: contain;
            border-radius: 0;
        }

        /* 统一图片显示规则 */
        .about-image img,
        .workflow-image img,
        .validation-image img {
            max-width: 100%;
            max-height: 100%;
            padding: 0.5rem;
            background: white;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        /* 全局消除间距 */
        .about-text,
        .workflow-text,
        .validation-text {
            padding: 0 1rem;
        }

        .footer {
            padding: 1rem;
            text-align: center;
            margin-top: 1rem;
            border-top: 1px solid #e9ecef;
        }
        
        .version {
            display: inline-block !important;
            margin-left: 0.5rem;
            padding: 0.18em 1.1em 0.18em 1.1em;
            border-radius: 999px;
            background: linear-gradient(135deg, #e3f2fd, #bbdefb 80%);
            color: #1976d2;
            font-weight: 700;
            font-size: 0.98rem;
            box-shadow: 0 2px 10px rgba(33,150,243,0.13), 0 1.5px 4px rgba(33,150,243,0.10);
            border: 1.5px solid #bbdefb;
            transition: transform 0.22s cubic-bezier(0.4,0,0.2,1), box-shadow 0.22s cubic-bezier(0.4,0,0.2,1);
            vertical-align: middle;
            cursor: pointer;
            background-color: unset !important;
        }

        .version:hover {
            transform: translateY(-5px) scale(1.07);
            box-shadow: 0 8px 24px rgba(33,150,243,0.18), 0 2px 8px rgba(33,150,243,0.13);
            background-color: unset !important;
        }

        /* 移动端适配 */
        @media (max-width: 768px) {
            .main-container {
                grid-template-columns: 1fr;
                grid-template-rows: auto auto auto;
                gap: 0.5rem;
                padding: 0.5rem;
                height: auto;
                min-height: auto;
            }
            
            .upload-grid {
                grid-template-columns: 1fr;
                row-gap: 1rem;
                padding: 0.8rem;
            }
            
            /* 移除高度限制，让内容自动扩展 */
            .panel {
                overflow: visible;
                height: auto;
            }
            
            .about-content,
            .upload-panel {
                height: auto;
                min-height: 280px;
            }
            
            .workflow-content {
                flex-direction: column;
            }
            
            .workflow-image {
                height: 200px;
                margin: 0;
            }
            
            .about-image,
            .validation-image {
                height: 220px;
            }
            
            .user-tips {
                padding: 0.8rem;
                font-size: 0.8rem;
            }
            
            .about-text {
                font-size: 0.85rem;
                line-height: 1.5;
                overflow-wrap: break-word;
                word-wrap: break-word;
            }
            
            .about-text p {
                margin-bottom: 1rem;
            }
        }
        
        /* 笔记本屏幕适配 - 移除高度限制，只调整间距和字体 */
        @media (max-width: 1200px) and (min-width: 769px) {
            .main-container {
                padding: 0.6rem;
                gap: 0.6rem;
            }
            
            .upload-grid {
                padding: 1rem;
                column-gap: 0.8rem;
                row-gap: 1.5rem;
            }
            
            /* 确保面板完全自动调整高度 */
            .panel {
                height: auto;
                min-height: auto;
                overflow: visible;
            }
            
            .user-tips {
                font-size: 0.85rem;
            }
            
            .about-text {
                font-size: 0.95rem;
                line-height: 1.4;
            }
        }
        
        /* 超小屏幕适配 */
        @media (max-width: 480px) {
            .main-container {
                padding: 0.3rem;
                gap: 0.4rem;
            }
            
            .upload-grid {
                padding: 0.6rem;
                row-gap: 0.8rem;
            }
            
            .upload-cell {
                padding: 0.8rem;
            }
            
            .panel-title {
                font-size: 1rem;
                padding: 0.8rem;
            }
            
            .user-tips {
                padding: 0.6rem;
                font-size: 0.75rem;
            }
            
            .about-text {
                padding: 0.8rem;
                font-size: 0.8rem;
            }
            
            .step-title {
                font-size: 0.85rem;
            }
        }

        .loading-state { display: none; }
        .is-loading .normal-state { display: none; }
        .is-loading .loading-state { display: inline; }

        .file-label.is-dragging {
            border-color: #2196f3;
            background-color: #e3f2fd;
            box-shadow: 0 8px 25px rgba(33, 150, 243, 0.2);
            transform: translateY(-4px);
        }

        .file-label.is-dragging .file-icon {
            transform: scale(1.2);
            color: #1976d2;
        }

        .upload-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            grid-template-rows: auto auto;
            column-gap: 1.5rem;
            row-gap: 2.5rem;
            padding: 2rem;
        }

        .upload-cell {
            padding: 1rem;
            border-radius: 12px;
            border: 1px solid rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
        }
        
        .upload-cell:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
        }

        /* Cell specific colors */
        .cell-host { background-color: #e0f7fa; } /* Light Cyan */
        .cell-virus { background-color: #fce4ec; } /* Light Pink */
        .cell-email { background-color: #fff9c4; } /* Light Yellow */
        .cell-history { background-color: #e8f5e9; } /* Light Green */

        .cell-full-width {
            grid-column: 1 / -1;
        }

        .panel.upload-panel {
            padding: 0;
        }

        .upload-content {
            padding: 0;
        }

        .upload-title {
            text-align: center;
            margin-bottom: 0;
            padding: 1rem;
            border-radius: 16px 16px 0 0;
            background: linear-gradient(135deg, #f8f9fa, #e9ecef);
        }

        .email-input {
            width: 100%;
            padding: 0.8rem 1rem;
            border-radius: 25px; /* Fully rounded corners */
            border: 1px solid #ced4da;
            font-size: 0.9rem;
            box-sizing: border-box; /* Important for padding and width */
            transition: border-color 0.3s ease, box-shadow 0.3s ease;
            text-align: center; /* Center the text and placeholder */
            caret-color: #1976d2; /* Standardize caret color */
        }

        .email-input:focus {
            outline: none;
            border-color: #4a90e2;
            box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.2);
        }

        .history-search {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .search-btn {
            flex-shrink: 0; /* Prevent button from shrinking */
            padding: 0.8rem;
            border-radius: 50%; /* Make it a circle */
            border: none;
            background: #4a90e2;
            color: white;
            cursor: pointer;
            transition: background-color 0.3s ease;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .search-btn:hover {
            background: #1976d2;
        }

        .user-tips {
            padding: 1rem 1.2rem;
            font-size: 0.85rem;
            color: #6c757d;
            background: #f8f9fa;
            border-top: 1px solid #e9ecef;
            border-radius: 0 0 16px 16px; /* Rounded corners at the bottom */
        }

        .user-tips ul {
            margin: 0;
            padding-left: 1.2rem;
        }

        .user-tips li {
            margin-bottom: 0.5rem;
        }
        
        .user-tips li:last-child {
            margin-bottom: 0;
        }

        /* Stats Widgets Container */
        .stats-widgets-container {
            display: flex;
            gap: 12px;
            justify-content: center;
            margin: 1rem auto 0;
            opacity: 0;
            animation: widgetFadeIn 0.6s ease-out forwards;
            animation-delay: 0.6s;
        }
        
        /* Stats Widget Styles */
        #stats-widget {
            position: relative;
            width: 240px;
            background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
            border-radius: 11px;
            padding: 12px;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8);
            font-family: 'Inter', sans-serif;
            z-index: 100;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            border: 1px solid rgba(33, 150, 243, 0.1);
            backdrop-filter: blur(8px);
            transform-origin: center;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        /* Total Predictions Widget */
        #total-predictions-widget {
            position: relative;
            width: 120px;
            background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
            border-radius: 11px;
            padding: 12px;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8);
            font-family: 'Inter', sans-serif;
            z-index: 100;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            border: 1px solid rgba(33, 150, 243, 0.1);
            backdrop-filter: blur(8px);
            transform-origin: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
        }
        
        @keyframes widgetFadeIn {
            from {
                opacity: 0;
                transform: scale(0.8);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }
        #stats-widget:hover,
        #total-predictions-widget:hover {
            transform-origin: center;
            transform: translateY(-2px) scale(1.02);
            box-shadow: 0 8px 24px rgba(33, 150, 243, 0.12), 0 2px 8px rgba(33, 150, 243, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
            border-color: rgba(33, 150, 243, 0.2);
        }
        
        /* Total Predictions Widget Content */
        .total-predictions-label {
            font-size: 0.7rem;
            font-weight: 500;
            color: #475569;
            text-align: center;
            white-space: nowrap;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .total-predictions-value {
            font-size: 1.2rem;
            font-weight: 700;
            color: #d97706;
            background: rgba(245, 158, 11, 0.15);
            padding: 4px 8px;
            border-radius: 6px;
            text-align: center;
            min-width: 30px;
        }
        .widget-header {
            text-align: center;
            margin-bottom: 5px;
            padding-bottom: 4px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        }
        .widget-title {
            font-size: 0.8rem;
            font-weight: 600;
            color: #2c3e50;
            margin: 0;
            letter-spacing: 0.2px;
        }
        .widget-subtitle {
            font-size: 0.67rem;
            color: #64748b;
            margin: 1px 0 0 0;
        }
        .gauge-container {
            width: 90px;
            height: 45px;
            position: relative;
            flex-shrink: 0;
            order: 2;
        }
        .gauge-semi-circle {
            width: 90px;
            height: 45px;
            position: relative;
            border-radius: 45px 45px 0 0;
            background: conic-gradient(#4ade80 0deg, #f1f5f9 0deg);
            transition: background 0.6s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06);
        }
        .gauge-mask {
            width: 70px;
            height: 35px;
            background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
            border-radius: 35px 35px 0 0;
            position: absolute;
            bottom: 0;
            left: 10px;
            z-index: 1;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.8);
        }
        .gauge-needle {
            width: 1.3px;
            height: 38px;
            background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
            position: absolute;
            bottom: 5px;
            left: 44.3px;
            transform-origin: bottom center;
            transform: rotate(-90deg);
            transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
            z-index: 2;
            border-radius: 1px;
            box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
        }
        .gauge-needle::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: -1px;
            width: 3.3px;
            height: 3.3px;
            background: #dc2626;
            border-radius: 50%;
            box-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
        }
        .gauge-labels {
            position: absolute;
            width: 110%;
            bottom: -4px;
            left: -5%;
            display: flex;
            justify-content: space-between;
            font-weight: 600;
            font-size: 0.63rem;
            color: #64748b;
            z-index: 3;
            padding: 0 2px;
        }
        .stats-legend {
            display: flex;
            flex-direction: column;
            gap: 4px;
            align-items: flex-start;
            flex: 1;
            order: 1;
        }
        .legend-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 3px 6px;
            background: rgba(248, 250, 252, 0.6);
            border-radius: 4px;
            font-size: 0.6rem;
            color: #475569;
            border: 1px solid rgba(226, 232, 240, 0.5);
            transition: all 0.2s ease;
            width: 100%;
            min-width: 0;
        }
        .legend-item:hover {
            background: rgba(241, 245, 249, 0.8);
            transform: translateX(1px);
        }
        .legend-left {
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .legend-color {
            width: 5px;
            height: 5px;
            border-radius: 50%;
            flex-shrink: 0;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        }
        .legend-label {
            font-weight: 500;
            color: #334155;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .legend-value {
            font-weight: 700;
            font-size: 0.65rem;
            padding: 1px 3px;
            background: rgba(59, 130, 246, 0.1);
            border-radius: 2px;
            color: #1e40af;
            flex-shrink: 0;
        }

        .sidebar {
            position: fixed;
            top: 0;
            left: 0;
            width: 210px;
            height: 100vh;
            background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
            box-shadow: 2px 0 12px rgba(33,150,243,0.07);
            display: flex;
            flex-direction: column;
            align-items: center;
            padding-top: 0;
            z-index: 2000;
        }
        .sidebar-logo { width: 100%; display: flex; justify-content: center; align-items: center; margin: 0; padding: 2rem 0; margin-top: 18px; }
        .sidebar-logo img {
            width: 90%;
            max-width: 100%;
            height: auto;
            border-radius: 0;
            box-shadow: none;
            display: block;
            margin: 0;
            padding: 0;
        }
        .sidebar ul {
            list-style: none;
            padding: 0;
            margin: 0;
            width: 100%;
        }
        .sidebar li {
            width: 100%;
            margin-bottom: 1.5rem;
        }
        .sidebar a {
            display: inline-flex; align-items: center; gap: 0.7em; margin-left: auto; margin-right: auto; padding: 0.7rem 0.7rem; text-align: left; color: #1976d2; font-weight: 600; font-size: 1.1rem; text-decoration: none; border-radius: 999px; transition: background 0.2s, color 0.2s; justify-content: flex-start; position: relative;
        }
        .sidebar a i { font-size: 1.1em; min-width: 22px; text-align: center; }
        .sidebar a.active, .sidebar a:hover {
            background: linear-gradient(90deg, #1976d2 60%, #42a5f5 100%);
            color: #fff;
            box-shadow: 0 2px 12px rgba(33,150,243,0.10);
            border-radius: 999px;
            padding-left: 0.7rem;
            padding-right: 0.7rem;
            padding-top: 0.7rem;
            padding-bottom: 0.7rem;
        }
        .main-content {
            margin-left: 210px;
            padding: 1rem 2.5rem 2.5rem 2.5rem;
            position: relative;
            z-index: 1;
            opacity: 0;
            animation: headerFadeIn 0.8s ease-out forwards;
            animation-delay: 0.2s;
        }
        @media (max-width: 900px) {
            .sidebar { width: 140px; }
            .main-content { margin-left: 140px; }
            .sidebar a { font-size: 0.95rem; }
        }
        
        @media (max-width: 768px) {
            .sidebar { 
                width: 60px; 
                overflow: hidden;
            }
            .main-content { 
                margin-left: 60px; 
                padding: 1rem;
            }
            .sidebar a { 
                font-size: 0.8rem; 
                padding: 0.5rem;
                justify-content: center;
            }
            .sidebar a span {
                display: none;
            }
            .sidebar a i {
                margin-right: 0;
            }
        }
        
        @media (max-width: 480px) {
            .sidebar { 
                width: 50px; 
            }
            .main-content { 
                margin-left: 50px; 
                padding: 0.5rem;
            }
            .sidebar a { 
                font-size: 0.7rem; 
                padding: 0.4rem;
            }
        }
        .version-capsule {
            display: inline-block;
            background: linear-gradient(135deg, #e3f2fd, #bbdefb 80%);
            color: #1976d2;
            font-weight: 700;
            font-size: 0.98rem;
            border-radius: 999px;
            box-shadow: 0 2px 10px rgba(33,150,243,0.13), 0 1.5px 4px rgba(33,150,243,0.10);
            padding: 0.18em 1.1em 0.18em 1.1em;
            margin: 0 0.7em;
            border: 1.5px solid #bbdefb;
            transition: transform 0.22s cubic-bezier(0.4,0,0.2,1), box-shadow 0.22s cubic-bezier(0.4,0,0.2,1);
            vertical-align: middle;
            cursor: pointer;
        }
        .version-capsule:hover {
            transform: translateY(-5px) scale(1.07);
            box-shadow: 0 8px 24px rgba(33,150,243,0.18), 0 2px 8px rgba(33,150,243,0.13);
        }
        .vs-icon {
            display: inline-block;
            margin: 0 0.25rem;
            font-weight: 800;
            padding: 0.1rem 0.4rem;
            background: linear-gradient(135deg, #42a5f5, #2196f3);
            color: #fff;
            border-radius: 6px;
            font-size: 0.75rem;
            line-height: 1;
            vertical-align: middle;
        }

        /* ===== Enhanced Borders for Upload & Tips Panels ===== */
        .panel.upload-panel {
            border: 2px solid rgba(33, 150, 243, 0.35); /* Blue accent border */
        }

        /* Tips panel uses a subtle green accent border; requires tips-panel class on HTML */
        .panel.tips-panel {
            border: 2px solid rgba(76, 175, 80, 0.35); /* Green accent border */
        }

        /* Slightly stronger shadow for emphasis */
        .panel.upload-panel,
        .panel.tips-panel {
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
        }

        /* Increase paragraph spacing in Tips panel */
        .panel.tips-panel .about-text p {
            margin-bottom: 1.5rem;
        }

        .panel.tips-panel .about-text p:last-child {
            margin-bottom: 0;
        }
        
        /* 大屏幕笔记本和桌面端优化 */
        @media (min-width: 1201px) {
            .panel {
                height: auto !important;
                max-height: none !important;
                min-height: auto !important;
                overflow: visible !important;
            }
            
            .main-container {
                min-height: calc(100vh - 120px);
            }
            
            .about-text {
                overflow-wrap: normal;
                word-wrap: normal;
            }
        }

        /* --- 全局响应式缩放方案 --- */
        /* 默认字体大小，适配常见笔记本屏幕 (e.g., 1440px - 1919px) */
        html {
            font-size: 14px;
        }
        .main-container {
            max-width: 1500px; /* 适配笔记本屏幕的默认宽度 */
        }

        /* 适配标准高清屏幕 (e.g., 1920x1080) */
        @media (min-width: 1920px) {
            html {
                font-size: 16px; /* 这是最常见的桌面分辨率基准 */
            }
            .main-container {
                max-width: 1700px;
            }
        }

        /* 适配 QHD 及 MacBook (e.g., 2560x1440, 2560x1664) */
        @media (min-width: 2560px) {
            html {
                font-size: 18px;
            }
            .main-container {
                max-width: 2000px;
            }
        }

        /* 适配更高分辨率的屏幕 (e.g., 2880x1800, 4K) */
        @media (min-width: 2880px) {
            html {
                font-size: 20px;
            }
            .main-container {
                max-width: 2400px;
            }
        }

        /* --- 针对不同屏幕长宽比的适应性优化 --- */

        /* 适用于大多数笔记本屏幕 (16:10 比例) */
        @media (max-aspect-ratio: 16/10) and (min-aspect-ratio: 5/4) and (min-width: 1200px) {
            .main-container {
                gap: 1rem; /* 在较“高”的屏幕上减小垂直间距 */
            }
            .welcome-banner {
                 margin: 0.5rem 0; /* 减少顶部和底部的外边距 */
            }
            .upload-grid {
                row-gap: 2rem; /* 减小上传区域的行间距 */
            }
        }

        /* 适用于超宽屏幕 (大于 16:9) */
        @media (min-aspect-ratio: 17/9) and (min-width: 1920px) {
            .main-container {
                padding-left: 5vw; /* 在超宽屏上增加水平内边距 */
                padding-right: 5vw;
            }
        }

        /* 适用于较“方”的屏幕或竖屏显示器 (小于 4:3) */
        @media (max-aspect-ratio: 4/3) and (min-width: 992px) {
            .main-container {
                grid-template-columns: 1fr; /* 在高屏幕上自动切换为单列布局 */
                max-width: 900px; /* 限制单列布局的最大宽度以保证可读性 */
            }
        }

 