:root {
    --bg-base: #f0f4f8;
    --card-bg: #ffffff;
    --surface-2: #f8fafc;
    --heading: #0f172a;
    --text-main: #1e293b;
    --text-sub: #64748b;
    --brand-blue: #2563eb;
    --brand-deep: #1d4ed8;
    --brand-light: #eff6ff;
    --brand-cyan: #06b6d4;
    --border-color: #e2e8f0;
    --border-radius-lg: 20px;
    --border-radius-md: 12px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, .05), 0 2px 4px -1px rgba(0, 0, 0, .03);
    --shadow-md: 0 10px 25px -5px rgba(37, 99, 235, .15), 0 8px 10px -6px rgba(37, 99, 235, .1);
    --page-bg: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 100%);
    --glow: radial-gradient(circle at top right, #e0e7ff 0%, transparent 42%);
    --glass-bg: rgba(255, 255, 255, .72);
    --glass-border: rgba(255, 255, 255, .6);
    --nav-bg: rgba(255, 255, 255, .92);
    --skeleton: #e8eef6;
    --ok: #10b981;
    --warn: #f59e0b;
    --fail: #ef4444;
}

html[data-theme="dark"] {
    --bg-base: #0b1220;
    --card-bg: #121b2c;
    --surface-2: #16202f;
    --heading: #f1f5f9;
    --text-main: #dbe4f0;
    --text-sub: #8fa1b8;
    --brand-blue: #3b82f6;
    --brand-deep: #2563eb;
    --brand-light: #16243c;
    --brand-cyan: #22d3ee;
    --border-color: #22304a;
    --shadow-sm: 0 4px 8px -1px rgba(0, 0, 0, .45), 0 2px 4px -1px rgba(0, 0, 0, .3);
    --shadow-md: 0 10px 28px -6px rgba(0, 0, 0, .6), 0 8px 12px -6px rgba(0, 0, 0, .4);
    --page-bg: linear-gradient(180deg, #070d18 0%, #0b1220 100%);
    --glow: radial-gradient(circle at top right, #12294d 0%, transparent 46%);
    --glass-bg: rgba(18, 27, 44, .72);
    --glass-border: rgba(255, 255, 255, .06);
    --nav-bg: rgba(11, 18, 32, .92);
    --skeleton: #1b2739;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    background: var(--page-bg);
    background-attachment: fixed;
    color: var(--text-main);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: background-color .3s ease, color .3s ease;
}

a { text-decoration: none; color: inherit; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input { font: inherit; }

/* ---------- 手机容器 ---------- */
.app-container {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    position: relative;
    padding-top: 15px;
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
    background-color: var(--bg-base);
    background-image: var(--glow);
    overflow-x: hidden;
    transition: background-color .3s ease;
}

/* ---------- 头部 ---------- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px 20px;
    gap: 10px;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--heading);
    letter-spacing: .5px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.logo-mark {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
    border-radius: 4px 10px 4px 10px;
    transform: rotate(45deg);
    box-shadow: 0 2px 8px rgba(37, 99, 235, .4);
    flex: 0 0 auto;
}

.head-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.icon-btn,
.menu-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--card-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    color: var(--brand-blue);
    transition: transform .2s ease, box-shadow .2s ease, background .25s ease;
    -webkit-tap-highlight-color: transparent;
}
.icon-btn:active,
.menu-btn:active { transform: scale(.94); }

.menu-btn { flex-direction: column; gap: 5px; }
.menu-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--brand-blue);
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
}
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.theme-toggle svg { width: 20px; height: 20px; display: block; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- 公告跑马灯 ---------- */
.marquee-wrapper {
    background: rgba(37, 99, 235, .05);
    border: 1px solid rgba(37, 99, 235, .1);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin: 0 20px 20px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.marquee-tag {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-deep));
    padding: 3px 9px;
    border-radius: 50px;
    letter-spacing: .5px;
}
.marquee-tag::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
    animation: tag-blink 1.6s ease-in-out infinite;
}
@keyframes tag-blink { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }

.marquee-container {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8px, #000 calc(100% - 8px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 8px, #000 calc(100% - 8px), transparent 100%);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 55s linear infinite;
    will-change: transform;
}

.marquee-content {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 500;
    color: var(--brand-blue);
    white-space: nowrap;
    padding-right: 48px;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.marquee-wrapper:hover .marquee-track,
.marquee-wrapper:active .marquee-track { animation-play-state: paused; }

/* ---------- 主体 ---------- */
.main-content { padding: 0 20px; }

.hero-section {
    display: grid;
    grid-template-columns: 1fr 118px;
    gap: 16px;
    margin-bottom: 20px;
    scroll-margin-top: 16px;
}

.hero-card {
    border-radius: var(--border-radius-lg);
    padding: 22px 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    transition: transform .22s ease, box-shadow .22s ease;
    -webkit-tap-highlight-color: transparent;
}
.hero-card:active { transform: scale(.985); }

.hero-card-dark {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-deep));
    color: #fff;
    box-shadow: var(--shadow-md);
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}
.hero-card-dark::after {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    right: -46px;
    top: -56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    pointer-events: none;
}
.hero-card-dark h2 { font-size: 23px; font-weight: 700; letter-spacing: .5px; }
.hero-card-dark p { font-size: 12.5px; color: rgba(255, 255, 255, .82); line-height: 1.5; }

.hero-link-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, .95);
    margin-top: 2px;
}
.hero-link-hint svg { transition: transform .22s ease; }
.hero-card-dark:hover .hero-link-hint svg { transform: translateX(3px); }

.hero-card-light {
    background: var(--card-bg);
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-open {
    background: var(--brand-blue);
    color: #fff;
    padding: 11px 26px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37, 99, 235, .3);
    transition: transform .2s ease, background .2s ease;
    white-space: nowrap;
}
.btn-open:active { transform: scale(.95); }

/* ---------- 功能导航 ---------- */
.nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 22px 8px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 11px;
    font-size: 12.5px;
    color: var(--text-main);
    font-weight: 600;
    -webkit-tap-highlight-color: transparent;
}

.icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--brand-light);
    color: var(--brand-blue);
    transition: background .25s ease, color .25s ease, transform .25s ease;
}
.nav-item:hover .icon-wrap,
.nav-item:active .icon-wrap {
    background: var(--brand-blue);
    color: #fff;
    transform: translateY(-2px);
}
.icon-wrap svg { width: 21px; height: 21px; display: block; }

/* ---------- 运行时间 ---------- */
.runtime-section {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .03);
}

.runtime-label {
    font-size: 13.5px;
    color: var(--text-main);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: var(--brand-blue);
    border-radius: 50%;
    flex: 0 0 auto;
    box-shadow: 0 0 0 0 rgba(37, 99, 235, .7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%   { transform: scale(.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, .7); }
    70%  { transform: scale(1);   box-shadow: 0 0 0 6px rgba(37, 99, 235, 0); }
    100% { transform: scale(.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.runtime-clock {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-deep));
    padding: 8px 14px;
    border-radius: 10px;
    letter-spacing: .5px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, .3);
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    white-space: nowrap;
}

/* ---------- 通用卡片区 ---------- */
.card-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    scroll-margin-top: 16px;
}

.sec-eng {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--brand-blue);
    text-transform: uppercase;
    margin-bottom: 9px;
}
.sec-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--heading);
    letter-spacing: .3px;
    margin-bottom: 8px;
}
.sec-desc { font-size: 13px; color: var(--text-sub); line-height: 1.65; }

/* ---------- 订单查询 ---------- */
.query-form { margin-top: 18px; }

.field { display: flex; gap: 10px; }

.field input {
    flex: 1 1 auto;
    min-width: 0;
    height: 46px;
    padding: 0 14px;
    border-radius: 12px;
    background: var(--surface-2);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .25s ease;
}
.field input::placeholder { color: var(--text-sub); }
.field input:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
}

.btn-primary {
    flex: 0 0 auto;
    height: 46px;
    padding: 0 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-deep));
    color: #fff;
    font-size: 14.5px;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(37, 99, 235, .28);
    transition: transform .18s ease, opacity .18s ease;
    white-space: nowrap;
}
.btn-primary:active { transform: scale(.97); }
.btn-primary:disabled { opacity: .6; }

.query-hint { margin-top: 12px; font-size: 12.5px; color: var(--text-sub); }
.link-btn { color: var(--brand-blue); font-weight: 700; font-size: 12.5px; padding: 0 2px; }

.query-result { margin-top: 16px; }
.query-result[hidden] { display: none; }

.result-card {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--surface-2);
    overflow: hidden;
    animation: fade-up .28s ease;
}
@keyframes fade-up {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.result-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px dashed var(--border-color);
}
.result-no { font-size: 13px; font-weight: 700; color: var(--heading); word-break: break-all; }
.status {
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    white-space: nowrap;
    flex: 0 0 auto;
}
.status-ok { background: rgba(16, 185, 129, .13); color: #0d9c72; }
.status-wait { background: rgba(245, 158, 11, .14); color: #b3720a; }
.status-fail { background: rgba(239, 68, 68, .13); color: #d33; }
html[data-theme="dark"] .status-ok { color: #34d399; }
html[data-theme="dark"] .status-wait { color: #fbbf24; }
html[data-theme="dark"] .status-fail { color: #f87171; }

.result-rows { padding: 4px 16px 12px; }
.result-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--border-color);
}
.result-row:last-child { border-bottom: 0; }
.result-row .k { color: var(--text-sub); flex: 0 0 auto; }
.result-row .v { color: var(--text-main); font-weight: 600; text-align: right; word-break: break-all; }

.code-box {
    margin: 12px 16px 16px;
    background: var(--card-bg);
    border: 1px dashed var(--brand-blue);
    border-radius: 12px;
    padding: 12px 14px;
}
.code-label { font-size: 11.5px; color: var(--text-sub); margin-bottom: 8px; font-weight: 600; }
.code-list { display: flex; flex-direction: column; gap: 8px; }
.code-item { display: flex; align-items: center; gap: 10px; }
.code-item .code-val { flex: 1 1 auto; min-width: 0; }
.code-item .mini-btn { flex: 0 0 auto; padding: 5px 10px; }
.code-val {
    font-family: "SFMono-Regular", Consolas, Menlo, monospace;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--heading);
    letter-spacing: .6px;
    word-break: break-all;
    user-select: all;
}
.code-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* ---------- 查单需要人机验证时的引导 ---------- */
.guide-card { padding: 16px; }
.guide-head { display: flex; gap: 12px; align-items: flex-start; }
.guide-ico {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-light);
    color: var(--brand-blue);
}
.guide-ico svg { width: 19px; height: 19px; }
.guide-txt strong { display: block; font-size: 14.5px; color: var(--heading); margin-bottom: 6px; }
.guide-txt p { font-size: 12.8px; color: var(--text-sub); line-height: 1.72; }
.guide-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; align-items: center; }
.guide-actions .btn-primary { height: 40px; padding: 0 16px; font-size: 13.5px; border-radius: 10px; }
.guide-tip {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-color);
    font-size: 11.5px;
    color: var(--text-sub);
    line-height: 1.7;
}
.inline-query {
    margin-top: 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: var(--card-bg);
}
.inline-query[hidden] { display: none; }
.inline-query-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    font-size: 12px;
    color: var(--text-sub);
    background: var(--surface-2);
    border-bottom: 1px solid var(--border-color);
}
.inline-query-bar a { color: var(--brand-blue); font-weight: 700; flex: 0 0 auto; }
.inline-query iframe { display: block; width: 100%; height: 620px; border: 0; background: #fff; }
@media (max-width: 480px) {
    .inline-query iframe { height: 76vh; min-height: 520px; }
}
.result-list { display: flex; flex-direction: column; gap: 14px; }

.mini-btn {
    font-size: 12px;
    font-weight: 700;
    padding: 7px 13px;
    border-radius: 8px;
    background: var(--brand-light);
    color: var(--brand-blue);
    border: 1px solid transparent;
    transition: transform .18s ease;
}
.mini-btn:active { transform: scale(.96); }
.mini-btn.ghost { background: transparent; border-color: var(--border-color); color: var(--text-sub); }

.result-plain {
    padding: 22px 16px;
    text-align: center;
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.7;
}
.result-plain strong { display: block; color: var(--heading); font-size: 14.5px; margin-bottom: 6px; }

.skeleton { padding: 16px; }
.sk-line {
    height: 12px;
    border-radius: 6px;
    background: var(--skeleton);
    margin-bottom: 12px;
    animation: sk 1.2s ease-in-out infinite;
}
.sk-line:nth-child(1) { width: 42%; }
.sk-line:nth-child(2) { width: 78%; }
.sk-line:nth-child(3) { width: 62%; }
.sk-line:nth-child(4) { width: 70%; margin-bottom: 0; }
@keyframes sk { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

.demo-flag {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--text-sub);
    margin-top: 10px;
}
.demo-flag::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--warn);
    flex: 0 0 auto;
}

/* ---------- 商户入驻 ---------- */
.benefit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 18px;
}
.benefit {
    background: var(--surface-2);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px;
}
.b-ico {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--brand-light);
    color: var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
.b-ico svg { width: 18px; height: 18px; }
.benefit h4 { font-size: 13.5px; font-weight: 700; color: var(--heading); margin-bottom: 6px; }
.benefit p { font-size: 11.5px; color: var(--text-sub); line-height: 1.6; }

.flow-chips {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.flow-chips::-webkit-scrollbar { display: none; }
.chip {
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-blue);
    background: var(--brand-light);
    padding: 7px 12px;
    border-radius: 50px;
    white-space: nowrap;
    flex: 0 0 auto;
}
.chip-arrow { color: var(--text-sub); font-size: 11px; flex: 0 0 auto; }

.merchant-cta { display: flex; gap: 10px; margin-top: 18px; }
.btn-ghost {
    flex: 1 1 auto;
    height: 46px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-main);
    font-size: 14.5px;
    font-weight: 700;
    transition: transform .18s ease, background .2s ease;
}
.btn-ghost:active { transform: scale(.97); }
.merchant-cta .btn-primary { flex: 1 1 auto; padding: 0 12px; }

.note-line {
    margin-top: 14px;
    font-size: 12px;
    color: var(--text-sub);
    line-height: 1.75;
    background: var(--surface-2);
    border-radius: 10px;
    padding: 11px 13px;
}

/* ---------- 专业团队 ---------- */
.team-section { position: relative; overflow: hidden; }
.team-section::before {
    content: "";
    position: absolute;
    top: -70px;
    right: -60px;
    width: 190px;
    height: 190px;
    background: radial-gradient(circle, rgba(37, 99, 235, .16) 0%, transparent 70%);
    pointer-events: none;
}
.team-section > * { position: relative; }

.team-grid { display: grid; gap: 14px; margin-top: 20px; }

.team-card {
    position: relative;
    background: var(--surface-2);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 18px 16px 16px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}
.team-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan) 55%, transparent);
    opacity: .85;
}
.team-card:active { transform: scale(.995); }
.team-card:focus-within { border-color: rgba(37, 99, 235, .4); }

.tc-index {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
    color: var(--brand-blue);
    opacity: .1;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
    user-select: none;
}

.tc-head { display: flex; align-items: center; gap: 13px; }

.tc-avatar {
    position: relative;
    width: 60px;
    height: 60px;
    flex: 0 0 auto;
    border-radius: 50%;
    padding: 2px;
    line-height: 0;
    background: linear-gradient(140deg, #1d4ed8, #3b82f6 52%, #7dd3fc);
    box-shadow: 0 10px 20px -9px rgba(37, 99, 235, .62);
}
.tc-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 46%;
    background: #eaf1fa;
}
.tc-avatar::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(37, 99, 235, .22);
}
.tc-avatar-fin { background: linear-gradient(140deg, #1d4ed8, #3b82f6 52%, #93c5fd); }
.tc-avatar-cs { background: linear-gradient(140deg, #0e7490, #06b6d4 52%, #a5f3fc); }
html[data-theme="dark"] .tc-avatar {
    box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .75);
}
html[data-theme="dark"] .tc-avatar img { background: #1b2739; }
html[data-theme="dark"] .tc-avatar::after { border-color: rgba(125, 211, 252, .22); }

.tc-id { min-width: 0; }
.tc-name {
    font-size: 17px;
    font-weight: 800;
    color: var(--heading);
    letter-spacing: .6px;
    line-height: 1.2;
}
.tc-en {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.4px;
    color: var(--brand-blue);
    margin-top: 3px;
    opacity: .85;
}
.tc-role {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 7px;
    padding: 3px 9px;
    background: var(--brand-light);
    color: var(--brand-blue);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
}
.tc-role svg { width: 12px; height: 12px; flex: 0 0 auto; }

.tc-intro {
    margin-top: 14px;
    font-size: 12.5px;
    line-height: 1.72;
    color: var(--text-sub);
}

.tc-duties { list-style: none; margin-top: 12px; display: grid; gap: 7px; }
.tc-duties li {
    position: relative;
    padding-left: 16px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-main);
}
.tc-duties li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 6.5px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.tc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.tc-tags span {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-sub);
    background: var(--card-bg);
    border: 1px dashed var(--border-color);
    border-radius: 6px;
    padding: 3px 8px;
    line-height: 1.5;
}

.tc-more {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 12px;
    padding: 4px 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-blue);
    -webkit-tap-highlight-color: transparent;
}
.tc-more svg {
    width: 14px;
    height: 14px;
    transition: transform .25s ease;
}
.tc-more[aria-expanded="true"] svg { transform: rotate(180deg); }

.tc-detail {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-color);
}
.tc-detail[hidden] { display: none; }
.tc-detail p { font-size: 12px; line-height: 1.8; color: var(--text-sub); }
.tc-detail p + p { margin-top: 8px; }
.tc-detail.is-fading { animation: tcFade .28s ease both; }
@keyframes tcFade {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
}

.team-collab {
    margin-top: 16px;
    padding: 14px;
    background: var(--surface-2);
    border: 1px solid var(--border-color);
    border-radius: 14px;
}
.tc-collab-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;
    color: var(--brand-blue);
    text-transform: uppercase;
}
.tc-collab-flow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
}
.tc-collab-flow span {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-main);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 4px 10px;
}
.tc-collab-flow i {
    font-style: normal;
    font-size: 11px;
    color: var(--text-sub);
}
.team-collab p {
    margin-top: 10px;
    font-size: 11.5px;
    line-height: 1.75;
    color: var(--text-sub);
}

/* ---------- 三步购卡 ---------- */
.how-it-works {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 30px 22px 20px;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    scroll-margin-top: 16px;
}

.hiw-header { margin-bottom: 26px; }

.hiw-eng-title {
    font-size: 11px;
    color: var(--brand-blue);
    letter-spacing: 2px;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.hiw-title {
    font-size: 23px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--heading);
    letter-spacing: .3px;
}

.hiw-desc {
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.65;
}

.hiw-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hiw-step-card {
    background: var(--surface-2);
    border-radius: var(--border-radius-md);
    padding: 22px;
    border: 1px solid var(--border-color);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.hiw-step-card:hover {
    transform: translateY(-2px);
    border-color: var(--brand-blue);
    box-shadow: var(--shadow-sm);
}

.step-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.step-num { display: flex; flex-direction: column; gap: 4px; }
.step-num span:first-child {
    font-size: 11px;
    color: var(--text-sub);
    font-weight: 700;
    letter-spacing: 1px;
}
.step-num span:last-child {
    font-size: 27px;
    font-weight: 900;
    color: var(--brand-blue);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.step-badge {
    font-size: 12px;
    color: var(--brand-blue);
    background: var(--brand-light);
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 600;
    white-space: nowrap;
}

.step-content h3 {
    font-size: 17.5px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--heading);
}

.step-content p {
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.72;
}

.hiw-step-card:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 50%;
    width: 1px;
    height: 20px;
    background: var(--border-color);
    transform: translateX(-50%);
}

.copyright {
    text-align: center;
    font-size: 12.5px;
    color: var(--text-sub);
    margin-top: 26px;
    padding-bottom: 6px;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ---------- 底部锚点导航 ---------- */
.tabbar {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
    background: var(--nav-bg);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--border-color);
    z-index: 45;
    transition: background .3s ease;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 5px 0 3px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-sub);
    -webkit-tap-highlight-color: transparent;
    transition: color .2s ease;
}
.tab-ico {
    width: 32px;
    height: 26px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .22s ease, transform .22s ease;
}
.tab-ico svg { width: 19px; height: 19px; display: block; }
.tab-item.is-active { color: var(--brand-blue); }
.tab-item.is-active .tab-ico { background: var(--brand-light); transform: translateY(-1px); }

/* ---------- 回到顶部 ---------- */
.to-top {
    position: fixed;
    right: max(16px, calc(50% - 240px + 16px));
    bottom: calc(146px + env(safe-area-inset-bottom, 0px));
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    z-index: 46;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
    -webkit-tap-highlight-color: transparent;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 19px; height: 19px; }
.to-top:active { transform: scale(.93); }

/* ---------- 客服悬浮层 ---------- */
.chat-fab {
    position: fixed;
    right: max(16px, calc(50% - 240px + 16px));
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-deep));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .36);
    z-index: 46;
    transition: transform .2s ease, opacity .25s ease;
    -webkit-tap-highlight-color: transparent;
}
.chat-fab svg { width: 24px; height: 24px; }
.chat-fab:active { transform: scale(.93); }
.chat-fab .fab-dot {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #fff;
}

.chat-panel {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 14px);
    width: 100%;
    max-width: 480px;
    height: min(74vh, 570px);
    background: var(--card-bg);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -18px 44px rgba(15, 23, 42, .22);
    z-index: 60;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity .26s ease, transform .26s ease, visibility .26s ease;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    overflow: hidden;
}
.chat-panel.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.chat-head {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 15px 16px;
    border-bottom: 1px solid var(--border-color);
    flex: 0 0 auto;
}
.chat-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}
.chat-title { font-size: 14.5px; font-weight: 700; color: var(--heading); }
.chat-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: var(--text-sub);
    margin-top: 3px;
}
.chat-status i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    font-style: normal;
}
.chat-close {
    margin-left: auto;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--text-sub);
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.chat-body {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--surface-2);
}

.msg {
    max-width: 84%;
    padding: 10px 13px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.65;
    word-break: break-word;
    animation: fade-up .24s ease;
}
.msg-bot {
    align-self: flex-start;
    background: var(--card-bg);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 5px;
    box-shadow: var(--shadow-sm);
}
.msg-user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-deep));
    color: #fff;
    border-bottom-right-radius: 5px;
}
.msg-time {
    align-self: center;
    font-size: 10.5px;
    color: var(--text-sub);
    padding: 2px 0;
}

.chat-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 2px;
}
.quick-btn {
    font-size: 12px;
    font-weight: 600;
    color: var(--brand-blue);
    background: var(--brand-light);
    border: 1px solid transparent;
    padding: 7px 11px;
    border-radius: 50px;
    transition: transform .18s ease;
}
.quick-btn:active { transform: scale(.96); }

.typing { display: inline-flex; gap: 4px; align-items: center; }
.typing b {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--text-sub);
    animation: typing 1.1s infinite;
}
.typing b:nth-child(2) { animation-delay: .16s; }
.typing b:nth-child(3) { animation-delay: .32s; }
@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: .4; }
    30% { transform: translateY(-3px); opacity: 1; }
}

.chat-inputbar {
    flex: 0 0 auto;
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 10px 12px;
    border-top: 1px solid var(--border-color);
    background: var(--card-bg);
}
.chat-inputbar input {
    flex: 1 1 auto;
    min-width: 0;
    height: 40px;
    padding: 0 13px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background: var(--surface-2);
    color: var(--text-main);
    font-size: 13.5px;
    outline: none;
}
.chat-inputbar input::placeholder { color: var(--text-sub); }
.chat-inputbar input:focus { border-color: var(--brand-blue); }
.chat-send {
    flex: 0 0 auto;
    height: 40px;
    padding: 0 16px;
    border-radius: 50px;
    background: var(--brand-blue);
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
}
.chat-send:active { transform: scale(.96); }

/* ---------- 侧边菜单 ---------- */
.drawer-mask {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .38);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s ease, visibility .28s ease;
    z-index: 40;
}
.drawer-mask.is-open { opacity: 1; visibility: visible; }

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(74vw, 300px);
    background: var(--card-bg);
    z-index: 50;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.32, .72, 0, 1), background .3s ease;
    display: flex;
    flex-direction: column;
    padding: calc(18px + env(safe-area-inset-top, 0px)) 0 calc(24px + env(safe-area-inset-bottom, 0px));
    box-shadow: -12px 0 32px rgba(15, 23, 42, .12);
}
.drawer.is-open { transform: translateX(0); }

.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px 16px;
    border-bottom: 1px solid var(--border-color);
}
.drawer-head strong { font-size: 15px; color: var(--heading); }
.drawer-close {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--text-sub);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
}

.drawer-nav { padding: 12px 12px 0; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.drawer-nav a,
.drawer-nav button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 12px;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-main);
    text-align: left;
    transition: background .2s ease, color .2s ease;
}
.drawer-nav a:hover,
.drawer-nav a:active,
.drawer-nav button:hover,
.drawer-nav button:active { background: var(--brand-light); color: var(--brand-blue); }
.drawer-nav a::after {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 1.5px solid var(--text-sub);
    border-bottom: 1.5px solid var(--text-sub);
    transform: rotate(-45deg);
    flex: 0 0 auto;
    opacity: .7;
}
.drawer-foot {
    margin-top: auto;
    padding: 16px 24px 0;
    font-size: 11.5px;
    color: var(--text-sub);
    text-align: center;
    letter-spacing: .5px;
}

/* ---------- 减少动画偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .marquee-track { animation: none; transform: none; }
}

/* ---------- 小屏适配 ---------- */
@media (max-width: 360px) {
    .hero-section { grid-template-columns: 1fr 104px; gap: 12px; }
    .hero-card-dark h2 { font-size: 21px; }
    .hiw-step-card { padding: 18px; }
    .nav-item { font-size: 11.5px; }
    .icon-wrap { width: 40px; height: 40px; }
    .benefit-grid { gap: 10px; }
    .benefit { padding: 12px; }
    .tab-item { font-size: 10.5px; }
    .field input { font-size: 13.5px; }
    .btn-primary { padding: 0 16px; }
    .team-card { padding: 16px 13px 14px; }
    .tc-name { font-size: 16px; }
    .tc-avatar { width: 52px; height: 52px; }
    .tc-index { font-size: 30px; }
}
    .logo-img { height: 26px; width: auto; max-width: 120px; object-fit: contain; margin-right: 8px; }
    .site-records { margin-top: 8px; font-size: 11.5px; line-height: 1.7; color: var(--text-sub); text-align: center; word-break: break-all; }
    .drawer-foot .site-records { margin-top: 6px; text-align: left; }
    [data-theme="dark"] .site-records { color: #8fa3bf; }
