/* ==========================================================================
   富网 — base design system
   ========================================================================== */
:root {
    --paper: #f5f2e9;
    --paper-2: #ece7db;
    --paper-3: #e1dacb;
    --card: #fffcf5;
    --white: #fffdf8;
    --ink: #141712;
    --ink-soft: #30352c;
    --muted: #6e7368;
    --muted-2: #8d9187;
    --line: rgba(20, 23, 18, 0.13);
    --line-strong: rgba(20, 23, 18, 0.28);
    --orange: #ff5a36;
    --orange-soft: #ffb49e;
    --lime: #d8ff57;
    --violet: #c9c0ff;
    --blue: #afc6ff;
    --green: #2f6b4f;
    --red: #b93a2a;
    --amber: #a66a12;
    --dark: #11140f;
    --radius: 22px;
    --radius-lg: 32px;
    --radius-sm: 12px;
    --shadow: 0 26px 70px -34px rgba(20, 23, 18, 0.4);
    --shadow-soft: 0 14px 40px -24px rgba(20, 23, 18, 0.3);
    --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
    --serif: "Songti SC", "STSong", "Noto Serif SC", "SimSun", Georgia, serif;
    --mono: "SFMono-Regular", "Cascadia Code", Consolas, "Liberation Mono", monospace;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
body.chat-open, body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
[hidden] { display: none !important; }

.container { width: min(var(--container), calc(100% - 64px)); margin-inline: auto; }
.container--narrow { width: min(900px, calc(100% - 64px)); margin-inline: auto; }
.site-main { position: relative; z-index: 2; min-height: 60vh; }
.page-grain {
    position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0.16;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}
.skip-link {
    position: fixed; top: -100px; left: 20px; z-index: 999; background: var(--ink); color: var(--paper);
    padding: 12px 18px; border-radius: 999px; transition: top .2s;
}
.skip-link:focus { top: 16px; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.icon { flex: 0 0 auto; }
.text-link {
    display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px;
    border-bottom: 1px solid var(--line-strong); padding-bottom: 3px; transition: all .2s;
}
.text-link:hover { color: var(--orange); border-color: var(--orange); gap: 12px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono);
    font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 600;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .55; }
.eyebrow--light { color: rgba(255, 253, 248, 0.64); }
.live-dot {
    display: inline-block; width: 6px; height: 6px; background: var(--lime); border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(216, 255, 87, 0.16); animation: pulse 2.4s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* buttons */
.btn {
    --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-border: var(--ink);
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 48px; padding: 0 22px; border: 1px solid var(--btn-border); border-radius: 999px;
    background: var(--btn-bg); color: var(--btn-fg); font-size: 14px; font-weight: 700;
    letter-spacing: -0.01em; white-space: nowrap; transition: all .28s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -16px rgba(20,23,18,.55); }
.btn:active { transform: translateY(0); }
.btn .icon { transition: transform .28s var(--ease); }
.btn:hover .icon { transform: translateX(2px); }
.btn-primary { --btn-bg: var(--ink); --btn-fg: var(--paper); }
.btn-primary:hover { --btn-bg: var(--orange); --btn-border: var(--orange); }
.btn-dark { --btn-bg: var(--ink); --btn-fg: var(--paper); }
.btn-light { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-border: var(--paper); }
.btn-light:hover { --btn-bg: var(--lime); --btn-border: var(--lime); }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--ink); --btn-border: var(--line-strong); }
.btn-outline:hover { --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-border: var(--ink); }
.btn-outline-light { --btn-bg: transparent; --btn-fg: var(--paper); --btn-border: rgba(255,253,248,.32); }
.btn-outline-light:hover { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-border: var(--paper); }
.btn-quiet { --btn-bg: transparent; --btn-fg: var(--ink); --btn-border: transparent; }
.btn-quiet:hover { --btn-bg: rgba(20,23,18,.06); box-shadow: none; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 13px; gap: 7px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-icon {
    display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
    border-radius: 50%; background: rgba(255,255,255,.14);
}
.btn-outline .btn-icon { background: rgba(20,23,18,.07); }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.icon-btn {
    display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
    border: 0; background: transparent; border-radius: 50%; transition: background .2s;
}
.icon-btn:hover { background: rgba(20,23,18,.08); }

/* chips */
.chip {
    display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 15px;
    border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; font-weight: 600;
    color: var(--ink-soft); background: transparent; transition: all .2s;
}
.chip:hover { border-color: var(--ink); background: rgba(255,255,255,.5); }
.chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip--ai { border-color: rgba(20,23,18,.2); background: var(--lime); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }

/* forms */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label, .field-label { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }
.field .hint { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.field input, .field textarea, .field select, .input {
    width: 100%; min-height: 48px; padding: 12px 15px; border: 1px solid var(--line);
    border-radius: 12px; background: rgba(255, 253, 248, .6); color: var(--ink);
    transition: border .2s, background .2s, box-shadow .2s; font-size: 14px;
}
.field textarea { min-height: 110px; resize: vertical; line-height: 1.65; }
.field input:focus, .field textarea:focus, .field select:focus, .input:focus {
    outline: none; border-color: var(--ink); background: var(--white); box-shadow: 0 0 0 3px rgba(20,23,18,.07);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field.has-error input, .field.has-error textarea { border-color: var(--red); }
.field-error { color: var(--red); font-size: 11.5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-check { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--muted); }
.form-check input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--ink); }
.form-note { font-size: 11.5px; color: var(--muted); }

/* header */
.site-header {
    position: sticky; top: 0; z-index: 60; background: rgba(245, 242, 233, 0.82);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid transparent; transition: border .25s, background .25s;
}
.site-header.is-scrolled { border-color: var(--line); background: rgba(245,242,233,.96); }
.header-inner { display: flex; align-items: center; gap: 26px; height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { width: 41px; height: 44px; display: block; filter: drop-shadow(0 6px 12px rgba(20,23,18,.12)); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-word { font-size: 21px; font-weight: 900; letter-spacing: -0.05em; display: inline-flex; align-items: baseline; gap: 2px; }
.brand-cn { font-size: 13px; font-weight: 700; letter-spacing: .01em; color: var(--ink-soft); }
.main-nav { display: flex; align-items: center; gap: 2px; margin-left: 14px; }
.nav-link { padding: 9px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); transition: background .2s, color .2s; }
.nav-link:hover { background: rgba(20,23,18,.055); }
.nav-link.is-active { background: var(--ink); color: var(--paper); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.tour-trigger { font-size: 12.5px; height: 36px; padding: 0 13px; }
.tour-trigger .icon { color: var(--orange); }
.cart-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; transition: background .2s; }
.cart-link:hover { background: rgba(20,23,18,.06); }
.cart-count {
    position: absolute; top: 1px; right: -1px; min-width: 17px; height: 17px; border-radius: 999px;
    background: var(--paper-3); color: var(--ink); font-size: 9px; font-weight: 800;
    display: flex; align-items: center; justify-content: center; padding: 0 4px; border: 2px solid var(--paper);
}
.cart-count.has-items { background: var(--orange); color: #fff; }
.login-link { font-size: 13px; font-weight: 700; padding: 0 8px; }
.header-cta { height: 40px; font-size: 12.5px; padding: 0 16px; }
.user-menu { position: relative; }
.user-summary {
    display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer;
    padding: 4px 8px 4px 4px; border-radius: 999px; transition: background .2s;
}
.user-summary::-webkit-details-marker { display: none; }
.user-summary:hover { background: rgba(20,23,18,.055); }
.user-name { font-size: 12.5px; font-weight: 700; max-width: 78px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar {
    display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
    border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 800; letter-spacing: .02em;
}
.avatar--sm { width: 30px; height: 30px; font-size: 10px; background: var(--orange); color: #fff; }
.user-popover {
    position: absolute; right: 0; top: calc(100% + 12px); width: 236px; background: var(--white);
    border: 1px solid var(--line); border-radius: 18px; padding: 8px; box-shadow: var(--shadow);
    animation: fadeUp .2s var(--ease);
}
.user-popover::before { content: ""; position: absolute; top: -7px; right: 22px; width: 12px; height: 12px; background: var(--white); border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.user-popover__head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: flex; flex-direction: column; }
.user-popover__head strong { font-size: 13px; }
.user-popover__head span { font-size: 10.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.user-popover a, .user-popover__logout {
    display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 10px;
    font-size: 12.5px; font-weight: 600; color: var(--ink-soft); width: 100%; border: 0; background: transparent; text-align: left;
}
.user-popover a:hover, .user-popover__logout:hover { background: var(--paper); color: var(--ink); }
.user-popover form { margin: 0; }
.user-popover__logout { color: var(--red); }
.mobile-toggle { display: none; width: 38px; height: 38px; border: 0; background: transparent; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.mobile-toggle span { display: block; width: 20px; height: 1.5px; background: var(--ink); transition: transform .2s; }
.mobile-menu {
    position: fixed; inset: 0; z-index: 100; background: var(--paper); padding: 24px;
    display: flex; flex-direction: column; transform: translateY(-100%); transition: transform .45s var(--ease);
    visibility: hidden;
}
.mobile-menu.is-open { transform: none; visibility: visible; }
.mobile-menu__head { display: flex; align-items: center; justify-content: space-between; }
.mobile-menu__nav { display: flex; flex-direction: column; margin-top: 40px; }
.mobile-menu__nav a { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 25px; font-weight: 700; letter-spacing: -0.04em; }
.mobile-menu__nav a .icon { margin-left: auto; color: var(--muted); }
.mobile-menu__nav a.is-active { color: var(--orange); }
.mobile-menu__index { font-family: var(--mono); font-size: 10px; color: var(--muted); width: 24px; }
.mobile-menu__foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.mobile-menu__foot p { text-align: center; font-size: 11px; color: var(--muted); margin-top: 8px; }

/* footer */
.site-footer { background: var(--ink); color: var(--paper); padding: 0 0 28px; position: relative; z-index: 2; margin-top: 0; }
.site-footer .container { padding-top: 64px; }
.footer-top { display: grid; grid-template-columns: 1.1fr 1.6fr; gap: 60px; padding-bottom: 50px; }
.brand--footer .brand-cn { color: rgba(245,242,233,.72); }
.footer-tagline { font-size: 26px; line-height: 1.25; letter-spacing: -0.04em; font-weight: 600; margin: 22px 0 26px; color: var(--paper); }
.footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: rgba(245,242,233,.66); }
.footer-contact a:hover { color: var(--lime); }
.footer-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-col h4 { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(245,242,233,.4); margin-bottom: 16px; font-family: var(--mono); }
.footer-col a { display: block; font-size: 12.5px; color: rgba(245,242,233,.75); padding: 5px 0; transition: color .2s, transform .2s; }
.footer-col a:hover { color: var(--lime); transform: translateX(3px); }
.footer-wordmark {
    font-size: clamp(60px, 12vw, 178px); font-weight: 800; letter-spacing: -0.07em; line-height: .8;
    color: rgba(245,242,233,.08); border-top: 1px solid rgba(245,242,233,.12); padding-top: 36px;
    white-space: nowrap; overflow: hidden;
}
.footer-wordmark span { color: rgba(255,90,54,.55); font-family: var(--serif); font-style: italic; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid rgba(245,242,233,.12); padding-top: 22px; margin-top: 28px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; font-size: 10.5px; color: rgba(245,242,233,.44); }
.footer-legal a:hover { color: var(--lime); }
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-badge { display: inline-flex; align-items: center; gap: 5px; border: 1px solid rgba(245,242,233,.16); border-radius: 999px; padding: 5px 10px; font-family: var(--mono); font-size: 8.5px; letter-spacing: .06em; color: rgba(245,242,233,.5); }

/* ad */
.ad-band {
    display: flex; align-items: center; gap: 30px; width: min(var(--container), calc(100% - 64px));
    margin: 34px auto; padding: 28px 34px; border-radius: var(--radius); position: relative; overflow: hidden;
    border: 1px solid var(--line); background: var(--paper-2); z-index: 2; transition: transform .25s, box-shadow .25s;
}
.ad-band:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.ad-band--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ad-band--orange { background: var(--orange); color: #1b0d09; border-color: var(--orange); }
.ad-band--lime { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.ad-band--paper { background: var(--card); color: var(--ink); }
.ad-band__copy { position: relative; z-index: 2; max-width: 720px; }
.ad-kicker { font-family: var(--mono); font-size: 8.5px; letter-spacing: .14em; opacity: .55; display: block; margin-bottom: 8px; }
.ad-band h3 { font-size: clamp(20px, 2.6vw, 30px); letter-spacing: -0.04em; line-height: 1.15; }
.ad-band p { font-size: 13px; opacity: .68; margin-top: 6px; max-width: 560px; }
.ad-band__cta {
    margin-left: auto; flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 700; border: 1px solid currentColor; border-radius: 999px; padding: 11px 18px;
    position: relative; z-index: 2;
}
.ad-band__deco { position: absolute; right: 150px; top: -30px; width: 220px; height: 220px; opacity: .45; pointer-events: none; }
.ad-band__deco span { position: absolute; border: 1px solid currentColor; border-radius: 50%; }
.ad-band__deco span:nth-child(1) { inset: 0; opacity: .3; }
.ad-band__deco span:nth-child(2) { inset: 35px; opacity: .25; }
.ad-band__deco span:nth-child(3) { inset: 76px; background: currentColor; opacity: .1; }
.ad--template-detail { width: 100%; margin: 20px 0; flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px; }
.ad--template-detail .ad-band__cta { margin-left: 0; }
.ad--template-detail .ad-band__deco { right: -50px; }
.ad--help-side { width: 100%; margin: 0; flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px; }
.ad--help-side .ad-band__cta { margin-left: 0; }

/* toast */
.toast-stack { position: fixed; top: 92px; right: 22px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: 380px; }
.toast {
    display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 14px;
    background: var(--ink); color: var(--paper); box-shadow: var(--shadow); font-size: 12.5px; line-height: 1.5;
    animation: fadeUp .3s var(--ease);
}
.toast--error { background: #3b1610; }
.toast--success { background: var(--ink); }
.toast__icon { color: var(--lime); margin-top: 1px; }
.toast--error .toast__icon { color: var(--orange-soft); }
.toast button { background: none; border: 0; color: rgba(255,255,255,.55); margin-left: auto; padding: 0; }
.toast.is-leaving { opacity: 0; transform: translateY(-8px); transition: all .3s; }

/* AI chat dock */
.ai-dock { position: fixed; right: 22px; bottom: 22px; z-index: 90; font-family: var(--font); }
.ai-fab {
    display: flex; align-items: center; gap: 10px; height: 58px; padding: 6px 18px 6px 7px;
    background: var(--ink); color: var(--paper); border: 1px solid rgba(255,255,255,.12); border-radius: 999px;
    box-shadow: 0 18px 40px -16px rgba(20,23,18,.6); transition: transform .3s var(--ease), box-shadow .3s;
}
.ai-fab:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -18px rgba(20,23,18,.7); }
.ai-dock.is-open .ai-fab { opacity: 0; pointer-events: none; transform: translateY(8px); }
.ai-fab__icon {
    position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    border-radius: 50%; background: var(--lime); color: var(--ink);
}
.ai-fab__icon i { position: absolute; top: 1px; right: 1px; width: 9px; height: 9px; background: var(--orange); border-radius: 50%; border: 2px solid var(--ink); }
.ai-fab__label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.ai-fab__label b { font-size: 12.5px; font-weight: 800; }
.ai-fab__label small { font-size: 9.5px; color: rgba(245,242,233,.58); }
.chat-panel {
    position: fixed; right: 22px; bottom: 92px; width: 396px; height: min(630px, calc(100dvh - 118px));
    background: var(--paper); border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 34px 90px -24px rgba(20,23,18,.55);
    display: flex; flex-direction: column; overflow: hidden; z-index: 95;
    transform-origin: bottom right; animation: chatIn .3s var(--ease);
}
@keyframes chatIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px; background: var(--ink); color: var(--paper); flex-shrink: 0; }
.chat-head__identity { display: flex; align-items: center; gap: 10px; }
.chat-avatar { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--lime); color: var(--ink); }
.chat-head__identity strong { display: block; font-size: 12.5px; line-height: 1.3; }
.chat-head__identity span { display: flex; align-items: center; gap: 5px; font-size: 9.5px; color: rgba(245,242,233,.55); }
.chat-close { color: rgba(245,242,233,.7); }
.chat-close:hover { background: rgba(255,255,255,.1); }
.chat-context { padding: 8px 16px; background: rgba(216,255,87,.18); border-bottom: 1px solid var(--line); font-size: 10px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.chat-scroll { flex: 1; overflow-y: auto; padding: 16px 14px 6px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; }
.chat-scroll::-webkit-scrollbar { width: 5px; }
.chat-scroll::-webkit-scrollbar-thumb { background: rgba(20,23,18,.15); border-radius: 99px; }
.msg { display: flex; gap: 8px; max-width: 92%; animation: fadeUp .25s var(--ease); }
.msg--user { align-self: flex-end; flex-direction: row-reverse; }
.msg__avatar { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--ink); color: var(--lime); margin-top: 2px; }
.msg--user .msg__avatar { background: var(--orange); color: #fff; }
.msg__body { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.msg__bubble {
    padding: 10px 13px; border-radius: 4px 15px 15px 15px; background: var(--white);
    border: 1px solid var(--line); font-size: 12.5px; line-height: 1.65; white-space: pre-wrap; word-break: break-word;
}
.msg--user .msg__bubble { background: var(--ink); color: var(--paper); border-color: var(--ink); border-radius: 15px 4px 15px 15px; }
.msg__time { font-size: 8px; color: var(--muted-2); }
.msg--user .msg__time { text-align: right; }
.msg__cards { display: flex; flex-direction: column; gap: 6px; }
.chat-card {
    display: flex; align-items: center; gap: 9px; padding: 9px; border: 1px solid var(--line);
    border-radius: 12px; background: var(--card); transition: border .2s, transform .2s;
}
.chat-card:hover { border-color: var(--ink); transform: translateX(2px); }
.chat-card__thumb { width: 42px; height: 42px; border-radius: 8px; flex-shrink: 0; background: var(--paper-2); position: relative; overflow: hidden; }
.chat-card__thumb::after { content: ""; position: absolute; right: 4px; bottom: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--orange); }
.chat-card__thumb.tpl-mini--atelier { background: #1a1f16; }
.chat-card__thumb.tpl-mini--orbit { background: linear-gradient(135deg,#2a2118,#7b5b3d); }
.chat-card__thumb.tpl-mini--pulse { background: linear-gradient(135deg,#c9c0ff,#f0ebff); }
.chat-card__thumb.tpl-mini--harvest { background: #dce3cb; }
.chat-card__thumb.tpl-mini--bloom { background: #f5d8ce; }
.chat-card__thumb.tpl-mini--nova { background: #16203a; }
.chat-card__body { min-width: 0; display: flex; flex-direction: column; }
.chat-card__body strong { font-size: 11px; }
.chat-card__body span { font-size: 9.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-card__price { margin-left: auto; font-size: 10px; font-weight: 800; color: var(--orange); white-space: nowrap; }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.chat-suggestion { border: 1px solid var(--line-strong); background: transparent; border-radius: 999px; padding: 6px 10px; font-size: 10.5px; transition: all .2s; }
.chat-suggestion:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chat-sources { display: flex; flex-direction: column; gap: 3px; margin-top: 9px; padding-top: 8px; border-top: 1px solid rgba(245,242,233,.12); }
.chat-sources__label { font-family: var(--mono); font-size: 7px; letter-spacing: .12em; text-transform: uppercase; color: rgba(245,242,233,.35); }
.chat-sources a { font-size: 8.5px; color: var(--lime); line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-sources a:hover { color: var(--paper); text-decoration: underline; }
.chat-quick { display: flex; gap: 6px; padding: 8px 14px 0; overflow-x: auto; flex-shrink: 0; scrollbar-width: none; }
.chat-quick::-webkit-scrollbar { display: none; }
.chat-quick button { flex-shrink: 0; border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 6px 10px; font-size: 10px; color: var(--ink-soft); white-space: nowrap; }
.chat-quick button:hover { border-color: var(--ink); background: var(--white); }
.chat-typing { display: flex; align-items: center; gap: 4px; padding: 10px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 4px 15px 15px 15px; width: fit-content; }
.chat-typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: typing 1.1s infinite; }
.chat-typing i:nth-child(2) { animation-delay: .15s; }
.chat-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%,60%,100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--paper); flex-shrink: 0; }
.chat-form textarea {
    flex: 1; min-height: 40px; max-height: 110px; padding: 10px 12px; border: 1px solid var(--line);
    border-radius: 13px; background: var(--white); resize: none; font-size: 12px; line-height: 1.5;
}
.chat-form textarea:focus { outline: none; border-color: var(--ink); }
.chat-send { width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-send:hover { background: var(--orange); }
.chat-foot { display: flex; justify-content: space-between; padding: 0 14px 8px; font-size: 8px; color: var(--muted-2); flex-shrink: 0; }
.chat-foot button { border: 0; background: none; padding: 0; color: var(--muted); text-decoration: underline; font-size: inherit; }
.chat-powered { font-family: var(--mono); letter-spacing: .1em; }

/* Guide */
.guide-layer { position: fixed; inset: 0; z-index: 150; }
.guide-backdrop { position: absolute; inset: 0; background: rgba(17, 20, 15, 0.62); backdrop-filter: blur(2px); }
.guide-spot {
    position: fixed; border: 2px solid var(--lime); border-radius: 16px;
    box-shadow: 0 0 0 9999px rgba(17,20,15,.48), 0 0 36px rgba(216,255,87,.35);
    transition: all .4s var(--ease); pointer-events: none; z-index: 2; opacity: 0;
}
.guide-spot.is-visible { opacity: 1; }
.guide-panel.is-top { bottom: auto; top: 24px; }
.guide-panel {
    position: fixed; right: 30px; bottom: 30px; width: min(390px, calc(100% - 40px)); background: var(--paper);
    border: 1px solid var(--line); border-radius: 24px; padding: 22px; box-shadow: 0 40px 90px -20px rgba(0,0,0,.55);
    z-index: 3; animation: fadeUp .3s var(--ease);
}
.guide-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.guide-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--lime); border-radius: 999px; padding: 5px 10px; font-size: 9px; font-weight: 800; letter-spacing: .04em; }
.guide-panel h3 { font-size: 23px; line-height: 1.2; letter-spacing: -0.04em; margin-bottom: 8px; }
.guide-panel p { font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.guide-goals { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.guide-goals button { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 7px 11px; font-size: 10.5px; font-weight: 600; }
.guide-goals button:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.guide-form { display: flex; gap: 6px; }
.guide-form input { flex: 1; min-width: 0; height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 11px; font-size: 11.5px; background: var(--white); }
.guide-form input:focus { outline: none; border-color: var(--ink); }
.guide-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; font-size: 8.5px; color: var(--muted); }
.guide-foot span { display: flex; align-items: center; gap: 4px; }
.guide-foot button { border: 0; background: transparent; color: var(--muted); font-size: inherit; text-decoration: underline; }
.guide-foot__links { display: inline-flex; gap: 9px; }
.guide-stepview h3 { font-size: 26px; margin-top: 10px; }
.guide-route { display: flex; flex-wrap: wrap; gap: 5px; margin: 14px 0; }
.guide-route span { font-size: 9px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; color: var(--muted); }
.guide-route span.is-current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.guide-progress { height: 3px; background: var(--paper-3); border-radius: 99px; overflow: hidden; margin: 16px 0; }
.guide-progress span { display: block; height: 100%; width: 0; background: var(--orange); transition: width .4s; }
.guide-actions { display: flex; gap: 8px; }
.guide-actions .btn:last-child { margin-left: auto; }

/* utility status, empty */
.status {
    display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
    font-size: 9.5px; font-weight: 700; letter-spacing: .02em; background: var(--paper-2); color: var(--ink-soft);
}
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status--active, .status--paid, .status--completed, .status--won { background: rgba(47,107,79,.1); color: var(--green); }
.status--pending, .status--expiring, .status--contacted, .status--in_progress { background: rgba(166,106,18,.12); color: var(--amber); }
.status--expired, .status--cancelled, .status--lost, .status--suspended { background: rgba(185,58,42,.1); color: var(--red); }
.status--new, .status--qualified { background: rgba(20,23,18,.07); color: var(--ink); }
.empty-state { text-align: center; padding: 60px 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty-state__icon { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%; background: var(--paper-2); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.empty-state h3 { font-size: 20px; margin-bottom: 6px; }
.empty-state p { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 42px; }
.page-btn { display: flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; font-weight: 700; }
.page-btn:hover { border-color: var(--ink); }
.page-btn.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.page-btn.is-disabled { opacity: .35; pointer-events: none; }
.page-dots { color: var(--muted); font-size: 12px; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* responsive base */
@media (max-width: 1120px) {
    .header-inner { gap: 14px; }
    .main-nav { display: none; }
    .mobile-toggle { display: flex; }
    .tour-trigger span { display: none; }
    .tour-trigger { width: 38px; padding: 0; justify-content: center; }
}
@media (max-width: 820px) {
    .container { width: calc(100% - 36px); }
    .site-header .header-cta, .login-link { display: none; }
    .footer-top { grid-template-columns: 1fr; gap: 40px; }
    .footer-links { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .ad-band { width: calc(100% - 36px); flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px; margin: 24px auto; }
    .ad-band__cta { margin-left: 0; }
    .ad-band__deco { right: -80px; }
    .toast-stack { left: 18px; right: 18px; max-width: none; top: 84px; }
    .chat-panel { right: 12px; left: 12px; bottom: 84px; width: auto; height: calc(100dvh - 100px); border-radius: 22px; }
    .ai-dock { right: 14px; bottom: 14px; }
    .ai-fab { height: 52px; padding: 5px 14px 5px 6px; }
    .ai-fab__icon { width: 40px; height: 40px; }
    .ai-fab__label small { display: none; }
    .guide-panel { right: 12px; left: 12px; bottom: 12px; width: auto; max-height: calc(100dvh - 24px); overflow-y: auto; }
}
@media (max-width: 560px) {
    .header-inner { height: 68px; }
    .brand-word { font-size: 19px; }
    .brand-cn { font-size: 12px; }
    .brand-mark { width: 35px; height: 37px; }
    .tour-trigger { display: none; }
    .footer-wordmark { font-size: 58px; }
    .footer-tagline { font-size: 22px; }
    .chat-head { padding: 12px 13px; }
    .msg__bubble { font-size: 12px; }
    .site-footer .container { padding-top: 48px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}
