﻿/* ============================================
   地球物理数据处理系统 - 统一网页版样式
   现代化设计，响应式布局，靛蓝色主题
   ============================================ */

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主色调 - 靛蓝色系 */
    --primary-color: #4F46E5;
    --primary-light: #6366F1;
    --primary-dark: #4338CA;
    --primary-gradient: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);

    /* TSN 模块色 - 青色系 */
    --tsn-color: #0891B2;
    --tsn-light: #06B6D4;
    --tsn-gradient: linear-gradient(135deg, #0891B2 0%, #06B6D4 100%);
    --amt-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --mt-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);

    /* TBL 模块色 - 靛蓝色系 */
    --tbl-color: #4F46E5;
    --tbl-light: #6366F1;
    --tbl-gradient: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);

    /* 辅助色 */
    --success-color: #10B981;
    --success-light: #34D399;
    --warning-color: #F59E0B;
    --error-color: #EF4444;
    --error-light: #F87171;

    /* 中性色 */
    --bg-color: #F3F4F6;
    --bg-card: #FFFFFF;
    --bg-hover: #F9FAFB;
    --text-primary: #111827;
    --text-secondary: #374151;
    --text-muted: #6B7280;
    --border-color: #E5E7EB;
    --border-light: #F3F4F6;

    /* 阴影 */
    --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);

    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* 过渡 */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* 应用容器 */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ========== 头部导航 ========== */
.app-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-md);
}

.logo-icon svg {
    width: 26px;
    height: 26px;
}

.title-section {
    display: flex;
    flex-direction: column;
}

.app-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.app-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 1px;
}

/* 模块切换标签 */
.module-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-color);
    padding: 4px;
    border-radius: var(--radius-lg);
}

.tab-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.tab-link svg {
    width: 16px;
    height: 16px;
}

.tab-link:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.tab-link.active {
    background: var(--bg-card);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
}

/* 下拉菜单 */
.tab-dropdown {
    position: relative;
}

.dropdown-trigger {
    cursor: pointer;
}

.dropdown-arrow {
    transition: transform var(--transition-fast);
}

.tab-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: 1000;
}

.tab-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-group {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.dropdown-group-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    margin-bottom: 4px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
}

.dropdown-item:hover {
    background: var(--bg-hover);
    color: var(--primary-color);
}

.dropdown-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.dropdown-badge {
    margin-left: auto;
    background: var(--bg-muted);
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}

.dropdown-item:hover .dropdown-badge {
    background: var(--primary-light);
    color: var(--primary-color);
}

.header-actions {
    flex-shrink: 0;
}

.version-badge {
    background: var(--primary-gradient);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

/* ========== 主内容区 ========== */
.app-main {
    flex: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 28px 24px;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ========== 欢迎区域 ========== */
.welcome-section {
    width: 100%;
}

.welcome-card {
    background: var(--primary-gradient);
    border-radius: var(--radius-xl);
    padding: 36px 40px;
    color: white;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.welcome-card::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.welcome-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.welcome-desc {
    font-size: 14px;
    opacity: 0.92;
    max-width: 700px;
    position: relative;
    z-index: 1;
    line-height: 1.7;
}

.welcome-stats {
    display: flex;
    gap: 40px;
    margin-top: 24px;
    position: relative;
    z-index: 1;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
}

.stat-label {
    font-size: 12px;
    opacity: 0.85;
    margin-top: 2px;
}

/* ========== 区域标题 ========== */
.section-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 22px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* ========== 模块入口卡片 ========== */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 20px;
}

.module-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.module-card.module-tsn::before {
    background: var(--tsn-gradient);
}

.module-card.module-tbl::before {
    background: var(--tbl-gradient);
}

.module-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.module-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.module-tsn .module-icon {
    background: var(--tsn-gradient);
}

.module-tbl .module-icon {
    background: var(--tbl-gradient);
}

.module-icon svg {
    width: 30px;
    height: 30px;
}

.module-info {
    flex: 1;
    min-width: 0;
}

.module-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.module-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.6;
}

.module-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    background: var(--bg-color);
    color: var(--text-secondary);
}

.module-tsn .tag {
    background: rgba(8, 145, 178, 0.08);
    color: var(--tsn-color);
}

.module-tbl .tag {
    background: rgba(79, 70, 229, 0.08);
    color: var(--tbl-color);
}

.module-arrow {
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.module-card:hover .module-arrow {
    transform: translateX(4px);
    color: var(--primary-color);
}

.module-arrow svg {
    width: 24px;
    height: 24px;
}

/* ========== 功能卡片网格 ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 14px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: white;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.icon-blue { background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%); }
.icon-green { background: linear-gradient(135deg, #10B981 0%, #34D399 100%); }
.icon-purple { background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%); }
.icon-orange { background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%); }
.icon-cyan { background: linear-gradient(135deg, #0891B2 0%, #06B6D4 100%); }
.icon-pink { background: linear-gradient(135deg, #EC4899 0%, #F472B6 100%); }
.icon-teal { background: linear-gradient(135deg, #14B8A6 0%, #2DD4BF 100%); }
.icon-indigo { background: linear-gradient(135deg, #6366F1 0%, #818CF8 100%); }
.icon-red { background: linear-gradient(135deg, #EF4444 0%, #F87171 100%); }

.feature-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.feature-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
    flex: 1;
}

.feature-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.feature-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ========== 处理面板 ========== */
.processing-panel {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.panel-header {
    background: var(--primary-gradient);
    color: white;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header.tsn-panel {
    background: var(--tsn-gradient);
}

.panel-title {
    font-size: 17px;
    font-weight: 600;
}

.close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.close-btn svg {
    width: 18px;
    height: 18px;
}

.panel-body {
    padding: 28px;
}

/* ========== 表单输入 ========== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-label .required {
    color: var(--error-color);
    margin-left: 2px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-card);
    transition: all var(--transition-fast);
    outline: none;
}

.form-input:focus,
.form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ========== 上传区域 ========== */
.upload-area {
    margin-bottom: 20px;
}

.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    background: var(--bg-hover);
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--primary-light);
    background: rgba(79, 70, 229, 0.04);
}

.upload-zone.small {
    padding: 20px;
}

.upload-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.upload-icon.small {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
}

.upload-icon svg {
    width: 26px;
    height: 26px;
}

.upload-icon.small svg {
    width: 20px;
    height: 20px;
}

.upload-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.upload-text.small {
    font-size: 13px;
}

.upload-hint {
    font-size: 12px;
    color: var(--text-muted);
}

.coord-upload-area,
.extra-upload-area {
    margin-top: 14px;
}

/* ========== 文件列表 ========== */
.file-list {
    margin-bottom: 20px;
}

.list-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.selected-files {
    list-style: none;
    background: var(--bg-hover);
    border-radius: var(--radius-md);
    padding: 6px;
    max-height: 200px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.file-item:hover {
    background: var(--bg-card);
}

.file-icon {
    color: var(--primary-color);
    display: flex;
    flex-shrink: 0;
}

.file-icon svg {
    width: 18px;
    height: 18px;
}

.file-name {
    flex: 1;
    font-size: 13px;
    color: var(--text-primary);
    word-break: break-all;
}

.file-size {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

.coord-file-info,
.extra-file-info {
    margin-top: 10px;
    padding: 10px 14px;
    background: rgba(16, 185, 129, 0.08);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--success-color);
}

.coord-file-name,
.extra-file-name {
    font-size: 13px;
    color: var(--success-color);
    font-weight: 500;
}

/* ========== 操作按钮 ========== */
.action-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.process-btn {
    flex: 1;
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}

.process-btn.tsn-btn {
    background: var(--tsn-gradient);
}

.process-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.process-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.process-btn svg {
    width: 18px;
    height: 18px;
}

.reset-btn {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.reset-btn:hover {
    background: var(--bg-hover);
    border-color: var(--text-muted);
}

.reset-btn svg {
    width: 16px;
    height: 16px;
}

/* ========== 进度区域 ========== */
.progress-area {
    margin-bottom: 20px;
}

.progress-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.progress-bar-container {
    width: 100%;
    height: 22px;
    background: var(--bg-hover);
    border-radius: 11px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.progress-bar {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 11px;
    /* 去掉CSS transition，避免和JS的requestAnimationFrame动画冲突 */
    width: 0%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 25%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 100%
    );
    animation: progress-shine 2s infinite linear;
}

@keyframes progress-shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.progress-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
    text-align: center;
    font-weight: 500;
}

/* ========== 结果区域 ========== */
.result-area {
    margin-bottom: 20px;
}

.result-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-radius: var(--radius-lg);
    margin-bottom: 14px;
}

.result-card.success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.result-card.error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.result-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.result-card.success .result-icon {
    background: var(--success-color);
    color: white;
}

.result-card.error .result-icon {
    background: var(--error-color);
    color: white;
}

.result-icon svg {
    width: 22px;
    height: 22px;
}

.result-content {
    flex: 1;
}

.result-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.result-message,
.error-message {
    font-size: 13px;
    color: var(--text-secondary);
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--success-color);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.download-btn:hover {
    background: var(--success-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.download-btn svg {
    width: 18px;
    height: 18px;
}

/* ========== 文件信息展示 ========== */
.file-info-panel {
    background: var(--bg-hover);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.file-info-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-grid-2col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ========== 使用说明 ========== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.info-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    text-align: center;
}

.info-number {
    width: 36px;
    height: 36px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    margin: 0 auto 10px;
}

.info-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.info-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========== 底部 ========== */
.app-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 18px 24px;
    text-align: center;
}

.app-footer p {
    font-size: 12px;
    color: var(--text-muted);
}

/* ========== 通知 ========== */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    padding: 12px 18px;
    border-radius: var(--radius-md);
    color: white;
    font-size: 13px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
    transition: opacity 0.3s ease;
    max-width: 380px;
}

.notification-success { background: var(--success-color); }
.notification-error { background: var(--error-color); }
.notification-warning { background: var(--warning-color); }
.notification-info { background: var(--primary-color); }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ========== 模块页面横幅 ========== */
.module-banner {
    border-radius: var(--radius-xl);
    padding: 16px 24px;
    color: white;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.module-banner.tsn-banner {
    background: var(--tsn-gradient);
}

.module-banner.amt-banner {
    background: var(--amt-gradient);
}

.module-banner.mt-banner {
    background: var(--mt-gradient);
}

.module-banner.tbl-banner {
    background: var(--tbl-gradient);
}

.module-banner h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.module-banner p {
    font-size: 13px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.module-banner::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -5%;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

/* ========== 响应式 ========== */
@media (max-width: 900px) {
    .header-content {
        flex-wrap: wrap;
        gap: 12px;
    }
    .module-tabs {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    .module-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .app-main { padding: 18px 14px; }
    .welcome-card { padding: 24px; }
    .welcome-title { font-size: 20px; }
    .welcome-stats { gap: 24px; }
    .panel-body { padding: 18px; }
    .action-buttons { flex-direction: column; }
    .form-row { grid-template-columns: 1fr; }
    .notification-container { top: 12px; right: 12px; left: 12px; }
    .notification { max-width: 100%; }
}

@media (max-width: 480px) {
    .logo-section { gap: 8px; }
    .logo-icon { width: 36px; height: 36px; }
    .logo-icon svg { width: 20px; height: 20px; }
    .app-title { font-size: 15px; }
    .app-subtitle { font-size: 10px; }
    .version-badge { display: none; }
    .tab-link { padding: 6px 12px; font-size: 12px; }
    .upload-zone { padding: 24px 16px; }
}

/* ========== 数据目录设置和文件列表 ========== */
.data-directory-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.data-directory-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.data-directory-section .section-header h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.btn-refresh {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-refresh:hover {
    background: var(--bg-hover);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.directory-input-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.directory-input-row .form-input {
    flex: 1;
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
    white-space: nowrap;
}

.file-list-container {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-color);
}

.file-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.15s;
}

.file-list-item:last-child {
    border-bottom: none;
}

.file-list-item:hover {
    background: var(--bg-hover);
}

.file-list-item.selected {
    background: rgba(79, 70, 229, 0.1);
    border-left: 3px solid var(--primary-color);
}

.file-list-item.selected.file-1 {
    background: rgba(8, 145, 178, 0.1);
    border-left-color: var(--tsn-color);
}

.file-list-item.selected.file-2 {
    background: rgba(16, 185, 129, 0.1);
    border-left-color: var(--success-color);
}

.file-list-item.selected.source-file {
    background: rgba(139, 92, 246, 0.1);
    border-left-color: #8B5CF6;
}

.file-list-item .file-name {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    margin-right: 12px;
}

.file-list-item .file-size {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

.empty-file-list {
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.selected-file-info {
    margin-top: 12px;
    padding: 10px 12px;
    background: var(--bg-color);
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========== 模态对话框 ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-dialog {
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.modal-body {
    padding: 20px 24px;
    flex: 1;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
}

/* ========== 文件夹选择器 ========== */
.folder-picker-dialog {
    max-width: 650px;
}

.folder-picker-path {
    padding: 10px 14px;
    background: var(--bg-color);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    word-break: break-all;
}

.folder-picker-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.folder-picker-list {
    max-height: 350px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-color);
}

.folder-picker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.15s;
}

.folder-picker-item:last-child {
    border-bottom: none;
}

/* ========== 语言切换 ========== */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3px;
}

.lang-btn {
    padding: 5px 12px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.lang-btn.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.3);
}

.lang-btn.active:hover {
    color: white;
    background: var(--primary-gradient);
}

.folder-picker-item.folder-item:hover {
    background: rgba(79, 70, 229, 0.08);
}

.folder-picker-item.file-item {
    cursor: default;
    opacity: 0.7;
}

.folder-picker-item .folder-icon,
.folder-picker-item .file-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.folder-picker-item .file-icon {
    color: var(--text-muted);
}

.folder-picker-item .folder-name,
.folder-picker-item .file-name {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.folder-picker-item .file-size {
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ========== 按钮样式 ========== */
.btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-color);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--text-muted);
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

/* 目录输入行的浏览按钮 */
.directory-input-row .btn-browse {
    white-space: nowrap;
}

/* ========== 文件列表工具栏和复选框 ========== */
.file-list-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1;
}

.select-all-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    user-select: none;
}

.select-all-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.file-count {
    font-size: 12px;
    color: var(--text-muted);
}

/* 文件复选框样式 */
.file-checkbox {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    background: white;
}

.file-checkbox.checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.file-checkbox.checked::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* 文件列表项悬停效果 */
.file-list-item:hover .file-checkbox {
    border-color: var(--primary-color);
}

/* ========== TBL参数信息显示区域 ========== */
.tbl-params-area {
    margin-top: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.tbl-params-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.tbl-params-content {
    font-size: 13px;
    line-height: 1.8;
    color: #475569;
    max-height: 400px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
    font-family: 'Consolas', 'Monaco', monospace;
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* ========== Binary转TSN步骤切换 ========== */
.bin2ts-steps {
    display: flex;
    gap: 8px;
    margin: 12px 0;
}

.step-btn {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: white;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.step-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.step-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.step-btn.active:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* ========== Band参数设置 ========== */
.band-settings-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.band-settings-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.band-settings-section .section-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #0369a1;
}

.btn-reset-band {
    background: white;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    color: #0369a1;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.btn-reset-band:hover {
    background: #0369a1;
    color: white;
}

.band-params-row {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.band-params-row .form-group {
    flex: 1;
}

.band-params-row .form-label {
    font-size: 12px;
    font-weight: 500;
    color: #0369a1;
    margin-bottom: 4px;
    display: block;
}

.band-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    font-size: 13px;
    background: white;
    color: #0c4a6e;
    transition: all 0.2s;
}

.band-input:focus {
    outline: none;
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

.band-hint {
    font-size: 11px;
    color: #0369a1;
    opacity: 0.8;
    margin-top: 4px;
}

/* ========== Band参数全局设置（紧凑版） ========== */
.band-global-settings {
    margin-bottom: 8px;
}

.band-settings-compact {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 10px;
    padding: 10px 16px;
}

.band-label-compact {
    font-size: 13px;
    font-weight: 600;
    color: #0369a1;
    white-space: nowrap;
}

.band-param-compact {
    display: flex;
    align-items: center;
    gap: 6px;
}

.band-param-compact label {
    font-size: 12px;
    font-weight: 500;
    color: #0369a1;
    white-space: nowrap;
}

.band-param-compact input {
    width: 65px;
    padding: 5px 8px;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    font-size: 13px;
    background: white;
    color: #0c4a6e;
    text-align: center;
}

.band-param-compact input:focus {
    outline: none;
    border-color: #0284c7;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

.btn-band-confirm {
    background: #0284c7;
    border: 1px solid #0284c7;
    border-radius: 6px;
    padding: 6px 14px;
    cursor: pointer;
    color: white;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-band-confirm:hover {
    background: #0369a1;
    border-color: #0369a1;
}

.btn-band-reset {
    background: white;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    padding: 6px 8px;
    cursor: pointer;
    color: #0369a1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-band-reset:hover {
    background: #0369a1;
    color: white;
    border-color: #0369a1;
}

@media (max-width: 768px) {
    .band-settings-compact {
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* ============================================
   使用说明页面 - 新增样式
   ============================================ */

/* 系统架构图 */
.architecture-diagram {
    margin: 20px 0;
}

.arch-layer {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    border-left: 4px solid #4F46E5;
}

.arch-layer-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    font-size: 15px;
}

.arch-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.arch-item {
    background: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    color: #475569;
    border: 1px solid #e2e8f0;
}

/* 快速入门步骤 */
.quick-start-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quick-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.quick-step-number {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

.quick-step-content {
    flex: 1;
}

.quick-step-content h4 {
    color: #1e293b;
    margin-bottom: 4px;
    font-size: 16px;
}

.quick-step-content p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

/* 功能模块总览卡片 */
.modules-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.module-overview-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.module-overview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.module-overview-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: white;
}

.module-overview-icon svg {
    width: 24px;
    height: 24px;
}

.icon-processing {
    background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
}

.icon-inversion {
    background: linear-gradient(135deg, #7C3AED 0%, #8B5CF6 100%);
}

.icon-visualization {
    background: linear-gradient(135deg, #0891B2 0%, #06B6D4 100%);
}

.icon-tools {
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
}

.module-overview-card h4 {
    color: #1e293b;
    font-size: 18px;
    margin-bottom: 8px;
}

.module-overview-card > p {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.module-feature-list {
    list-style: none;
    margin-bottom: 16px;
}

.module-feature-list li {
    color: #475569;
    font-size: 13px;
    margin-bottom: 6px;
    line-height: 1.5;
}

.module-feature-list li strong {
    color: #1e293b;
}

.module-status {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.available {
    background: #dcfce7;
    color: #166534;
}

.status-badge.coming-soon {
    background: #fef3c7;
    color: #92400e;
}

/* 待接入功能列表 */
.coming-soon-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.coming-soon-item {
    display: flex;
    gap: 12px;
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.coming-soon-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.coming-soon-icon svg {
    width: 20px;
    height: 20px;
}

.coming-soon-content h4 {
    color: #1e293b;
    font-size: 15px;
    margin-bottom: 4px;
}

.coming-soon-content p {
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

/* 常见问题 */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.faq-item h4 {
    color: #4F46E5;
    font-size: 15px;
    margin-bottom: 8px;
}

.faq-item p {
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

/* 技术支持卡片 */
.tech-support-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.tech-support-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
}

.tech-support-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
}

.tech-support-icon svg {
    width: 28px;
    height: 28px;
}

.tech-support-card h4 {
    color: #1e293b;
    font-size: 17px;
    margin-bottom: 8px;
}

.tech-support-card > p {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.tech-support-value {
    color: #4F46E5;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.tech-support-update {
    color: #94a3b8;
    font-size: 13px;
    font-style: italic;
}

.tech-stack-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.tech-stack-item {
    background: #f1f5f9;
    color: #475569;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* 响应式 */
@media (max-width: 768px) {
    .modules-overview,
    .coming-soon-list,
    .tech-support-cards {
        grid-template-columns: 1fr;
    }
    
    .quick-step {
        flex-direction: column;
        gap: 8px;
    }
}

/* ============================================
   云模式上传区域样式
   ============================================ */

.cloud-upload-section {
    margin-bottom: 20px;
}

.upload-zone-wrapper {
    margin: 8px 0;
}

.upload-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 16px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.upload-zone:hover {
    border-color: #4F46E5;
    background: #eef2ff;
    transform: translateY(-2px);
}

.upload-zone.dragover {
    border-color: #4F46E5;
    background: #e0e7ff;
    transform: scale(1.02);
}

.upload-zone svg {
    color: #94a3b8;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.upload-zone:hover svg {
    color: #4F46E5;
}

.upload-zone p {
    color: #64748b;
    font-size: 14px;
    margin: 4px 0;
}

.upload-zone .upload-hint-small {
    font-size: 12px;
    color: #94a3b8;
}

.selected-file-label {
    margin-top: 10px;
    padding: 10px 14px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    color: #065f46;
    font-size: 13px;
    word-break: break-all;
}

.upload-step {
    margin: 12px 0;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #4F46E5;
}

/* 云模式下隐藏本地文件模式的元素 */
.data-directory-section {
    display: none !important;
}

.file-list-container {
    display: none !important;
}

#local-file-label {
    display: none !important;
}

/* ============================================
   会话工作区样式
   ============================================ */

.workspace-panel {
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 12px 16px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
}

.workspace-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.workspace-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.workspace-title svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.workspace-stats {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.workspace-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.workspace-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.workspace-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.workspace-btn svg {
    width: 16px;
    height: 16px;
}

.workspace-btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.workspace-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.workspace-btn-secondary {
    background: var(--bg-hover);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.workspace-btn-secondary:hover {
    background: var(--border-light);
}

.workspace-btn-danger {
    background: #fef2f2;
    color: var(--error-color);
    border: 1px solid #fecaca;
}

.workspace-btn-danger:hover {
    background: #fee2e2;
}

.workspace-file-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-color);
}

.workspace-file-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.2s ease;
    gap: 12px;
}

.workspace-file-item:last-child {
    border-bottom: none;
}

.workspace-file-item:hover {
    background: var(--bg-hover);
}

.workspace-file-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    color: white;
}

.workspace-file-info {
    flex: 1;
    min-width: 0;
}

.workspace-file-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.workspace-file-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 12px;
}

.workspace-file-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.workspace-file-action-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.workspace-file-action-btn:hover {
    background: var(--border-light);
    color: var(--text-primary);
}

.workspace-file-action-btn.download:hover {
    background: #ecfdf5;
    color: var(--success-color);
}

.workspace-file-action-btn.delete:hover {
    background: #fef2f2;
    color: var(--error-color);
}

.workspace-file-action-btn svg {
    width: 16px;
    height: 16px;
}

.workspace-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

.workspace-empty svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.workspace-empty p {
    font-size: 14px;
    margin-bottom: 4px;
}

.workspace-empty small {
    font-size: 12px;
    opacity: 0.8;
}

/* 工作区模式下的处理面板 */
.workspace-mode .upload-section {
    display: none !important;
}

.workspace-mode .workspace-file-selector {
    display: block !important;
}

.workspace-file-selector {
    display: none;
    margin: 12px 0;
}

.workspace-file-selector label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.workspace-file-selector select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-card);
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.workspace-file-selector select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.workspace-file-selector select[multiple] {
    min-height: 120px;
}

/* 模式切换按钮 */
.mode-switch {
    display: flex;
    background: var(--bg-color);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 16px;
}

.mode-switch-btn {
    flex: 1;
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.mode-switch-btn.active {
    background: var(--bg-card);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.mode-switch-btn:hover:not(.active) {
    color: var(--text-secondary);
}

/* 工作区文件选择器 - 2列布局 */
.workspace-checkbox-container {
    overflow: hidden;
}

.workspace-checkbox-item {
    display: block !important;
    float: left !important;
    width: 50% !important;
    box-sizing: border-box !important;
    padding: 3px 6px !important;
    margin-bottom: 0 !important;
    cursor: pointer;
    border-radius: 4px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: normal !important;
    color: var(--text-primary) !important;
}

.workspace-checkbox-item:hover {
    background-color: #f0f0f0;
}

/* ========== 完善的移动端响应式样式 ========== */

/* 平板和手机通用优化 */
@media (max-width: 1024px) {
    .app-main {
        max-width: 100%;
        padding: 20px 16px;
    }
    .header-content {
        padding: 12px 16px;
    }
}

/* 手机端优化 */
@media (max-width: 768px) {
    /* 全局优化 */
    body {
        font-size: 14px;
        -webkit-text-size-adjust: 100%;
    }
    
    .app-main {
        padding: 16px 12px;
    }
    
    /* 导航栏优化 */
    .header-content {
        padding: 10px 12px;
        gap: 8px;
    }
    
    .logo-section {
        gap: 8px;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
    }
    
    .app-title {
        font-size: 14px;
    }
    
    .app-subtitle {
        font-size: 10px;
    }
    
    .nav-links {
        gap: 4px;
    }
    
    .nav-link {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    /* 模块标签页优化 */
    .module-tabs {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .tab-link {
        padding: 8px 12px;
        font-size: 12px;
        white-space: nowrap;
    }
    
    /* 卡片和面板优化 */
    .panel, .card {
        padding: 14px;
        margin-bottom: 14px;
        border-radius: 10px;
    }
    
    .panel-header, .card-header {
        padding-bottom: 10px;
        margin-bottom: 12px;
    }
    
    .panel-title, .card-title {
        font-size: 15px;
    }
    
    /* 表单优化 */
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-group label {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 14px;
        min-height: 40px;
    }
    
    /* 按钮优化 */
    .btn {
        padding: 10px 16px;
        font-size: 13px;
        min-height: 40px;
        white-space: nowrap;
    }
    
    .btn-group {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .action-buttons .btn {
        width: 100%;
    }
    
    /* 表格优化 - 横向滚动 */
    .table-container,
    .table-wrap,
    .data-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -12px;
        padding: 0 12px;
    }
    
    table {
        min-width: 600px;
        font-size: 12px;
    }
    
    table th,
    table td {
        padding: 8px 10px;
        white-space: nowrap;
    }
    
    /* 上传区域优化 */
    .upload-zone,
    .upload-area {
        padding: 24px 16px;
        min-height: 120px;
    }
    
    .upload-zone .icon,
    .upload-area .icon {
        font-size: 32px;
    }
    
    .upload-zone p,
    .upload-area p {
        font-size: 12px;
    }
    
    /* 进度条优化 */
    .progress-bar-container {
        margin: 12px 0;
    }
    
    .progress-bar {
        height: 8px;
    }
    
    /* 工作区文件选择器优化 */
    .workspace-checkbox-container {
        grid-template-columns: 1fr !important;
        gap: 4px !important;
        max-height: 200px;
        overflow-y: auto;
    }
    
    .workspace-checkbox-container label {
        padding: 8px 10px !important;
        font-size: 13px !important;
    }
    
    /* 功能网格优化 */
    .features-grid,
    .module-grid,
    .tools-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    
    .feature-card,
    .module-card,
    .tool-card {
        padding: 14px;
    }
    
    /* 统计卡片优化 */
    .stats-grid,
    .welcome-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    /* 模态框优化 */
    .modal-content,
    .dialog-content {
        width: 95% !important;
        max-width: 100% !important;
        margin: 10px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-header,
    .dialog-header {
        padding: 14px 16px;
    }
    
    .modal-body,
    .dialog-body {
        padding: 16px;
    }
    
    .modal-footer,
    .dialog-footer {
        padding: 12px 16px;
        flex-direction: column;
        gap: 8px;
    }
    
    .modal-footer .btn,
    .dialog-footer .btn {
        width: 100%;
    }
    
    /* 通知优化 */
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .notification {
        max-width: 100%;
        padding: 12px 14px;
        font-size: 13px;
    }
    
    /* 页脚优化 */
    footer {
        padding: 20px 12px;
        font-size: 11px;
    }
}

/* 小屏手机优化 */
@media (max-width: 480px) {
    .app-main {
        padding: 10px 8px;
    }
    
    .header-content {
        padding: 8px 10px;
    }
    
    .app-title {
        font-size: 13px;
    }
    
    .app-subtitle {
        display: none;
    }
    
    .nav-link {
        padding: 5px 8px;
        font-size: 11px;
    }
    
    .tab-link {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .panel, .card {
        padding: 12px;
        border-radius: 8px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 8px 10px;
        font-size: 13px;
        min-height: 36px;
    }
    
    .btn {
        padding: 8px 12px;
        font-size: 12px;
        min-height: 36px;
    }
    
    .stats-grid,
    .welcome-stats {
        grid-template-columns: 1fr;
    }
    
    table {
        min-width: 500px;
        font-size: 11px;
    }
    
    table th,
    table td {
        padding: 6px 8px;
    }
}

/* 横屏手机优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .app-main {
        padding: 12px 16px;
    }
    
    .features-grid,
    .module-grid,
    .tools-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .stats-grid,
    .welcome-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .nav-link,
    .tab-link,
    .workspace-checkbox-container label {
        min-height: 44px;
        min-width: 44px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* 防止iOS自动缩放 */
    }
}

/* 可用标签 */
.available-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #52c41a, #389e0d);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(82, 196, 26, 0.4);
    z-index: 10;
    letter-spacing: 0.5px;
}


/* ========== 移动端深度优化 ========== */

/* 平板和手机通用优化 */
@media (max-width: 1024px) {
    /* 导航栏优化 - 减少间距 */
    .module-tabs {
        gap: 2px !important;
    }
    
    .tab-link {
        padding: 8px 10px !important;
        font-size: 12px !important;
    }
    
    .tab-link svg {
        width: 16px !important;
        height: 16px !important;
    }
}

/* 手机端深度优化 */
@media (max-width: 768px) {
    /* ========== 导航栏优化 ========== */
    .app-header {
        padding: 0 !important;
        background: var(--bg-card) !important;
        border-bottom: 1px solid var(--border-color) !important;
        box-shadow: var(--shadow-sm) !important;
    }
    
    .header-content {
        padding: 8px 10px !important;
        gap: 6px !important;
        flex-wrap: wrap !important;
        background: var(--bg-card) !important;
    }
    
    .logo-section {
        gap: 6px !important;
        flex: 1 !important;
        min-width: 0 !important;
    }
    
    .logo-icon {
        width: 32px !important;
        height: 32px !important;
        flex-shrink: 0 !important;
    }
    
    .logo-icon svg {
        width: 18px !important;
        height: 18px !important;
    }
    
    .app-title {
        font-size: 13px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 150px !important;
    }
    
    /* 导航标签优化 - 自动换行，全显示 */
    .module-tabs {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 4px 6px !important;
        padding: 4px 0 8px 0 !important;
        width: 100% !important;
        order: 3 !important;
        background: var(--bg-card) !important;
        border-top: 1px solid var(--border-color) !important;
    }
    
    .tab-link {
        padding: 6px 10px !important;
        font-size: 11px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        border-radius: 6px !important;
    }
    
    .tab-link svg {
        width: 14px !important;
        height: 14px !important;
        flex-shrink: 0 !important;
    }
    
    .tab-link span {
        white-space: nowrap !important;
    }
    
    .dropdown-arrow {
        width: 10px !important;
        height: 10px !important;
    }
    
    /* 语言切换按钮优化 */
    .header-actions {
        order: 2 !important;
        flex-shrink: 0 !important;
    }
    
    .language-switcher {
        display: flex !important;
        gap: 2px !important;
    }
    
    .lang-btn {
        padding: 4px 8px !important;
        font-size: 11px !important;
        min-width: auto !important;
    }
    
    /* ========== 横幅卡片优化 ========== */
    .hero-section.compact {
        padding: 16px !important;
        margin-bottom: 16px !important;
        border-radius: 12px !important;
    }
    
    .hero-content.compact {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .hero-text {
        width: 100% !important;
    }
    
    .hero-title.compact {
        font-size: 20px !important;
        line-height: 1.3 !important;
        margin-bottom: 6px !important;
    }
    
    .hero-subtitle.compact {
        font-size: 12px !important;
        line-height: 1.5 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    
    /* 横幅标签优化 */
    .hero-badges {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        width: 100% !important;
    }
    
    .hero-badge-item {
        padding: 4px 10px !important;
        font-size: 11px !important;
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        white-space: nowrap !important;
    }
    
    .hero-badge-item svg {
        width: 12px !important;
        height: 12px !important;
        flex-shrink: 0 !important;
    }
    
    .hero-badge-item span {
        white-space: nowrap !important;
    }
    
    /* ========== 常用功能卡片优化 ========== */
    .common-features-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .common-feature-card {
        padding: 14px !important;
        border-radius: 12px !important;
    }
    
    .card-icon-wrapper {
        width: 44px !important;
        height: 44px !important;
    }
    
    .card-icon {
        width: 44px !important;
        height: 44px !important;
    }
    
    .card-icon svg {
        width: 22px !important;
        height: 22px !important;
    }
    
    .card-title {
        font-size: 15px !important;
        margin-bottom: 4px !important;
    }
    
    .card-description {
        font-size: 12px !important;
        line-height: 1.5 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    
    /* 卡片标签优化 */
    .card-tags {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 4px !important;
        margin-top: 8px !important;
    }
    
    .card-tag {
        padding: 2px 8px !important;
        font-size: 10px !important;
        white-space: nowrap !important;
    }
    
    /* 可用标签优化 */
    .available-badge {
        padding: 3px 10px !important;
        font-size: 11px !important;
        top: 10px !important;
        right: 10px !important;
    }
    
    /* ========== 功能模块区域优化 ========== */
    .section-header {
        margin-bottom: 12px !important;
    }
    
    .section-title {
        font-size: 16px !important;
    }
    
    .section-subtitle {
        font-size: 12px !important;
    }
    
    /* 功能卡片网格优化 */
    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .feature-card {
        padding: 12px !important;
        border-radius: 10px !important;
    }
    
    .feature-icon {
        width: 36px !important;
        height: 36px !important;
        margin-bottom: 8px !important;
    }
    
    .feature-icon svg {
        width: 18px !important;
        height: 18px !important;
    }
    
    .feature-name {
        font-size: 12px !important;
        line-height: 1.3 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        min-height: 32px !important;
    }
    
    .feature-status {
        font-size: 10px !important;
        padding: 2px 6px !important;
        margin-top: 6px !important;
    }
    
    /* ========== 模块标签页优化 ========== */
    .module-tabs-container {
        margin-bottom: 12px !important;
    }
    
    .module-tab-list {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 4px !important;
        padding-bottom: 2px !important;
    }
    
    .module-tab-list::-webkit-scrollbar {
        display: none !important;
    }
    
    .module-tab-item {
        padding: 8px 14px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    
    /* ========== 页脚优化 ========== */
    .app-footer {
        padding: 16px 12px !important;
    }
    
    .footer-content {
        flex-direction: column !important;
        gap: 6px !important;
        text-align: center !important;
    }
    
    .footer-content p {
        font-size: 11px !important;
        line-height: 1.5 !important;
    }
    
    .visitor-count::before {
        display: none !important;
    }
    
    /* ========== 按钮优化 ========== */
    .btn {
        padding: 10px 16px !important;
        font-size: 13px !important;
        min-height: 40px !important;
    }
    
    .btn-group {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    
    /* ========== 表单优化 ========== */
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    .form-group {
        margin-bottom: 10px !important;
    }
    
    .form-group label {
        font-size: 12px !important;
        margin-bottom: 4px !important;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px !important;
        font-size: 14px !important;
        min-height: 40px !important;
    }
    
    /* ========== 面板和卡片优化 ========== */
    .panel, .card {
        padding: 14px !important;
        margin-bottom: 12px !important;
        border-radius: 10px !important;
    }
    
    .panel-header, .card-header {
        padding-bottom: 10px !important;
        margin-bottom: 12px !important;
    }
    
    .panel-title, .card-title {
        font-size: 15px !important;
    }
    
    /* ========== 表格优化 ========== */
    .table-container,
    .table-wrap,
    .data-table-wrapper {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        margin: 0 -12px !important;
        padding: 0 12px !important;
    }
    
    table {
        min-width: 600px !important;
        font-size: 12px !important;
    }
    
    table th,
    table td {
        padding: 8px 10px !important;
        white-space: nowrap !important;
    }
    
    /* ========== 模态框优化 ========== */
    .modal-content,
    .dialog-content {
        width: 95% !important;
        max-width: 100% !important;
        margin: 10px !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
    }
    
    .modal-header,
    .dialog-header {
        padding: 14px 16px !important;
    }
    
    .modal-body,
    .dialog-body {
        padding: 16px !important;
    }
    
    .modal-footer,
    .dialog-footer {
        padding: 12px 16px !important;
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .modal-footer .btn,
    .dialog-footer .btn {
        width: 100% !important;
    }
    
    /* ========== 通知优化 ========== */
    .notification-container {
        top: 10px !important;
        right: 10px !important;
        left: 10px !important;
    }
    
    .notification {
        max-width: 100% !important;
        padding: 12px 14px !important;
        font-size: 13px !important;
    }
    
    /* ========== 工作区文件选择器优化 ========== */
    .workspace-checkbox-container {
        grid-template-columns: 1fr !important;
        gap: 4px !important;
        max-height: 200px !important;
        overflow-y: auto !important;
    }
    
    .workspace-checkbox-container label {
        padding: 8px 10px !important;
        font-size: 13px !important;
    }
    
    /* ========== 上传区域优化 ========== */
    .upload-zone,
    .upload-area {
        padding: 24px 16px !important;
        min-height: 120px !important;
    }
    
    .upload-zone .icon,
    .upload-area .icon {
        font-size: 32px !important;
    }
    
    .upload-zone p,
    .upload-area p {
        font-size: 12px !important;
    }
    
    /* ========== 进度条优化 ========== */
    .progress-bar-container {
        margin: 12px 0 !important;
    }
    
    .progress-bar {
        height: 8px !important;
    }
}

/* 小屏手机深度优化 */
@media (max-width: 480px) {
    .app-main {
        padding: 10px 8px !important;
    }
    
    .app-title {
        font-size: 12px !important;
        max-width: 120px !important;
    }
    
    .tab-link {
        padding: 5px 8px !important;
        font-size: 10px !important;
    }
    
    .module-tabs {
        gap: 3px 4px !important;
    }
    
    .hero-title.compact {
        font-size: 18px !important;
    }
    
    .hero-subtitle.compact {
        font-size: 11px !important;
    }
    
    .features-grid {
        grid-template-columns: 1fr !important;
    }
    
    .stats-grid,
    .welcome-stats {
        grid-template-columns: 1fr !important;
    }
}

/* 横屏手机优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .app-main {
        padding: 12px 16px !important;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .common-features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
