:root {
  color-scheme: light;
  --ink: #15322d;
  --muted: #6f7f79;
  --paper: #f4f0e6;
  --surface: #fffdf7;
  --line: #ded8c8;
  --green: #153f35;
  --mint: #dcebe4;
  --gold: #bd7b29;
  --danger: #a54434;
  --shadow: 0 18px 50px rgba(30, 49, 42, .10);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, a, input, select, textarea { transition: border-color .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(189,123,41,.38); outline-offset: 3px; }
.hidden { display: none !important; }
.break-all { overflow-wrap: anywhere; }
.recovery-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; margin: .8rem 0; }
.recovery-codes code { padding: .55rem; border-radius: .45rem; background: var(--surface-soft); text-align: center; }
.muted { color: var(--muted); }
.error { color: var(--danger); min-height: 1.3em; }
.eyebrow { margin: 0 0 .45rem; color: var(--gold); font-size: .68rem; letter-spacing: .16em; font-weight: 800; }
.brand-mark { display: grid; place-items: center; width: 2.15rem; height: 2.15rem; border-radius: 50%; color: #fff; background: var(--green); font-family: Georgia, serif; font-size: 1.25rem; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 2rem 1.25rem; background: #efe9dc; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: .8rem; margin: 0 .45rem 2.5rem; }
.brand strong, .brand small { display: block; }
.brand small { margin-top: .18rem; color: var(--muted); }
.nav { display: grid; gap: .35rem; }
.nav button { border: 0; border-radius: 10px; padding: .82rem 1rem; text-align: left; color: var(--muted); background: transparent; }
.nav button:hover, .nav button.active { color: white; background: var(--green); }
.customer-link { margin-top: auto; padding: .9rem 1rem; color: var(--green); text-decoration: none; border-top: 1px solid var(--line); }
.workspace { min-width: 0; }
.topbar { min-height: 108px; display: flex; justify-content: space-between; align-items: center; padding: 1.6rem clamp(1.25rem, 4vw, 4rem); border-bottom: 1px solid var(--line); }
.topbar h1 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 500; }
.account { display: flex; align-items: center; gap: .8rem; color: var(--muted); }
.content { padding: 2rem clamp(1.25rem, 4vw, 4rem) 5rem; max-width: 1500px; }
.grid { display: grid; gap: 1rem; }
.metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metric, .card { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 4px 18px rgba(30,49,42,.04); }
.metric { padding: 1.25rem; }
.compact-metrics { grid-template-columns: repeat(7, minmax(0, 1fr)); margin-bottom: 1rem; }
.compact-metrics .metric { padding: .85rem; }
.compact-metrics .metric strong { font-size: 1.35rem; }
.metric span { display: block; color: var(--muted); font-size: .8rem; }
.metric strong { display: block; margin-top: .45rem; font-family: Georgia, serif; font-size: 1.8rem; font-weight: 500; }
.card { padding: 1.25rem; }
.card h2, .card h3 { margin: 0 0 1rem; font-family: Georgia, "Songti SC", serif; font-weight: 500; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 1.8rem 0 .9rem; }
.section-head h2 { margin: 0; font-family: Georgia, "Songti SC", serif; font-weight: 500; }
.section-head.compact { margin-top: 0; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid #ebe6da; font-size: .86rem; vertical-align: top; }
th { color: var(--muted); background: #faf7ef; font-weight: 650; }
tr:last-child td { border-bottom: 0; }
.badge { display: inline-flex; padding: .2rem .5rem; border-radius: 999px; background: var(--mint); color: var(--green); font-size: .72rem; }
.badge.warn { color: #7c4d16; background: #f6e5c9; }
.badge.danger { color: var(--danger); background: #f8dfda; }
.primary, .secondary, .ghost { border-radius: 9px; padding: .68rem .95rem; border: 1px solid transparent; }
.primary { color: #fff; background: var(--green); }
.secondary { color: var(--green); background: var(--mint); }
.ghost { color: var(--green); border-color: var(--line); background: transparent; }
.small { padding: .35rem .55rem; font-size: .75rem; }
.actions { display: flex; flex-wrap: wrap; gap: .45rem; }
form.stack, .form-grid { display: grid; gap: .8rem; }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.span-two { grid-column: 1 / -1; }
.store-picker { display: flex; flex-wrap: wrap; gap: .7rem 1rem; margin: 0; padding: .8rem; border: 1px solid var(--line); border-radius: 9px; }
.store-picker legend { padding: 0 .35rem; color: var(--muted); font-size: .8rem; }
.store-picker label { display: flex; grid-template-columns: none; align-items: center; gap: .4rem; }
.store-picker input { width: auto; }
.filter-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: .8rem; align-items: end; }
.load-more { margin-top: 1rem; }
label { display: grid; gap: .38rem; color: var(--muted); font-size: .8rem; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: .72rem .78rem; color: var(--ink); background: #fff; }
textarea { min-height: 92px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid #96b6a9; outline-offset: 1px; }
.login-dialog { width: min(430px, calc(100vw - 2rem)); border: 1px solid var(--line); border-radius: 18px; padding: 0; color: var(--ink); background: var(--surface); box-shadow: var(--shadow); }
.login-dialog::backdrop { background: rgba(18, 40, 34, .55); backdrop-filter: blur(4px); }
.login-dialog form { display: grid; gap: 1rem; padding: 2rem; }
.login-dialog h2 { margin: 0; font-family: Georgia, "Songti SC", serif; font-weight: 500; }
.toast { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 20; max-width: 380px; padding: .8rem 1rem; color: #fff; border-radius: 10px; background: var(--green); box-shadow: var(--shadow); }
.toast.danger { background: var(--danger); }
.detail-dialog { width: min(760px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); overflow: auto; border: 1px solid var(--line); border-radius: 18px; padding: 1.5rem; color: var(--ink); background: var(--surface); box-shadow: var(--shadow); }
.detail-dialog::backdrop { background: rgba(18, 40, 34, .55); backdrop-filter: blur(4px); }
.detail-dialog h2, .detail-dialog h3 { font-family: Georgia, "Songti SC", serif; font-weight: 500; }
.detail-dialog > form { display: flex; justify-content: flex-end; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 1rem 0 1.5rem; }
.detail-grid > div { padding: .85rem; border-radius: 10px; background: #f7f3e9; }
.detail-grid span, .detail-grid strong { display: block; }
.detail-grid span { margin-bottom: .35rem; color: var(--muted); font-size: .75rem; }
.timeline { margin: 0 0 1.5rem; padding: 0 0 0 1.25rem; border-left: 2px solid var(--mint); list-style: none; }
.timeline li { position: relative; padding: 0 0 1.2rem 1rem; }
.timeline li::before { position: absolute; left: -1.58rem; top: .25rem; width: .7rem; height: .7rem; border-radius: 50%; background: var(--green); content: ""; }
.timeline span, .timeline strong { display: block; }
.timeline span { color: var(--muted); font-size: .72rem; }
.timeline p { margin: .25rem 0 0; color: var(--muted); }
.refund-panel { margin: 1.25rem 0; padding: 1rem; border: 1px solid #e6c99f; border-radius: 12px; background: #fff8eb; }
.refund-panel h3 { margin-top: 0; }
.security-dialog { width: min(680px, calc(100vw - 2rem)); }
.security-dialog section + section { margin-top: 1.5rem; }
.session-list { display: grid; gap: .6rem; }
.session-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem; border: 1px solid var(--line); border-radius: 10px; background: #faf7ef; }
.session-row strong, .session-row small { display: block; }
.session-row small { margin-top: .3rem; color: var(--muted); line-height: 1.5; }
.password-panel { padding-top: 1rem; border-top: 1px solid var(--line); }
.activity-dialog { width: min(900px, calc(100vw - 2rem)); }
.comparison-panel { margin: 1.25rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: #faf7ef; }
.comparison-changed td { background: #fff6df; }
.draft-preview { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.draft-preview img, .draft-preview video { width: 100%; max-height: 420px; object-fit: cover; display: block; background: #102f27; }
.draft-preview > div { padding: 1.25rem; }
.draft-preview p { white-space: pre-wrap; line-height: 1.6; }
.video-upload-panel { padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: #faf7ef; }
.video-upload-panel > label { display: grid; gap: .5rem; font-weight: 700; }
.video-upload-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin: .8rem 0; padding: 0; list-style: none; counter-reset: upload-stage; }
.video-upload-steps li { padding: .55rem .3rem; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: #fff; text-align: center; font-size: .75rem; }
.video-upload-steps li.active { border-color: #c08a35; color: #815714; background: #fff6df; }
.video-upload-steps li.completed { border-color: #458876; color: #155343; background: #e8f4ef; }
.video-upload-steps li.failed { border-color: #ba4c3b; color: #8d2f22; background: #fff0ed; }
.video-upload-preview { width: min(100%, 340px); margin: 1rem auto 0; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 18px; background: #081c17; box-shadow: 0 12px 32px rgba(7,42,33,.18); }
.video-upload-preview video { width: 100%; height: 100%; object-fit: contain; display: block; background: #081c17; }
.empty { padding: 2.5rem; text-align: center; color: var(--muted); }
.list { display: grid; gap: .65rem; }
.list-row { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid #ebe6da; }
.list-row:last-child { border: 0; }
.list-row strong { min-width: 0; overflow-wrap: anywhere; text-align: right; }
.history-order { width: 100%; border: 0; background: transparent; color: inherit; text-align: left; }
.history-order:hover { background: #f7f3e9; }
.customer-page { min-height: 100vh; background: linear-gradient(180deg, #e6eee7 0, var(--paper) 34%); }
.phone-shell { width: min(100%, 520px); min-height: 100vh; margin: 0 auto; padding: 1rem 1rem 3rem; }
.customer-head { display: flex; align-items: center; justify-content: space-between; gap: .65rem; padding: .45rem .2rem 1.1rem; font-weight: 700; }
.customer-brand { display: inline-flex; align-items: center; gap: .65rem; color: inherit; text-decoration: none; }
.feed-entry { color: var(--green); font-size: .82rem; text-decoration: none; }
.link-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.activity-back-row { margin-bottom: .75rem; }
.feed-intro { padding: .25rem .2rem .9rem; }
.feed-intro h1 { margin: .1rem 0 .25rem; font-size: 1.65rem; }
.feed-intro p { margin: 0; color: var(--muted); }
.feed-filter { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .65rem; align-items: end; margin: .9rem 0 .45rem; }
.feed-filter label { margin: 0; }
.vertical-feed { display: grid; gap: 1rem; scroll-snap-type: y mandatory; }
.vertical-feed-card { position: relative; min-height: min(78svh, 760px); overflow: hidden; border-radius: 22px; color: #fff; background: #081c17; box-shadow: var(--shadow); scroll-snap-align: start; isolation: isolate; }
.vertical-feed-media, .vertical-feed-media img, .vertical-feed-media video { position: absolute; inset: 0; width: 100%; height: 100%; }
.vertical-feed-media img, .vertical-feed-media video { object-fit: cover; background: #081c17; }
.vertical-feed-media video { object-fit: contain; }
.vertical-feed-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.06) 32%, rgba(0,0,0,.82) 100%); pointer-events: none; }
.vertical-feed-copy { position: absolute; z-index: 2; left: 1rem; right: 1rem; bottom: 1.1rem; }
.vertical-feed-copy h2 { margin: .55rem 0 .35rem; font-size: 1.7rem; }
.vertical-feed-copy p { display: -webkit-box; margin: 0 0 .7rem; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.5; }
.feed-badge { display: inline-flex; padding: .3rem .55rem; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; background: rgba(0,0,0,.22); font-size: .72rem; }
.feed-price { display: flex; align-items: baseline; gap: .65rem; margin-bottom: .8rem; }
.feed-price strong { color: #ffd89a; font-size: 1.65rem; }
.feed-price del { color: rgba(255,255,255,.7); }
.vertical-feed-copy .primary { width: 100%; }
@media (max-width: 560px) { .feed-filter { grid-template-columns: 1fr; } .feed-filter button { width: 100%; } }
.entry-card { margin-top: 1rem; }
.entry-card h1 { margin: 0 0 1rem; }
.hero { overflow: hidden; padding: 0; }
.hero img, .hero video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: #102f27; }
.hero-media { position: relative; background: #102f27; }
.video-hint { position: absolute; right: .75rem; bottom: .75rem; padding: .35rem .6rem; border-radius: 999px; color: #fff; background: rgba(7, 42, 33, .78); font-size: .72rem; pointer-events: none; }
.hero-media:has(video[controls]) .video-hint { backdrop-filter: blur(6px); }
.hero-body { padding: 1.3rem; }
.hero h1 { margin: 0 0 .6rem; font-family: Georgia, "Songti SC", serif; font-size: 1.85rem; font-weight: 500; }
.price { display: flex; align-items: baseline; gap: .65rem; margin: 1rem 0; }
.price strong { color: var(--danger); font-size: 2rem; }
.price del { color: var(--muted); }
.details { margin-top: 1rem; }
.details p { white-space: pre-wrap; line-height: 1.65; }
.buybar { position: sticky; bottom: .8rem; display: flex; gap: .8rem; align-items: center; margin-top: 1rem; padding: .75rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,253,247,.94); box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.buybar .primary { flex: 1; }
.voucher { text-align: center; border: 1px dashed #7e9c90; background: #edf5f0; }
.voucher-code { margin: 1rem 0; padding: 1rem; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: white; border-radius: 8px; }
.payment-checkout { margin: 1rem 0; text-align: center; }
.payment-qr { display: block; width: min(280px, 100%); height: auto; margin: .75rem auto; border-radius: 12px; }
.customer-footer { padding: 2rem .4rem 0; color: var(--muted); font-size: .72rem; text-align: center; }
.onboarding-page { min-height: 100vh; background: radial-gradient(circle at 85% 8%, #dcebe4 0, transparent 32%), var(--paper); }
.onboarding-shell { width: min(920px, calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0 4rem; }
.onboarding-hero { max-width: 760px; padding: 1rem 0 2rem; }
.onboarding-hero .brand { margin: 0 0 2.5rem; }
.onboarding-hero h1 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(2rem, 5vw, 3.8rem); font-weight: 500; line-height: 1.12; }
.onboarding-hero > p:last-child { color: var(--muted); line-height: 1.7; }
.onboarding-card { padding: clamp(1.25rem, 4vw, 2.5rem); }
.onboarding-card h2 { font-size: 1.8rem; }
.onboarding-divider { display: flex; align-items: center; gap: 1rem; margin: 2rem 0 1rem; color: var(--muted); font-size: .8rem; }
.onboarding-divider::before, .onboarding-divider::after { flex: 1; height: 1px; background: var(--line); content: ""; }
.credential-panel { margin: 1.25rem 0; padding: 1rem; border: 1px dashed #7e9c90; border-radius: 10px; background: #edf5f0; }
.credential-panel span, .credential-panel code { display: block; }
.credential-panel span { margin-bottom: .45rem; color: var(--muted); font-size: .75rem; }
.credential-panel code { overflow-wrap: anywhere; }
.demo-page { min-height: 100vh; background: radial-gradient(circle at 82% 12%, #d9e8df 0, transparent 28%), var(--paper); }
.demo-shell { width: min(1160px, calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0 4rem; }
.demo-hero { max-width: 850px; padding: clamp(1.5rem, 5vw, 4rem) 0 2.5rem; }
.demo-brand { margin: 0 0 3.5rem; }
.demo-hero h1 { max-width: 820px; margin: 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(2.35rem, 6vw, 5rem); font-weight: 500; line-height: 1.08; letter-spacing: -.035em; }
.demo-lead { max-width: 680px; margin: 1.5rem 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.75; }
.demo-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 1rem; }
.demo-button { display: inline-flex; justify-content: center; align-items: center; text-decoration: none; }
.demo-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.demo-flow article { min-height: 160px; padding: 1.35rem; border-right: 1px solid var(--line); }
.demo-flow article:last-child { border: 0; }
.demo-flow span { display: block; margin-bottom: 1.3rem; color: var(--gold); font: 700 .72rem/1 ui-monospace, monospace; letter-spacing: .12em; }
.demo-flow strong, .demo-flow small { display: block; }
.demo-flow strong { margin-bottom: .55rem; font-family: Georgia, "Songti SC", serif; font-size: 1.25rem; font-weight: 500; }
.demo-flow small { color: var(--muted); line-height: 1.6; }
.demo-accounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.demo-accounts .card { display: flex; flex-direction: column; min-height: 330px; padding: 1.6rem; }
.demo-accounts dl { display: grid; gap: .6rem; margin: .5rem 0 1.5rem; }
.demo-accounts dl div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .55rem; border-bottom: 1px solid #ebe6da; }
.demo-accounts dt { color: var(--muted); }
.demo-accounts dd { margin: 0; text-align: right; }
.demo-accounts .demo-button { align-self: flex-start; margin-top: auto; }
.demo-note { margin-top: 1rem; padding: 1.25rem 1.4rem; border-left: 4px solid var(--gold); background: #eee5d4; }
.demo-note p { margin: .45rem 0 0; color: var(--muted); line-height: 1.65; }

/* 商业版统一应用中心：只使用站内资产与 CSS 图形，避免首屏依赖第三方素材域名。 */
.portal-page { min-height: 100vh; color: #eef7f3; background: #082f27; }
.portal-page::before { position: fixed; inset: 0; pointer-events: none; content: ""; background: radial-gradient(circle at 76% 7%, rgba(117,207,170,.16), transparent 30%), radial-gradient(circle at 8% 40%, rgba(203,153,70,.10), transparent 25%); }
.portal-shell { position: relative; width: min(1240px, calc(100% - 2.5rem)); margin: 0 auto; }
.portal-nav { min-height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.12); }
.portal-logo { display: flex; align-items: center; gap: .8rem; color: inherit; text-decoration: none; }
.portal-logo .brand-mark { color: #0c3d32; background: #d9b271; box-shadow: 0 8px 26px rgba(0,0,0,.18); }
.portal-logo strong, .portal-logo small { display: block; }
.portal-logo strong { font-size: 1.05rem; letter-spacing: .12em; }
.portal-logo small { margin-top: .15rem; color: rgba(238,247,243,.55); font-size: .68rem; }
.portal-nav-actions { display: flex; align-items: center; gap: 1.5rem; }
.portal-nav-actions a { color: rgba(238,247,243,.72); text-decoration: none; font-size: .84rem; }
.portal-nav-actions a:hover { color: #fff; }
.portal-nav-actions .portal-login { padding: .65rem 1rem; color: #0b392f; border-radius: 999px; background: #e6c384; }
.portal-hero { min-height: 690px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: clamp(2rem, 7vw, 7rem); padding: 5rem 0 6rem; }
.portal-kicker { display: flex; align-items: center; gap: .65rem; margin: 0 0 1.5rem; color: #dfbb7d; font: 700 .7rem/1.2 ui-monospace, monospace; letter-spacing: .14em; }
.portal-kicker span { width: 2rem; height: 1px; background: #dfbb7d; }
.portal-hero h1 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(3rem, 6.4vw, 6.2rem); font-weight: 500; line-height: .98; letter-spacing: -.055em; }
.portal-hero h1 em { color: #ddba7c; font-style: normal; }
.portal-hero-copy > p:not(.portal-kicker) { max-width: 590px; margin: 1.7rem 0 0; color: rgba(238,247,243,.68); font-size: 1.03rem; line-height: 1.9; }
.portal-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.2rem; }
.portal-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 1.25rem; border-radius: 999px; text-decoration: none; font-weight: 700; }
.portal-primary { gap: 1.5rem; color: #0a382f; background: #e7c486; box-shadow: 0 14px 40px rgba(0,0,0,.18); }
.portal-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 50px rgba(0,0,0,.28); }
.portal-secondary { color: #edf7f2; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.04); }
.portal-secondary:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.08); }
.portal-trust { display: flex; gap: 1.8rem; margin: 2.6rem 0 0; }
.portal-trust div { display: flex; align-items: baseline; gap: .45rem; }
.portal-trust dt { color: #fff; font: 500 1.35rem/1 Georgia, serif; }
.portal-trust dd { margin: 0; color: rgba(238,247,243,.48); font-size: .7rem; }
.portal-visual { position: relative; min-height: 500px; display: grid; place-items: center; }
.portal-orbit { position: absolute; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; }
.orbit-one { width: 450px; height: 450px; }
.orbit-two { width: 330px; height: 330px; border-color: rgba(223,187,125,.16); }
.portal-dashboard-card { position: relative; z-index: 2; width: min(420px, 92%); padding: 1.6rem; border: 1px solid rgba(255,255,255,.18); border-radius: 28px; background: linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.055)); box-shadow: 0 35px 90px rgba(0,0,0,.32); backdrop-filter: blur(18px); transform: rotate(-2deg); }
.mini-head { display: flex; justify-content: space-between; color: rgba(238,247,243,.58); font-size: .76rem; }
.live-dot { color: #9de1bd; }
.live-dot::before { display: inline-block; width: .42rem; height: .42rem; margin-right: .35rem; border-radius: 50%; background: #68d59c; box-shadow: 0 0 0 5px rgba(104,213,156,.12); content: ""; }
.mini-value { display: block; margin-top: 1.1rem; font: 500 clamp(1.8rem, 4vw, 2.6rem)/1.2 Georgia, serif; }
.mini-bars { height: 180px; display: flex; align-items: end; gap: .65rem; margin-top: 1.4rem; padding: 1.1rem 0 0; border-bottom: 1px solid rgba(255,255,255,.14); background: repeating-linear-gradient(to bottom, rgba(255,255,255,.07), rgba(255,255,255,.07) 1px, transparent 1px, transparent 45px); }
.mini-bars i { flex: 1; height: var(--h); min-height: 16px; border-radius: 8px 8px 2px 2px; background: linear-gradient(#e8c98f, #6eb793); box-shadow: 0 8px 20px rgba(0,0,0,.16); }
.mini-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-top: 1.2rem; }
.mini-metrics span { color: rgba(238,247,243,.48); font-size: .67rem; }
.mini-metrics b { display: block; margin-bottom: .25rem; color: #fff; font-size: .86rem; }
.floating-chip { position: absolute; z-index: 3; padding: .75rem 1rem; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #0b3d32; background: #e9d1a7; box-shadow: 0 14px 36px rgba(0,0,0,.24); font-size: .75rem; font-weight: 800; }
.chip-ai { top: 15%; right: -2%; }
.chip-order { bottom: 14%; left: -6%; color: #eafff5; background: #1f6e58; }
.portal-products { padding: 6rem 0; color: var(--ink); border-radius: 34px; background: #f5f1e8; }
.portal-products, .portal-steps { position: relative; left: 50%; width: 100vw; margin-left: 0; margin-right: 0; padding-left: max(1.25rem, calc((100vw - 1240px) / 2)); padding-right: max(1.25rem, calc((100vw - 1240px) / 2)); transform: translateX(-50%); }
.portal-section-head { display: grid; grid-template-columns: 1fr minmax(260px, 420px); gap: 2rem; align-items: end; }
.portal-section-head h2, .portal-steps h2 { margin: 0; font: 500 clamp(2rem, 4vw, 3.7rem)/1.1 Georgia, "Songti SC", serif; letter-spacing: -.035em; }
.portal-section-head > p { margin: 0; color: var(--muted); line-height: 1.75; }
.portal-product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 3rem; overflow: hidden; border: 1px solid #d8d2c4; border-radius: 24px; background: #d8d2c4; }
.product-card { min-height: 320px; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: 1fr auto; gap: 1rem; padding: 2rem; color: var(--ink); background: #fffdf7; text-decoration: none; }
.product-card:hover { position: relative; z-index: 2; transform: translateY(-3px); box-shadow: 0 24px 60px rgba(20,55,45,.12); }
.product-featured { color: #f4fbf7; background: #103f34; }
.product-index { color: #b17a33; font: 700 .72rem/1 ui-monospace, monospace; }
.product-icon { width: 2.6rem; height: 2.6rem; display: grid; place-items: center; justify-self: end; border: 1px solid currentColor; border-radius: 50%; opacity: .65; }
.product-card div { grid-column: 1 / -1; align-self: end; }
.product-card small { color: #b17a33; font-size: .65rem; letter-spacing: .14em; }
.product-card h3 { margin: .65rem 0 .75rem; font: 500 1.8rem/1.15 Georgia, "Songti SC", serif; }
.product-card p { max-width: 500px; margin: 0; color: currentColor; opacity: .62; line-height: 1.75; }
.product-card > strong { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding-top: 1.2rem; border-top: 1px solid currentColor; font-size: .8rem; opacity: .7; }
.portal-steps { padding-top: 7rem; padding-bottom: 7rem; color: var(--ink); background: #ece5d6; }
.portal-steps ol { display: grid; grid-template-columns: repeat(4, 1fr); margin: 3.5rem 0 0; padding: 0; list-style: none; border-top: 1px solid #cfc6b5; }
.portal-steps li { padding: 1.5rem 1.25rem 0 0; }
.portal-steps li + li { padding-left: 1.25rem; border-left: 1px solid #cfc6b5; }
.portal-steps li > span { color: #a96c25; font: 700 .68rem/1 ui-monospace, monospace; }
.portal-steps strong, .portal-steps small { display: block; }
.portal-steps strong { margin: 2.5rem 0 .65rem; font-family: Georgia, "Songti SC", serif; font-size: 1.2rem; }
.portal-steps small { color: var(--muted); line-height: 1.7; }
.portal-footer { min-height: 170px; display: flex; align-items: center; justify-content: space-between; }
.portal-footer > div { display: flex; align-items: center; gap: 1.2rem; }
.portal-footer strong { color: #e1bd7e; font-size: 1.2rem; }
.portal-footer span, .portal-footer a { color: rgba(238,247,243,.5); font-size: .75rem; }
.portal-footer a { text-decoration: none; }
.portal-footer a:hover { color: #fff; }

.ai-hero { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; padding: clamp(1.5rem, 4vw, 2.7rem); color: #eef8f3; border-radius: 22px; background: radial-gradient(circle at 82% 22%, rgba(235,194,123,.28), transparent 23%), linear-gradient(135deg, #0b4034, #173d35); box-shadow: 0 18px 45px rgba(15,59,49,.14); }
.ai-hero h2 { max-width: 720px; margin: 0 0 .75rem; font: 500 clamp(1.8rem, 3.5vw, 3rem)/1.15 Georgia, "Songti SC", serif; }
.ai-hero p:last-child { max-width: 720px; margin: 0; color: rgba(238,248,243,.7); line-height: 1.75; }
.ai-spark { color: #efce91; font-size: clamp(4rem, 9vw, 8rem); line-height: 1; opacity: .7; }
.ai-workspace { grid-template-columns: minmax(340px, .9fr) minmax(420px, 1.1fr); align-items: start; }
.ai-brief, .ai-result { border-radius: 20px; }
.ai-brief { position: sticky; top: 1rem; }
.ai-generate-button { min-height: 50px; display: flex; justify-content: center; gap: .55rem; border-radius: 12px; }
.ai-generate-button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(21,63,53,.22); }
.ai-result { min-height: 600px; }
.ai-empty { min-height: 540px; display: grid; place-content: center; padding: 2rem; text-align: center; }
.ai-empty span { color: var(--gold); font-size: 3rem; }
.ai-empty h2 { margin: 1rem 0 .5rem; }
.ai-empty p { max-width: 420px; margin: 0; color: var(--muted); line-height: 1.7; }
.ai-output-block { margin-top: 1rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.ai-output-block h3 { margin: 0; }
.ai-title-list { display: grid; gap: .55rem; }
.ai-title-list p { display: grid; grid-template-columns: 2rem 1fr; gap: .65rem; margin: 0; padding: .7rem; border-radius: 9px; background: #f7f3e9; }
.ai-title-list span { color: var(--gold); font: 700 .7rem/1.5 ui-monospace, monospace; }
.ai-copy { margin: .65rem 0 0; white-space: pre-wrap; line-height: 1.8; }
.ai-points, .ai-visual-list, .ai-warning ul { margin-bottom: 0; padding-left: 1.2rem; line-height: 1.75; }
.ai-warning { margin-top: 1rem; padding: 1rem 1.15rem; border: 1px solid #e3c58f; border-radius: 14px; color: #664418; background: #fff7e8; }

@media (max-width: 900px) {
  .portal-hero { grid-template-columns: 1fr; padding-top: 3.5rem; }
  .portal-visual { min-height: 420px; }
  .portal-section-head { grid-template-columns: 1fr; }
  .portal-steps ol { grid-template-columns: repeat(2, 1fr); }
  .portal-steps li:nth-child(3) { border-left: 0; }
  .ai-workspace { grid-template-columns: 1fr; }
  .ai-brief { position: static; }
}

@media (max-width: 620px) {
  .portal-shell { width: min(100% - 1.25rem, 1240px); }
  .portal-nav { min-height: 74px; }
  .portal-logo small, .portal-nav-actions > a:first-child { display: none; }
  .portal-nav-actions { gap: .6rem; }
  .portal-hero { min-height: auto; padding: 3.5rem 0 4.5rem; }
  .portal-hero-copy > p:not(.portal-kicker) { font-size: .94rem; }
  .portal-actions a { width: 100%; }
  .portal-trust { gap: 1rem; justify-content: space-between; }
  .portal-visual { min-height: 350px; }
  .orbit-one { width: 330px; height: 330px; }
  .orbit-two { width: 250px; height: 250px; }
  .portal-dashboard-card { padding: 1.2rem; }
  .mini-bars { height: 130px; }
  .chip-ai { right: 0; top: 8%; }
  .chip-order { left: 0; bottom: 6%; }
  .portal-products, .portal-steps { border-radius: 22px; }
  .portal-product-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 290px; padding: 1.5rem; }
  .portal-steps ol { grid-template-columns: 1fr; }
  .portal-steps li, .portal-steps li + li { padding: 1.2rem 0; border-left: 0; border-bottom: 1px solid #cfc6b5; }
  .portal-steps li:last-child { border-bottom: 0; }
  .portal-steps strong { margin-top: 1.2rem; }
  .portal-footer { flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.2rem; }
  .portal-footer > div:last-child { flex-wrap: wrap; }
  .ai-spark { display: none; }
  .ai-result { min-height: 420px; }
  .ai-empty { min-height: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; width: 100%; height: auto; padding: 1rem; }
  .brand { margin: 0 0 1rem; }
  .nav { display: flex; overflow-x: auto; }
  .nav button { white-space: nowrap; }
  .customer-link { display: none; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-flow article:nth-child(2) { border-right: 0; }
  .demo-flow article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .demo-accounts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .topbar { align-items: flex-start; }
  .account { flex-direction: column; align-items: flex-end; }
  .content { padding-top: 1.2rem; }
  .metrics, .two-columns, .form-grid, .filter-grid, .detail-grid { grid-template-columns: 1fr; }
  .demo-shell { width: min(100% - 1.25rem, 1160px); padding-top: 1rem; }
  .demo-brand { margin-bottom: 2.5rem; }
  .demo-flow, .demo-accounts { grid-template-columns: 1fr; }
  .demo-flow article { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .demo-flow article:nth-child(2) { border-bottom: 1px solid var(--line); }
  .demo-flow article:last-child { border-bottom: 0; }
}

/* 推 N 返 M 配置使用独立视觉分区，避免商家把非现金权益误认为员工佣金。 */
.referral-rule-panel {
  border: 1px solid color-mix(in srgb, var(--gold, #b99654) 34%, #dfe6df);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(145deg, rgba(251, 247, 237, .96), rgba(244, 249, 245, .96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
}
.referral-rule-panel legend { padding: 0 8px; color: #163f33; font-weight: 800; }
.switch-row { display: flex !important; align-items: center; gap: 10px; min-height: 38px; font-weight: 750; }
.switch-row input { width: 20px; height: 20px; accent-color: #17624d; }
.referral-rule-grid { display: grid; grid-template-columns: repeat(5, minmax(112px, 1fr)); gap: 12px; margin-top: 14px; }
.referral-preview { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; margin: 14px 0; padding: 14px 16px; border-radius: 14px; color: #f8f4e8; background: linear-gradient(125deg, #113f33, #1f6653); }
.referral-preview strong { color: #e5c784; }
@media (max-width: 900px) { .referral-rule-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .referral-rule-grid { grid-template-columns: 1fr; } }

.customer-referral-badge { display: grid; gap: 4px; margin: 16px 0; padding: 14px 16px; border-radius: 15px; color: #f8f4e8; background: linear-gradient(125deg, #123f34, #236953); }
.customer-referral-badge strong { color: #f1d18b; font-size: 1.2rem; }
.customer-referral-badge span { font-size: .82rem; opacity: .88; }
.referral-customer-card { border: 1px solid rgba(181, 145, 74, .28); background: linear-gradient(155deg, #fffdfa, #f2f8f4); }
.referral-progress-track { height: 10px; margin: 18px 0 10px; overflow: hidden; border-radius: 999px; background: #dfe9e4; }
.referral-progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #b98b3f, #e1be73); transition: width .35s ease; }
.referral-reward-list { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(17, 72, 56, .12); }
.referral-reward-list .credential-panel code { overflow-wrap: anywhere; }
