/* ========================================
   智仪全球 - 国际B2B风格主题 (theme-deep.css)
   参考 DirectIndustry + GlobalSources 配色
   ======================================== */

:root {
    /* 主色调 - DirectIndustry红 + GlobalSources蓝 */
    --primary: #e2001a;
    --primary-dark: #b00015;
    --primary-light: #fef2f3;
    --secondary: #285ae6;
    --secondary-dark: #1e4ac0;
    --accent: #ff6600;
    --warning: #f59e0b;
    --danger: #dc2626;
    --success: #16a34a;
    --purple: #7c3aed;
    
    /* 深色系 */
    --dark: #1a1a2e;
    --dark-2: #16213e;
    
    /* 灰色系 - 对标国际B2B */
    --gray-900: #1a1a1a;
    --gray-800: #333333;
    --gray-700: #404040;
    --gray-600: #525252;
    --gray-500: #666666;
    --gray-400: #999999;
    --gray-300: #cccccc;
    --gray-200: #e0e0e0;
    --gray-100: #eeeeee;
    --gray-50: #f5f5f5;
    
    /* 背景色 */
    --bg-body: #f5f5f5;
    --bg-card: #ffffff;
    --bg-section: #ffffff;
    --bg-alt: #f5f5f5;
    
    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, #e2001a 0%, #b00015 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --gradient-blue: linear-gradient(135deg, #285ae6 0%, #1e4ac0 100%);
    --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    
    /* 阴影 */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.10);
    
    /* 覆盖旧变量 */
    --mc-bg: #f5f5f5 !important;
    --mc-white: #ffffff;
    --mc-primary: #e2001a;
    --mc-sidebar: #1a1a2e;
    --admin-bg: #f5f5f5 !important;
}

/* ===== 顶部通告栏 - 深色 ===== */
.top-bar {
    background: #1a1a2e !important;
    color: #cccccc !important;
}
.top-bar a { color: #ffffff !important; }

/* ===== 主导航 - 白色干净 ===== */
.main-header {
    background: #ffffff !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
    border-bottom: 2px solid #e2001a !important;
}
.main-header .logo-text { color: #1a1a1a !important; }
.main-nav a {
    color: #333333 !important;
    font-weight: 500 !important;
}
.main-nav a:hover, .main-nav a.active {
    color: #e2001a !important;
}

/* ===== 语言切换器 ===== */
#langSwitchContainer select, .lang-switch select {
    background: #f5f5f5 !important;
    color: #333 !important;
    border: 1px solid #e0e0e0 !important;
}

/* ===== Body 背景 - 浅灰(非蓝) ===== */
body {
    color: #333333 !important;
    background: #f5f5f5 !important;
}

/* ===== 页面主容器 ===== */
.container, .wrapper, .page-wrap, main, .main-content {
    background: transparent !important;
}

/* ===== Hero 区域 - 深色渐变 ===== */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%) !important;
}
.hero h1 { color: #ffffff !important; }
.hero h1 .gradient-text {
    background: linear-gradient(135deg, #ff6600, #e2001a) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
.hero-desc { color: rgba(255,255,255,0.85) !important; }
.hero-search input {
    background: #ffffff !important;
    color: #333 !important;
    border: 1px solid #e0e0e0 !important;
}
.hero-search button {
    background: #e2001a !important;
    color: #fff !important;
}
.hero-search button:hover {
    background: #b00015 !important;
}

/* ===== 统计数字区 - 深红渐变 ===== */
.stats-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #b00015 100%) !important;
}
.stat-num { color: #ffffff !important; }
.stat-plus { color: #ff6600 !important; }
.stat-label { color: rgba(255,255,255,0.85) !important; }

/* ===== 卡片/面板 - 白底+细边框(国际B2B标准) ===== */
.card, .panel, .box, .info-card, .feature-card, .service-card,
.product-card, .category-card, .step-card, .faq-item,
.dash-card, .stat-box, .filter-panel, .search-bar-wrap,
.table-card, .modal-content, .content-card {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
}
.product-card:hover, .category-card:hover, .feature-card:hover {
    border-color: #e2001a !important;
    box-shadow: 0 4px 12px rgba(226,0,26,0.10) !important;
}

/* ===== section交替背景 ===== */
section:nth-of-type(even), .section-alt, .alt-bg {
    background: #f5f5f5 !important;
}
section:nth-of-type(odd) {
    background: #ffffff !important;
}

/* ===== 标题颜色 ===== */
h1, h2, h3, h4, h5, h6,
.section-header h2, .section-title {
    color: #1a1a1a !important;
}

/* ===== 段落/描述文字 ===== */
.section-header p,
.hero-desc,
.stat-label,
.flow-step p,
.dash-label,
.partner-logos span,
.model-card ul li,
.product-card .product-price small,
.product-category,
.text-muted, .text-secondary, .desc, .subtitle, .sub-text {
    color: #666666 !important;
}

/* ===== 链接 ===== */
a { color: #285ae6; }
a:hover { color: #e2001a; }

/* ===== 按钮 ===== */
.btn-primary, button[type="submit"]:not(.btn-secondary) {
    background: #e2001a !important;
    color: #fff !important;
    border: none !important;
}
.btn-primary:hover {
    background: #b00015 !important;
}
.btn-secondary, .btn-outline {
    background: #ffffff !important;
    color: #333 !important;
    border: 1px solid #ccc !important;
}
.btn-secondary:hover {
    border-color: #e2001a !important;
    color: #e2001a !important;
}

/* ===== 伙伴名称 ===== */
.partner-names em { color: #666 !important; }
.partner-names em:hover { color: #e2001a !important; }

/* ===== 数据看板 ===== */
.dash-label { color: rgba(255,255,255,0.85) !important; }
.dash-value { color: #ffffff !important; }
.dash-card { background: #ffffff !important; }

/* ===== 页脚 - 深色 ===== */
.main-footer {
    color: rgba(255,255,255,0.85) !important;
    background: #1a1a2e !important;
}
.footer-col ul a {
    color: rgba(255,255,255,0.7) !important;
}
.footer-col ul a:hover { color: #ff6600 !important; }
.footer-col h4 { color: #ffffff !important; }

/* ===== 产品中心 ===== */
.products-page-body { background: #f5f5f5 !important; }
.products-toolbar {
    background: #ffffff !important;
    border-bottom: 2px solid #e0e0e0 !important;
}
.product-card {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
}
.product-card:hover {
    border-color: #e2001a !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10) !important;
}
.product-card .product-price { color: #e2001a !important; }
.product-card .product-name { color: #1a1a1a !important; }

/* ===== 分类树 ===== */
.cat-tree {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
}
.cat-l1-header {
    background: linear-gradient(135deg, #1a1a2e, #16213e) !important;
    color: #fff !important;
}
.cat-l2-header { color: #333 !important; }
.cat-l2-header:hover { background: #f5f5f5 !important; color: #e2001a !important; }
.cat-l3-item { color: #666 !important; }
.cat-l3-item:hover { background: #fef2f3 !important; color: #e2001a !important; }
.cat-l3-item.active {
    background: #fef2f3 !important;
    color: #e2001a !important;
    font-weight: 600;
    border-left: 3px solid #e2001a;
}

/* ===== 分类卡片 ===== */
.category-card {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
}
.category-card:hover {
    border-color: #e2001a !important;
    box-shadow: 0 4px 16px rgba(226,0,26,0.10) !important;
}
.category-card .cat-icon { color: #e2001a !important; }

/* ===== 筛选面板 ===== */
.filter-panel {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
}
.filter-panel h4 { color: #1a1a1a !important; }
.filter-tag {
    background: #f5f5f5 !important;
    color: #333 !important;
    border: 1px solid #e0e0e0 !important;
}
.filter-tag.active, .filter-tag:hover {
    background: #e2001a !important;
    color: #fff !important;
    border-color: #e2001a !important;
}

/* ===== 会员中心 ===== */
.mc-body { background: #f5f5f5 !important; }
.mc-content-area { background: #f5f5f5 !important; }
.mc-sidebar {
    background: #1a1a2e !important;
}
.mc-sidebar .mc-nav-item { color: rgba(255,255,255,0.7) !important; }
.mc-sidebar .mc-nav-item:hover { background: rgba(255,255,255,0.08) !important; color: #fff !important; }
.mc-sidebar .mc-nav-item.active { background: #e2001a !important; color: #fff !important; }
.mc-card, .mc-panel {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
}
.mc-stat-card {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
}
.mc-stat-card .stat-value { color: #e2001a !important; }
.mc-stat-card .stat-label { color: #666 !important; }
.mc-table {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
}
.mc-table th {
    background: #1a1a2e !important;
    color: #fff !important;
}
.mc-table td { color: #333 !important; }
.mc-table tr:nth-child(even) { background: #fafafa !important; }
.mc-btn-primary {
    background: #e2001a !important;
    color: #fff !important;
}
.mc-btn-primary:hover { background: #b00015 !important; }

/* ===== 管理后台 ===== */
.admin-body { background: #f5f5f5 !important; }
.admin-content-area { background: #f5f5f5 !important; }
.admin-sidebar { background: #1a1a2e !important; }
.admin-sidebar .nav-item { color: rgba(255,255,255,0.7) !important; }
.admin-sidebar .nav-item:hover { background: rgba(255,255,255,0.08) !important; }
.admin-sidebar .nav-item.active { background: #e2001a !important; color: #fff !important; }
.admin-card, .admin-panel {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
}
.admin-stat-card {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
}
.admin-stat-card .stat-value { color: #e2001a !important; }
.admin-table {
    background: #ffffff !important;
}
.admin-table th {
    background: #1a1a2e !important;
    color: #fff !important;
}
.admin-table tr:nth-child(even) { background: #fafafa !important; }

/* ===== 内容页面 ===== */
.guide-page, .faq-page, .finance-page, .after-sales-page,
.buyer-page, .seller-page, .logistics-page, .customs-page,
.about-page {
    background: #f5f5f5 !important;
}
.guide-section-alt { background: #ffffff !important; }

/* ===== 关于我们 ===== */
.about-hero { background: linear-gradient(135deg, #1a1a2e, #0f3460) !important; }
.about-section-alt { background: #ffffff !important; }

/* ===== 表单 ===== */
input, select, textarea {
    background: #ffffff !important;
    border: 1px solid #ccc !important;
    color: #333 !important;
    border-radius: 4px !important;
}
input:focus, select:focus, textarea:focus {
    border-color: #e2001a !important;
    box-shadow: 0 0 0 2px rgba(226,0,26,0.1) !important;
    outline: none !important;
}

/* ===== 面包屑 ===== */
.breadcrumb { background: #f5f5f5 !important; }
.breadcrumb a { color: #285ae6 !important; }

/* ===== 标签/徽章 ===== */
.badge, .tag {
    background: #f0f0f0 !important;
    color: #333 !important;
    border-radius: 3px !important;
}
.badge-primary, .tag-primary {
    background: #e2001a !important;
    color: #fff !important;
}
.badge-blue {
    background: #285ae6 !important;
    color: #fff !important;
}

/* ===== 分页 ===== */
.pagination a, .pagination span {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    color: #333 !important;
}
.pagination a:hover { background: #f5f5f5 !important; color: #e2001a !important; }
.pagination .active {
    background: #e2001a !important;
    color: #fff !important;
    border-color: #e2001a !important;
}

/* ===== 登录/注册 ===== */
.login-page, .register-page {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
}
.login-card, .register-card {
    background: #ffffff !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15) !important;
}

/* ===== 空状态/提示 ===== */
.empty-state, .alert-info {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    color: #666 !important;
}
.alert-success { border-left: 4px solid #16a34a !important; }
.alert-warning { border-left: 4px solid #f59e0b !important; }
.alert-danger { border-left: 4px solid #dc2626 !important; }

/* ===== 价格颜色 ===== */
.price, .product-price { color: #e2001a !important; }

/* ===== 搜索结果高亮 ===== */
.search-highlight { background: #fff3cd !important; }
