/* ==================== 深色主题 - 深绿配浅灰 ==================== */

:root {
    /* 主色调 - 现代深蓝紫渐变 */
    --primary: #667eea;       /* 主色 - 深蓝紫 */
    --primary-light: #764ba2; /* 浅色 - 紫色 */
    --primary-dark: #4c63d2;  /* 深色 - 深蓝 */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary: #f093fb;     /* 次要色 - 粉紫 */
    --accent: #4facfe;        /* 强调色 - 天蓝 */

    /* 功能色彩 - 现代化配色 */
    --success: #00d4aa;       /* 成功 - 青绿 */
    --warning: #ff9500;       /* 警告 - 橙色 */
    --error: #ff6b6b;         /* 错误 - 珊瑚红 */
    --info: #4facfe;          /* 信息 - 天蓝 */

    /* 文字颜色 - 优化深色主题 */
    --text-primary: #ffffff;   /* 主文字 - 纯白 */
    --text-secondary: #b8c5d6; /* 次要文字 - 蓝灰 */
    --text-muted: #8892a6;     /* 提示文字 - 灰蓝 */
    --text-light: #ffffff;     /* 亮文字 */
    --text-white: #ffffff;
    --text-table: #ffffff;     /* 表格文字 - 纯白 */

    /* 背景色 - 现代深色主题 */
    --bg-main: #0f0f23;        /* 主背景 - 深蓝黑 */
    --bg-card: #1a1a2e;        /* 卡片背景 - 深蓝灰 */
    --bg-secondary: #16213e;   /* 辅助背景 - 蓝灰 */
    --bg-muted: #0e3460;       /* 隔行背景 - 深蓝 */
    --bg-hover: rgba(102, 126, 234, 0.15); /* 悬停背景 - 蓝紫透明 */
    --bg-dark: #0a0a1a;        /* 更深的背景 */
    --bg-overlay: rgba(15, 15, 35, 0.95);
    --bg-warning: rgba(255, 149, 0, 0.15);
    --bg-empty: #1a1a2e;       /* 空状态背景 */

    /* 边框和分割线 - 现代深色主题 */
    --border-light: #2d3748;   /* 浅边框 - 蓝灰 */
    --border-default: #4a5568; /* 默认边框 - 中灰 */
    --border-strong: #667eea;  /* 强边框 - 主色 */

    /* 阴影系统 - 现代化设计 */
    --shadow-xs: 0 1px 3px rgba(102, 126, 234, 0.1);
    --shadow-sm: 0 4px 12px rgba(102, 126, 234, 0.15);
    --shadow-md: 0 8px 25px rgba(102, 126, 234, 0.2);
    --shadow-lg: 0 15px 35px rgba(102, 126, 234, 0.25);
    --shadow-xl: 0 20px 45px rgba(102, 126, 234, 0.3);
    --shadow-2xl: 0 25px 55px rgba(102, 126, 234, 0.35);
    --shadow-glow: 0 0 20px rgba(102, 126, 234, 0.4);
    --shadow-inner: inset 0 2px 4px rgba(102, 126, 234, 0.1);

    /* 圆角系统 - 卡片化设计 */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;        /* 卡片主要圆角 */
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* 间距系统 */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    
    /* 字体系统 */
    --text-xs: 12px;
    --text-sm: 14px;
    --text-base: 16px;
    --text-lg: 18px;
    --text-xl: 20px;
    --text-2xl: 24px;
    --text-3xl: 30px;
    --text-4xl: 36px;
    
    /* 动画 */
    --transition-fast: 0.15s ease-out;
    --transition-base: 0.2s ease-out;
    --transition-slow: 0.3s ease-out;
    
    /* 布局断点 */
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
}

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础样式 */
html {
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: white !important;
    background: 
        /* 简约渐变背景 */
        radial-gradient(ellipse at 20% 30%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(118, 75, 162, 0.12) 0%, transparent 45%),
        linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 简约装饰层 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        /* 简单网格 */
        linear-gradient(90deg, rgba(102, 126, 234, 0.03) 1px, transparent 1px),
        linear-gradient(0deg, rgba(102, 126, 234, 0.03) 1px, transparent 1px);
    background-size: 100px 100px;
    pointer-events: none;
    z-index: -1;
    opacity: 0.5;
}



/* 现代化按钮系统 - 优化版 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    user-select: none;
    position: relative;
    overflow: hidden;
}

/* 主要按钮 - 现代渐变设计 */
.btn-primary {
    background: var(--primary-gradient);
    color: var(--text-white);
    box-shadow: var(--shadow-sm);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.btn-primary:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: var(--shadow-sm);
    transition: all 0.1s ease;
}

/* 次要按钮 - 现代轻量风格 */
.btn-secondary {
    background: rgba(102, 126, 234, 0.08);
    color: var(--primary);
    border: 1px solid rgba(102, 126, 234, 0.25);
    box-shadow: var(--shadow-xs);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: var(--primary-light);
}

.btn-secondary:active {
    transform: translateY(0) scale(0.98);
    background: rgba(102, 126, 234, 0.2);
    box-shadow: var(--shadow-xs);
    transition: all 0.1s ease;
}

.btn-ghost {
    background: transparent;
    color: white !important;
    border: 1px solid var(--border-light);
    box-shadow: none;
    backdrop-filter: blur(5px);
}

.btn-ghost:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-default);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-ghost:active {
    transform: translateY(0) scale(0.98);
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.1s ease;
}

/* 危险操作按钮 */
.btn-danger {
    background: var(--error);
    color: var(--text-white);
    box-shadow: 0 2px 6px rgba(196, 77, 77, 0.2);
}

.btn-danger:hover {
    background: #A73E3E;
    box-shadow: 0 3px 8px rgba(196, 77, 77, 0.3);
    transform: translateY(-1px);
}

.btn-danger:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
    background: #A73E3E;
}

/* 成功按钮 - 成功色 */
.btn-success {
    background: var(--success);
    color: var(--text-white);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.btn-success:hover {
    background: var(--success-dark, #0d9668);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transform: translateY(-1px);
}

.btn-success:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
    background: var(--success-dark, #0d9668);
}

/* 按钮尺寸变体 */
.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
    border-radius: var(--radius-md);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
}

/* 图标按钮 */
.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius-full);
}

.btn-icon-sm {
    width: 28px;
    height: 28px;
}

.btn-icon-lg {
    width: 44px;
    height: 44px;
}

/* 现代化输入框系统 - 优化版 */
.input-group {
    margin-bottom: var(--space-4);
    position: relative;
}

.input-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: var(--space-2);
    transition: all var(--transition-base);
}

.input-field {
    width: 100%;
    padding: var(--space-4) var(--space-5);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: var(--radius-xl);
    font-size: var(--text-base);
    background: rgba(26, 26, 46, 0.6);
    color: var(--text-white);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    position: relative;
}

.input-field::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(79, 172, 254, 0.05));
    pointer-events: none;
    z-index: -1;
}

.input-field:hover {
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.input-field:focus {
    outline: none;
    border-color: var(--primary-solid);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2), var(--shadow-glow);
    transform: translateY(-2px);
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.6);
    transition: opacity var(--transition-base);
}

.input-field:focus::placeholder {
    opacity: 0.4;
}

/* 输入框变体 */
.input-rounded {
    border-radius: var(--radius-full);
}

.input-sm {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
}

.input-lg {
    padding: var(--space-4) var(--space-5);
    font-size: var(--text-lg);
}

/* 输入框状态 - 现代化设计 */
.input-success {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.input-success:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2), var(--shadow-glow);
}

.input-error {
    border-color: var(--error);
    background: rgba(239, 68, 68, 0.1);
}

.input-error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2), var(--shadow-glow);
}

.input-warning {
    border-color: var(--warning);
    background: rgba(245, 158, 11, 0.1);
}

.input-warning:focus {
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2), var(--shadow-glow);
}

/* 输入框帮助文本 */
.input-help {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--space-1);
}

.input-error-message {
    font-size: var(--text-xs);
    color: var(--error);
    margin-top: var(--space-1);
    font-weight: 500;
}

/* 带图标的输入框 */
.input-with-icon {
    position: relative;
}

.input-with-icon .input-field {
    padding-left: var(--space-10);
}

.input-icon {
    position: absolute;
    left: var(--space-3);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: color var(--transition-base);
}

.input-with-icon .input-field:focus + .input-icon {
    color: var(--primary);
}

/* 现代化卡片系统 - 玻璃拟态设计 */
.card {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-base);
    backdrop-filter: blur(20px);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.5), transparent);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(102, 126, 234, 0.4);
    transform: translateY(-1px);
}

.card-interactive {
    cursor: pointer;
}

.card-interactive:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(102, 126, 234, 0.6);
}

.card-header {
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    flex-wrap: nowrap;
    position: relative;
    overflow: hidden;
}

.card-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.card:hover .card-header::after {
    left: 100%;
}

.card-header-tabs {
    padding-bottom: 0;
}

.card-body {
    padding: var(--space-6);
}

.results-container {
    max-height: 500px;
    overflow-y: auto;
    padding: var(--space-4);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background-color: var(--bg-primary);
    margin-top: 16px;
}

.card-body-lg {
    padding: var(--space-8);
}

.card-body-sm {
    padding: var(--space-4);
}

.card-footer {
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-3);
    background: var(--bg-secondary-light, rgba(243, 244, 246, 0.5));
}

.card-title {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: var(--space-2);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}

.card-title .text-icon {
    font-size: 10px;
    padding: 2px 6px;
}

.card-subtitle {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* 卡片变体 */
.card-primary {
    border-top: 3px solid var(--primary);
}

.card-success {
    border-top: 3px solid var(--success);
}

.card-warning {
    border-top: 3px solid var(--warning);
}

.card-error {
    border-top: 3px solid var(--error);
}

.card-info {
    border-top: 3px solid var(--info);
}

/* 现代化标签页系统 - 优化版 */
.tabs {
    display: flex;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-1);
    margin-bottom: var(--space-6);
    gap: 4px;
    position: relative;
    overflow: hidden;
}

.tabs-line {
    border-bottom: 2px solid var(--border-light);
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.tabs-line .tab {
    border-radius: 0;
    padding-left: var(--space-5);
    padding-right: var(--space-5);
    position: relative;
}

.tabs-line .tab.active {
    background: transparent;
    color: var(--primary);
    box-shadow: none;
}

.tabs-line .tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.tab {
    flex: 1;
    padding: var(--space-4) var(--space-5);
    border: 1px solid rgba(102, 126, 234, 0.2);
    background: rgba(26, 26, 46, 0.4);
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-weight: 500;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.tab .text-icon {
    font-size: 10px;
    padding: 2px 4px;
    background: rgba(0, 0, 0, 0.1);
}

.tab.active {
    background: var(--primary-gradient);
    color: var(--text-white);
    font-weight: 600;
    box-shadow: var(--shadow-glow);
    border-color: rgba(102, 126, 234, 0.6);
    transform: translateY(-2px);
}

.tab.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    border-radius: var(--radius-lg);
    pointer-events: none;
}

.tab.active .tab-icon,
.tab.active .text-icon {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.2);
}

.tab:hover:not(.active) {
    color: var(--text-white);
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.tab:hover:not(.active) .tab-icon {
    color: var(--accent);
}

.tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 8px;
    border-radius: 10px;
    background: rgba(79, 172, 254, 0.2);
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    border: 1px solid rgba(79, 172, 254, 0.3);
    backdrop-filter: blur(5px);
}

.tab.active .tab-badge {
    background: rgba(255, 255, 255, 0.25);
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.3);
}

.tabs-vertical {
    flex-direction: column;
    width: 200px;
}

.tabs-vertical .tab {
    justify-content: flex-start;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
}

/* 文字图标系统 */
.text-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    font-weight: 600;
    line-height: 1;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: white;
    transition: all var(--transition-base);
}

/* 基础操作图标 */
.text-icon-add::before { content: '新增'; }
.text-icon-edit::before { content: '编辑'; }
.text-icon-delete::before { content: '删除'; }
.text-icon-save::before { content: '保存'; }
.text-icon-cancel::before { content: '取消'; }
.text-icon-confirm::before { content: '确认'; }

/* 功能操作图标 */
.text-icon-calculate::before { content: '计算'; }
.text-icon-clear::before { content: '清空'; }
.text-icon-copy::before { content: '复制'; }
.text-icon-reset::before { content: '重置'; }
.text-icon-settings::before { content: '设置'; }
.text-icon-search::before { content: '搜索'; }
.text-icon-filter::before { content: '筛选'; }

/* 文件操作图标 */
.text-icon-upload::before { content: '上传'; }
.text-icon-download::before { content: '下载'; }
.text-icon-export::before { content: '导出'; }
.text-icon-import::before { content: '导入'; }

/* 用户操作图标 */
.text-icon-user::before { content: '用户'; }
.text-icon-login::before { content: '登录'; }
.text-icon-logout::before { content: '退出'; }
.text-icon-register::before { content: '注册'; }

/* 状态图标 */
.text-icon-success::before { content: '成功'; background-color: var(--success); }
.text-icon-warning::before { content: '警告'; background-color: var(--warning); }
.text-icon-error::before { content: '错误'; background-color: var(--error); }
.text-icon-info::before { content: '信息'; background-color: var(--info); }

/* 单字图标 - 简约风格 */
.text-icon-simple {
    width: 24px;
    height: 24px;
    font-size: 14px;
    padding: 0;
    border-radius: var(--radius-full);
}

.text-icon-plus::before { content: '+'; }
.text-icon-minus::before { content: '-'; }
.text-icon-close::before { content: '×'; }
.text-icon-check::before { content: '✓'; }
.text-icon-arrow::before { content: '→'; }
.text-icon-more::before { content: '…'; }

/* 保留旧的图标系统兼容性 */
.icon {
    display: inline-block;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
}

.icon-calculate::before { content: '计算'; }
.icon-clear::before { content: '清空'; }
.icon-copy::before { content: '复制'; }
.icon-save::before { content: '保存'; }
.icon-settings::before { content: '设置'; }
.icon-user::before { content: '用户'; }
.icon-logout::before { content: '退出'; }
.icon-building::before { content: '建筑'; }
.icon-tools::before { content: '工具'; }
.icon-dollar::before { content: '价格'; }
.icon-plus::before { content: '添加'; }
.icon-reset::before { content: '重置'; }

/* ==================== 布局系统 ==================== */

/* 顶部导航栏 - 现代渐变设计 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--primary-gradient);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.logo-icon {
    display: inline-flex;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    border-radius: 6px;
    align-items: center;
    justify-content: center;
    color: #1a1a2e;
    font-weight: bold;
    font-size: 18px;
    margin-right: 8px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.logo-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 10px;
    flex-shrink: 0;
    image-rendering: -webkit-optimize-contrast;
    will-change: transform;
}

.logo-icon-new {
    display: inline-flex;
    width: 36px;
    height: 36px;
    background: #000;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    color: #9b59b6;
    font-weight: bold;
    font-size: 20px;
    margin-right: 10px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(155, 89, 182, 0.3);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    margin-right: 24px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: transparent;
    border: 2px solid transparent;
    cursor: pointer;
}

.nav-link:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.nav-link.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.nav-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.nav-link i {
    font-size: 16px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-name {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-icon {
    font-size: 16px;
    opacity: 0.8;
}

/* 顶部导航栏按钮样式 */
.header .btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

/* 主容器 */
.main-container {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    padding: 20px;
}

/* 认证页面 */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 64px);
    padding: var(--space-6);
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
}

.auth-header {
    padding: var(--space-8) var(--space-6) var(--space-6);
    text-align: center;
    background: var(--primary);
}

.auth-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: var(--space-2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
}

.auth-body {
    padding: 0 var(--space-6) var(--space-8);
}

.auth-footer {
    text-align: center;
    margin-top: var(--space-6);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.auth-link {
    color: var(--primary-solid);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-base);
}

.auth-link:hover {
    color: var(--primary-dark);
}

/* 主应用布局 - 优化布局比例 */
.app-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 16px;
    /* height: calc(100vh - 64px - 40px); */ /* 移除高度限制，允许内容完整显示 */
    min-height: calc(100vh - 64px - 40px); /* 改为最小高度 */
    max-width: 1900px;
    margin: 0 auto;
    padding: 0 16px;
}

/* 输入面板 - 缩小边框和阴影 */
.input-panel {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-light);
}

.panel-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

.panel-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
}

.panel-body {
    flex: 1;
    padding: var(--space-6);
    overflow-y: auto;
}

/* 参数设置区域 */
.params-section {
    margin-bottom: var(--space-6);
}

.param-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.param-group {
    display: flex;
    flex-direction: column;
}

.input-with-unit {
    position: relative;
}

.input-unit {
    position: absolute;
    right: var(--space-3);
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--text-sm);
    color: var(--text-muted);
    pointer-events: none;
}

/* 选择框样式 */
.select-wrapper {
    position: relative;
}

.select-field {
    width: 100%;
    padding: var(--space-3) var(--space-10) var(--space-3) var(--space-4);
    border: 2px solid var(--border-default);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    background: var(--bg-card);
    color: var(--text-light) !important;
    appearance: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.select-arrow {
    position: absolute;
    right: var(--space-3);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
    font-size: var(--text-xs);
}

.select-field option {
    background: var(--bg-card) !important;
    color: var(--text-light) !important;
    padding: var(--space-2);
}

/* 验证码输入框 */
.verification-input {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.verification-input .input-field {
    flex: 1;
}

.verification-input .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

/* 文本域 - 批量输入框优化 */
.textarea-field {
    width: 100%;
    min-height: 320px;
    padding: var(--space-4) var(--space-5);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: var(--radius-xl);
    font-size: var(--text-base);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background: rgba(26, 26, 46, 0.6);
    color: var(--text-white);
    resize: vertical;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    line-height: 1.6;
}

.textarea-field::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-sm);
}

.textarea-field:focus {
    outline: none;
    border-color: var(--primary-solid);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2), var(--shadow-glow);
    transform: translateY(-2px);
}

.textarea-field:hover {
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

/* 操作按钮组 */
.action-buttons {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

.action-buttons .btn {
    flex: 1;
}

/* 结果面板 - 缩小边框和阴影，扩大显示区域 */
.result-panel {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-light);
    /* max-height: calc(100vh - 100px); */ /* 移除高度限制，允许完整显示 */
}

.result-content {
    flex: 1;
    overflow-y: visible; /* 改为visible，允许内容完整显示 */
    display: flex;
    flex-direction: column;
}

.result-section {
    flex: 1;
    padding: var(--space-6);
    overflow-y: visible; /* 改为visible，允许内容完整显示 */
    display: none;
    /* max-height: calc(100vh - 200px); */ /* 移除高度限制，允许完整显示 */
}

.result-section.active {
    display: flex;
    flex-direction: column;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border-light);
}

.result-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
}

.result-actions {
    display: flex;
    gap: var(--space-2);
}

/* 结果表格 - 扩大显示区域，缩小边框 */
.result-table-container {
    flex: 1;
    overflow-y: visible; /* 改为visible，允许表格完整显示 */
    overflow-x: auto;
    /* max-height: calc(100vh - 280px); */ /* 移除高度限制，允许完整显示 */
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
    table-layout: fixed;
}

.result-table th {
    background: var(--bg-secondary);
    padding: var(--space-3) var(--space-4);
    text-align: left;
    font-weight: 600;
    color: white !important;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
    white-space: nowrap;
    transition: background var(--transition-base);
}

.result-table th:hover {
    background: var(--bg-secondary-dark, #e5e7eb);
}

.result-table td {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    transition: background var(--transition-base);
}

.result-table tr:hover td {
    background: var(--bg-hover);
    color: white !important;
}

.result-table tr:last-child td {
    border-bottom: none;
}

/* 表格斑马纹 */
.result-table-striped tbody tr:nth-child(odd) {
    background-color: var(--bg-secondary-light, rgba(243, 244, 246, 0.5));
}

.result-table-striped tbody tr:hover td {
    background: var(--bg-hover);
    color: white !important;
}

/* 表格紧凑版 */
.result-table-compact th,
.result-table-compact td {
    padding: var(--space-2) var(--space-3);
}

/* 可点击行 */
.result-table-interactive tbody tr {
    cursor: pointer;
}

.result-table-interactive tbody tr:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}

/* 选中行 */
.result-table .row-selected {
    background-color: rgba(79, 70, 229, 0.05) !important;
    border-left: 3px solid var(--primary);
}

/* 空状态 */
.result-table-empty {
    text-align: center;
    padding: var(--space-8);
    color: var(--text-muted);
    font-style: italic;
}

/* 操作列 */
.result-table .action-cell {
    width: 100px;
    text-align: right;
    white-space: nowrap;
}

.result-table .action-cell .text-icon {
    margin-left: var(--space-1);
}

/* 状态列 */
.result-table .status-cell {
    width: 100px;
}

.result-table .status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 500;
    text-align: center;
}

.status-active {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.status-pending {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.status-inactive {
    background-color: rgba(107, 114, 128, 0.1);
    color: var(--text-muted);
}

.status-error {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

/* 统计信息 */
.result-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    padding: var(--space-4);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.summary-item {
    text-align: center;
}

.summary-value {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--primary-solid);
    display: block;
}

.summary-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--space-1);
}

/* 通知系统 */
.notification {
    position: fixed;
    top: 80px;
    right: var(--space-6);
    max-width: 400px;
    padding: var(--space-4) var(--space-6);
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border-left: 4px solid var(--success);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    z-index: 1001;
}

.notification.show {
    transform: translateX(0);
}

.notification.error {
    border-left-color: var(--error);
}

.notification.warning {
    border-left-color: var(--warning);
}

/* 加载状态 */
.loading {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-light);
    border-top: 2px solid var(--primary-solid);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 空状态 - 现代化设计，缩小内边距 */
.empty-state {
    text-align: center;
    padding: 28px 20px;
    background: var(--bg-empty);
    border-radius: 8px;
    margin: 0;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.empty-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 10px auto;
    opacity: 0.6;
    color: var(--text-muted);
    stroke-width: 1.5;
    display: block;
}

.empty-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
}

.empty-description {
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-secondary);
    opacity: 0.8;
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
}

/* ==================== 配件预览 ==================== */
.part-preview-container {
    padding: 16px;
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    margin-top: 16px;
}

.part-category h4 {
    color: var(--text-color-light);
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

.parts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.part-preview-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    text-align: center;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    height: 100%;
}

.part-preview-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 移除了图片样式 */

.part-info {
    text-align: center;
    width: 100%;
}

.part-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: var(--text-sm);
}

.part-spec {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.part-details {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    margin-top: var(--space-3);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    justify-content: center;
}

.edit-part-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    cursor: pointer;
    transition: background-color var(--transition-fast);
    margin-top: var(--space-2);
}

.edit-part-btn:hover {
    background-color: var(--primary-dark);
}

/* Modal Styles - 现代化玻璃拟态设计 */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease-out;
}

.modal.active .modal-content {
    animation: modalContentSlideIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes modalContentSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content {
    background: rgba(26, 26, 46, 0.95);
    margin: auto;
    border: 1px solid rgba(102, 126, 234, 0.3);
    width: 90%;
    max-width: 500px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-glow);
    position: relative;
    backdrop-filter: blur(20px);
    color: var(--text-white);
    transform: translateY(0);
    transition: all var(--transition-base);
    /* 移除内边距，让card-header和card-body控制 */
    padding: 0;
    overflow: hidden; /* 确保子元素的圆角生效 */
}

.modal-content .card-header {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-content .card-body {
    padding: 24px 32px 32px;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--primary-gradient);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.close-button {
    color: var(--text-white);
    float: right;
    font-size: 24px;
    font-weight: bold;
    position: absolute;
    top: 16px;
    right: 24px;
    cursor: pointer;
    transition: all var(--transition-base);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.close-button:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
    transform: scale(1.1);
}

.close-button:hover,
.close-button:focus {
    color: white;
    text-decoration: none;
    cursor: pointer;
}

/* ==================== Redesigned Profile Modal Styles ==================== */

.profile-tabs .tab {
    gap: var(--space-2);
}

.profile-tabs .tab i {
    font-size: 14px;
    transition: all var(--transition-base);
}

.profile-tabs .tab:hover:not(.active) i {
    transform: scale(1.1);
}

.profile-tabs .tab.active i {
    animation: iconPop 0.3s ease-out;
}

@keyframes iconPop {
    0% { transform: scale(0.8); opacity: 0.5; }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

#profile-notification {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 500;
    border: 1px solid transparent;
}

#profile-notification.success {
    background: rgba(0, 212, 170, 0.15);
    color: var(--success);
    border-color: rgba(0, 212, 170, 0.3);
}

#profile-notification.error {
    background: rgba(255, 107, 107, 0.15);
    color: var(--error);
    border-color: rgba(255, 107, 107, 0.3);
}

/* 账户信息网格布局 */
.profile-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
}

.info-item {
    background: rgba(102, 126, 234, 0.05);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all var(--transition-base);
}

.info-item:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.info-label {
    display: block;
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-2);
}

.info-value {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-all;
}

/* 多步骤表单样式 */
.step-container {
    position: relative;
}

.step {
    display: none;
    animation: tabContentFadeIn 0.5s ease;
}

.step.active {
    display: block;
}

.step-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: var(--space-2);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--border-light);
}

.step-description {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-5);
    background: rgba(102, 126, 234, 0.08);
    padding: var(--space-3);
    border-radius: var(--radius-md);
}

.step-actions {
    display: flex;
    justify-content: space-between;
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.step-actions .btn {
    flex: 1;
}

.resend-code-container {
    text-align: center;
    margin-top: var(--space-4);
}

.btn-link {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: var(--text-sm);
    text-decoration: underline;
    padding: 0;
}

.btn-link:hover {
    color: var(--primary-light);
}

.btn-link:disabled {
    color: var(--text-muted);
    cursor: not-allowed;
    text-decoration: none;
}


/* 个人中心模态框特定样式 */
.input-field-static {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    background: rgba(102, 126, 234, 0.1);
    color: var(--text-secondary);
    min-height: 48px;
    display: flex;
    align-items: center;
}

#profile-info .input-group {
    margin-bottom: var(--space-5);
}

#profile-info .input-label {
    margin-bottom: var(--space-1);
    color: var(--text-muted);
}

#renew-membership-btn {
    margin-top: var(--space-6) !important;
}

.tab-content {
    animation: tabContentFadeIn 0.4s ease;
}

@keyframes tabContentFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

#profile-notification {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 500;
}

#profile-notification.success {
    background: rgba(0, 212, 170, 0.15);
    color: var(--success);
}

#profile-notification.error {
    background: rgba(255, 107, 107, 0.15);
    color: var(--error);
}


/* ==================== 响应式设计 ==================== */

/* 平板端 (768px - 1024px) */
@media (max-width: 1024px) {
    .app-layout {
        grid-template-columns: 380px 1fr;
        gap: var(--space-4);
    }

    .header {
        padding: 0 var(--space-4);
    }

    .main-container {
        padding: var(--space-4);
    }
}

/* 中等屏幕 (600px - 768px) */
@media (max-width: 768px) and (min-width: 601px) {
    .app-layout {
        grid-template-columns: 320px 1fr;
        gap: var(--space-3);
    }

    .header {
        padding: 0 var(--space-3);
    }

    .main-container {
        padding: var(--space-3);
    }
}

/* 移动端 (最大600px) */
@media (max-width: 600px) {
    .header {
        padding: 0 var(--space-4);
        height: 56px;
    }

    .logo {
        font-size: var(--text-lg);
    }

    .logo-icon {
        width: 28px;
        height: 28px;
    }

    .main-container {
        margin-top: 56px;
        padding: var(--space-4);
        min-height: calc(100vh - 56px);
    }

    .app-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        gap: var(--space-4);
        height: auto;
    }

    .input-panel {
        order: 1;
    }

    .result-panel {
        order: 2;
        min-height: 60vh;
    }

    .param-row {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .action-buttons {
        flex-direction: column;
    }

    .tabs {
        flex-wrap: wrap;
    }

    .tab {
        min-width: 0;
        flex: 1 1 auto;
    }

    .result-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .auth-container {
        padding: var(--space-4);
    }

    .auth-card {
        max-width: none;
    }
}

/* 小屏手机 (最大480px) */
@media (max-width: 480px) {
    .header {
        padding: 0 var(--space-3);
    }

    .main-container {
        padding: var(--space-3);
    }

    .app-layout {
        gap: var(--space-3);
    }

    .panel-body,
    .result-section {
        padding: var(--space-4);
    }

    .panel-header {
        padding: var(--space-4);
    }

    .btn {
        padding: var(--space-3) var(--space-4);
        font-size: var(--text-sm);
    }

    .input-field,
    .select-field,
    .textarea-field {
        padding: var(--space-3);
        font-size: var(--text-sm);
    }

    .result-table {
        font-size: var(--text-xs);
    }

    .result-table th,
    .result-table td {
        padding: var(--space-2) var(--space-3);
    }

    .result-summary {
        grid-template-columns: 1fr;
    }

    .notification {
        right: var(--space-3);
        left: var(--space-3);
        max-width: none;
    }
}

/* 超宽屏优化 (大于1400px) */
@media (min-width: 1400px) {
    .app-layout {
        grid-template-columns: 450px 1fr;
        gap: var(--space-8);
    }

    .main-container {
        padding: var(--space-8);
    }
}

/* 打印样式 */
@media print {
    .header,
    .action-buttons,
    .tabs,
    .result-actions {
        display: none !important;
    }

    .main-container {
        margin-top: 0;
        padding: 0;
    }

    .app-layout {
        grid-template-columns: 1fr;
        height: auto;
    }

    .input-panel {
        display: none;
    }

    .result-panel {
        box-shadow: none;
        border: 1px solid var(--border);
    }

    .result-section {
        display: block !important;
        page-break-inside: avoid;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f7fafc;
        --text-secondary: #e2e8f0;
        --text-muted: #a0aec0;
        --text-light: #718096;

        --bg-primary: #1a202c;
        --bg-secondary: #2d3748;
        --bg-tertiary: #4a5568;
        --bg-card: rgba(45, 55, 72, 0.95);

        --border: #4a5568;
        --border-light: #2d3748;
        --border-dark: #718096;
    }

    body {
        background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%) !important;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    :root {
        --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
        --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
        --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    }

    .btn {
        border: 2px solid currentColor;
    }

    .input-field,
    .select-field,
    .textarea-field {
        border-width: 2px;
    }
}

/* 减少动画模式 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==================== 现代卡片化设计系统 ==================== */

/* 主应用布局 - 卡片化 */
.app-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

/* 基础卡片样式 - 现代玻璃态设计 */
.card {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.1), 0 4px 16px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
}

/* 移除卡片悬停效果 */

/* 卡片标题 */
.card-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border-light);
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    align-items: center;
    gap: 12px;
}

.card-body {
    padding: 24px;
}

/* ==================== 左侧面板卡片化 ==================== */

/* 参数设置卡片 */
.params-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
    border: 1px solid var(--border-light);
}

.params-card .card-body {
    padding: 24px;
}

.param-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.param-row:last-child {
    margin-bottom: 0;
}

/* 批量输入卡片 */
.input-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
    flex: 1;
    border: 1px solid var(--border-light);
}

.input-card .card-body {
    padding: 24px;
}

/* 操作按钮卡片 */
.actions-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.actions-card .card-body {
    padding: 20px 24px;
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* ==================== 右侧结果面板卡片化 ==================== */

/* 拆分结果卡片 */
.split-results-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
    border: 1px solid var(--border-light);
}

.split-results-card .card-header {
    background-color: var(--primary); /* 绿色背景 */
}

/* 汇总统计面板 */
.summary-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 确保显示时使用grid布局 */
.summary-stats[style*="display: grid"] {
    display: grid !important;
}

/* 配件管理的汇总统计 - 5列布局 */
.parts-management-card .summary-stats {
    grid-template-columns: repeat(5, 1fr);
}

.stat-item {
    background: var(--bg-secondary);
    padding: 20px 16px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border-light);
    min-width: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

/* 摘要行布局样式 */
.split-summary-row,
.quote-summary-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 16px 0;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

/* 摘要统计面板在行布局中的样式 */
.split-summary-row .summary-stats,
.quote-summary-row .summary-stats {
    flex: 1;
    margin: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

/* 内联复制按钮样式 */
.copy-button-inline {
    flex-shrink: 0;
}

.copy-button-inline .btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-button-inline .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 图标样式 */
.icon-copy::before {
    content: "📋";
    font-size: 16px;
}

/* 优化统计项样式 */
.split-summary-row .stat-item,
.quote-summary-row .stat-item {
    text-align: center;
    padding: 8px;
}

.split-summary-row .stat-label,
.quote-summary-row .stat-label {
    font-size: 12px;
    font-weight: 500;
    color: #a0a0a0;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.split-summary-row .stat-value,
.quote-summary-row .stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .split-summary-row,
    .quote-summary-row {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .copy-button-inline {
        width: 100%;
    }
    
    .copy-button-inline .btn {
        width: 100%;
        justify-content: center;
    }
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

/* 报价结果卡片 - 缩小边框和阴影 */
.quote-results-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
}

/* 报价汇总面板 */
.quote-summary {
    background: var(--primary-gradient);
    color: white;
    padding: 24px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    text-align: center;
}

.total-amount {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
}

.quote-details {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    opacity: 0.9;
}

/* 配件管理卡片 - 现代化容器设计 */
.parts-management-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(102, 126, 234, 0.2);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

/* 配件管理内容容器 - 添加显示框 */
.parts-management-card .card-body {
    position: relative;
    padding: 24px;
}

/* 配件管理显示框 - 带滚动的主要内容区域 */
.parts-content-display {
    background: rgba(26, 26, 46, 0.4);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin: 16px 0;
    backdrop-filter: blur(10px);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* 配件管理显示框滚动条样式 */
.parts-content-display::-webkit-scrollbar {
    width: 8px;
}

.parts-content-display::-webkit-scrollbar-track {
    background: rgba(26, 26, 46, 0.3);
    border-radius: 4px;
}

.parts-content-display::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.6), rgba(118, 75, 162, 0.6));
    border-radius: 4px;
    transition: all 0.3s ease;
}

.parts-content-display::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
}

.parts-content-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.8), transparent);
}

/* 配件管理区域分隔 */
.parts-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.15);
}

.parts-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* ==================== 配件管理界面重新设计 ==================== */

/* 配件管理顶部操作区 */
.parts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-default);
}

.parts-actions {
    display: flex;
    gap: 12px;
}

/* 筛选区域 - 缩小内边距 */
.parts-filters {
    background: var(--bg-secondary);
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--border-light);
}

.parts-filter-actions {
    display: flex;
    gap: 12px;
}

/* 表格容器现代化设计 - 玻璃拟态效果 */
.parts-table-container,
.result-table-container {
    background: rgba(26, 26, 46, 0.6);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: var(--shadow-lg);
    max-width: 100%;
    backdrop-filter: blur(15px);
    position: relative;
}

.parts-table-container::before,
.result-table-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.6), transparent);
}

/* 表格样式重新设计 - 统一字体 */
.result-table,
.parts-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background: var(--bg-card);
    font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
}

/* 表头样式 - 现代化渐变设计 */
.result-table th,
.parts-table th,
.quote-table th {
    background: var(--primary-gradient) !important;
    padding: 18px 18px !important;
    text-align: left;
    font-weight: 600 !important;
    color: white !important;
    border-bottom: 1px solid rgba(102, 126, 234, 0.4) !important;
    font-size: 13px !important;
    letter-spacing: 0.5px;
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif !important;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.result-table th::after,
.parts-table th::after,
.quote-table th::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.result-table th:hover::after,
.parts-table th:hover::after,
.quote-table th:hover::after {
    left: 100%;
}

/* 报价结果表格列宽设置 */
.quote-table th:nth-child(1) { /* 支架名称 */
    width: 25%;
}
.quote-table th:nth-child(2) { /* 型号 */
    width: 35%;
    text-align: left;
}
.quote-table th:nth-child(3) { /* 数量 */
    width: 12%;
    text-align: right;
}
.quote-table th:nth-child(4) { /* 单价 */
    width: 14%;
    text-align: right;
}
.quote-table th:nth-child(5) { /* 小计 */
    width: 14%;
    text-align: right;
}

/* 拆分结果表格列宽设置 */
#splitTable th:nth-child(1) { /* 配件名称 */
    width: 25%;
}
#splitTable th:nth-child(2) { /* 数量 */
    width: 12%;
    text-align: right;
}
#splitTable th:nth-child(3) { /* 单位 */
    width: 14%;
    text-align: center;
}
#splitTable th:nth-child(4) { /* 单价 */
    width: 25%;
    text-align: right;
}
#splitTable th:nth-child(5) { /* 小计 */
    width: 24%;
    text-align: right;
}

/* 配件表格列宽 */
.parts-table th:nth-child(1) { /* 配件名称 */
    width: 35%;
}
.parts-table th:nth-child(2) { /* 单价 */
    width: 18%;
    text-align: left;
}
.parts-table th:nth-child(3) { /* 重量 */
    width: 18%;
    text-align: left;
}
.parts-table th:nth-child(4) { /* 配件类型 */
    width: 20%;
}
.parts-table th:nth-child(5) { /* 操作 */
    width: 15%;
    text-align: center;
}

/* 表格行样式 - 现代化设计 */
.result-table td,
.parts-table td,
.quote-table td {
    padding: 16px 18px !important;
    border-bottom: 1px solid rgba(102, 126, 234, 0.15) !important;
    vertical-align: middle;
    color: #4facfe !important;
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif !important;
    font-size: 13px !important;
    line-height: 1.8;
    transition: all var(--transition-base);
}

/* 报价结果表格数据列宽和对齐 */
.quote-table td:nth-child(1) { /* 支架名称 */
    width: 25%;
    text-align: left;
    color: #4facfe !important;
}
.quote-table td:nth-child(2) { /* 型号 */
    width: 35%;
    text-align: left;
    color: #4facfe !important;
}
.quote-table td:nth-child(3) { /* 数量 */
    width: 12%;
    text-align: right;
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif !important;
    font-weight: 700 !important;
    color: #4facfe !important;
    background: rgba(79, 172, 254, 0.08) !important;
}
.quote-table td:nth-child(4) { /* 单价 */
    width: 14%;
    text-align: right;
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif !important;
    font-weight: 700 !important;
    color: #4facfe !important;
    background: rgba(79, 172, 254, 0.08) !important;
}
.quote-table td:nth-child(5) { /* 小计 */
    width: 14%;
    text-align: right;
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif !important;
    font-weight: 700 !important;
    color: #4facfe !important;
    background: rgba(79, 172, 254, 0.08) !important;
}

/* 拆分结果表格数据列宽和对齐 */
#splitTable td:nth-child(1) { /* 配件名称 */
    width: 25%;
    text-align: left;
    color: #4facfe !important;
}
#splitTable td:nth-child(2) { /* 数量 */
    width: 12%;
    text-align: right;
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif !important;
    font-weight: 700 !important;
    color: #4facfe !important;
    background: rgba(79, 172, 254, 0.08) !important;
}
#splitTable td:nth-child(3) { /* 单位 */
    width: 14%;
    text-align: center;
    color: #4facfe !important;
}
#splitTable td:nth-child(4) { /* 单价 */
    width: 25%;
    text-align: right;
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif !important;
    font-weight: 700 !important;
    color: #4facfe !important;
    background: rgba(79, 172, 254, 0.08) !important;
}
#splitTable td:nth-child(5) { /* 小计 */
    width: 24%;
    text-align: right;
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif !important;
    font-weight: 700 !important;
    color: #4facfe !important;
    background: rgba(79, 172, 254, 0.08) !important;
}

/* 配件表格数据列宽和对齐 */
.parts-table td:nth-child(1) { /* 配件名称 */
    width: 35%;
    text-align: left;
}
.parts-table td:nth-child(2) { /* 单价 */
    width: 18%;
    text-align: left;
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    background: rgba(79, 172, 254, 0.08) !important;
    font-size: 9px !important;
    padding-left: 12px !important;
}
.parts-table td:nth-child(3) { /* 重量 */
    width: 18%;
    text-align: left;
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    background: rgba(79, 172, 254, 0.08) !important;
    font-size: 9px !important;
    padding-left: 12px !important;
}
.parts-table td:nth-child(4) { /* 配件类型 */
    width: 20%;
    text-align: left;
}
.parts-table td:nth-child(5) { /* 操作 */
    width: 15%;
    text-align: center;
    border-radius: var(--radius-sm);
}

/* 表格行现代化效果 */
.result-table tbody tr:nth-child(even),
.parts-table tbody tr:nth-child(even) {
    background: rgba(14, 52, 96, 0.3) !important;
}

.result-table tbody tr:nth-child(odd),
.parts-table tbody tr:nth-child(odd) {
    background: rgba(26, 26, 46, 0.4) !important;
}

/* 表格行悬停效果 - 现代化交互 */
.result-table tbody tr:hover,
.parts-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.35) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.25);
    transition: all 0.2s ease;
    cursor: pointer;
    border-left: 3px solid #667eea;
}

.result-table tbody tr:hover td,
.parts-table tbody tr:hover td,
.quote-table tbody tr:hover td {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 表格行点击效果 */
.result-table tbody tr:active,
.parts-table tbody tr:active {
    background: rgba(102, 126, 234, 0.5) !important;
    transform: translateY(0px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* ==================== 输入框重新设计 ==================== */

/* 价格输入框 - 绿色主题，缩小边框 */
input[type="number"].price-input,
.price-input {
    background: var(--bg-card) !important;
    border: 1px solid var(--success) !important;
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    text-align: right !important;
    padding: 8px 12px !important;
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif !important;
    transition: all 0.2s ease !important;
    font-size: 15px !important;
    width: 100% !important;
}

.price-input:focus {
    border-color: var(--primary-light) !important;
    box-shadow: 0 0 0 2px rgba(0, 128, 0, 0.15) !important;
    outline: none !important;
    background: var(--bg-card) !important;
}

/* 重量输入框 - 蓝色主题，缩小边框 */
input[type="number"].weight-input,
.weight-input {
    background: var(--bg-card) !important;
    border: 1px solid var(--info) !important;
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    text-align: right !important;
    padding: 8px 12px !important;
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif !important;
    transition: all 0.2s ease !important;
    font-size: 15px !important;
    width: 100% !important;
}

.weight-input:focus {
    border-color: #42a5f5 !important;
    box-shadow: 0 0 0 2px rgba(41, 182, 246, 0.15) !important;
    outline: none !important;
    background: var(--bg-card) !important;
}

.price-input:focus {
    border-color: var(--success) !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
    background: var(--bg-card) !important;
    outline: none !important;
}

/* 重量输入框 - 蓝色主题 */
input[type="number"].weight-input,
.weight-input {
    background: var(--bg-card) !important;
    border: 2px solid var(--info) !important;
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    border-radius: var(--radius-sm) !important;
    text-align: center !important;
    padding: 8px 12px !important;
    transition: all 0.2s ease !important;
}

.weight-input:focus {
    border-color: var(--info) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    background: var(--bg-card) !important;
    outline: none !important;
}

/* 表格列字体统一优化 */
/* 配件名称列 */
#partsTableBody td:first-child,
.result-table td:first-child {
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    font-size: 14px !important;
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif !important;
}

/* 拆分结果表格 - 型号和数量列统一字体 */
.result-table td:nth-child(2) { /* 型号列 */
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif !important;
    font-size: 14px !important;
}

.result-table td:nth-child(3) { /* 数量列 */
    font-weight: 600 !important;
    color: var(--accent) !important;
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif !important;
    font-size: 14px !important;
}

/* 报价结果表格 - 型号和数量列统一字体 */
.quote-table td:nth-child(2) { /* 型号列 */
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif !important;
    font-size: 14px !important;
}

.quote-table td:nth-child(3) { /* 数量列 */
    font-weight: 600 !important;
    color: var(--accent) !important;
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif !important;
    font-size: 14px !important;
}

/* 报价结果表格的单价和总价列突出 */
.quote-table td:nth-child(4), /* 单价列 */
.quote-table td:nth-child(5) { /* 总价列 */
    font-weight: 700 !important;
    color: var(--primary-dark) !important;
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif !important;
}

/* ==================== 通知系统 ==================== */

/* 基础通知样式 */
.notification {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin: 16px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    border-left: 4px solid;
    box-shadow: var(--shadow-sm);
}

/* 警示标签样式 */
.warning-tag {
    background: var(--bg-warning);
    color: var(--warning);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    border: 1px solid rgba(230, 81, 0, 0.2);
}

/* 成功通知 - 绿色 */
.notification.success {
    background: rgba(0, 212, 170, 0.15);
    color: var(--success);
    border-left-color: var(--success);
}

.notification.success .icon {
    color: var(--success);
}

/* 警告通知 - 黄色 (数据中有0) */
.notification.warning {
    background: rgba(255, 149, 0, 0.15);
    color: var(--warning);
    border-left-color: var(--warning);
}

.notification.warning .icon {
    color: var(--warning);
}

/* 错误通知 - 红色 */
.notification.error {
    background: rgba(255, 107, 107, 0.15);
    color: var(--error);
    border-left-color: var(--error);
}

.notification.error .icon {
    color: var(--error);
}

/* 信息通知 - 蓝色 */
.notification.info {
    background: rgba(79, 172, 254, 0.15);
    color: var(--info);
    border-left-color: var(--info);
}

.notification.info .icon {
    color: var(--info);
}

/* 通知图标 */
.notification .icon {
    font-size: 18px;
    flex-shrink: 0;
}

/* 通知文本 */
.notification .message {
    flex: 1;
    line-height: 1.5;
}

/* 状态容器样式 */
.status-container {
    margin: 16px 0;
}

/* 兼容旧的警告样式 */
.warning-row {
    background: rgba(255, 149, 0, 0.15) !important;
    border-left: 4px solid var(--warning) !important;
}

.warning-text {
    color: var(--warning) !important;
    font-weight: 600 !important;
}

/* ==================== 响应式设计 ==================== */

/* 平板端适配 */
@media (max-width: 1024px) {
    .app-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .param-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .summary-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .parts-management-card .summary-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .quote-details {
        flex-direction: column;
        gap: 8px;
    }
}

/* 移动端适配 - 优化小屏幕显示 */
@media (max-width: 768px) {
    .app-layout {
        padding: 12px;
        gap: 12px;
        grid-template-columns: 1fr;
    }

    .card-body {
        padding: 16px;
    }

    .actions-card .card-body {
        flex-direction: column;
        gap: 10px;
    }

    .summary-stats {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px;
    }

    .parts-management-card .summary-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .total-amount {
        font-size: 24px;
    }

    .result-table th,
    .result-table td,
    .parts-table th,
    .parts-table td {
        padding: 12px 8px !important;
        font-size: 12px !important;
        line-height: 1.6 !important;
    }

    /* 移动端配件表格列宽调整 */
    .parts-table th:nth-child(1),
    .parts-table td:nth-child(1) { /* 配件名称 */
        width: 40% !important;
    }
    .parts-table th:nth-child(2),
    .parts-table td:nth-child(2) { /* 单价 */
        width: 15% !important;
        font-size: 10px !important;
    }
    .parts-table th:nth-child(3),
    .parts-table td:nth-child(3) { /* 重量 */
        width: 15% !important;
        font-size: 10px !important;
    }
    .parts-table th:nth-child(4),
    .parts-table td:nth-child(4) { /* 配件类型 */
        width: 18% !important;
    }
    .parts-table th:nth-child(5),
    .parts-table td:nth-child(5) { /* 操作 */
        width: 12% !important;
    }

    .price-input,
    .weight-input {
        padding: 8px 10px !important;
        font-size: 14px !important;
    }

    .parts-filters {
        flex-direction: column;
        gap: 8px;
        padding: 10px;
    }

    .empty-state {
        padding: 20px 16px;
    }
}

/* ==================== 按钮尺寸变体 ==================== */

.btn-sm {
    padding: 6px 12px !important;
    font-size: 12px !important;
    border-radius: var(--radius-sm) !important;
}

.btn-xs {
    padding: 4px 8px !important;
    font-size: 11px !important;
    border-radius: var(--radius-xs) !important;
}


/* ==================== Excel工具模块样式 ==================== */
.module-content {
    display: none;
}

.module-content.active {
    display: block;
}

/* 列选择器 */
.option-section {
    margin-bottom: 25px;
}

.option-label {
    display: block;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 600;
}

.column-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.column-btn {
    padding: 10px 20px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    min-width: 70px;
}

.column-btn:hover {
    border-color: var(--primary);
    background: var(--bg-hover);
    color: var(--primary);
}

.column-btn.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.column-btn.selected:hover {
    opacity: 0.9;
}

.excel-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.excel-header {
    text-align: center;
    margin-bottom: 30px;
}

.excel-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.excel-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

.excel-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 0;
}

.excel-tabs .tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.excel-tabs .tab:hover {
    color: var(--primary);
    background: var(--bg-hover);
}

.excel-tabs .tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.excel-tab-content {
    display: none;
}

.excel-tab-content.active {
    display: block;
}

.tool-section {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.tool-section h3 {
    font-size: 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.tool-section p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.upload-area {
    border: 3px dashed var(--border-default);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    background: var(--bg-secondary);
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.upload-area:hover {
    border-color: var(--primary);
    background: var(--bg-hover);
}

.upload-area.dragover {
    border-color: var(--primary);
    background: var(--bg-hover);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
    pointer-events: none;
}

.upload-text {
    color: var(--primary);
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    pointer-events: none;
}

.upload-hint {
    color: var(--text-muted);
    font-size: 13px;
    pointer-events: none;
}

.file-list {
    margin-bottom: 20px;
    max-height: 200px;
    overflow-y: auto;
}

.file-item {
    background: var(--bg-secondary);
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-light);
}

.file-name {
    color: var(--text-primary);
    font-size: 14px;
    flex: 1;
}

.file-info {
    color: var(--text-muted);
    font-size: 12px;
    margin-right: 10px;
}

.remove-btn {
    background: var(--error);
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
}

.remove-btn:hover {
    opacity: 0.8;
}

.options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.option-group {
    display: flex;
    flex-direction: column;
}

.option-group label {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 5px;
    font-weight: bold;
}

.button-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.preview-container {
    margin-top: 30px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 10px;
    border: 1px solid var(--border-light);
}

.preview-container h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 18px;
}

.preview-table-wrapper {
    overflow-x: auto;
    margin-top: 15px;
}

.preview-table-wrapper table {
    width: 100%;
    border-collapse: collapse;
}

.preview-table-wrapper th,
.preview-table-wrapper td {
    padding: 10px;
    border: 1px solid var(--border-light);
    text-align: left;
    font-size: 13px;
}

.preview-table-wrapper th {
    background: var(--bg-card);
    font-weight: bold;
    color: var(--text-primary);
}

.preview-table-wrapper td {
    color: var(--text-secondary);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .excel-container {
        padding: 10px;
    }
    
    .tool-section {
        padding: 20px;
    }
    
    .upload-area {
        padding: 30px 20px;
    }
    
    .options {
        grid-template-columns: 1fr;
    }
    
    .button-group {
        grid-template-columns: 1fr;
    }
}

/* Excel工具增强样式 */
.tip-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 15px;
    margin-top: 15px;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.tip-item:last-child {
    margin-bottom: 0;
}

.tip-item i {
    color: var(--primary);
    font-size: 14px;
    width: 16px;
    text-align: center;
}

/* 增强输入框样式 */
.input-field[type="text"] {
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
}

.input-field[type="text"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.input-field[type="text"]:hover {
    border-color: rgba(102, 126, 234, 0.5);
}

/* 增强按钮样式 */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

/* 状态消息增强 */
.status {
    animation: slideIn 0.3s ease-out;
    position: relative;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 工具区域卡片增强 */
.tool-section {
    transition: all 0.3s ease;
    position: relative;
}

.tool-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.tool-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 20px 20px 0 0;
}