/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS变量定义 */
:root {
    /* 主色调 */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #a5b4fc;
    
    /* 辅助色 */
    --secondary-color: #64748b;
    --accent-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    
    /* 背景色 */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-surface: #e2e8f0;
    
    /* 文字色 */
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    /* 边框色 */
    --border-color: #e2e8f0;
    --border-light: #cbd5e1;
    
    /* 阴影 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* 过渡动画 */
    --transition-fast: all 0.15s ease-in-out;
    --transition-normal: all 0.3s ease-in-out;
    --transition-slow: all 0.5s ease-in-out;
    
    /* 字体 */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

/* 基础样式 */
body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* 应用容器 */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部样式 */
.header {
    background: rgba(248, 250, 252, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    z-index: 101;
}

.logo i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition-fast);
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.nav-link i {
    margin-right: 0.5rem;
}

/* 主要内容 */
.main-content {
    flex: 1;
    padding: 2rem;
}

/* 英雄区域 */
.hero-section {
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 1rem;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.version-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

/* 特性网格 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 1.5rem 1rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    background: rgba(99, 102, 241, 0.15);
}

.feature-card i {
    font-size: 2rem;
    color: var(--primary-color);
}

/* 上传区域 */
.upload-section {
    margin-bottom: 3rem;
}

.upload-container {
    max-width: 1200px;
    margin: 0 auto;
}

.upload-area {
    border: 2px dashed var(--border-light);
    border-radius: 1rem;
    padding: 3rem 2rem;
    text-align: center;
    background: rgba(71, 85, 105, 0.1);
    transition: var(--transition-normal);
    cursor: pointer;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.upload-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.upload-area h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.upload-area p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.upload-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.upload-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* 文件列表 */
.file-list {
    margin-top: 2rem;
    background: var(--bg-secondary);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.file-list h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-color);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.file-icon {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.file-details {
    display: flex;
    flex-direction: column;
}

.file-name {
    color: var(--text-primary);
    font-weight: 500;
}

.file-size {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.file-remove {
    background: var(--error-color);
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: var(--transition-fast);
}

.file-remove:hover {
    background: #dc2626;
}

.file-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* 按钮样式 */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* 配置区域 */
.config-section {
    margin-bottom: 3rem;
}

.config-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title i {
    color: var(--primary-color);
}

/* 配置组 */
.config-group {
    background: var(--bg-secondary);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

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

.group-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.group-header h3 i {
    color: var(--accent-color);
}

.group-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* 配置网格 */
.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.config-item {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
}

.config-label {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    cursor: pointer;
}

/* 自定义复选框 */
.config-label input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.checkmark {
    margin-left: 0.5rem;
}

/* 输入框样式 */
.config-item input[type="text"],
.config-item input[type="number"],
.config-item input[type="date"],
.config-item select {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: var(--transition-fast);
}

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

.config-desc {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* 配置操作 */
.config-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* 配置选项卡 */
.config-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.config-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-radius: 0.5rem 0.5rem 0 0;
    transition: var(--transition-fast);
}

.config-tab:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.config-tab.active {
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-bottom-color: transparent;
}

.tab-panels {
    margin-top: 0;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* 进度样式 */
.progress-section {
    margin-bottom: 3rem;
}

.progress-container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.progress-header {
    background: var(--bg-tertiary);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.progress-header h3 {
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
}

.progress-header h3 i {
    color: var(--primary-color);
}

.progress-status {
    color: var(--success-color);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 9999px;
}

.progress-body {
    padding: 1.5rem;
    background: var(--bg-secondary);
}

.progress-messages {
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    background: var(--bg-tertiary);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.progress-message {
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.3s ease-out;
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.message-time {
    color: var(--accent-color);
    font-weight: 600;
    display: inline-block;
    flex: 0 0 auto;
    min-width: 60px;
}

.message-text {
    color: var(--text-secondary);
    flex: 1;
}

.progress-bar-container {
    background: var(--bg-tertiary);
    border-radius: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.progress-bar {
    background: var(--bg-surface);
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    height: 100%;
    width: 0;
    transition: width 0.3s ease;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(99, 102, 241, 0.3);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

/* 结果区域 */
.result-section {
    margin-bottom: 3rem;
}

.result-container {
    max-width: 1200px;
    margin: 0 auto;
}

.result-content {
    background: var(--bg-secondary);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

/* 加载遮罩 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(99, 102, 241, 0.2);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.loading-text {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 500;
}

/* 底部 */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: var(--text-primary);
}

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

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* 卡密验证区域样式 */
.card-auth-section {
    margin-bottom: 3rem;
}

.card-auth-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 卡密输入区域 */
.card-input-area {
    background: var(--bg-secondary);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.input-group {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.input-wrapper {
    flex: 1;
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    z-index: 2;
}

.card-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: 'Consolas', 'Monaco', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition-normal);
    background: var(--bg-secondary);
    color: var(--text-primary);
}

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

.card-input:focus + .input-icon {
    color: var(--primary-color);
}

.verify-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 140px;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

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

.verify-btn:active {
    transform: translateY(0);
}

.verify-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* 卡密信息展示区域 - 正方形卡片布局 */
.card-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-card {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
    min-height: 140px;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

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

.card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
}

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

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    word-break: break-all;
}

.card-value.remaining {
    color: var(--success-color);
}

.card-value.expire-time {
    color: var(--warning-color);
}

.card-value.used {
    color: var(--secondary-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .input-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .verify-btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
    
    .card-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .info-card {
        padding: 1rem;
        min-height: 110px;
    }
    
    .card-icon {
        width: 36px;
        height: 36px;
    }
    
    .card-icon i {
        font-size: 1.1rem;
    }
    
    .card-title {
        font-size: 0.8rem;
    }
    
    .card-value {
        font-size: 1rem;
    }
    
    .card-input-area {
        padding: 1.5rem;
    }
}

/* 上传区域隐藏状态 */
.upload-section {
    transition: var(--transition-normal);
}

.upload-section[style*="display: none"] {
    opacity: 0;
    transform: translateY(20px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        padding: 1rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        gap: 0;
        padding: 5rem 0 2rem;
        box-shadow: var(--shadow-xl);
        transition: left 0.3s ease;
        border-right: 1px solid var(--border-color);
        z-index: 100;
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav-link {
        padding: 1rem 2rem;
        border-radius: 0;
        border-bottom: 1px solid var(--border-light);
        justify-content: flex-start;
    }
    
    .nav-link:hover {
        background: var(--bg-tertiary);
    }
    
    .nav-link i {
        margin-right: 1rem;
        width: 20px;
        text-align: center;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .config-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .config-group {
        padding: 1rem;
    }
    
    .config-actions {
        flex-direction: column;
    }
    
    .file-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .file-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .progress-header {
        padding: 0.75rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .progress-body {
        padding: 1rem;
    }
    
    .progress-messages {
        min-height: 150px;
        font-size: 0.8rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .upload-area {
        padding: 2rem 1rem;
    }
    
    .nav {
        width: 100%;
    }
    
    .progress-header {
        padding: 0.5rem 0.75rem;
    }
    
    .progress-body {
        padding: 0.75rem;
    }
    
    .progress-messages {
        min-height: 120px;
        font-size: 0.75rem;
        padding: 0.75rem;
    }
    
    /* 超小屏幕优化卡密区域 */
    .card-info-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .info-card {
        padding: 0.75rem;
        min-height: 100px;
    }
    
    .card-icon {
        width: 32px;
        height: 32px;
    }
    
    .card-icon i {
        font-size: 1rem;
    }
    
    .card-title {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }
    
    .card-value {
        font-size: 0.9rem;
        line-height: 1.2;
    }
    
    .card-input-area {
        padding: 1rem;
    }
    
    .card-input {
        padding: 0.75rem 0.75rem 0.75rem 2.5rem;
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
    
    .input-icon {
        left: 0.75rem;
        font-size: 1rem;
    }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* 特殊效果 */
.glow {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.success-glow {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.error-glow {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

/* 打字机效果 */
.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--primary-color);
    white-space: nowrap;
    margin: 0 auto;
    animation: typing 2s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary-color); }
}

/* 状态样式 */
.status-success {
    color: var(--success-color);
}

.status-warning {
    color: var(--warning-color);
}

.status-error {
    color: var(--error-color);
}

.status-info {
    color: var(--accent-color);
}

/* 工具提示 */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    z-index: 1000;
    border: 1px solid var(--border-color);
    font-size: 0.875rem;
    box-shadow: var(--shadow-lg);
}

.tooltip:hover::before {
    opacity: 1;
    visibility: visible;
}

/* 结果样式扩展 */
.result-summary {
    background: var(--bg-tertiary);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

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

.summary-item {
    background: var(--bg-surface);
    padding: 1.5rem;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.summary-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.summary-item.success {
    border-left: 4px solid var(--success-color);
}

.summary-item.warning {
    border-left: 4px solid var(--warning-color);
}

.summary-item.error {
    border-left: 4px solid var(--error-color);
}

.summary-item.info {
    border-left: 4px solid var(--accent-color);
}

.summary-item i {
    font-size: 2rem;
}

.summary-item.success i { color: var(--success-color); }
.summary-item.warning i { color: var(--warning-color); }
.summary-item.error i { color: var(--error-color); }
.summary-item.info i { color: var(--accent-color); }

.summary-details {
    text-align: center;
}

.summary-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.summary-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.result-group {
    background: var(--bg-tertiary);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.result-group h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
}

.text-success { color: var(--success-color); }
.text-warning { color: var(--warning-color); }
.text-error { color: var(--error-color); }

.file-result-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--bg-surface);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.file-result-item i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.file-result-item.success i { color: var(--success-color); }
.file-result-item.warning i { color: var(--warning-color); }
.file-result-item.error i { color: var(--error-color); }

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
}

.status-badge.warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning-color);
}

.status-badge.error {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error-color);
}

.error-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.error-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 0.5rem;
}

.error-item i {
    color: var(--error-color);
    font-size: 1.1rem;
    margin-top: 0.125rem;
}

.error-details {
    flex: 1;
}

.error-file {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.error-message {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

/* 辅助类 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }

.hidden { display: none; }
.visible { display: block; }

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

/* 文件列表模态框样式 */
.file-list-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.file-list-modal {
    background: var(--bg-primary);
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.modal-header .file-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.modal-header .stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.modal-header .stat-item i {
    width: 16px;
    text-align: center;
}

.modal-header .stat-item.total {
    font-weight: 600;
    color: var(--primary-color);
}

.modal-header h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

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

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

.file-group h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    transition: var(--transition-fast);
}

.file-item:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-light);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.file-info i {
    color: var(--primary-color);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.file-details {
    flex: 1;
    min-width: 0;
}

.file-name {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-meta {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.file-size {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

/* 模态框底部 */
.file-list-modal .modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    border-radius: 0 0 1rem 1rem;
}

.file-list-modal .batch-download-section {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    align-items: center;
}

.file-list-modal .batch-download-section .btn {
    min-width: 120px;
}

.file-list-modal .batch-download-section .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
}

/* 移动端加密结果响应式设计 */
@media (max-width: 768px) {
    /* 文件结果项移动端优化 */
    .file-result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .file-result-item i {
        margin-right: 0.5rem;
        font-size: 1rem;
    }
    
    .status-badge {
        align-self: flex-end;
        margin-top: 0.25rem;
    }
    
    /* 错误项移动端优化 */
    .error-item {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .error-item i {
        margin-top: 0;
        align-self: flex-start;
    }
    
    .error-details {
        width: 100%;
    }
    
    .error-file {
        font-size: 0.875rem;
        word-break: break-all;
        line-height: 1.4;
    }
    
    .error-message {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    /* 结果组标题移动端优化 */
    .result-group h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    /* 结果统计移动端优化 */
    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .summary-item {
        padding: 0.75rem;
    }
    
    .summary-number {
        font-size: 1.25rem;
    }
    
    .summary-label {
        font-size: 0.75rem;
    }
}

/* 超小屏幕（手机）专门优化 */
@media (max-width: 480px) {
    /* 文件结果项手机端优化 */
    .file-result-item {
        padding: 0.5rem;
        border-radius: 0.375rem;
    }
    
    .file-result-item span {
        font-size: 0.875rem;
        line-height: 1.3;
        word-break: break-all;
    }
    
    /* 错误项手机端优化 */
    .error-item {
        padding: 0.5rem;
        border-radius: 0.375rem;
    }
    
    .error-file {
        font-size: 0.8rem;
        margin-bottom: 0.125rem;
    }
    
    .error-message {
        font-size: 0.75rem;
        line-height: 1.2;
    }
    
    /* 状态标识手机端优化 */
    .status-badge {
        padding: 0.125rem 0.5rem;
        font-size: 0.65rem;
    }
    
    /* 结果组手机端优化 */
    .result-group {
        margin-bottom: 1rem;
    }
    
    .result-group h4 {
        font-size: 0.9rem;
        padding: 0.5rem;
        margin-bottom: 0.5rem;
        border-radius: 0.375rem;
        background: var(--bg-secondary);
    }
    
    /* 统计网格手机端优化 */
    .summary-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .summary-item {
        padding: 0.5rem;
        border-radius: 0.375rem;
    }
    
    .summary-number {
        font-size: 1.125rem;
    }
    
    .summary-label {
        font-size: 0.7rem;
    }
    
    /* 结果操作按钮手机端优化 */
    .result-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .result-actions .btn {
        width: 100%;
        padding: 0.75rem;
        font-size: 0.875rem;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .file-list-modal {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
    
    /* 模态框头部文件统计移动端优化 */
    .modal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .modal-header .file-stats {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.375rem;
    }
    
    .modal-header .stat-item {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
        background: var(--bg-tertiary);
        border-radius: 0.375rem;
        flex: none;
    }
    
    .modal-header .stat-item.total {
        background: rgba(var(--primary-rgb), 0.1);
    }
    
    .modal-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
    
    .batch-download-section {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .batch-download-section .btn {
        width: 100%;
        min-width: unset;
    }
    
    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .file-info {
        width: 100%;
    }
    
    .btn-sm {
        width: 100%;
        justify-content: center;
    }
}

/* 公告弹窗样式 */
.announcement-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.announcement-modal.show {
    opacity: 1;
    visibility: visible;
}

.announcement-content {
    background: var(--bg-primary);
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    transform: translateY(-20px);
    transition: var(--transition-normal);
}

.announcement-modal.show .announcement-content {
    transform: translateY(0);
}

.announcement-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.announcement-title {
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.announcement-title i {
    font-size: 1.1rem;
}

.announcement-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
}

.announcement-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.announcement-body {
    padding: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.announcement-text p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.announcement-text p:last-child {
    margin-bottom: 0;
}

.announcement-footer {
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.announcement-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

.announcement-checkbox input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--primary-color);
}

.announcement-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.875rem;
}

.announcement-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.announcement-btn:active {
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 640px) {
    .announcement-content {
        width: 95%;
        margin: 0.5rem;
        max-height: 90vh;
        border-radius: 0.75rem;
    }
    
    .announcement-header {
        padding: 0.75rem 1rem;
    }
    
    .announcement-title {
        font-size: 1rem;
    }
    
    .announcement-close {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 1rem;
    }
    
    .announcement-body {
        padding: 0.75rem 1rem;
        max-height: calc(90vh - 120px);
        overflow-y: auto;
    }
    
    .announcement-text p {
        margin-bottom: 0.75rem;
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .announcement-footer {
        padding: 0.75rem 1rem;
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .announcement-checkbox {
        font-size: 0.8rem;
        justify-content: center;
    }
    
    .announcement-btn {
        width: 100%;
        padding: 0.75rem;
        font-size: 0.9rem;
        text-align: center;
    }
}

/* 更小屏幕的额外优化 */
@media (max-width: 480px) {
    .announcement-content {
        width: 98%;
        margin: 0.25rem;
        max-height: 95vh;
    }
    
    .announcement-header {
        padding: 0.5rem 0.75rem;
    }
    
    .announcement-title {
        font-size: 0.95rem;
    }
    
    .announcement-body {
        padding: 0.5rem 0.75rem;
        max-height: calc(95vh - 100px);
    }
    
    .announcement-text p {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .announcement-footer {
        padding: 0.5rem 0.75rem;
    }
}
