/* ============================================================
   边缘智算 · 全站主题层 v2（UI 重构）
   加载顺序: bootstrap → style.css → header.css → 页面CSS → theme.css(最后)
   设计语言: 深空导航蓝 × 品牌蓝 #1677FF × 青色点缀；克制、精致、层级分明
   ============================================================ */

/* ---------- 1. Design Tokens ---------- */
:root {
    /* 品牌蓝（延续 #1677FF 锚点） */
    --primary-color: #1677FF;
    --primary-dark: #0958D9;
    --primary-light: #4096FF;
    --primary-50: #E8F1FF;
    --primary-100: #D6E6FF;
    --primary-200: #91CAFF;
    --primary-gradient: linear-gradient(135deg, #1677FF 0%, #4096FF 100%);

    /* 深空导航蓝（hero/页脚/深色面） */
    --navy-950: #070E20;
    --navy-900: #0A1430;
    --navy-800: #0D1B40;
    --navy-700: #122551;
    --navy-600: #1A3468;
    --navy-hero-gradient: linear-gradient(135deg, #081130 0%, #0D1B40 52%, #143a74 100%);

    /* 青色点缀（科技感，少量使用） */
    --accent: #22D3EE;
    --accent-soft: rgba(34, 211, 238, 0.14);
    --accent-line: rgba(34, 211, 238, 0.35);

    /* 中性色 */
    --text-primary: #0F1B33;
    --text-secondary: #3D4C66;
    --text-muted: #8492A8;
    --bg-page: #F6F8FC;
    --bg-primary: #ffffff;
    --bg-secondary: #F7F9FC;
    --bg-tertiary: #EEF2F9;
    --border-color: #E7ECF4;
    --border-strong: #D9E1EE;

    /* 功能色（柔化） */
    --success-color: #12B76A;
    --success-soft: #E7F8EF;
    --warning-color: #F59E0B;
    --warning-soft: #FEF4E0;
    --danger-color: #E5484D;
    --danger-soft: #FDECEC;
    --info-color: #1677FF;
    --info-soft: #E8F1FF;

    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    /* 阴影（带蓝调的柔和层） */
    --shadow-sm: 0 1px 2px rgba(15, 27, 51, 0.05), 0 1px 3px rgba(15, 27, 51, 0.06);
    --shadow-md: 0 2px 4px rgba(15, 27, 51, 0.04), 0 6px 16px -4px rgba(15, 27, 51, 0.09);
    --shadow-lg: 0 4px 8px rgba(15, 27, 51, 0.04), 0 14px 32px -8px rgba(15, 27, 51, 0.13);
    --shadow-primary: 0 6px 18px -6px rgba(22, 119, 255, 0.35);
    --shadow-card-hover: 0 6px 12px rgba(15, 27, 51, 0.05), 0 18px 40px -12px rgba(22, 119, 255, 0.16);

    /* 动效 */
    --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
    --transition-fast: 160ms var(--ease-out);
    --transition-normal: 240ms var(--ease-out);

    /* 字体 */
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

/* ---------- 2. 基础 ---------- */
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-stack);
    color: var(--text-primary);
    background-color: var(--bg-page);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

a { color: var(--primary-color); transition: color var(--transition-fast); }
a:hover { color: var(--primary-dark); }

::selection { background: rgba(22, 119, 255, 0.16); color: var(--text-primary); }

:focus-visible {
    outline: 2px solid rgba(22, 119, 255, 0.55);
    outline-offset: 2px;
    border-radius: 4px;
}

/* 细滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb {
    background: #C3CEDF;
    border-radius: 8px;
    border: 2px solid var(--bg-secondary);
}
::-webkit-scrollbar-thumb:hover { background: #9FB0C8; }

/* 数字（价格/规格）等宽 */
.price-amount, .specs-value, .table td, .table th { font-variant-numeric: tabular-nums; }

/* ---------- 3. 导航栏 ---------- */
body { padding-top: 0; }

header {
    position: sticky;
    top: 0;
    z-index: 1030;
}

.main-navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 2px rgba(15, 27, 51, 0.04);
    padding: 0.55rem 0;
    min-height: 66px;
}

.main-navbar .navbar-brand { display: flex; align-items: center; gap: 0.6rem; padding-top: 0; padding-bottom: 0; }

/* 品牌文字标（配合 header.php 的内联品牌块） */
.brand-lockup { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-mark {
    width: 38px; height: 38px; border-radius: 10px;
    background: linear-gradient(135deg, #1677FF 0%, #0E5FD8 60%, #22D3EE 130%);
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 17px;
    box-shadow: 0 4px 12px -4px rgba(22, 119, 255, 0.55);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
    font-size: 1.22rem; font-weight: 800; letter-spacing: 0.01em;
    color: var(--text-primary);
}
.brand-name .brand-accent { color: var(--primary-color); }
.brand-sub {
    font-size: 0.62rem; font-weight: 600; letter-spacing: 0.18em;
    color: var(--text-muted); text-transform: uppercase;
}

.main-navbar .nav-link {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.55rem 0.9rem !important;
    border-radius: 9px;
    transition: all var(--transition-fast);
}
.main-navbar .nav-link:hover {
    color: var(--primary-color);
    background: var(--primary-50);
}
.main-navbar .nav-link.active {
    color: var(--primary-color);
    background: var(--primary-50);
    font-weight: 700;
}
.main-navbar .nav-item.dropdown .dropdown-toggle::after {
    font-size: 0.7em;
    margin-left: 0.35em;
    vertical-align: 0.15em;
}

/* 下拉菜单 */
.main-navbar .dropdown-menu {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.45rem;
    margin-top: 0.4rem !important;
    animation: ewDrop 180ms var(--ease-out);
}
@keyframes ewDrop {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.main-navbar .dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.92rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}
.main-navbar .dropdown-item:hover, .main-navbar .dropdown-item:focus {
    background: var(--primary-50);
    color: var(--primary-color);
}
.main-navbar .dropdown-item i { width: 1.2em; text-align: center; color: var(--primary-color); opacity: 0.85; }

/* 导航右侧CTA */
.main-navbar .btn { box-shadow: none; }

/* 移动端折叠面板 */
.navbar-collapse.collapsing, .navbar-collapse.show {
    background: #fff;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: 0.5rem 0.25rem 0.75rem;
    box-shadow: var(--shadow-lg);
}

/* ---------- 4. 按钮 ---------- */
.btn {
    border-radius: 10px;
    font-weight: 600;
    transition: all var(--transition-normal);
    letter-spacing: 0.01em;
}
.btn-lg { border-radius: 12px; }

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    color: #fff;
    box-shadow: 0 4px 14px -4px rgba(22, 119, 255, 0.45);
}
.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, #0E5FD8 0%, #1677FF 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -6px rgba(22, 119, 255, 0.55);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline-primary {
    color: var(--primary-color);
    border: 1.5px solid rgba(22, 119, 255, 0.4);
    background: transparent;
}
.btn-outline-primary:hover, .btn-outline-primary:focus {
    background: var(--primary-50);
    color: var(--primary-dark);
    border-color: var(--primary-color);
}

.btn-light {
    background: #fff;
    border: none;
    color: var(--primary-dark);
    font-weight: 700;
    box-shadow: 0 4px 16px -6px rgba(7, 14, 32, 0.5);
}
.btn-light:hover { background: #F0F6FF; color: var(--primary-dark); transform: translateY(-1px); }

.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* ---------- 5. 卡片 ---------- */
.card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}
.card-body { padding: 1.25rem; }

/* 交互型卡片悬浮（列表卡片/文章卡/分类卡） */
.product-item:hover,
.article-card:hover,
.product-category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(22, 119, 255, 0.35);
    box-shadow: var(--shadow-card-hover);
}

/* ---------- 6. Hero（首页深空导航蓝） ---------- */
.hero-area,
.hero-section {
    position: relative;
    overflow: hidden;
    background: var(--navy-hero-gradient);
    color: #fff;
    padding: 4.5rem 0 5.5rem;
}
/* 星点/网格肌理 */
.hero-area::before,
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 90% 80% at 60% 20%, #000 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 90% 80% at 60% 20%, #000 40%, transparent 100%);
    pointer-events: none;
}
/* 右上青色辉光 + 左下蓝色辉光 */
.hero-area::after,
.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(42% 55% at 78% 18%, rgba(34, 211, 238, 0.16) 0%, transparent 100%),
        radial-gradient(38% 50% at 12% 88%, rgba(22, 119, 255, 0.22) 0%, transparent 100%);
    pointer-events: none;
}
.hero-area .container, .hero-section .container { position: relative; z-index: 2; }

.hero-area .display-4, .hero-section h1 {
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}
.hero-area .lead { color: rgba(255, 255, 255, 0.78) !important; max-width: 34rem; }

.hero-title-link { color: #fff !important; text-decoration: none; }
.hero-title-link:hover { color: #fff !important; }

/* hero 上的 eyebrow 徽章 */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.12);
    border: 1px solid rgba(34, 211, 238, 0.32);
    color: #A5F3FC;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 1.1rem;
}
.hero-eyebrow i { font-size: 0.8em; }

/* hero 内统计行 */
.hero-stats { display: flex; flex-wrap: wrap; gap: 2.2rem; margin-top: 2rem; }
.hero-stat .stat-num {
    font-size: 1.65rem;
    font-weight: 800;
    color: #fff;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}
.hero-stat .stat-num em {
    font-style: normal;
    font-size: 0.62em;
    color: #7DD3FC;
    margin-left: 2px;
}
.hero-stat .stat-label { font-size: 0.82rem; color: rgba(255, 255, 255, 0.6); margin-top: 2px; }

/* hero 右侧产品卡（玻璃白） */
.hero-area .bg-white.rounded, .hero-card {
    background: rgba(255, 255, 255, 0.985) !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: 0 24px 70px -18px rgba(3, 8, 22, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

/* 频道页 hero 区（vps/gpu/pc/phone 等的 hero-section）变体：稍矮 */
.hero-section { padding: 3.2rem 0 3.6rem; }
.hero-section .lead, .hero-section p { color: rgba(255, 255, 255, 0.78) !important; }

/* ---------- 7. 首页分类导航（上浮叠压 hero） ---------- */
.category-nav {
    position: relative;
    z-index: 5;
    margin-top: -3.2rem !important;
    padding-top: 0 !important;
    background: transparent;
}
.category-nav .category-wrapper {
    background: #fff !important;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 1.6rem 1.4rem !important;
}
.category-item {
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    padding: 0.9rem 0.5rem !important;
}
.category-item:hover {
    background: var(--bg-secondary);
    transform: translateY(-3px);
    color: var(--primary-color);
}
.category-item .icon-circle {
    width: 58px; height: 58px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 16px !important;
    background: var(--primary-50) !important;
    transition: all var(--transition-normal);
}
.category-item .icon-circle i { font-size: 1.5rem !important; color: var(--primary-color) !important; }
.category-item:hover .icon-circle {
    background: var(--primary-gradient) !important;
    box-shadow: var(--shadow-primary);
}
.category-item:hover .icon-circle i { color: #fff !important; }
/* 各产品线的图标底色差异保留为柔色 */
.category-item .icon-circle.bg-success { background: var(--success-soft) !important; }
.category-item .icon-circle.bg-success i { color: var(--success-color) !important; }
.category-item .icon-circle.bg-danger { background: var(--danger-soft) !important; }
.category-item .icon-circle.bg-danger i { color: var(--danger-color) !important; }
.category-item .icon-circle.bg-warning { background: var(--warning-soft) !important; }
.category-item .icon-circle.bg-warning i { color: var(--warning-color) !important; }
.category-item .icon-circle.bg-info { background: var(--info-soft) !important; }
.category-item .icon-circle.bg-info i { color: var(--info-color) !important; }
.category-item:hover .icon-circle.bg-success,
.category-item:hover .icon-circle.bg-danger,
.category-item:hover .icon-circle.bg-warning,
.category-item:hover .icon-circle.bg-info {
    background: var(--primary-gradient) !important;
    box-shadow: var(--shadow-primary);
}
.category-item:hover .icon-circle.bg-success i,
.category-item:hover .icon-circle.bg-danger i,
.category-item:hover .icon-circle.bg-warning i,
.category-item:hover .icon-circle.bg-info i { color: #fff !important; }
.category-item h3 { font-weight: 700; font-size: 0.92rem !important; margin-top: 0.6rem; }

/* ---------- 8. Section 标题 ---------- */
.section-title {
    position: relative;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    padding-left: 0;
}
.section-title i { color: var(--primary-color) !important; }
.section-title::after {
    content: "";
    display: block;
    width: 34px;
    height: 3px;
    border-radius: 3px;
    margin-top: 0.5rem;
    background: linear-gradient(90deg, #1677FF 0%, #22D3EE 100%);
}

/* ---------- 9. 价格 ---------- */
.price-tag { display: flex; align-items: baseline; gap: 2px; }
.price-amount {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--primary-color);
    font-variant-numeric: tabular-nums;
    line-height: 1.05;
}
.price-period { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }
.price-container {
    background: linear-gradient(180deg, var(--primary-50) 0%, rgba(232, 241, 255, 0.35) 100%);
    border: 1px solid rgba(22, 119, 255, 0.14);
    border-radius: var(--radius-md);
    padding: 0.8rem 1rem !important;
}

/* ---------- 10. 产品卡片 ---------- */
.product-item { overflow: hidden; }
.product-item .card-title { font-weight: 700; color: var(--text-primary); }
.product-item .card-title a { color: var(--text-primary); text-decoration: none; }
.product-item .card-title a:hover { color: var(--primary-color); }

.product-meta-info .badge {
    font-weight: 600;
    border-radius: 7px;
    padding: 0.35em 0.65em;
    font-size: 0.76rem;
}
.product-meta-info .badge.bg-light {
    background: var(--bg-tertiary) !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border-color);
}
.product-meta-info .badge.bg-success { background: var(--success-soft) !important; color: #0B8A54 !important; }
.product-meta-info .badge.bg-warning { background: var(--warning-soft) !important; color: #B45309 !important; }
.product-meta-info .badge.bg-info { background: var(--info-soft) !important; color: var(--primary-dark) !important; }
.product-meta-info .badge a { color: inherit; }

/* 规格行 */
.specs-item, .specs-item-horizontal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.42rem 0.65rem;
    border-radius: 8px;
}
.specs-item:nth-child(odd), .specs-item-horizontal:nth-child(odd) { background: var(--bg-secondary); }
.specs-label { color: var(--text-muted); font-size: 0.82rem; font-weight: 600; white-space: nowrap; }
.specs-label i { color: var(--primary-color) !important; opacity: 0.75; }
.specs-value {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.88rem;
    text-align: right;
}

.product-action-buttons .btn { font-weight: 700; }

/* ---------- 11. 筛选器 ---------- */
#filter-form .card, .filter-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}
#filter-form .form-label, .filter-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0.02em;
}
.form-select, .form-control {
    border-radius: 9px;
    border-color: var(--border-strong);
    font-size: 0.92rem;
}
.form-select:focus, .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.13);
}

/* ---------- 12. 徽章 ---------- */
.badge { font-weight: 600; border-radius: 7px; }
.badge.rounded-pill { border-radius: 999px; }

/* ---------- 13. 文章卡片 ---------- */
.article-card { overflow: hidden; }
.article-card .card-title a { color: var(--text-primary); }
.article-card .card-title a:hover { color: var(--primary-color); }
.article-card .card-text { color: var(--text-muted) !important; line-height: 1.7; }

/* ---------- 14. 厂商卡片/厂商行 ---------- */
.vendor-card { overflow: hidden; }
.vendor-card img, .vendor-logo { object-fit: contain; }

/* ---------- 15. FAQ ---------- */
.geo-faq-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.2rem !important;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.geo-faq-item:hover {
    border-color: rgba(22, 119, 255, 0.3);
    box-shadow: var(--shadow-md);
}
.geo-faq-item h3 { font-size: 1rem !important; }
section#faq, section.bg-light { background: var(--bg-page) !important; }

/* ---------- 16. 深色 feature 区（我们的服务特点等 bg-primary 大块） ---------- */
section.bg-primary, .feature-section.bg-primary {
    background: var(--navy-hero-gradient) !important;
    position: relative;
    overflow: hidden;
}
section.bg-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(50% 70% at 50% 0%, rgba(34, 211, 238, 0.1) 0%, transparent 100%);
    pointer-events: none;
}
section.bg-primary .container { position: relative; z-index: 1; }

/* ---------- 17. 面包屑 ---------- */
.breadcrumb { font-size: 0.88rem; }
.breadcrumb-item a { color: var(--text-muted); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--primary-color); }
.breadcrumb-item.active { color: var(--text-secondary); font-weight: 600; }

/* ---------- 18. 页脚（深空导航蓝） ---------- */
.footer {
    background: var(--navy-900);
    color: rgba(255, 255, 255, 0.78);
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(46% 60% at 82% 0%, rgba(34, 211, 238, 0.07) 0%, transparent 100%),
        radial-gradient(40% 55% at 8% 100%, rgba(22, 119, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}
.footer .container { position: relative; z-index: 1; }

.footer .footer-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-bottom: 1.1rem;
}
.footer .footer-title::after {
    content: "";
    display: block;
    width: 22px; height: 2px;
    background: var(--accent);
    border-radius: 2px;
    margin-top: 0.45rem;
    opacity: 0.8;
}
.footer .footer-links li { margin-bottom: 0.55rem; }
.footer .footer-links a {
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}
.footer .footer-links a:hover { color: #7DD3FC; padding-left: 3px; }
.footer .footer-description { color: rgba(255, 255, 255, 0.55) !important; font-size: 0.9rem; line-height: 1.8; }

.footer .social-icon {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.75);
    margin-right: 0.45rem;
    transition: all var(--transition-normal);
}
.footer .social-icon:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.footer .beian-link, .footer a.beian-link {
    color: rgba(255, 255, 255, 0.45) !important;
    text-decoration: none;
    font-size: 0.84rem;
}
.footer .beian-link:hover { color: rgba(255, 255, 255, 0.8) !important; }

.footer .footer-bottom, .footer hr {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* 页脚里的白logo文字 */
.footer-brand img { border-radius: 8px; }

/* ---------- 19. 表格（详情页规格表） ---------- */
.table { --bs-table-hover-bg: var(--bg-secondary); }
.table > :not(caption) > * > * { padding: 0.7rem 0.85rem; }
.table th { color: var(--text-muted); font-weight: 600; font-size: 0.86rem; }

/* ---------- 20. 其他微调 ---------- */
.text-primary { color: var(--primary-color) !important; }
.bg-light { background-color: var(--bg-secondary) !important; }

.pagination .page-link {
    border-radius: 8px;
    margin: 0 3px;
    border-color: var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
}
.pagination .page-item.active .page-link {
    background: var(--primary-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--shadow-primary);
}

/* 回到顶部按钮（若存在） */
.back-to-top, #backToTop, #scrollTopBtn {
    background: #fff;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
}
.back-to-top:hover, #backToTop:hover, #scrollTopBtn:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ---------- 21. 响应式 ---------- */
@media (max-width: 991.98px) {
    .hero-area, .hero-section { padding: 3rem 0 3.6rem; }
    .hero-area .display-4 { font-size: 2rem; }
    .hero-stats { gap: 1.4rem; }
    .hero-stat .stat-num { font-size: 1.35rem; }
    .category-nav { margin-top: -2.2rem !important; }
    .category-nav .category-wrapper { padding: 1rem 0.8rem !important; }
    .category-item .icon-circle { width: 48px; height: 48px; }
    .category-item .icon-circle i { font-size: 1.2rem !important; }
    .main-navbar .navbar-nav { gap: 0.1rem; }
    .main-navbar .nav-link { padding: 0.6rem 0.75rem !important; }
}

@media (max-width: 575.98px) {
    .hero-area .display-4 { font-size: 1.65rem; }
    .hero-area .lead { font-size: 0.95rem; }
    .hero-stats { gap: 1rem; }
    .category-item h3 { font-size: 0.82rem !important; }
    .price-amount { font-size: 1.5rem; }
}

/* ---------- 22. 动效尊重 ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

/* ---------- 23. 页脚/深色背景下的品牌标适配 ---------- */
.footer .brand-name { color: #fff; }
.footer .brand-name .brand-accent { color: #7DD3FC; }
.footer .brand-sub { color: rgba(255, 255, 255, 0.42); }
.footer .brand-mark {
    background: linear-gradient(135deg, #1677FF 0%, #0E5FD8 60%, #22D3EE 130%);
    box-shadow: 0 4px 14px -4px rgba(22, 119, 255, 0.6);
}

/* ---------- 24. 设计规范校准（ui-ux spec 2026-11-03） ---------- */
:root {
    --navy-950: #060D1C;
    --navy-900: #0A1930;
    --navy-800: #10254A;
    --edge-cyan-300: #5CDBD3;
    --edge-sand: #FAF9F6;
    --edge-font-num: "SF Mono", "JetBrains Mono", ui-monospace, "Helvetica Neue", Arial, sans-serif;
}
/* 深色区统一为同源导航蓝 */
.hero-area, .hero-section, section.bg-primary, .feature-section.bg-primary, .footer {
    background-color: var(--navy-900);
}
.footer { background: var(--navy-900); }
.hero-area, .hero-section { background-image: linear-gradient(135deg, #0A1930 0%, #0D1B40 52%, #143a74 100%); }

/* 深色面板上的 eyebrow 文字用青色 */
.hero-eyebrow { color: var(--edge-cyan-300); }

/* 产品详情页 hero：覆盖模板内联的纯蓝渐变 → 同源导航蓝 */
section.product-hero { background: var(--navy-hero-gradient) !important; }
section.product-hero::before { display: none; }
.product-hero .specs-highlight-label { color: rgba(255, 255, 255, 0.62) !important; letter-spacing: 0.02em; }
.product-hero .specs-highlight-value { color: #fff; }

/* 价格数字：等宽栈（比价表对齐） */
.price-tag { font-family: var(--edge-font-num); }

/* 编辑内容区（文章/FAQ）暖 sand 底，与比价数据区形成隐性分区 */
section#faq, .geo-faq-section { background: var(--edge-sand) !important; }
.article-content, .article-body { background: #fff; }

/* 详情页 sticky 价格面板（vps-flat 的 price-action 容器） */
.price-panel, .detail-price-card {
    background: linear-gradient(180deg, var(--primary-50) 0%, rgba(230, 244, 255, 0.4) 100%);
    border: 1px solid rgba(22, 119, 255, 0.16);
    border-radius: var(--radius-lg);
}

/* ---------- 25. 文章页标题横幅 → 导航蓝 ---------- */
section.article-hero {
    background: var(--navy-hero-gradient) !important;
    position: relative;
    overflow: hidden;
    margin-bottom: 0 !important;
}
section.article-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, #000 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, #000 40%, transparent 100%);
    pointer-events: none;
}
