/* ==========================================================================
   赞恩科技 · 站点外框 site.css  v1.0
   官网 / 商城 共用：固定导航、移动端抽屉、页脚、Hero 通用骨架、AI 客服入口
   （设计 tokens 与组件全部来自 base.css，本文件只做布局外框）
   ========================================================================== */

/* --------------------------------------------------------------------------
   站点基底
   -------------------------------------------------------------------------- */
.site-body {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    padding-top: 0;
}
.site-main { flex: 1; }

/* 固定导航占位（无 hero 的内页使用） */
.page-offset { padding-top: calc(var(--header-h) + 8px); }

/* --------------------------------------------------------------------------
   01. 官网头部 Header
   -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: height var(--t-base) var(--ease-out), background-color var(--t-base) var(--ease-out),
        border-color var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out),
        backdrop-filter var(--t-base) var(--ease-out);
}
.site-header::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 1px;
    background: var(--grad-hairline);
    opacity: 0;
    transition: opacity var(--t-slow) var(--ease-out);
    pointer-events: none;
}
.site-header.is-scrolled {
    height: var(--header-h-scrolled);
    background: rgba(7, 11, 20, .72);
    backdrop-filter: saturate(180%) blur(22px);
    -webkit-backdrop-filter: saturate(180%) blur(22px);
    border-bottom-color: rgba(255, 255, 255, .06);
    box-shadow: 0 18px 44px -28px rgba(0, 0, 0, .9);
}
.site-header.is-scrolled::after { opacity: .55; }
.site-header.is-hidden { transform: translateY(-100%); }

.nav-shell {
    width: 100%;
    max-width: var(--container-wide);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.nav-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    height: 100%;
}

/* 品牌 */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex: none;
    color: var(--text);
}
.brand:hover { color: var(--text); }
.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(150deg, rgba(34, 211, 238, .18), rgba(139, 92, 246, .16));
    border: 1px solid rgba(34, 211, 238, .22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 6px 18px -8px rgba(34, 211, 238, .5);
    overflow: hidden;
    transition: transform var(--t-base) var(--ease-spring), box-shadow var(--t-base) var(--ease-out);
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.04); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 10px 26px -8px rgba(34, 211, 238, .7); }
.brand-mark img { width: 24px; height: 24px; object-fit: contain; filter: drop-shadow(0 1px 4px rgba(34, 211, 238, .55)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--text);
}
.brand-sub {
    font-size: 9px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-top: 3px;
    font-family: var(--font-display);
}
.brand-logo-img {
    height: 34px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 10px rgba(34, 211, 238, .25));
}

/* 桌面菜单 */
.nav-main { margin-left: auto; }
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
}
.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 13px;
    border-radius: var(--r-pill);
    color: var(--text-2);
    font-size: var(--fs-base);
    font-weight: 500;
    white-space: nowrap;
    transition: color var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out);
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav-link.is-active { color: var(--text); }
.nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    translate: -50% 0;
    width: 14px;
    height: 2px;
    border-radius: 2px;
    background: var(--grad-brand);
    box-shadow: 0 0 10px rgba(34, 211, 238, .8);
}
.nav-link--has-child::after {
    content: "";
    width: 5px; height: 5px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    rotate: 45deg;
    translate: 0 -1px;
    opacity: .55;
}
.nav-item { position: relative; }
.nav-item .submenu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    translate: -50% 0;
    min-width: 176px;
    padding: 8px;
    border-radius: var(--r-md);
    border: 1px solid var(--glass-border-strong);
    background: rgba(12, 19, 34, .96);
    backdrop-filter: var(--glass-blur);
    box-shadow: 0 26px 60px -20px rgba(0, 0, 0, .85);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all var(--t-fast) var(--ease-out);
}
.nav-item:hover .submenu, .nav-item:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a {
    display: flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: var(--r-xs);
    color: var(--text-2);
    font-size: var(--fs-sm);
    white-space: nowrap;
}
.submenu a:hover { background: var(--bg-hover); color: var(--text); }

/* 头部右侧操作 */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
    margin-left: 6px;
}
.nav-actions .btn { height: 38px; padding: 0 18px; font-size: var(--fs-sm); }

/* 汉堡按钮 */
.nav-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border-radius: var(--r-md);
    border: 1px solid var(--line-2);
    background: var(--glass-bg-light);
    color: var(--text);
}
.nav-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
    transition: transform var(--t-base) var(--ease-out), opacity var(--t-fast);
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* 滚动进度条 */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: calc(var(--z-header) + 2);
    height: 2px;
    width: 100%;
    transform-origin: left;
    transform: scaleX(var(--progress, 0));
    background: var(--grad-brand);
    box-shadow: 0 0 12px rgba(34, 211, 238, .6);
    pointer-events: none;
}

/* 移动端抽屉 */
.mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: var(--z-drawer);
    display: none;
    pointer-events: none;
}
.mobile-drawer.is-open { display: block; pointer-events: auto; }
.drawer-mask {
    position: absolute;
    inset: 0;
    background: rgba(3, 6, 13, .6);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity var(--t-base) var(--ease-out);
}
.mobile-drawer.is-open .drawer-mask { opacity: 1; }
.drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(86vw, 380px);
    display: flex;
    flex-direction: column;
    padding: 22px 22px 28px;
    background: linear-gradient(170deg, rgba(17, 26, 45, .98), rgba(7, 11, 20, .99));
    border-left: 1px solid var(--glass-border-strong);
    box-shadow: -30px 0 80px -30px rgba(0, 0, 0, .9);
    transform: translateX(100%);
    transition: transform .4s var(--ease-out);
    overflow-y: auto;
}
.mobile-drawer.is-open .drawer-panel { transform: none; }
.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}
.drawer-nav { display: flex; flex-direction: column; gap: 2px; }
.drawer-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 12px;
    border-radius: var(--r-sm);
    color: var(--text-2);
    font-size: var(--fs-md);
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.drawer-nav a:hover, .drawer-nav a.is-active { color: var(--text); background: var(--bg-hover); }
.drawer-nav a.is-active { color: var(--cyan-bright); }
.drawer-nav a::after { content: "↗"; font-size: 13px; color: var(--text-4); }
.drawer-foot { margin-top: auto; padding-top: 24px; display: grid; gap: 12px; }
.drawer-contact { font-size: var(--fs-sm); color: var(--text-3); line-height: 1.7; }
.drawer-contact strong { color: var(--text); font-weight: 600; display: block; font-size: var(--fs-md); }

/* --------------------------------------------------------------------------
   02. Hero 通用骨架（官网页面复用）
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: clamp(620px, 92vh, 940px);
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    padding-top: var(--header-h);
}
.hero--compact { min-height: clamp(480px, 68vh, 660px); }
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: var(--bg);
    overflow: hidden;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: .82;
    transform: scale(1.03);
}
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(7, 11, 20, .15) 0%, rgba(7, 11, 20, .7) 55%, var(--bg) 100%),
        linear-gradient(180deg, rgba(7, 11, 20, .55) 0%, rgba(7, 11, 20, .25) 40%, var(--bg) 96%);
}
.hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding: clamp(48px, 7vw, 96px) var(--gutter);
}
.hero-content { max-width: 820px; }
.hero-title {
    font-family: var(--font-display);
    font-size: var(--fs-display);
    line-height: 1.04;
    letter-spacing: var(--ls-tight);
    font-weight: 700;
    margin-top: var(--space-4);
}
.hero-sub {
    margin-top: var(--space-6);
    max-width: 620px;
    font-size: clamp(1rem, 1.3vw, 1.1875rem);
    line-height: 1.75;
    color: var(--text-2);
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: var(--space-8);
}
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(24px, 4vw, 56px);
    margin-top: clamp(32px, 5vw, 64px);
    padding-block-start: 28px;
    border-top: 1px solid var(--line);
    max-width: 720px;
}
.hero-stats .stat-value { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 26px;
    translate: -50% 0;
    z-index: 2;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-3);
    font-size: 10px;
    letter-spacing: .22em;
    text-transform: uppercase;
}
.hero-scroll::after {
    content: "";
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--cyan), transparent);
    animation: scroll-hint 2.2s var(--ease-in-out) infinite;
}
@keyframes scroll-hint {
    0%, 100% { opacity: .2; transform: scaleY(.5); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* 内页头部（非全屏 hero） */
.page-hero {
    position: relative;
    overflow: hidden;
    padding-top: calc(var(--header-h) + clamp(48px, 7vw, 96px));
    padding-bottom: clamp(40px, 5vw, 72px);
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(80% 120% at 85% 0%, rgba(139, 92, 246, .16), transparent 60%),
        radial-gradient(70% 120% at 10% 0%, rgba(34, 211, 238, .12), transparent 55%),
        var(--bg);
}
.page-hero-inner {
    position: relative;
    z-index: 1;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.page-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    line-height: var(--lh-tight);
    letter-spacing: var(--ls-tight);
    font-weight: 700;
    margin-top: var(--space-4);
}
.page-hero-desc {
    margin-top: var(--space-4);
    max-width: 64ch;
    color: var(--text-2);
    font-size: var(--fs-lg);
    line-height: 1.75;
}
.page-hero .breadcrumb { margin-bottom: var(--space-5); }

/* --------------------------------------------------------------------------
   03. 页脚 Footer（官网）
   -------------------------------------------------------------------------- */
.site-footer {
    position: relative;
    margin-top: auto;
    border-top: 1px solid var(--line);
    background:
        radial-gradient(90% 120% at 50% 0%, rgba(34, 211, 238, .06), transparent 60%),
        radial-gradient(70% 100% at 90% 100%, rgba(139, 92, 246, .08), transparent 55%),
        var(--bg-1);
    overflow: hidden;
}
.site-footer::before {
    content: "";
    position: absolute;
    top: -1px; left: 0; right: 0;
    height: 1px;
    background: var(--grad-hairline);
    opacity: .5;
}
.footer-main {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
    gap: clamp(32px, 5vw, 72px);
    padding-block: clamp(48px, 6vw, 84px) clamp(32px, 4vw, 56px);
}
.footer-brand { display: flex; flex-direction: column; gap: 20px; max-width: 360px; }
.footer-brand .brand { align-items: center; }
.footer-slogan {
    color: var(--text-3);
    font-size: var(--fs-base);
    line-height: 1.8;
}
.footer-contact-list { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-2);
    font-size: var(--fs-base);
    line-height: 1.6;
}
.footer-contact-item svg { width: 17px; height: 17px; color: var(--cyan); flex: none; margin-top: 3px; }
.footer-contact-item a { color: var(--text-2); }
.footer-contact-item a:hover { color: var(--cyan-bright); }
.footer-qr {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: var(--r-md);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .025);
    width: fit-content;
}
.footer-qr img { width: 76px; height: 76px; border-radius: 8px; object-fit: cover; }
.footer-qr-text { font-size: var(--fs-xs); color: var(--text-3); line-height: 1.6; }
.footer-qr-text strong { display: block; color: var(--text); font-size: var(--fs-sm); margin-bottom: 4px; }

.footer-col-title {
    font-family: var(--font-display);
    font-size: var(--fs-sm);
    font-weight: 650;
    letter-spacing: .06em;
    color: var(--text);
    margin-bottom: 18px;
    text-transform: uppercase;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
    color: var(--text-3);
    font-size: var(--fs-base);
    width: fit-content;
    transition: color var(--t-fast), transform var(--t-fast) var(--ease-out);
}
.footer-links a:hover { color: var(--cyan-bright); transform: translateX(3px); }

.footer-bottom {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--line);
    padding-block: 22px 26px;
}
.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 28px;
}
.footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    color: var(--text-4);
    font-size: var(--fs-sm);
    line-height: 1.7;
}
.footer-legal a { color: var(--text-3); }
.footer-legal a:hover { color: var(--cyan-bright); }
.footer-legal .sep { color: var(--text-4); opacity: .5; }
.footer-links-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    font-size: var(--fs-sm);
}
.footer-links-inline a, .footer-links-inline button {
    color: var(--text-3);
    font-size: var(--fs-sm);
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: color var(--t-fast);
}
.footer-links-inline a:hover, .footer-links-inline button:hover { color: var(--cyan-bright); }
.footer-copy { color: var(--text-4); font-size: var(--fs-sm); }
.footer-wordmark {
    position: absolute;
    left: 50%;
    bottom: -2.2vw;
    translate: -50% 0;
    z-index: 0;
    font-family: var(--font-display);
    font-size: clamp(64px, 14vw, 220px);
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    user-select: none;
}

/* 商城页脚简化版 */
.footer--mall .footer-main { grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); }
.footer-help { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.footer-help-title { font-size: var(--fs-xs); color: var(--text-4); margin-bottom: 8px; letter-spacing: .06em; text-transform: uppercase; }
.footer-help-list { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer-help-list a { font-size: var(--fs-sm); color: var(--text-3); }
.footer-help-list a:hover { color: var(--cyan-bright); }

/* --------------------------------------------------------------------------
   04. 商城头部 Mall Header
   -------------------------------------------------------------------------- */
.mall-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    height: auto;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 11, 20, .82);
    backdrop-filter: saturate(180%) blur(22px);
    -webkit-backdrop-filter: saturate(180%) blur(22px);
}
.mall-header::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 1px;
    background: var(--grad-hairline);
    opacity: .4;
    pointer-events: none;
}
.mall-header-top {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 70px;
    max-width: var(--container-wide);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.mall-search {
    flex: 1;
    max-width: 560px;
    margin-inline: auto;
}
.mall-search-wrap { position: relative; display: flex; align-items: center; }
.mall-search-wrap input {
    width: 100%;
    height: 42px;
    padding: 0 48px 0 42px;
    border-radius: var(--r-pill);
    border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, .045);
    color: var(--text);
    font-size: var(--fs-base);
    transition: all var(--t-fast) var(--ease-out);
}
.mall-search-wrap input::placeholder { color: var(--text-4); }
.mall-search-wrap input:focus {
    outline: none;
    border-color: var(--accent-line);
    background: rgba(255, 255, 255, .07);
    box-shadow: var(--ring);
}
.mall-search-wrap .search-ico { position: absolute; left: 15px; color: var(--text-3); display: inline-flex; }
.mall-search-wrap .search-ico svg { width: 17px; height: 17px; }
.mall-search-wrap .search-btn {
    position: absolute;
    right: 5px;
    height: 32px;
    padding: 0 16px;
    border-radius: var(--r-pill);
    background: var(--grad-cta);
    color: var(--text-inverse);
    font-size: var(--fs-sm);
    font-weight: 650;
}
.mall-search-wrap .search-btn:hover { filter: brightness(1.06); }
.mall-header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: none;
}
.mall-action {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 58px;
    height: 54px;
    padding: 0 8px;
    border-radius: var(--r-sm);
    color: var(--text-3);
    font-size: 11px;
    transition: color var(--t-fast), background var(--t-fast);
}
.mall-action:hover { color: var(--cyan-bright); background: var(--bg-hover); }
.mall-action svg { width: 20px; height: 20px; }
.mall-action .mall-badge {
    position: absolute;
    top: 6px;
    right: 8px;
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    border-radius: var(--r-pill);
    background: var(--grad-danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
    box-shadow: 0 3px 10px -2px rgba(251, 113, 133, .7);
}
.mall-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 46px;
    max-width: var(--container-wide);
    margin-inline: auto;
    padding-inline: var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
}
.mall-nav::-webkit-scrollbar { display: none; }
.mall-nav a {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 14px;
    border-radius: var(--r-pill);
    color: var(--text-2);
    font-size: var(--fs-sm);
    font-weight: 500;
    white-space: nowrap;
}
.mall-nav a:hover { color: var(--text); background: var(--bg-hover); }
.mall-nav a.is-active { color: var(--text-inverse); background: var(--grad-cta); font-weight: 650; }
.mall-nav .mall-nav-sep { width: 1px; height: 14px; background: var(--line-2); margin-inline: 6px; }
.mall-nav .mall-nav-coupon { color: var(--amber); }

/* 商城页面容器 */
.mall-main {
    max-width: var(--container-wide);
    margin-inline: auto;
    padding: 28px var(--gutter) clamp(56px, 7vw, 96px);
    min-height: 60vh;
}

/* --------------------------------------------------------------------------
   05. AI 客服入口（占位样式，前端队友实现交互）
   -------------------------------------------------------------------------- */
/* 回到顶部 */
.back-top {
    position: fixed;
    left: clamp(16px, 2.6vw, 32px);
    bottom: clamp(16px, 2.6vw, 32px);
    z-index: 420;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    background: rgba(10, 16, 29, .8);
    backdrop-filter: blur(14px);
    color: var(--text-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--t-base) var(--ease-out);
}
.back-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { color: var(--cyan-bright); border-color: var(--accent-line); box-shadow: var(--shadow-glow); }
.back-top svg { width: 18px; height: 18px; }

.ai-chat-fab {
    position: fixed;
    right: clamp(16px, 2.6vw, 32px);
    bottom: clamp(16px, 2.6vw, 32px);
    z-index: 420;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid rgba(34, 211, 238, .35);
    background: linear-gradient(150deg, rgba(34, 211, 238, .22), rgba(139, 92, 246, .25)), rgba(10, 16, 29, .9);
    backdrop-filter: blur(16px);
    color: var(--cyan-bright);
    box-shadow: 0 18px 46px -18px rgba(34, 211, 238, .6);
    transition: transform var(--t-base) var(--ease-spring), box-shadow var(--t-base);
}
.ai-chat-fab:hover { transform: translateY(-4px) scale(1.04); box-shadow: 0 24px 60px -18px rgba(34, 211, 238, .8); }
.ai-chat-fab svg { width: 24px; height: 24px; }
.ai-chat-panel {
    position: fixed;
    right: clamp(16px, 2.6vw, 32px);
    bottom: calc(clamp(16px, 2.6vw, 32px) + 70px);
    z-index: 421;
    width: min(380px, calc(100vw - 32px));
    height: min(560px, calc(100dvh - 140px));
    display: none;
    flex-direction: column;
    border-radius: var(--r-xl);
    border: 1px solid var(--glass-border-strong);
    background: linear-gradient(170deg, rgba(17, 26, 45, .98), rgba(7, 11, 20, .99));
    box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9);
    overflow: hidden;
}
.ai-chat-panel.is-open { display: flex; }

/* --------------------------------------------------------------------------
   06. 通用区块/内容排版
   -------------------------------------------------------------------------- */
.prose { color: var(--text-2); font-size: var(--fs-md); line-height: 1.85; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 { color: var(--text); margin-top: 1.8em; }
.prose h2 { font-size: var(--fs-2xl); }
.prose h3 { font-size: var(--fs-xl); }
.prose a { color: var(--cyan-bright); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4em; display: grid; gap: .5em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose img { border-radius: var(--r-md); margin-block: 1.4em; }
.prose blockquote {
    padding: 14px 20px;
    border-left: 2px solid var(--cyan);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    background: rgba(34, 211, 238, .06);
    color: var(--text-2);
}
.prose code {
    font-family: var(--font-mono);
    font-size: .9em;
    padding: 2px 6px;
    border-radius: 5px;
    background: rgba(255, 255, 255, .07);
    color: var(--cyan-bright);
}
.prose pre {
    padding: 18px 20px;
    border-radius: var(--r-md);
    background: var(--bg-sunken);
    border: 1px solid var(--line);
    overflow-x: auto;
}
.prose pre code { background: none; padding: 0; color: var(--text-2); }
.prose table { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.prose th, .prose td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; font-size: var(--fs-sm); }
.prose th { background: rgba(255, 255, 255, .04); color: var(--text); }

/* 通用页面导航条（内页二级导航 / 锚点） */
.subnav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 16px;
    border-radius: var(--r-pill);
    border: 1px solid var(--line);
    color: var(--text-2);
    font-size: var(--fs-sm);
    white-space: nowrap;
}
.subnav a:hover { border-color: var(--accent-line); color: var(--text); background: var(--accent-soft); }
.subnav a.is-active { color: var(--text-inverse); background: var(--grad-cta); border-color: transparent; font-weight: 650; }

/* CTA 区 */
.cta-band {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-2xl);
    border: 1px solid var(--glass-border-strong);
    background:
        radial-gradient(90% 160% at 12% 0%, rgba(34, 211, 238, .22), transparent 60%),
        radial-gradient(80% 160% at 92% 100%, rgba(139, 92, 246, .26), transparent 60%),
        linear-gradient(160deg, rgba(19, 28, 48, .92), rgba(8, 13, 24, .96));
    padding: clamp(36px, 5vw, 72px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(24px, 4vw, 56px);
    flex-wrap: wrap;
    box-shadow: var(--shadow-glass);
}
.cta-band-title {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    line-height: 1.15;
    letter-spacing: var(--ls-tight);
    font-weight: 700;
}
.cta-band-desc { margin-top: 12px; color: var(--text-2); font-size: var(--fs-lg); max-width: 56ch; }

/* --------------------------------------------------------------------------
   07. 响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
    .nav-link { padding: 0 10px; font-size: var(--fs-sm); }
    .brand-sub { display: none; }
}
@media (max-width: 1024px) {
    .nav-main { display: none; }
    .nav-toggle { display: flex; }
    .nav-actions .nav-login { display: none; }
    .nav-actions .nav-cta { display: none; }
    .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-brand { grid-column: 1 / -1; max-width: none; }
    .footer--mall .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mall-header-top { height: 60px; gap: 10px; }
    .mall-search { order: 3; flex-basis: 100%; max-width: none; margin: 0; display: none; }
    .mall-header.has-search .mall-search { display: flex; }
    .mall-action { min-width: 46px; height: 46px; font-size: 10px; }
    .mall-action .label { display: none; }
    .mall-nav { height: 42px; }
}
@media (max-width: 768px) {
    .hero { min-height: clamp(560px, 88vh, 760px); }
    .hero-title { font-size: clamp(2.1rem, 9vw, 3.2rem); }
    .hero-actions .btn { flex: 1 1 auto; }
    .hero-scroll { display: none; }
    .footer-main { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 40px 28px; }
    .footer-wordmark { display: none; }
    .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
    .cta-band { padding: 28px 22px; }
    .cta-band .btn { width: 100%; }
    .page-hero { padding-top: calc(var(--header-h) + 36px); }
}


/* compliance badges in footer */
.footer-legal a.footer-compliance-link { display: inline-flex; align-items: center; gap: 4px; }
.footer-badge { width: 14px; height: 14px; display: inline-block; object-fit: contain; vertical-align: middle; flex: none; }


/* footer bottom: center legal + inline links */
.footer-bottom .footer-bottom-inner {
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    gap: 10px 22px !important;
}
.footer-bottom .footer-legal,
.footer-bottom .footer-links-inline {
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
}
.footer-bottom .footer-legal { gap: 7px 16px !important; }
.footer-bottom .footer-links-inline { gap: 7px 18px !important; }
@media (max-width: 768px) {
    .footer-bottom .footer-bottom-inner {
        align-items: center !important;
        text-align: center !important;
    }
    .footer-bottom .footer-legal,
    .footer-bottom .footer-links-inline {
        width: 100% !important;
        justify-content: center !important;
    }
}
