
:root {
  --ui-shell-max: 1400px;
  --ui-shell-gutter: clamp(20px, 4vw, 64px);
  --accent: #15171c;
  --ui-bg: #f5f4f0;
  --ui-bg-deep: #eceff4;
  --ui-surface: #ffffff;
  --ui-surface-soft: #fafafa;
  --ui-ink: #15171c;
  --ui-muted: #666e7a;
  --ui-line: #dfe1e4;
  --ui-brand: #15171c;
  --ui-brand-strong: #0d0f13;
  --ui-brand-soft: #f0efeb;
  --ui-accent: #d9ac52;
  --ui-accent-strong: #a3771f;
  --ui-accent-bright: #e7c97e;
  --ui-accent-gradient: linear-gradient(120deg, #f0d795 0%, #d9ac52 48%, #c08f31 100%);
  --ui-accent-border: rgba(217, 172, 82, .28);
  --ui-accent-border-soft: rgba(217, 172, 82, .16);
  --ui-ink-surface: linear-gradient(145deg, #121419 0%, #15171c 46%, #0b0d10 100%);
  --ui-gold-text: linear-gradient(96deg, #f7f2e6 10%, #e7c97e 48%, #d9ac52 88%);
  --ui-gold-ink-text: linear-gradient(98deg, #a3771f 0%, #8a6414 52%, #6f500f 100%);
  --ui-brand-mark-text: linear-gradient(100deg, #8a6414 0%, #a3771f 44%, #6b4f10 100%);
  --ui-danger: #a44835;
  --ui-ok: #28765d;
  --ui-radius-sm: 8px;
  --ui-radius-md: 12px;
  --ui-radius-lg: 18px;
  --ui-radius-xl: 24px;
  --ui-shadow: 0 20px 60px rgba(21, 23, 28, .08);
  --ui-font: "Noto Sans SC Variable", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ui-display: "Noto Sans SC Variable", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  scrollbar-color: rgba(21, 23, 28, .32) transparent;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

body,
body *,
body *::before,
body *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  background-repeat: no-repeat;
  background:
    radial-gradient(circle at 8% 0%, rgba(217, 172, 82, .1), transparent 28rem),
    radial-gradient(circle at 92% 12%, rgba(21, 23, 28, .05), transparent 32rem),
    var(--ui-bg);
  color: var(--ui-ink);
  font-family: var(--ui-font);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

body .site {
  width: 100%;
  max-width: var(--ui-shell-max);
  margin-inline: auto;
  padding: 24px var(--ui-shell-gutter) 72px;
}

body .nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  position: static;
  min-height: 72px;
  padding-block: 6px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* A page's own body typography must never change shared navigation metrics. */
body .nav,
body .nav * {
  letter-spacing: normal;
}

body .nav .links a,
body .nav .links span,
body .nav .authbox,
body .nav .user,
body .nav .btn,
body .nav .member-chip,
body .nav .member-detail {
  font-family: var(--ui-font);
}

body .logo {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  color: var(--ui-ink);
  font-family: var(--ui-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.04em;
  white-space: nowrap;
  text-decoration: none;
}

body .logo .logo-mark {
  display: block;
  width: auto;
  background: transparent;
  box-shadow: none;
  transition: transform .2s ease;
}

body .logo .logo-mark-v {
  height: 78px;
}

body .logo .logo-mark-h {
  height: 44px;
}

body .logo .logo-mark-full {
  height: 68px;
}

body .logo:hover .logo-mark {
  transform: translateY(-1px);
}

body .logo .logo-text {
  color: var(--ui-ink);
  font: inherit;
  letter-spacing: -.04em;
}

body .logo .logo-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  font-family: var(--ui-display);
}

body .links {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  gap: 30px;
}

body .links a,
body .links span {
  position: relative;
  text-decoration: none;
  color: rgba(21, 23, 28, .68);
  font-size: 16px;
  line-height: 24px;
  padding: 9px 0 11px;
  white-space: nowrap;
  transition: color .2s ease;
}

body .links a:hover {
  color: var(--ui-accent-strong);
}

body .links .on {
  color: var(--ui-ink);
  font-weight: 400;
}

body .links .on::after {
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 2px;
  background: var(--ui-accent-gradient);
  content: "";
}

body .authbox,
body .nav .user {
  justify-self: end;
  justify-content: flex-end;
  min-width: 300px;
}

@media (min-width: 761px) {
  body .nav .user,
  body .nav .authbox {
    flex-wrap: nowrap;
  }
}

/* Between full desktop and phone widths, use a deliberate two-row nav instead
   of letting a username or button change each page's height independently. */
@media (max-width: 900px) {
  body .nav {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      'logo auth'
      'links links';
    align-items: center;
    gap: 12px;
    padding-block: 8px 12px;
  }

  body .logo {
    grid-area: logo;
  }

  body .links {
    grid-area: links;
    justify-content: flex-start;
    width: 100%;
    gap: 24px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  body .links::-webkit-scrollbar {
    display: none;
  }

  body .nav .authbox,
  body .nav .user {
    grid-area: auth;
    flex-wrap: nowrap;
    min-width: 0;
  }
}

/* Keep the compact navigation a single, stable line between the desktop and mobile layouts. */
@media (max-width: 1020px) {
  body .logo {
    min-height: 52px;
  }
  body .logo .logo-mark-v {
    height: 54px;
  }
  body .logo .logo-mark-h {
    height: 32px;
  }
  body .logo .logo-mark-full {
    height: 52px;
  }
}
body button,
body a,
body input,
body textarea,
body summary {
  -webkit-tap-highlight-color: transparent;
}

body button:focus-visible,
body a:focus-visible,
body input:focus-visible,
body textarea:focus-visible,
body summary:focus-visible {
  outline: 3px solid rgba(217, 172, 82, .42);
  outline-offset: 3px;
}

/* 创作工作台 */
body:has(.previewpanel) .hero {
  min-height: 0;
  align-items: center;
  padding: 42px 0 26px;
}

body:has(.previewpanel) .hero h1 {
  max-width: 650px;
  color: var(--ui-brand-strong);
  font-family: var(--ui-display);
  font-size: clamp(38px, 4.2vw, 58px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.065em;
}

body:has(.previewpanel) .hero h1 span {
  color: var(--ui-brand);
}

body:has(.previewpanel) .hero p {
  max-width: 460px;
  color: var(--ui-muted);
  font-size: 14px;
  line-height: 1.95;
}

body:has(.previewpanel) .grid {
  grid-template-columns: minmax(0, 1.07fr) minmax(420px, .93fr);
  grid-template-rows: 660px;
  gap: 20px;
}

body:has(.previewpanel) .grid > .panel {
  height: 660px;
  padding: 28px;
  border: 1px solid rgba(21, 23, 28, .12);
  border-radius: var(--ui-radius-xl);
  background: rgba(255, 253, 248, .94);
  box-shadow: var(--ui-shadow);
}

body:has(.previewpanel) .grid > .panel:first-child {
  grid-template-rows: 28px 20px 48px 20px minmax(220px, 1fr) 18px auto 20px;
  row-gap: 10px;
}

body:has(.previewpanel) .panelhead {
  height: 28px;
}

body:has(.previewpanel) .paneltitle {
  color: var(--ui-brand-strong);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.03em;
}

body:has(.previewpanel) .kicker {
  display: none;
}

body:has(.previewpanel) .label {
  color: var(--ui-ink);
  font-size: 12px;
  font-weight: 800;
}

body:has(.previewpanel) .label span:last-child,
body:has(.previewpanel) .helper,
body:has(.previewpanel) .hintrow {
  color: var(--ui-muted);
}

body:has(.previewpanel) .titleinput,
body:has(.previewpanel) .textarea {
  border: 1px solid #dfe1e4;
  border-radius: var(--ui-radius-md);
  background: #fafafa;
  color: var(--ui-ink);
  font-family: var(--ui-font);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

body:has(.previewpanel) .titleinput {
  height: 48px;
  padding: 0 16px;
}

body:has(.previewpanel) .textarea {
  padding: 17px 18px;
  font-size: 15px;
  line-height: 1.95;
}

body:has(.previewpanel) .titleinput:focus,
body:has(.previewpanel) .textarea:focus {
  border-color: var(--ui-accent);
  background: var(--ui-surface);
  box-shadow: 0 0 0 4px rgba(217, 172, 82, .16);
}

body:has(.previewpanel) .grid > .panel:first-child .quick {
  display: grid;
  height: auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

body:has(.previewpanel) .quick .pill {
  display: flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid #dfe1e4;
  border-radius: var(--ui-radius-sm);
  background: var(--ui-surface);
  color: #666e7a;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: none;
}

body:has(.previewpanel) .quick .pill:hover {
  border-color: var(--ui-accent-border);
  background: rgba(217, 172, 82, .08);
  color: var(--ui-accent-strong);
}

body:has(.previewpanel) .quick .pill.is-selected {
  border-color: var(--ui-accent-border);
  background: linear-gradient(120deg, rgba(217, 172, 82, .14), rgba(217, 172, 82, .06));
  color: var(--ui-accent-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}

body:has(.previewpanel) .quick .primary {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 52px;
  margin: 2px 0 0;
  border: 1px solid rgba(163, 119, 31, .38);
  border-radius: var(--ui-radius-md);
  background: var(--ui-accent-gradient);
  color: #15171c;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .04em;
  box-shadow: 0 16px 34px rgba(163, 119, 31, .22), inset 0 1px 0 rgba(255, 255, 255, .55);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

body:has(.previewpanel) .quick .primary:hover {
  background: linear-gradient(120deg, #f7df9e 0%, #e0b55e 48%, #b58126 100%);
  box-shadow: 0 20px 42px rgba(163, 119, 31, .27), inset 0 1px 0 rgba(255, 255, 255, .6);
  transform: translateY(-2px);
}

body:has(.previewpanel) .grid > .previewpanel {
  grid-template-rows: 28px minmax(0, 1fr) 20px;
  border-color: var(--ui-accent-border);
  background:
    radial-gradient(circle at 82% 4%, rgba(217, 172, 82, .16), transparent 26rem),
    radial-gradient(circle at 8% 100%, rgba(217, 172, 82, .07), transparent 22rem),
    var(--ui-ink-surface);
  color: #f5f4f0;
  box-shadow: 0 26px 70px rgba(21, 23, 28, .2);
}

body:has(.previewpanel) .previewhead {
  color: rgba(246, 242, 232, .8);
  font-size: 11px;
}

body:has(.previewpanel) .previewhead b {
  color: var(--ui-accent-bright);
  letter-spacing: .08em;
}

body:has(.previewpanel) .canvas {
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  background: #101216;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025);
}

body:has(.previewpanel) .previewmeta {
  color: rgba(246, 242, 232, .72);
}

body:has(.previewpanel) .below {
  grid-template-columns: minmax(0, 1.07fr) minmax(420px, .93fr);
  grid-template-rows: 310px;
  gap: 20px;
  margin-top: 20px;
}

body:has(.previewpanel) .history,
body:has(.previewpanel) .side {
  height: 310px;
  padding: 26px 28px;
  border: 1px solid rgba(21, 23, 28, .12);
  border-radius: var(--ui-radius-xl);
  box-shadow: var(--ui-shadow);
}

body:has(.previewpanel) .history {
  background: rgba(255, 253, 248, .94);
}

body:has(.previewpanel) .side {
  border-color: var(--ui-accent-border);
  background:
    radial-gradient(circle at 86% 8%, rgba(217, 172, 82, .12), transparent 26rem),
    var(--ui-ink-surface);
  color: #f5f4f0;
  box-shadow: 0 22px 56px rgba(9, 11, 14, .18);
}

body:has(.previewpanel) .history h2,
body:has(.previewpanel) .side h2 {
  font-family: var(--ui-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.035em;
}

body:has(.previewpanel) .side h2 {
  color: #f5f4f0;
}

body:has(.previewpanel) .task {
  min-height: 68px;
  border-bottom-color: rgba(21, 23, 28, .1);
  transition: background .18s ease, transform .18s ease;
}

body:has(.previewpanel) .task:hover {
  background: rgba(217, 172, 82, .07);
  transform: translateX(3px);
}

body:has(.previewpanel) .thumb {
  border-radius: 9px;
  background: var(--ui-ink-surface);
  color: var(--ui-accent-bright);
  border: 1px solid var(--ui-accent-border-soft);
}

body:has(.previewpanel) .metric {
  border-color: var(--ui-accent-border-soft);
  background: rgba(255, 255, 255, .055);
}

body:has(.previewpanel) .footer {
  padding-top: 4px;
  color: #666e7a;
}

/* 首页 */
body:has(.heroVideo) .hero h1 {
  color: var(--ui-brand-strong);
  font-family: var(--ui-display);
  font-weight: 900;
}

body:has(.heroVideo) .hero h1 span {
  background: var(--ui-gold-ink-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body:has(.heroVideo) .hero .cta .main,
body:has(.heroVideo) .plan.hot button {
  border: 1px solid rgba(163, 119, 31, .38);
  background: var(--ui-accent-gradient);
  color: #15171c;
  box-shadow: 0 16px 34px rgba(163, 119, 31, .22), inset 0 1px 0 rgba(255, 255, 255, .55);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

body:has(.heroVideo) .hero .cta .main:hover,
body:has(.heroVideo) .plan.hot button:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 20px 42px rgba(163, 119, 31, .27), inset 0 1px 0 rgba(255, 255, 255, .6);
}

body:has(.heroVideo) .heroVideo {
  border-radius: var(--ui-radius-xl);
  border: 1px solid var(--ui-accent-border);
  background: var(--ui-ink-surface);
  box-shadow: 0 28px 70px rgba(9, 11, 14, .24), inset 0 1px 0 rgba(255, 255, 255, .05);
}

body:has(.heroVideo) .step,
body:has(.heroVideo) .feat,
body:has(.heroVideo) .scene,
body:has(.heroVideo) .plan,
body:has(.heroVideo) .art {
  border-color: var(--ui-accent-border-soft);
  background: rgba(255, 253, 248, .9);
  box-shadow: 0 12px 38px rgba(21, 23, 28, .05);
}

/* 登录与充值 */
body:has(#form) .box,
body:has(#payBtn) .plan,
body:has(#payBtn) .paybar,
body:has(#payBtn) .order,
body:has(#payBtn) .needlogin {
  border-color: var(--ui-accent-border-soft);
  background: rgba(255, 253, 248, .94);
  box-shadow: 0 18px 46px rgba(21, 23, 28, .07);
}

body:has(#form) .box {
  border-radius: var(--ui-radius-xl);
  padding: 34px;
}

body:has(#form) .tabs button.on,
body:has(#form) .submit,
body:has(#payBtn) .paybar button,
body:has(#payBtn) .needlogin a.primary {
  border: 1px solid rgba(163, 119, 31, .38);
  background: var(--ui-accent-gradient);
  color: #15171c;
  box-shadow: 0 14px 30px rgba(163, 119, 31, .2), inset 0 1px 0 rgba(255, 255, 255, .55);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

body:has(#form) input:focus {
  border-color: var(--ui-accent);
  box-shadow: 0 0 0 4px rgba(217, 172, 82, .16);
}

body:has(#payBtn) .me {
  border: 1px solid var(--ui-accent-border);
  background:
    radial-gradient(circle at 88% 0%, rgba(217, 172, 82, .16), transparent 28rem),
    var(--ui-ink-surface);
  box-shadow: 0 22px 56px rgba(9, 11, 14, .2);
}

body:has(#payBtn) .me b,
body:has(#payBtn) .paybar .total b {
  color: var(--ui-accent-strong);
}

body:has(#payBtn) .plan.hot,
body:has(#payBtn) .plan.picked {
  border-color: var(--ui-accent-border);
  box-shadow: 0 0 0 3px rgba(217, 172, 82, .1);
}

body:has(#form) .tabs button.on,
body:has(#form) .submit:hover,
body:has(#payBtn) .paybar button:hover,
body:has(#payBtn) .needlogin a.primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 18px 38px rgba(163, 119, 31, .24), inset 0 1px 0 rgba(255, 255, 255, .6);
}

@media (max-width: 1100px) {
  body:has(.previewpanel) .grid,
  body:has(.previewpanel) .below {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  body:has(.previewpanel) .grid > .panel,
  body:has(.previewpanel) .history,
  body:has(.previewpanel) .side {
    width: 100%;
    height: auto;
  }

  body:has(.previewpanel) .grid > .panel:first-child {
    display: block;
  }

  body:has(.previewpanel) .previewpanel {
    min-height: 720px;
  }

  body:has(.previewpanel) .below > * {
    min-height: 280px;
  }
}

@media (max-width: 760px) {
  body .site {
    padding: 14px 16px 48px;
  }

  body .nav {
    display: flex;
    min-height: 56px;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    padding-top: 6px;
    padding-bottom: 10px;
    padding-inline: 0;
  }

  body .links {
    order: 3;
    justify-self: auto;
    display: flex;
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    padding-top: 2px;
    scrollbar-width: none;
  }

  body .links::-webkit-scrollbar {
    display: none;
  }

  body .links a,
  body .links span {
    flex: 0 0 auto;
    padding: 8px 0 10px;
  }

  body .nav .authbox,
  body .nav .user {
    min-width: 0;
  }

  body .value-grid {
    grid-template-columns: 1fr;
  }

  body:has(.previewpanel) .hero {
    display: block;
    padding: 30px 0 20px;
  }

  body:has(.previewpanel) .hero h1 {
    font-size: clamp(36px, 11vw, 48px);
    letter-spacing: -.055em;
  }

  body:has(.previewpanel) .hero p {
    margin-top: 18px;
    font-size: 13px;
  }

  body:has(.previewpanel) .grid > .panel {
    padding: 20px;
    border-radius: 18px;
  }

  body:has(.previewpanel) .grid > .panel:first-child .quick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:has(.previewpanel) .quick .primary {
    min-height: 50px;
  }

  body:has(.previewpanel) .previewpanel {
    min-height: 0;
  }

  body:has(.previewpanel) .canvas {
    height: 430px;
    min-height: 0;
  }

  body:has(.previewpanel) .history,
  body:has(.previewpanel) .side {
    height: auto;
    padding: 22px 20px;
    border-radius: 18px;
  }
}

/* Shared typography and supporting controls. */
body h1, body h2, body h3, body .sectionTitle, body .plan .price,
body .paybar .total b { font-family: var(--ui-font); }
body .nav .user, body .nav .authbox {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}
body .nav a {
  text-decoration: none;
}
body .nav .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid rgba(21, 23, 28, .14);
  border-radius: 9px;
  background: rgba(255, 255, 255, .82);
  color: #333842;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
body .nav .btn.hot {
  border-color: rgba(163, 119, 31, .42);
  background: var(--ui-accent-gradient);
  color: #15171c;
  box-shadow: 0 12px 26px rgba(163, 119, 31, .2), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.onboarding-note {
  position: relative;
  margin: 0 0 20px;
  padding: 14px 44px 14px 18px;
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  background: var(--ui-surface-soft);
  color: #666e7a;
  font-size: 12px;
  line-height: 1.8;
}
.onboarding-note b { color: var(--ui-brand); }
.onboarding-note button {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--ui-muted);
  font-size: 20px;
  cursor: pointer;
}
body:has(.previewpanel) .metric b { flex: 0 0 24px; white-space: nowrap; font-variant-numeric: tabular-nums; }
body:has(.heroVideo) .feat h3 { color: var(--ui-brand); }
body:has(.heroVideo) .feat h3 { color: var(--ui-accent-bright); }
body:has(.heroVideo) .feat p { color: #b8bec8; }
body:has(.heroVideo) .freehint { color: #666e7a; }
body:has(.heroVideo) .heroVideo .cap { gap: 12px; flex-wrap: wrap; }
body .herocopy { min-width: 0; }

/* Voice service status is a quiet status badge, never a paragraph continuation. */
body .tts-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid var(--ui-line);
  border-radius: 999px;
  background: var(--ui-surface);
  color: var(--ui-muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

body .tts-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ui-accent-strong);
}

body:has(.previewpanel) .hero .tts-status {
  margin-top: 10px;
}

/* Secondary pages use the same reading width while the navigation stays full-shell width. */
body .reading {
  width: 100%;
  max-width: var(--ui-shell-max);
  margin: 0;
}

body .reading article {
  max-width: 840px;
}

body .value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin: 26px 0 0;
  text-align: left;
}

body .value-card {
  padding: 14px;
  border: 1px solid var(--ui-accent-border-soft);
  border-radius: var(--ui-radius-md);
  background: var(--ui-surface-soft);
}

body .value-card b {
  display: block;
  margin-bottom: 5px;
  color: var(--ui-accent-strong);
  font-size: 12px;
}

body .value-card span {
  display: block;
  color: var(--ui-muted);
  font-size: 11px;
  line-height: 1.7;
}

body .empty-shell {
  width: 100%;
}

body .empty-shell h1 {
  margin: 0 0 8px;
  color: var(--ui-brand-strong);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  letter-spacing: -.035em;
}

body .empty-shell .lead {
  max-width: 560px;
  margin: 0 auto;
  color: var(--ui-muted);
  font-size: 13px;
  line-height: 1.9;
}

body .empty-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

body .empty-actions .primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid rgba(163, 119, 31, .38);
  border-radius: 10px;
  background: var(--ui-accent-gradient);
  color: #15171c;
  box-shadow: 0 14px 30px rgba(163, 119, 31, .2), inset 0 1px 0 rgba(255, 255, 255, .55);
  font-size: 13px;
  font-weight: 900;
}

body .empty-actions .ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ui-line);
  border-radius: 10px;
  background: var(--ui-surface);
  color: var(--ui-brand);
  font-size: 13px;
  font-weight: 800;
}
body .footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 14px;
  line-height: 1.75;
}

body .nav .member-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 4px 12px 4px 4px;
  border: 1px solid var(--ui-accent-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}

body .nav .member-chip i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--ui-accent-gradient);
  color: #15171c;
  font-size: 12px;
  font-weight: 900;
  font-style: normal;
}

body .nav .member-detail {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  line-height: 1.15;
}

body .nav .member-detail b {
  overflow: hidden;
  max-width: 108px;
  color: var(--ui-ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body .nav .member-detail small {
  color: var(--ui-muted);
  font-size: 11px;
}

body .nav .member-detail small b {
  color: var(--ui-accent-strong);
  font-size: 11px;
}

/* Cross-page material lock: every information surface shares the same ink-and-gold finish. */
body .hero h1 span,
body .sectionTitle span {
  background: var(--ui-gold-ink-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body .step b,
body .demo-kicker {
  background: var(--ui-gold-ink-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body .step,
body .scene,
body .plan,
body .art,
body .theme-card,
body .swatch,
body .decision-note,
body .onboarding-note {
  border: 1px solid var(--ui-accent-border-soft);
  background: linear-gradient(150deg, rgba(255, 255, 255, .98) 0%, rgba(255, 251, 240, .95) 100%);
  box-shadow: 0 14px 40px rgba(21, 23, 28, .05);
}

body:has(.heroVideo) .feat {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ui-accent-border);
  background:
    radial-gradient(circle at 86% 4%, rgba(217, 172, 82, .14), transparent 26rem),
    var(--ui-ink-surface);
  color: #f5f4f0;
  box-shadow: 0 18px 46px rgba(9, 11, 14, .14);
}

body:has(.heroVideo) .plan.hot {
  border-color: var(--ui-accent-border);
  box-shadow: 0 0 0 3px rgba(217, 172, 82, .1), 0 18px 46px rgba(21, 23, 28, .07);
}

body:has(.heroVideo) .plan .tag {
  background: var(--ui-accent-gradient);
  color: #15171c;
}

body:has(.heroVideo) .art .cat {
  border: 1px solid var(--ui-accent-border);
  background: rgba(217, 172, 82, .1);
  color: var(--ui-accent-strong);
}

body:has(.previewpanel) .grid > .panel:not(.previewpanel),
body:has(.previewpanel) .history {
  border: 1px solid var(--ui-accent-border-soft);
  background: linear-gradient(150deg, rgba(255, 255, 255, .98) 0%, rgba(255, 251, 240, .95) 100%);
}

body .footer {
  border-top: 1px solid rgba(217, 172, 82, .2);
}

/* Standard footer: keep only the light page footer. */
body .footer.footer-contact {
  display: block;
  margin-top: 34px;
  padding-top: 22px;
}

body .footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: 14px;
  color: var(--ui-muted);
  font-size: 14px;
}

@media (max-width: 980px) {
  body .footer-legal { flex-direction: column; }
}

body .tts-status {
  border-color: var(--ui-accent-border-soft);
  background: rgba(255, 255, 255, .72);
}
@media (max-width: 760px) {
  body .logo { font-size: 18px; white-space: nowrap; }
  body .logo { min-height: 46px; }
  body .logo .logo-mark-v { height: 42px; }
  body .logo .logo-mark-h { height: 26px; }
  body .nav .user, body .nav .authbox { margin-left: 0; width: 100%; justify-content: flex-start; }
  body:has(.previewpanel) .hero .tts-status { margin-top: 12px; }
  body .empty-actions .primary,
  body .empty-actions .ghost { width: 100%; }
  body:has(.previewpanel) .previewmeta { height: auto; flex-wrap: wrap; gap: 6px; }
  body:has(.previewpanel) .below > * { min-height: 0; }
  body .footer { flex-direction: column; line-height: 1.8; }
}

@media (prefers-reduced-motion: no-preference) {
  body .site > .hero,
  body .site > .grid,
  body .site > .below {
    animation: ui-rise .55s cubic-bezier(.2, .8, .2, 1) both;
  }

  body .site > .grid { animation-delay: .07s; }
  body .site > .below { animation-delay: .14s; }

  @keyframes ui-rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---- Shared card language: icon chips, aligned heads, unified hover, gold note ---- */
body .icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--ui-accent-border-soft);
  border-radius: 12px;
  font-size: 21px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}

body .icon-chip.gold {
  background: linear-gradient(150deg, #fdf6e7 0%, #f5ead0 100%);
  color: var(--ui-accent-strong);
}

body .icon-chip.ink {
  border-color: var(--ui-accent-border);
  background: var(--ui-ink-surface);
  color: var(--ui-accent-bright);
}

body .icon-chip.solid {
  border-color: rgba(163, 119, 31, .38);
  background: var(--ui-accent-gradient);
  color: #15171c;
}

body .icon-chip.on-dark {
  border-color: rgba(217, 172, 82, .3);
  background: rgba(217, 172, 82, .12);
  color: var(--ui-accent-bright);
}

body .card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

body .card-head h3,
body .card-head h4,
body .card-head b {
  margin: 0;
  min-width: 0;
}

body .gold-note {
  display: flex;
  align-items: baseline;
  gap: 4px 12px;
  flex-wrap: wrap;
  margin: 0;
  padding: 13px 18px;
  border: 1px solid var(--ui-accent-border-soft);
  border-left: 4px solid var(--ui-accent);
  border-radius: 12px;
  background: linear-gradient(150deg, #fffdf8 0%, #fbf3e0 100%);
  color: #6b6152;
  font-size: 12px;
  line-height: 1.8;
}

body .gold-note b {
  color: var(--ui-accent-strong);
}

body .hero .freehint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding: 11px 16px;
  border: 1px solid var(--ui-accent-border-soft);
  border-left: 4px solid var(--ui-accent);
  border-radius: 10px;
  background: linear-gradient(150deg, #fffdf8 0%, #fbf3e0 100%);
  color: #6b6152;
  font-size: 12px;
  line-height: 1.7;
}

body .step .card-head,
body .feat .card-head {
  margin-bottom: 14px;
}

body .scene .card-head {
  margin-bottom: 12px;
}

@media (hover: hover) and (pointer: fine) {
  body .step,
  body .scene,
  body .plan,
  body .art,
  body .theme-card,
  body .order,
  body .value-card {
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  }

  body .step:hover,
  body .scene:hover,
  body .art:hover,
  body .theme-card:hover,
  body .order:hover,
  body .value-card:hover {
    transform: translateY(-3px);
    border-color: var(--ui-accent-border);
    box-shadow: 0 20px 48px rgba(21, 23, 28, .09);
  }

  body .plan:hover {
    transform: translateY(-3px);
    border-color: var(--ui-accent-border);
    box-shadow: 0 20px 48px rgba(21, 23, 28, .09);
  }

  body .plan.picked:hover {
    border-color: var(--ui-accent);
    box-shadow: 0 0 0 3px rgba(217, 172, 82, .18), 0 20px 48px rgba(21, 23, 28, .09);
  }

  body:has(.heroVideo) .feat {
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  }

  body:has(.heroVideo) .feat:hover {
    transform: translateY(-3px);
    border-color: rgba(217, 172, 82, .42);
    box-shadow: 0 22px 52px rgba(9, 11, 14, .2);
  }
}

/* Membership plan cards share the rich layout: head, price, saving note, checks, CTA. */
body:has(#payBtn) .plan {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 420px;
  padding: 24px 24px 22px;
  text-align: left;
}

body:has(#payBtn) .plan .card-head {
  margin-bottom: 18px;
}

body:has(#payBtn) .plan .card-head h3 {
  font-size: 15px;
}

body:has(#payBtn) .plan .price {
  margin: 0;
  font-size: 34px;
  font-variant-numeric: tabular-nums;
}

body:has(#payBtn) .plan .price span {
  color: var(--ui-muted);
  font-size: 12px;
  font-weight: 600;
}

body:has(#payBtn) .plan .save {
  margin-top: 4px;
  color: var(--ui-accent-strong);
  font-size: 12px;
  font-weight: 700;
}

body:has(#payBtn) .plan .who {
  margin: 12px 0 0;
  color: #666e7a;
  font-size: 12px;
  line-height: 1.8;
  text-align: left;
}

body:has(#payBtn) .plan .plan-check {
  display: grid;
  gap: 9px;
  margin: 14px 0 18px;
  padding: 14px 0 0;
  border-top: 1px dashed var(--ui-accent-border-soft);
  list-style: none;
}

body:has(#payBtn) .plan .plan-check li {
  position: relative;
  padding-left: 22px;
  color: #3d434c;
  font-size: 12px;
  line-height: 1.6;
}

body:has(#payBtn) .plan .plan-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ui-accent-strong);
  font-weight: 900;
}

body:has(#payBtn) .plan .buy {
  margin-top: auto;
  min-height: 46px;
  border: 1px solid rgba(163, 119, 31, .38);
  border-radius: 10px;
  background: var(--ui-accent-gradient);
  color: #15171c;
  box-shadow: 0 14px 30px rgba(163, 119, 31, .18), inset 0 1px 0 rgba(255, 255, 255, .55);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

body:has(#payBtn) .plan .buy:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 18px 38px rgba(163, 119, 31, .24), inset 0 1px 0 rgba(255, 255, 255, .6);
}

body:has(#payBtn) .plan .buy[disabled] {
  opacity: .6;
}

body:has(#payBtn) .paybar {
  margin-bottom: 14px;
}

body:has(#payBtn) .gold-note {
  margin-bottom: 26px;
}

/* Works library and recent-task cards share the same ink-and-gold language. */
body:has(.works) .workbar,
body:has(.works) .works,
body:has(.works) .empty,
body:has(.works) .pager {
  width: 100%;
  min-width: 0;
}

body:has(.works) .works {
  margin: 0;
}

body:has(.works) .filter:focus-visible,
body:has(.works) .search input:focus-visible,
body:has(.works) .actions button:focus-visible,
body:has(.works) .actions a:focus-visible,
body:has(.works) .media:focus-visible {
  outline: 3px solid rgba(217, 172, 82, .42);
  outline-offset: 3px;
}

body:has(.previewpanel) .history-link {
  color: var(--ui-accent-strong);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(163, 119, 31, .35);
  transition: color .18s ease, border-color .18s ease;
}

body:has(.previewpanel) .history-link:hover {
  color: #6f500f;
  border-bottom-color: #6f500f;
}

body:has(.previewpanel) #estimateBalance {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
