/* ============================================================
   Helpersoft 官网 - 设计令牌与站点外壳
   深色科技底（深蓝墨黑）+ 浅色阅读区 + 橙色点睛（#FF6A00）
   分层：1) 令牌  2) 基础排版  3) 工具类  4) 顶栏/导航  5) 按钮/表单
        6) 区块骨架  7) 页脚  8) 响应式与无障碍
   ============================================================ */

/* ===== 1. 设计令牌 ===== */
:root {
    /* 墨蓝体系 */
    --ink-950: #070D18;
    --ink-900: #0B1220;
    --ink-850: #0E1727;
    --ink-800: #111C2E;
    --ink-700: #16233A;
    --ink-600: #1E2F4A;
    --ink-500: #2A3C58;

    /* 强调色 */
    --accent: #FF6A00;
    --accent-600: #E55A00;
    --accent-300: #FF934D;
    --accent-soft: #FFF4EC;
    --accent-rgb: 255, 106, 0;

    /* 中性面
       页面底改为暖灰，不再用纯白铺满：降低整屏亮度，白卡片才有层次 */
    --page-bg: #F7F5F0;
    --surface-0: #FFFFFF;
    --surface-1: #EFEBE3;
    --surface-2: #E6E1D7;
    --surface-3: #DCD6CA;
    --line: #E2DCD2;
    --line-strong: #CEC6B9;
    --line-dark: rgba(255, 255, 255, 0.10);
    --line-dark-strong: rgba(255, 255, 255, 0.18);

    /* 文字：正文与辅助文字同步加深，避免大段灰字"糊"在背景里 */
    --text-strong: #0B1526;
    --text: #1C2839;
    --muted: #46536A;
    --muted-2: #6B7688;
    --on-dark: rgba(255, 255, 255, 0.74);
    --on-dark-strong: #FFFFFF;
    --on-dark-muted: rgba(255, 255, 255, 0.50);
    --link: #1D4ED8;

    /* 功能色 */
    --success: #16A34A;
    --danger: #DC2626;
    --warning: #D97706;
    --info: #2563EB;

    /* 阴影 */
    --shadow-xs: 0 1px 2px rgba(11, 18, 32, 0.05);
    --shadow-sm: 0 2px 8px rgba(11, 18, 32, 0.06);
    --shadow-md: 0 10px 30px rgba(11, 18, 32, 0.09);
    --shadow-lg: 0 24px 60px rgba(11, 18, 32, 0.14);
    --shadow-accent: 0 10px 26px rgba(var(--accent-rgb), 0.28);

    /* 圆角与节奏 */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --header-height: 76px;
    --topbar-height: 36px;
    --section-y: 88px;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", monospace;

    /* 旧变量名兼容（历史视图/内联样式引用） */
    --color-primary: var(--accent);
    --color-primary-dark: var(--accent-600);
    --color-primary-light: var(--accent-300);
    --color-primary-soft: var(--accent-soft);
    --color-dark: var(--text-strong);
    --color-gray: var(--muted);
    --color-gray-light: var(--surface-1);
    --color-border: var(--line);
    --color-success: var(--success);
    --color-danger: var(--danger);
}

/* ===== 2. 基础与排版 ===== */
* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.85;
    color: var(--text);
    background: var(--page-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.5em;
    color: var(--text-strong);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(34px, 4.2vw, 56px); letter-spacing: -0.03em; }
h2 { font-size: clamp(26px, 2.8vw, 38px); }
h3 { font-size: 20px; letter-spacing: -0.01em; }
h4 { font-size: 17px; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
    color: var(--link);
    text-decoration: none;
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
a:hover { color: var(--accent); text-decoration: none; }

strong { color: var(--text-strong); font-weight: 650; }
small { font-size: 0.875em; }

ul, ol { margin-top: 0; }

hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

code, kbd, samp, pre { font-family: var(--font-mono); }

::selection { background: rgba(var(--accent-rgb), 0.22); color: var(--ink-900); }

/* 内容容器：全站统一 1240px */
@media (min-width: 1200px) {
    .container { max-width: 1240px; }
}
.container { --bs-gutter-x: 32px; }

/* ===== 3. 工具类 ===== */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}
.eyebrow::before {
    content: "";
    width: 26px;
    height: 1px;
    background: currentColor;
    opacity: 0.85;
}
.eyebrow--center::before { display: none; }

.eyebrow--dark { color: var(--accent-300); }

.text-muted { color: var(--muted) !important; }
.text-accent { color: var(--accent) !important; }
.text-ink { color: var(--text-strong) !important; }
.u-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.u-num { font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

.lead {
    font-size: 17px;
    line-height: 1.85;
    color: var(--muted);
}

/* 滚动揭示：仅当 <html class="js"> 时才隐藏，脚本失效不影响阅读 */
.js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity var(--pb-reveal-duration, 0.6s) var(--ease), transform var(--pb-reveal-duration, 0.6s) var(--ease);
    will-change: opacity, transform;
}
.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}
.js .reveal-delay-1 { transition-delay: 0.07s; }
.js .reveal-delay-2 { transition-delay: 0.14s; }
.js .reveal-delay-3 { transition-delay: 0.21s; }
.js .reveal-delay-4 { transition-delay: 0.28s; }

/* 更多进入动画：均由 is-visible（元素进入可见区后由脚本添加）触发 */
.js .reveal.fade-down { transform: translateY(-18px); }
.js .reveal.slide-left { transform: translateX(-32px); }
.js .reveal.slide-right { transform: translateX(32px); }
.js .reveal.zoom, .js .reveal.zoom-in { transform: scale(.86); }
.js .reveal.zoom-out { transform: scale(1.14); }
.js .reveal.rotate-in { transform: rotate(-6deg) scale(.94); }
.js .reveal.flip-in { transform: perspective(700px) rotateY(28deg); }
.js .reveal.jump-in { transform: translateY(28px) scale(.94); }
.js .reveal.bounce-in.is-visible {
    animation: reveal-bounce var(--pb-reveal-duration, 0.72s) var(--ease) both;
}
@keyframes reveal-bounce {
    0% { opacity: 0; transform: scale(.7) translateY(22px); }
    60% { opacity: 1; transform: scale(1.06) translateY(0); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 2000;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    background: var(--ink-900);
    color: #fff;
    font-size: 14px;
    transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

/* ===== 4. 顶部联系条 ===== */
.top-bar {
    height: var(--topbar-height);
    line-height: var(--topbar-height);
    background: var(--ink-950);
    color: rgba(255, 255, 255, 0.60);
    font-size: 12.5px;
    letter-spacing: 0.01em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.top-bar-text i,
.top-bar-links i { margin-right: 6px; color: var(--accent-300); }
.top-bar-links a { color: rgba(255, 255, 255, 0.66); }
.top-bar-links a:hover { color: #fff; }
.top-bar-links .sep { margin: 0 12px; color: rgba(255, 255, 255, 0.22); }
.top-bar-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.50);
}
.top-bar-status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
}

/* ===== 5. 主导航 ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--menu-bg, rgba(255, 255, 255, 0.96));
    border-bottom: 1px solid var(--line);
    transition: box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.site-header.is-scrolled {
    background: var(--menu-bg-scrolled, var(--menu-bg, rgba(255, 255, 255, 0.90)));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 34px rgba(11, 18, 32, 0.08);
}
.site-header .navbar {
    height: var(--header-height);
    padding: 0;
}

/* 品牌标识 */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 32px;
    padding: 0;
    white-space: nowrap;
}
.navbar-brand:hover { text-decoration: none; }
.brand-logo {
    display: block;
    max-height: 42px;
    max-width: 186px;
    width: auto;
    height: auto;
    object-fit: contain;
    flex: 0 0 auto;
}
.brand-mark {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: linear-gradient(145deg, var(--ink-700), var(--ink-950));
    color: #fff;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.04em;
    box-shadow: 0 6px 16px rgba(11, 18, 32, 0.22);
    overflow: hidden;
    flex: 0 0 auto;
}
.brand-mark::after {
    content: "";
    position: absolute;
    right: -13px;
    bottom: -13px;
    width: 26px;
    height: 26px;
    background: var(--accent);
    transform: rotate(45deg);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-strong);
}
.brand-sub {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-top: 2px;
}

/* 导航项 */
.site-header .navbar-nav { align-items: stretch; gap: 2px; }
.site-header .navbar-nav .nav-link {
    position: relative;
    padding: 0 14px !important;
    height: var(--header-height);
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 500;
    color: var(--menu-text, var(--text));
    border-radius: 0;
    transition: color 0.2s var(--ease);
}
.site-header .navbar-nav .nav-link:hover,
.site-header .navbar-nav .nav-link.active { color: var(--menu-active, var(--accent)); }
.site-header .navbar-nav .nav-link.active::before {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 0;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: var(--menu-active, var(--accent));
}
.tpl-menu-icon { margin-right: 6px; font-size: 15px; }
.tpl-no-menu-desc .nav-mega-desc { display: none !important; }

/* 导航右侧 CTA */
.nav-cta { margin-left: 20px; flex: 0 0 auto; }
.nav-cta .btn { padding: 10px 20px; font-size: 14.5px; }
.navbar-toggler {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 10px;
    box-shadow: none !important;
}
.navbar-toggler-icon {
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230F172A' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* 巨幕下拉 */
.site-header .nav-item--mega { position: relative; }
.site-header .nav-item--mega .dropdown-toggle::after {
    margin-left: 6px;
    vertical-align: 0.12em;
    color: var(--muted-2);
}

.site-header .nav-mega-menu {
    position: absolute;
    top: calc(100% - 1px);
    /* --mega-shift 由 site.js 按视口宽度计算，避免右侧菜单被裁切；
        specificity 需压过 Bootstrap 的 .dropdown-menu[data-bs-popper] */
    left: var(--mega-shift, 0px);
    right: auto;
    width: 560px;
    min-width: 0;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 120px);
    margin: 0;
    padding: 18px 20px 20px;
    overflow-y: auto;
    transform: none;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: 0 24px 60px rgba(11, 18, 32, 0.16);
    font-size: 15px;
    line-height: 1.6;
}
.nav-mega-menu::before {
    content: "";
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 2px;
    border-radius: 0 0 2px 2px;
    background: linear-gradient(90deg, var(--accent), rgba(var(--accent-rgb), 0.25));
}
.nav-mega-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}
.nav-mega-kicker {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted-2);
}
.nav-mega-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-1);
    color: var(--text-strong);
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.2s var(--ease);
}
.nav-mega-all:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    text-decoration: none;
}
.nav-mega-all .bi { font-size: 14px; transition: transform 0.2s var(--ease); }
.nav-mega-all:hover .bi { transform: translateX(3px); }

.nav-mega-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}
.nav-mega-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: transparent;
    color: var(--text-strong);
    text-align: left;
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.nav-mega-item:hover {
    border-color: var(--line);
    background: var(--surface-1);
    text-decoration: none;
    transform: translateY(-1px);
}
.nav-mega-icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 17px;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-mega-item:hover .nav-mega-icon { background: var(--accent); color: #fff; }
/* 文字块至少与图标同高并垂直居中：有简介时内容自然撑高，无简介（隐藏 desc）时标题与图标居中对齐 */
.nav-mega-text { display: flex; flex-direction: column; justify-content: center; min-width: 0; min-height: 36px; }
.nav-mega-label {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-strong);
}
.nav-mega-desc {
    margin-top: 3px;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 992px) {
    .site-header .navbar { flex-wrap: nowrap; }

    /* 展开由 site.js 的 hover 意图控制（.is-open），点击仍走 Bootstrap 的 .show */
    .site-header .nav-item--mega.is-open > .dropdown-menu,
    .site-header .nav-item--mega > .dropdown-menu.show { display: block; }

    /* 桥接：面板顶边与头部底边重叠，这里只兜住 1px 像素缝隙 */
    .site-header .nav-item--mega::after {
        content: "";
        position: absolute;
        left: var(--mega-shift, 0px);
        top: 100%;
        width: 560px;
        max-width: calc(100vw - 40px);
        height: 10px;
    }
}

@media (max-width: 991px) {
    .site-header .navbar { height: auto; min-height: 64px; }
    .site-header .navbar-collapse {
        padding: 8px 0 20px;
        border-top: 1px solid var(--line);
        margin-top: 8px;
    }
    .site-header .navbar-nav { gap: 0; }
    .site-header .navbar-nav .nav-link {
        height: auto;
        padding: 13px 4px !important;
        border-bottom: 1px solid var(--surface-2);
    }
    .site-header .navbar-nav .nav-link.active::before { display: none; }
    .site-header .navbar-nav .nav-link.active { color: var(--menu-active, var(--accent)); }
    .nav-cta { margin: 16px 0 0; }
    .nav-cta .btn { width: 100%; justify-content: center; }
    .nav-mega-menu {
        position: static !important;
        width: auto;
        max-width: none;
        max-height: none;
        overflow: visible;
        transform: none;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 10px 0 6px;
        background: transparent;
    }
    .nav-mega-menu::before { display: none; }
    .nav-mega-grid { grid-template-columns: 1fr; gap: 4px; }
    .nav-mega-item { padding: 9px 4px; }
    .nav-mega-icon { width: 30px; height: 30px; font-size: 15px; }
    .nav-mega-text { min-height: 30px; }
    .nav-mega-desc { display: none; }
    .nav-mega-head { display: none; }
    .brand-mark { width: 38px; height: 38px; font-size: 19px; }
    .brand-name { font-size: 15.5px; }
    .brand-sub { font-size: 9.5px; }
    .navbar-brand { margin-right: 12px; }
}

/* ===== 6. 按钮 ===== */
.btn {
    --bs-btn-border-radius: 10px;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: background 0.2s var(--ease), color 0.2s var(--ease),
                border-color 0.2s var(--ease), transform 0.2s var(--ease),
                box-shadow 0.2s var(--ease);
}

.btn-primary-custom,
.btn-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 26px;
    border: 1px solid var(--accent);
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.18);
}
.btn-primary-custom:hover,
.btn-accent:hover {
    background: var(--accent-600);
    border-color: var(--accent-600);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-accent);
    text-decoration: none;
}
.btn-primary-custom:active,
.btn-accent:active { transform: translateY(0); }
.btn-primary-custom .bi,
.btn-accent .bi { font-size: 0.95em; }

.btn-ink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 26px;
    border: 1px solid var(--ink-900);
    border-radius: 10px;
    background: var(--ink-900);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}
.btn-ink:hover {
    background: var(--ink-700);
    border-color: var(--ink-700);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(11, 18, 32, 0.20);
    text-decoration: none;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 26px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}
.btn-ghost:hover {
    background: #fff;
    border-color: #fff;
    color: var(--ink-900);
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-outline-primary-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: #fff;
    color: var(--text-strong);
    font-size: 14.5px;
    font-weight: 600;
}
.btn-outline-primary-custom:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
    text-decoration: none;
}

.btn-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-strong);
    font-size: 14.5px;
    font-weight: 600;
}
.btn-link-arrow .bi { transition: transform 0.2s var(--ease); }
.btn-link-arrow:hover { color: var(--accent); }
.btn-link-arrow:hover .bi { transform: translateX(4px); }

.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }
.btn-block, .w-100 { width: 100%; }

/* ===== 7. 表单控件 ===== */
.form-label {
    margin-bottom: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-strong);
}
.form-control,
.form-select {
    min-height: 46px;
    padding: 11px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: #fff;
    color: var(--text-strong);
    font-size: 15px;
    box-shadow: none;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-control::placeholder { color: var(--muted-2); }
.form-control:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.12);
    outline: 0;
}
textarea.form-control { min-height: 140px; resize: vertical; }
.form-text { font-size: 12.5px; color: var(--muted); }

/* ===== 8. 区块骨架 ===== */
.section { padding: var(--section-y) 0; }
.section--tight { padding: 64px 0; }
.bg-soft { background: var(--surface-1); }
.bg-orange-soft { background: var(--surface-1); }
.bg-ink { background: var(--ink-900); color: var(--on-dark); }
.bg-ink h1, .bg-ink h2, .bg-ink h3, .bg-ink h4 { color: #fff; }

.section-title { margin-bottom: 48px; text-align: center; }
.section-title h2 {
    margin-bottom: 14px;
    font-size: clamp(26px, 2.8vw, 36px);
    letter-spacing: -0.025em;
}
.section-title p {
    max-width: 640px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 16.5px;
    line-height: 1.9;
}
.section-title.text-start p { margin-left: 0; }
.section-title .accent-line {
    width: 44px;
    height: 3px;
    margin: 20px auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), rgba(var(--accent-rgb), 0.18));
}
.section-title.text-start .accent-line { margin-left: 0; }
.section-title--dark h2 { color: #fff; }
.section-title--dark p { color: var(--on-dark); }

/* 通用卡片基类 */
.card-surface {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-xs);
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.card-surface:hover {
    border-color: rgba(var(--accent-rgb), 0.35);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.card-surface--dark {
    border: 1px solid var(--line-dark);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012));
    color: var(--on-dark);
    box-shadow: none;
}
.card-surface--dark:hover {
    border-color: rgba(var(--accent-rgb), 0.45);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

/* 旧版卡片类兼容 */
.product-card {
    height: 100%;
    padding: 30px 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    transition: all 0.3s var(--ease);
}
.product-card:hover {
    border-color: rgba(var(--accent-rgb), 0.4);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.product-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    border-radius: 13px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 24px;
}
.product-card h3 { font-size: 19px; margin-bottom: 10px; }
.product-card p { color: var(--muted); font-size: 14.5px; }

.feature-section { background: var(--surface-1); }
.feature-item { text-align: center; padding: 12px; }
.feature-item .num {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-mono);
    font-size: clamp(34px, 3.4vw, 46px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--text-strong);
}
.feature-item .num em { font-style: normal; color: var(--accent); }
.feature-item .label { color: var(--muted); font-size: 14px; }

/* 旧版 Hero（保留兼容，首页已改用 .hero-shell） */
.hero {
    position: relative;
    padding: 90px 0 110px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--ink-900) 0%, var(--ink-700) 60%, var(--ink-600) 100%);
    color: var(--on-dark);
}
.hero-title { font-size: clamp(32px, 4vw, 48px); color: #fff; }
.hero-subtitle { max-width: 640px; font-size: 17px; color: var(--on-dark); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ===== 9. 页脚 ===== */
.site-footer {
    position: relative;
    padding: 72px 0 26px;
    background: var(--ink-950);
    color: var(--on-dark);
    overflow: hidden;
}
.site-footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.55), transparent);
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand .brand-mark { box-shadow: none; }
.footer-brand .brand-logo { max-height: 38px; }
.footer-brand-name { font-size: 16px; font-weight: 700; color: #fff; line-height: 1.3; }
.footer-brand-sub {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--on-dark-muted);
}
.footer-desc { font-size: 14px; line-height: 1.85; color: var(--on-dark); }
.footer-title {
    margin-bottom: 18px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}
.footer-links,
.footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-links li,
.footer-contact li { margin-bottom: 11px; font-size: 14px; line-height: 1.6; color: var(--on-dark); }
.footer-links a { color: var(--on-dark); }
.footer-links a:hover { color: var(--accent-300); }
.footer-contact i { width: 18px; margin-right: 6px; color: var(--accent-300); }

/* 联系方式弹层：居中显示，替代桌面端无法拨号的 tel: 链接 */
.contact-sheet .modal-dialog { max-width: 620px; margin: 1.75rem auto; }
.contact-sheet .modal-content { border: 0; border-radius: 16px; box-shadow: 0 18px 50px rgba(15, 23, 42, .22); }
.contact-sheet .modal-header,
.contact-sheet .modal-body,
.contact-sheet .modal-footer { padding-left: 28px; padding-right: 24px; }
.contact-sheet .modal-header { border-bottom: 1px solid #eef2f7; }
.contact-sheet .modal-title { font-weight: 700; }
.contact-sheet .modal-footer { border-top: 1px solid #eef2f7; gap: 8px; }
.contact-sheet .contact-sheet-list { list-style: none; margin: 0; padding: 0; }
.contact-sheet .contact-sheet-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px dashed #e7ecf3; }
.contact-sheet .contact-sheet-list li:last-child { border-bottom: 0; }
.contact-sheet .contact-sheet-list i { flex: 0 0 28px; margin-top: 3px; font-size: 18px; color: var(--accent-300); }
.contact-sheet .contact-sheet-list span { display: block; font-size: 12px; color: #7b8794; }
.contact-sheet .contact-sheet-list strong { display: block; font-size: 16px; word-break: break-all; }
.contact-sheet .contact-sheet-list small { display: block; font-size: 12px; color: #7b8794; margin-top: 2px; }
.contact-sheet .contact-sheet-qr img {
    display: block; width: 132px; height: 132px; object-fit: contain;
    margin-top: 8px; padding: 4px; border: 1px solid #e7ecf3;
    border-radius: 8px; background: #fff;
}
@media (max-width: 575.98px) {
    .contact-sheet .modal-dialog { max-width: calc(100% - 1.5rem); margin: .75rem auto; }
    .contact-sheet .modal-content { border-radius: 14px; }
    .contact-sheet .modal-header,
    .contact-sheet .modal-body,
    .contact-sheet .modal-footer { padding-left: 20px; padding-right: 20px; }
}

.footer-tech { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.footer-tech span {
    padding: 4px 10px;
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--on-dark-muted);
}

.qr-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 108px;
    height: 108px;
    border: 1px dashed var(--line-dark-strong);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
    color: var(--on-dark-muted);
    font-size: 12px;
    letter-spacing: 0.08em;
}
.qr-placeholder img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 4px;
    border-radius: inherit;
    background: #fff;
    object-fit: contain;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 52px;
    padding-top: 22px;
    border-top: 1px solid var(--line-dark);
    font-size: 12.5px;
    color: var(--on-dark-muted);
}
.footer-bottom a { color: var(--on-dark-muted); }
.footer-bottom a:hover { color: #fff; }

/* ===== 10. 无障碍与动效偏好 ===== */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
.nav-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

@media (max-width: 991px) {
    :root { --section-y: 68px; }
    .section-title { margin-bottom: 34px; }
    .top-bar { font-size: 12px; }
    .footer-bottom { justify-content: flex-start; }
}

@media (max-width: 575px) {
    :root { --section-y: 56px; }
    .top-bar-status { display: none; }
    .top-bar-text .d-none-mobile { display: none; }
    .site-footer { padding-top: 54px; }
    .btn-primary-custom,
    .btn-accent,
    .btn-ink,
    .btn-ghost,
    .btn-outline-primary-custom { padding-left: 20px; padding-right: 20px; }
}

/* 回到顶部 */
.to-top {
    position: fixed;
    right: 24px;
    bottom: 28px;
    z-index: 1020;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: #fff;
    color: var(--text-strong);
    font-size: 17px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
                visibility 0.25s, background 0.2s var(--ease), color 0.2s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

@media (max-width: 575px) {
    .to-top { right: 16px; bottom: 18px; width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .js .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   9. 组态布局容器（栅格 / 弹性行 / 容器盒子）
   —— 由页面设计器「布局」组件生成，响应式：手机端按 mobileColumns / mobileStack 折叠
   ============================================================ */
.pb-grid {
    display: grid;
    grid-template-columns: repeat(var(--pb-cols, 2), minmax(0, 1fr));
    gap: var(--pb-gap, 16px);
    align-items: start;
    min-width: 0;
    margin: 12px 0;
}
.pb-grid-item { min-width: 0; grid-column: span var(--pb-span, 1); }
.pb-grid-item > * { margin-top: 0; margin-bottom: 0; }

.pb-flex-row {
    display: flex;
    gap: var(--pb-gap, 12px);
    align-items: center;
    min-width: 0;
    margin: 12px 0;
}
.pb-flex-item { min-width: 0; }
.pb-flex-item > * { margin-top: 0; margin-bottom: 0; }

.pb-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    margin: 12px 0;
    box-sizing: border-box;
}
.pb-box-item { min-width: 0; }
.pb-box-item > * { margin-top: 0; margin-bottom: 0; }

/* 顶层布局容器默认与 .container 同宽（定宽居中），避免栅格内容铺满整屏；
   嵌套在布局容器里的子容器不再重复缩进；显式通栏（pb-width-full）保持铺满。 */
#main-content > .pb-grid:not(.pb-width-full),
#main-content > .pb-flex-row:not(.pb-width-full),
#main-content > .pb-box:not(.pb-width-full),
.pb-preview-content > .pb-grid:not(.pb-width-full),
.pb-preview-content > .pb-flex-row:not(.pb-width-full),
.pb-preview-content > .pb-box:not(.pb-width-full) {
    --bs-gutter-x: 32px;
    width: calc(100% - var(--bs-gutter-x));
    max-width: calc(1240px - var(--bs-gutter-x));
    margin-left: auto;
    margin-right: auto;
}
#main-content > .pb-grid.pb-width-contained,
#main-content > .pb-flex-row.pb-width-contained,
#main-content > .pb-box.pb-width-contained,
.pb-preview-content > .pb-grid.pb-width-contained,
.pb-preview-content > .pb-flex-row.pb-width-contained,
.pb-preview-content > .pb-box.pb-width-contained { max-width: 1140px; }

@media (max-width: 767px) {
    .pb-grid { grid-template-columns: repeat(var(--pb-mobile-cols, 1), minmax(0, 1fr)); }
    .pb-grid-item { grid-column: span var(--pb-mobile-span, 1); }
    .pb-flex-row.pb-flex-stack { flex-direction: column; align-items: stretch; }
    .pb-flex-item { width: 100% !important; flex: 1 1 auto !important; }
}

/* 组件按端显隐：前台按视口判断；设计器预览会把下面的宽度媒体查询自动改写为容器查询 */
@media (min-width: 768px) {
    [data-device="mobile"] { display: none !important; }
}
@media (max-width: 767px) {
    [data-device="pc"] { display: none !important; }
}
