:root {
  --accent: #ff6a00;
  --accent-hover: #ff7a1a;
  --accent-deep: #c94f00;
  --accent-soft: rgba(255, 106, 0, 0.1);
  --accent-border: rgba(255, 106, 0, 0.26);
  --accent-shadow: rgba(255, 106, 0, 0.18);
  --text: #171717;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #fff4eb;

  /* ===== 设计令牌（暖橙/奶油体系，三页 re-skin 共用，对齐设计稿 design-tokens） ===== */
  --wf-orange: #f2511b;
  --wf-orange-soft: #ff8a50;
  --wf-orange-deep: #e03e0b;
  --wf-amber: #ffb23e;
  --wf-ink: #1f2937;
  --wf-gray: #4b5563;
  --wf-gray-lt: #8a93a3;
  --wf-gray-faint: #aab1bd;
  --wf-line: #edeff2;
  --wf-surface: #ffffff;
  --wf-cream: #fdf3ea;
  --wf-red: #d93025;
  --wf-mkt-cream: #fcf2e4;
  --wf-mkt-cream-hi: #fff7ec;
  --wf-mkt-ink: #1b140e;
  --wf-mkt-violet: rgba(167, 148, 245, 0.45);
  --wf-warm-head: #fbf7f2;
  --wf-warm-hover: #fffbf7;
  --wf-warm-hover-2: #fff7f3;
  --wf-chip-cream-bg: #ffead9;
  --wf-chip-cream-fg: #e0560f;
  --wf-chip-amber-bg: #fff1d6;
  --wf-chip-amber-fg: #b5790a;
  --wf-grad-cta: linear-gradient(180deg, #ff6a2b, #f0480f);
  --wf-grad-bar: linear-gradient(90deg, #ffb23e, #f2511b);
  --wf-grad-edge: linear-gradient(180deg, #ffb23e, #f2511b);
  --wf-shadow-card: 0 14px 30px rgba(31, 41, 55, 0.1);
  --wf-shadow-cta: 0 8px 20px rgba(242, 81, 27, 0.3);
  --wf-shadow-cta-h: 0 12px 26px rgba(242, 81, 27, 0.4);
  --wf-shadow-mkt: 0 32px 80px rgba(30, 16, 5, 0.35);
  --wf-focus-ring: 0 0 0 3px rgba(242, 81, 27, 0.12);
  --wf-r-xs: 5px;
  --wf-r-sm: 8px;
  --wf-r-md: 10px;
  --wf-r-lg: 14px;
  --wf-r-xl: 16px;
  --wf-r-2xl: 18px;
  --wf-r-full: 999px;
  --wf-font-mono: ui-monospace, "SF Mono", "Menlo", "Consolas", monospace;
  --wf-ease-rise: cubic-bezier(0.2, 0.9, 0.3, 1);
  --wf-ease-pop: cubic-bezier(0.2, 1.3, 0.35, 1);
  --wf-ease-spin: cubic-bezier(0.4, 0, 0.2, 1);
  --wf-dur-hover: 0.16s;
}

/* API docs: module-based reference layout */
body.docs-page {
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: scroll;
  background: #ffffff;
  color: #464d5a;
  padding: 0 clamp(20px, 5vw, 96px);
  scrollbar-gutter: stable;
}

.docs-page .docs-api-shell {
  --docs-sticky-top: clamp(68px, 5vw, 84px);

  display: grid;
  width: min(100%, 1600px);
  min-height: 100vh;
  grid-template-columns: 318px minmax(0, 1fr);
  background: #ffffff;
  border-right: 1px solid rgba(15, 23, 42, 0.06);
  border-left: 1px solid rgba(15, 23, 42, 0.06);
  margin: 0 auto;
}

.docs-page .docs-api-side {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 0;
  overflow-y: auto;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  background: #fbfcfe;
  padding: 22px 22px 32px;
}

.docs-page .docs-brand {
  display: grid;
  gap: 6px;
  align-items: start;
  margin-bottom: 30px;
  color: #303746;
  font-size: 15px;
  text-decoration: none;
}

.docs-page .docs-logo {
  display: block;
  width: 136px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.docs-page .docs-brand span {
  color: #818898;
  font-size: 12px;
  font-weight: 720;
}

.docs-api-nav {
  display: grid;
  gap: 28px;
}

.docs-nav-group h2 {
  margin: 0 0 10px;
  color: #303746;
  font-size: 15px;
  line-height: 1.25;
}

.docs-api-nav a {
  display: grid;
  min-height: 36px;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border-radius: 10px;
  padding: 7px 10px;
  color: #555e6b;
  font-size: 14px;
  font-weight: 640;
  line-height: 1.45;
  transition:
    background 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease;
}

.docs-api-nav a:hover {
  background: #f1f3f5;
  color: #3f4652;
}

.docs-api-nav a.active,
.docs-api-nav a.active:hover {
  background: var(--accent-soft);
  color: var(--accent-deep);
  box-shadow: none;
}

.method {
  display: inline-flex;
  width: fit-content;
  min-width: 35px;
  justify-content: center;
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 820;
  line-height: 1;
}

.method.post {
  background: #dbeafe;
  color: #2563eb;
}

.method.get {
  background: #dcfce7;
  color: #15803d;
}

.docs-page .docs-api-main {
  min-width: 0;
  max-width: none;
  min-height: 0;
  overflow: visible;
  padding: 0;
  background: #ffffff;
}

.docs-page .docs-api-main:focus {
  outline: none;
}

.docs-panel {
  display: none;
  min-height: 100%;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  gap: clamp(34px, 4vw, 72px);
  align-items: start;
  padding: var(--docs-sticky-top) clamp(38px, 5vw, 84px) clamp(46px, 5vw, 72px);
}

.docs-panel.is-active {
  display: grid;
}

.docs-copy {
  max-width: 820px;
}

.docs-copy.wide {
  grid-column: 1 / -1;
  max-width: 1180px;
}

.docs-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 16px;
  font-weight: 800;
}

.docs-copy h1 {
  margin: 0 0 16px;
  color: #242b37;
  font-size: clamp(34px, 3vw, 46px);
  line-height: 1.12;
  letter-spacing: 0;
}

.docs-lead {
  max-width: 760px;
  margin: 0 0 28px;
  color: #555d69;
  font-size: 18.5px;
  line-height: 1.65;
}

.endpoint-card {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 24px 0 42px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  padding: 14px 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.endpoint-card code {
  color: #454d5a;
  font-size: 17px;
  font-weight: 720;
  word-break: break-all;
}

.docs-copy h2 {
  margin: 34px 0 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding-bottom: 12px;
  color: #29313d;
  font-size: 23px;
  line-height: 1.28;
}

.docs-copy p {
  max-width: 760px;
  margin: 0 0 16px;
  color: #586171;
  font-size: 16px;
  line-height: 1.75;
}

.docs-copy code,
.docs-table code,
.docs-bullets code {
  border-radius: 5px;
  background: #f3f4f6;
  padding: 1px 5px;
  color: #4b5563;
  font-size: 0.92em;
}

.field-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 14px 0 20px;
  color: #586171;
  font-size: 15px;
}

.field-line strong {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 16px;
}

.field-line span,
.field-line em {
  border-radius: 7px;
  background: #f3f4f6;
  padding: 4px 8px;
  color: #6b7280;
  font-style: normal;
  font-weight: 720;
}

.field-line em {
  background: rgba(255, 106, 0, 0.11);
  color: var(--accent-deep);
}

.step-list {
  display: grid;
  gap: 12px;
}

.step-list div,
.note-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  padding: 16px;
}

.step-list strong,
.note-card strong {
  display: block;
  color: #29313d;
  font-size: 16px;
}

.step-list span,
.note-card p {
  display: block;
  margin-top: 6px;
  color: #626b78;
  font-size: 15px;
  line-height: 1.65;
}

.docs-bullets {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  color: #586171;
  font-size: 16px;
  line-height: 1.7;
}

.docs-page .docs-table.compact {
  display: block;
  overflow-x: auto;
  border-color: rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  font-size: 15px;
}

.docs-page .docs-table.compact th,
.docs-page .docs-table.compact td {
  padding: 11px 13px;
}

.docs-page .docs-table.compact th {
  background: #f8fafc;
  color: #454d5a;
  font-weight: 760;
}

.docs-page .docs-table.compact td {
  color: #626b78;
  line-height: 1.65;
}

.docs-examples {
  position: sticky;
  top: var(--docs-sticky-top);
  display: grid;
  gap: 24px;
  align-self: start;
  max-height: calc(100vh - var(--docs-sticky-top) - 24px);
  overflow: visible;
  min-width: 0;
  padding-right: 2px;
}

.code-card {
  position: relative;
  display: flex;
  max-height: calc((100vh - var(--docs-sticky-top) - 48px) / 2);
  min-height: 0;
  flex-direction: column;
  overflow: visible;
  border: 1px solid rgba(15, 23, 42, 0.11);
  border-radius: 18px;
  background: #fffaf6;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.code-card:has(.code-tab-buttons.open) {
  z-index: 20;
}

.docs-examples .code-card:only-child,
.docs-examples .note-card:only-child {
  max-height: calc(100vh - var(--docs-sticky-top) - 24px);
}

.code-card.response {
  background: #ffffff;
}

.code-tabs {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff4eb;
  border-radius: 17px 17px 0 0;
  padding: 12px 16px;
  color: var(--accent);
  font-size: 13px;
}

.code-tab-buttons {
  position: relative;
  z-index: 30;
}

.code-tab-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 116px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 106, 0, 0.1);
  padding: 8px 12px;
  color: var(--accent);
  font: inherit;
  font-weight: 820;
  line-height: 1;
  cursor: pointer;
}

.code-tab-toggle::after {
  width: 7px;
  height: 7px;
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  content: "";
  transform: translateY(-2px) rotate(45deg);
}

.code-tab-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 10px);
  left: 0;
  display: none;
  min-width: min(260px, 62vw);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  background: #ffffff;
  padding: 8px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
}

.code-tab-buttons.open .code-tab-menu {
  display: grid;
}

.code-tab-menu button {
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 10px 12px;
  color: #6b7280;
  font: inherit;
  font-weight: 720;
  text-align: left;
  cursor: pointer;
}

.code-tab-menu button:hover {
  background: #f3f4f6;
  color: #3f4652;
}

.code-tab-menu button.active {
  color: var(--accent);
}

.code-copy-button {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
}

.code-copy-button:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #6b7280;
}

.code-copy-button span {
  position: relative;
  width: 15px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.code-copy-button span::before {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 15px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 3px;
  background: transparent;
  content: "";
}

.code-copy-button.copied {
  color: var(--accent);
}

.code-tabs strong {
  font-weight: 820;
}

.code-tabs span {
  color: var(--accent-deep);
  font-weight: 660;
  text-align: right;
}

.docs-page .code-card pre,
.docs-page .docs-section pre {
  min-height: 0;
  max-height: none;
  flex: 1 1 auto;
  overflow: auto;
  margin: 0;
  border-radius: 0 0 17px 17px;
  background: #ffffff;
  padding: 18px 20px;
  color: #12346b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.72;
}

.code-card.response pre {
  color: #166534;
}

/* API 文档：用户需自行替换的位置（API Key / 模型名）主题色高亮，一眼看出要改哪 */
.docs-page .doc-ph {
  color: var(--accent);
  font-weight: 700;
  background: var(--accent-soft);
  border-radius: 4px;
  padding: 0 3px;
}

@media (max-width: 1180px) {
  body.docs-page {
    height: auto;
    overflow: auto;
  }

  .docs-page .docs-api-shell {
    height: auto;
    grid-template-columns: 1fr;
  }

  .docs-page .docs-api-side {
    position: static;
    height: auto;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }

  .docs-api-nav {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }

  .docs-panel,
  .docs-panel.is-active {
    grid-template-columns: 1fr;
  }

  .docs-examples {
    position: static;
  }
}

@media (max-width: 760px) {
  .docs-api-nav {
    grid-template-columns: 1fr;
  }

  .docs-panel {
    padding: 28px 18px 46px;
  }
}

/* Keep the API reference layout above legacy docs preview rules. */
.docs-page .docs-api-nav {
  display: grid;
  gap: 28px;
  margin-bottom: 0;
}

.docs-page .docs-api-nav a {
  display: grid;
  min-height: 36px;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border-radius: 10px;
  padding: 7px 10px;
  color: #555e6b;
  font-size: 14px;
  font-weight: 640;
  line-height: 1.45;
}

.docs-page .docs-api-nav a:hover {
  background: #f1f3f5;
  color: #3f4652;
  box-shadow: none;
}

.docs-page .docs-api-nav a.active,
.docs-page .docs-api-nav a.active:hover {
  background: var(--accent-soft);
  color: var(--accent-deep);
  box-shadow: none;
}

.docs-page .docs-panel {
  display: none;
}

.docs-page .docs-panel.is-active {
  display: grid;
}

@media (max-width: 1180px) {
  .docs-page .docs-api-nav {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }
}

@media (max-width: 760px) {
  .docs-page .docs-api-nav {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

body.market-page {
  height: 100vh;
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #fff7ef 0%, #fff 34%),
    radial-gradient(circle at 82% 10%, rgba(255, 106, 0, 0.1), transparent 30%);
}

.admin-shell {
  background: linear-gradient(180deg, #f9fafb 0%, #fff 34%);
}

.redirect-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background: #ffffff;
}

.market-app {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 0 0, rgba(255, 106, 0, 0.24), rgba(255, 106, 0, 0.13) 9%, transparent 22%),
    radial-gradient(circle at 100% 100%, rgba(255, 145, 38, 0.22), rgba(255, 145, 38, 0.1) 13%, transparent 28%),
    linear-gradient(135deg, rgba(255, 250, 245, 0.96), rgba(255, 255, 255, 0.98) 46%, rgba(255, 247, 237, 0.92)),
    #ffffff;
}

.model-home {
  min-height: 100vh;
  /* 最初版背景(4d49b62b)：白色为主、上部一丝淡橙、底部极浅蓝灰 */
  background: linear-gradient(180deg, #ffffff 0%, #fff8f1 38%, #ffffff 74%, #f8fafc 100%);
}

/* ===== 一级页面便签三连·复原（经典便利贴 + 手写大字 + 涂鸦箭头 + 贴纸按钮） ===== */
/* 手写字体：自托管子集(仅"稳定透明保真"6字,6KB)，运行时不依赖 Google Fonts */
@font-face {
  font-family: 'Ma Shan Zheng';
  src: url('/assets/mashanzheng-subset.woff2') format('woff2');
  font-display: swap;
}

/* 固定设计面(780x174)居中，窄屏整体等比缩放 */
.value-stage {
  position: relative;
  width: 940px;
  height: 206px;
  margin: 18px auto 0;
}
.value-doodles {
  position: absolute;
  top: 4px;
  left: 0;
  width: 940px;
  height: 200px;
  z-index: 1;
  pointer-events: none;
}
.value-doodles .vd-tw { transform-box: fill-box; transform-origin: center; animation: valueDoodleTw 2.4s ease-in-out infinite; }
.value-doodles .vd-tw.vd-b { animation-delay: 0.7s; }
.value-doodles .vd-tw.vd-c { animation-delay: 1.4s; }
@keyframes valueDoodleTw { 0%, 100% { transform: scale(0.7); opacity: 0.5; } 50% { transform: scale(1.05); opacity: 1; } }
.value-doodles .vd-arrow { stroke-dasharray: 240; stroke-dashoffset: 240; animation: valueDoodleDraw 1.1s ease forwards; }
.value-doodles .vd-arrow.vd-r { animation-delay: 0.25s; }
@keyframes valueDoodleDraw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .value-doodles .vd-tw { animation: none; opacity: 1; }
  .value-doodles .vd-arrow { animation: none; stroke-dashoffset: 0; }
}

/* 便签 · 上小下大 · 双色页签 + 下划线（作用域限定 .value-stage，避免影响别处 .note） */
.value-notes {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 34px;
}
.value-stage .note {
  position: relative;
  width: 150px;
  height: 124px;
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-shadow: 0 1px 2px rgba(110, 85, 45, 0.12);
}
.value-stage .note::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 42px; }
.value-stage .note .small {
  position: relative;
  z-index: 1;
  height: 42px;
  display: flex;
  align-items: center;
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 5px;
  text-indent: 5px;
  color: #5c5040;
  line-height: 1;
  white-space: nowrap;
}
.value-stage .note .small::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  width: 26px;
  height: 2.6px;
  border-radius: 2px;
}
.value-stage .note .big {
  margin-top: 18px;
  font-family: 'Ma Shan Zheng', 'Kaiti SC', 'STKaiti', 'KaiTi', serif;
  font-size: 46px;
  line-height: 1;
  letter-spacing: 4px;
  text-indent: 4px;
  white-space: nowrap;
  color: #39383a;
  -webkit-text-stroke: 0.8px #39383a;
}
.value-stage .n1 { transform: rotate(-2.6deg); background: #fff1be; box-shadow: 0 1px 2px rgba(110, 85, 45, 0.12), -5px 13px 16px -3px rgba(110, 85, 45, 0.3); }
.value-stage .n1::before { background: #ffd66a; }
.value-stage .n1 .small::after { background: #e0a93c; }
.value-stage .n2 { transform: rotate(1.7deg); background: #fde2e8; box-shadow: 0 1px 2px rgba(110, 85, 45, 0.12), 4px 12px 15px -3px rgba(110, 85, 45, 0.28); }
.value-stage .n2::before { background: #f7b3c1; }
.value-stage .n2 .small::after { background: #e58aa0; }
.value-stage .n3 { transform: rotate(-1.1deg); background: #e2f2cc; box-shadow: 0 1px 2px rgba(110, 85, 45, 0.12), -2px 14px 17px -3px rgba(110, 85, 45, 0.3); }
.value-stage .n3::before { background: #bbe195; }
.value-stage .n3 .small::after { background: #8fc264; }
.value-stage .n4 { transform: rotate(2.2deg); background: #dce9f8; box-shadow: 0 1px 2px rgba(110, 85, 45, 0.12), 3px 13px 16px -3px rgba(110, 85, 45, 0.28); }
.value-stage .n4::before { background: #b2ccef; }
.value-stage .n4 .small::after { background: #88aee0; }

/* 贴纸风按钮：主按钮橙色贴纸(白描边+硬投影+高光+角闪) / 副按钮纸质缝线标签 */
.sticker-btn {
  position: relative;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 16px;
  padding: 13px 26px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.sticker-btn:active { transform: translateY(3px) !important; }
.sticker-primary {
  color: #fff;
  transform: rotate(-1.2deg);
  background: linear-gradient(180deg, #ff8e45 0%, #f76a1c 55%, #f25b0e 100%);
  border: 3px solid #fffdf6;
  box-shadow: 0 5px 0 rgba(190, 75, 10, 0.85), 0 10px 18px rgba(210, 95, 25, 0.32);
  text-shadow: 0 1px 0 rgba(160, 60, 0, 0.3);
}
.sticker-primary:hover {
  transform: rotate(-1.2deg) translateY(-2px);
  box-shadow: 0 7px 0 rgba(190, 75, 10, 0.85), 0 14px 22px rgba(210, 95, 25, 0.36);
  color: #fff;
}
.sticker-primary::before {
  content: '';
  position: absolute;
  inset: 3px 10px auto 10px;
  height: 38%;
  border-radius: 12px 12px 30px 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.sticker-primary .spark {
  position: absolute;
  top: -13px;
  right: -11px;
  pointer-events: none;
}
.sticker-ghost {
  color: #6e5a3e;
  transform: rotate(0.8deg);
  background: linear-gradient(180deg, #fffef9, #fbf3e3);
  border: 2px solid #e9dcc2;
  box-shadow: 0 4px 0 rgba(190, 160, 110, 0.45), 0 8px 14px rgba(150, 115, 60, 0.16);
}
.sticker-ghost:hover {
  transform: rotate(0.8deg) translateY(-2px);
  box-shadow: 0 6px 0 rgba(190, 160, 110, 0.45), 0 12px 18px rgba(150, 115, 60, 0.2);
  color: #6e5a3e;
}
.sticker-ghost::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 11px;
  border: 1.6px dashed #d8be92;
  pointer-events: none;
}
.sticker-btn .ico { display: block; flex: none; }

/* 窄屏：设计面整体等比缩放(负 margin 抵消 transform 不缩布局盒) */
@media (max-width: 1180px) {
  .value-stage {
    transform: scale(0.8);
    transform-origin: top center;
    margin: 18px calc((100% - 940px) / 2) -42px;
  }
}
@media (max-width: 760px) {
  .value-stage {
    transform: scale(0.38);
    transform-origin: top center;
    margin: 6px calc((100% - 940px) / 2) -120px;
  }
}

.home-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(229, 231, 235, 0.82);
  background: rgba(255, 255, 255, 0.9);
  padding: 16px clamp(20px, 5vw, 72px);
  backdrop-filter: blur(14px);
}

.home-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #475467;
  font-size: 14px;
  font-weight: 720;
}

.home-nav-links a {
  border-radius: 8px;
  padding: 8px 12px;
}

.home-nav-links a.active,
.home-nav-links a:hover {
  background: var(--soft);
  color: var(--accent);
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 0.82fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(56px, 9vw, 112px) clamp(20px, 5vw, 72px) 40px;
}

.home-hero-centered {
  position: relative;
  display: grid;
  min-height: 480px;
  grid-template-columns: 1fr;
  place-items: center;
  overflow: hidden;
  padding: clamp(64px, 9vw, 116px) clamp(20px, 5vw, 72px) 56px;
}

.home-hero-centered::before {
  position: absolute;
  inset: 0 0 auto;
  height: 320px;
  background:
    radial-gradient(circle at 22% 8%, rgba(255, 159, 28, 0.18), transparent 38%),
    radial-gradient(circle at 78% 0%, rgba(255, 106, 0, 0.12), transparent 34%),
    linear-gradient(105deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 237, 0.96)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent);
  clip-path: ellipse(74% 58% at 50% 0%);
  content: "";
}

.home-hero-centered::after {
  position: absolute;
  inset: 84px -10% auto;
  height: 140px;
  border-top: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  content: "";
  transform: rotate(2deg);
}

.hero-vendor-cloud {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.vendor-float {
  position: absolute;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent);
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(255, 106, 0, 0.1);
  backdrop-filter: blur(10px);
}

.vendor-float img {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.vendor-float.deepseek {
  top: 150px;
  left: 5%;
}

.vendor-float.qwen {
  top: 248px;
  left: 11%;
}

.vendor-float.moonshot {
  top: 92px;
  left: 16%;
}

.vendor-float.doubao {
  top: 135px;
  right: 25%;
}

.vendor-float.minimax {
  top: 238px;
  right: 13%;
}

.vendor-float.happyhorse {
  top: 66px;
  right: 7%;
}

.hero-copy-block {
  max-width: 760px;
}

.hero-copy-centered {
  position: relative;
  z-index: 1;
  max-width: 1060px;
  text-align: center;
}

.hero-copy-block h1 {
  margin: 18px 0;
  max-width: 880px;
  color: #111827;
  font-size: clamp(56px, 9vw, 116px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy-block h1 span {
  display: block;
  color: var(--accent);
}

.hero-copy-centered h1 {
  max-width: none;
  margin: 12px auto 18px;
  color: #111827;
  /* 主标题用黑体 */
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Heiti SC', sans-serif;
  font-weight: 700;
  font-size: clamp(48px, 6.2vw, 92px);
  line-height: 1.02;
  white-space: nowrap;
}

.hero-copy-centered h1 span {
  display: inline;
  color: var(--accent);
}

.hero-copy-block p {
  max-width: 660px;
  margin: 0;
  color: #475467;
  font-size: 18px;
  line-height: 1.75;
}

.hero-copy-centered p {
  max-width: none;
  color: #334155;
  font-size: 20px;
  font-weight: 760;
  line-height: 1.6;
}

.hero-copy-centered .actions {
  justify-content: center;
  margin-top: 26px;
}

.btn.process-button {
  position: relative;
  overflow: visible;
  min-height: 50px;
  border-color: rgba(255, 106, 0, 0.26);
  background:
    linear-gradient(120deg, rgba(255, 247, 237, 0.98), rgba(255, 106, 0, 0.18), rgba(255, 255, 255, 0.95), rgba(255, 159, 28, 0.26), rgba(255, 247, 237, 0.98));
  background-size: 260% 260%;
  padding: 0 20px;
  color: var(--accent-deep);
  font-size: 16px;
  font-weight: 820;
  cursor: not-allowed;
  box-shadow:
    0 16px 34px rgba(255, 106, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  animation: process-gradient-flow 5s ease-in-out infinite;
}

.hero-copy-centered > .process-button {
  margin-bottom: 14px;
}

.btn.process-button span {
  position: relative;
  z-index: 1;
}

.btn.process-button .process-glow {
  position: absolute;
  inset: -1px;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 8%, rgba(255, 255, 255, 0.58) 38%, transparent 62%);
  opacity: 0.62;
  pointer-events: none;
  transform: translateX(-120%);
  animation: process-shine-flow 2.8s ease-in-out infinite;
}

@keyframes process-gradient-flow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes process-shine-flow {
  0% {
    transform: translateX(-120%);
    opacity: 0;
  }
  36% {
    opacity: 0.7;
  }
  72%,
  100% {
    transform: translateX(120%);
    opacity: 0;
  }
}

.btn.process-button::after {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  z-index: 3;
  visibility: hidden;
  border-radius: 8px;
  background: #111827;
  padding: 7px 10px;
  color: #ffffff;
  font-size: 12px;
  white-space: nowrap;
  content: attr(data-tip);
  opacity: 0;
  transform: translate(-50%, 4px);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0.16s ease;
}

.btn.process-button::before {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  z-index: 3;
  visibility: hidden;
  width: 10px;
  height: 10px;
  background: #111827;
  content: "";
  opacity: 0;
  transform: translateX(-50%) rotate(45deg);
  transition:
    opacity 0.16s ease,
    visibility 0.16s ease;
}

.btn.process-button:hover::before,
.btn.process-button:hover::after {
  visibility: visible;
  opacity: 1;
}

.btn.process-button:hover::after {
  transform: translate(-50%, 0);
}

.hot-model-strip {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.hot-model-strip strong {
  color: #111827;
  font-size: 15px;
}

.hot-model-strip a,
.hot-model-strip span {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.84);
  padding: 8px 14px;
  color: #334155;
  font-size: 14px;
  font-weight: 720;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.hot-model-strip a:hover {
  border-color: var(--accent-border);
  color: var(--accent-deep);
}

.hero-product-view {
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  padding: 18px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.1);
}

.product-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  color: #64748b;
  font-size: 13px;
  font-weight: 740;
}

.product-topline strong {
  border-radius: 999px;
  background: var(--soft);
  padding: 6px 10px;
  color: #c54c00;
  white-space: nowrap;
}

.hero-model-stack {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.hero-model-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 14px;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.hero-model-card:hover,
.hero-model-card.active {
  border-color: rgba(255, 106, 0, 0.35);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.hero-model-card .model-logo,
.home-model-card .model-logo {
  margin-bottom: 0;
}

.hero-model-card .qwen-logo,
.home-model-card .qwen-logo {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-model-card strong {
  display: block;
  color: #111827;
  font-size: 16px;
}

.hero-model-card span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
}

.hero-model-card em {
  color: var(--accent);
  font-style: normal;
  font-weight: 820;
  white-space: nowrap;
}

.product-metrics,
.home-feature-strip {
  display: grid;
  gap: 14px;
}

.product-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.product-metrics div,
.home-feature-strip div {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 16px;
}

.product-metrics span,
.home-feature-strip span {
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

.product-metrics strong {
  display: block;
  margin-top: 6px;
  color: #111827;
  font-size: 22px;
}

.home-feature-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 clamp(20px, 5vw, 72px) 48px;
}

.home-feature-strip strong {
  display: block;
  margin-bottom: 8px;
  color: #111827;
  font-size: 18px;
}

/* 筛选 chips：放在「发现并使用…」副标题下方，无标签直接展示 */
.home-model-filters {
  display: grid;
  gap: 18px;
  margin: 16px 0 26px;
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  max-width: none;
  margin: 0;
}

.filter-row div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-row button {
  min-height: 34px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.86);
  padding: 0 16px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.filter-row button:hover,
.filter-row button.active {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.home-section {
  padding: 52px clamp(20px, 5vw, 72px) 72px;
  /* 最初版背景(4d49b62b)：左上橙光 + 右下琥珀光 + 斜向白→浅灰蓝→淡橙 */
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 106, 0, 0.09), transparent 32%),
    radial-gradient(circle at 100% 100%, rgba(255, 159, 28, 0.12), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.9) 52%, rgba(255, 247, 237, 0.74));
}

.home-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.home-section-head h2 {
  margin: 14px 0 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.08;
}

.home-section-head p {
  max-width: 680px;
  margin: 12px 0 0;
  color: #64748b;
  font-size: 16px;
  line-height: 1.7;
}

.home-section-head p b {
  color: #111827;
  font-weight: 860;
}

.home-model-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 22px;
}

.home-model-grid[data-real-loading] .home-model-card,
.model-grid[data-real-loading] .model-card,
.series-grid[data-real-loading] .series-card {
  display: none;
}

.home-model-card {
  position: relative;
  display: flex;
  height: 226px;
  min-height: 226px;
  max-height: 226px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.92);
  padding: 20px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.home-model-card[hidden],
.model-card[hidden] {
  display: none !important;
}

.home-model-card:hover {
  border-color: var(--accent-border);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 106, 0, 0.12), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 244, 235, 0.92));
  box-shadow: 0 18px 42px var(--accent-shadow);
  transform: none;
}

.home-card-top {
  display: flex;
  flex: 0 0 auto;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.home-card-brand {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: center;
}

.home-model-card h3 {
  display: -webkit-box;
  margin: 12px 0 8px;
  overflow: hidden;
  color: #111827;
  font-size: 19px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-model-card p {
  flex: 0;
  margin: 0;
  color: #475467;
  font-size: 15px;
  line-height: 1.72;
}

.home-vendor {
  margin-top: 10px;
  color: #64748b;
  font-size: 13px;
  font-weight: 740;
}

.home-card-brand .home-vendor {
  margin-top: 0;
  font-size: 13px;
  line-height: 1.2;
}

.home-price-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: #64748b;
  font-size: 13px;
}

.home-price-row strong {
  color: #64748b;
  font-weight: 760;
}

.home-price-line {
  display: flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-price-value {
  color: var(--accent);
  font-weight: 860;
}

.home-card-hover {
  display: none;
  min-height: 0;
  margin-top: 8px;
  color: #475467;
}

.home-card-hover p {
  display: -webkit-box;
  min-height: 42px;
  margin: 0 0 8px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #1f2937;
  font-size: 14px;
  font-weight: 720;
  line-height: 1.55;
}

.home-card-hover div:not(.home-hover-meta) {
  display: grid;
  gap: 3px;
  margin-bottom: 8px;
}

.home-card-hover span {
  color: #64748b;
  font-size: 13px;
  font-weight: 740;
}

.home-card-hover strong {
  display: -webkit-box;
  overflow: hidden;
  color: #111827;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-hover-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.32);
  padding-top: 8px;
}

.home-hover-meta b {
  color: var(--accent);
  font-weight: 860;
}

.home-model-card:hover h3,
.home-model-card:hover > p,
.home-model-card:hover .home-price-row {
  display: none;
}

.home-model-card:hover .home-card-hover {
  display: block;
}

.model-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid rgba(255, 106, 0, 0.2);
  border-radius: 7px;
  background: var(--accent-soft);
  padding: 0 9px;
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 820;
  white-space: nowrap;
}

.model-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.model-series-section {
  padding: 56px clamp(20px, 5vw, 72px) 100px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 106, 0, 0.10), transparent 30%),
    radial-gradient(circle at 100% 100%, rgba(255, 159, 28, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.82) 55%, rgba(255, 247, 237, 0.78));
}

.model-series-section h2 {
  max-width: 920px;
  margin: 0 0 34px;
  color: #111827;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.14;
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 26px;
}

.series-card {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  padding: 34px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition:
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.series-card:hover {
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.11);
  transform: translateY(-2px);
}

.series-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.series-head span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--accent);
  font-weight: 900;
}

.series-head span img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.series-head strong {
  color: #111827;
  font-size: 28px;
  line-height: 1.1;
}

.series-card p {
  margin: 28px 0 0;
  color: #475467;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.7;
}

.series-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 28px;
}

.series-tags span {
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.78);
  padding: 7px 13px;
  color: #334155;
  font-size: 13px;
  font-weight: 720;
}

.series-card em {
  margin-top: 24px;
  color: #111827;
  font-style: normal;
  font-size: 19px;
  font-weight: 900;
}

.deepseek-series {
  background: #eef5ff;
}

.qwen-series {
  background: #f7efff;
}

.zhipu-series {
  background: #fff5d7;
}

.minimax-series {
  background: #fff0f2;
}

.kimi-series {
  background: #effff5;
}

.image-series {
  background: #effcff;
}

.side-nav {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid rgba(255, 106, 0, 0.14);
  background:
    radial-gradient(220px 170px at 0 0, rgba(255, 106, 0, 0.18), rgba(255, 106, 0, 0.08) 46%, transparent 100%),
    linear-gradient(180deg, rgba(255, 246, 239, 0.82) 0%, rgba(255, 251, 247, 0.54) 24%, rgba(255, 255, 255, 0.94) 50%, rgba(255, 255, 255, 0.98) 100%);
  padding: 0 0 14px;
  backdrop-filter: blur(16px);
}

.side-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 76px;
  padding: 0 24px;
  border-bottom: 0;
  background: transparent;
  color: white;
  text-decoration: none;
}

.side-brand img {
  display: block;
  width: 138px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.side-group {
  padding: 0 10px;
}

.side-brand + .side-group {
  margin-top: 24px;
}

.side-group + .side-group {
  margin-top: 22px;
}

.side-label {
  padding: 0 12px 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 760;
}

.side-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  border-radius: 0;
  padding: 0 12px;
  color: #374151;
  font-size: 14px;
  font-weight: 680;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}

.side-item:hover {
  background: rgba(255, 106, 0, 0.06);
  color: var(--accent-deep);
}

.side-item.active {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.side-item.active::after {
  position: absolute;
  top: 8px;
  right: 0;
  bottom: 8px;
  width: 3px;
  background: var(--accent);
  content: "";
}

.side-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #667085;
  font-weight: 800;
}

.side-item.active .side-icon {
  color: var(--accent);
}

.invite-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 10px 0;
  border: 1px solid var(--accent-border);
  border-radius: 12px;
  background: white;
  padding: 14px 18px;
  color: var(--accent-deep);
  font-size: 14px;
  font-weight: 760;
  box-shadow: 0 8px 24px rgba(255, 106, 0, 0.08);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.invite-card:hover {
  border-color: rgba(255, 106, 0, 0.42);
  box-shadow: 0 14px 32px var(--accent-shadow);
  transform: translateY(-1px);
}

.api-manual-card {
  min-height: 38px;
  margin: auto 12px 0;
  border-color: transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.46);
  padding: 0 12px;
  color: #475569;
  box-shadow: none;
}

.api-manual-card:hover {
  border-color: rgba(255, 106, 0, 0.18);
  background: rgba(255, 106, 0, 0.07);
  box-shadow: none;
  color: var(--accent-deep);
  transform: none;
}

.api-manual-card .invite-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  font-size: 14px;
}

.api-manual-card:hover .invite-icon {
  color: var(--accent);
}

.invite-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 8px;
  background: var(--soft);
  color: var(--accent);
  font-weight: 900;
}

.market-main {
  height: 100vh;
  min-width: 0;
  overflow-y: auto;
  background: transparent;
  padding: 24px 28px 56px;
}

.market-main.experience-mode {
  overflow: hidden;
  padding-bottom: 20px;
}

.market-main.experience-mode .market-section.is-active {
  margin-top: 0;
}

.market-main.market-square-mode {
  overflow: hidden;
  padding-bottom: 24px;
}

.market-section {
  display: none;
  scroll-margin-top: 24px;
  margin-top: 34px;
}

.market-section.is-active {
  display: block;
}

.first-section {
  margin-top: 0;
}

.market-main.market-square-mode #model-square.is-active {
  display: flex;
  height: calc(100vh - 48px);
  min-height: 0;
  flex-direction: column;
}

.marketplace-titlebar {
  display: flex;
  align-items: start;
  gap: 12px;
  margin-bottom: 22px;
}

.market-main.market-square-mode .marketplace-titlebar {
  flex: 0 0 auto;
}

.market-menu-icon {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #94a3b8;
  font-size: 18px;
  line-height: 1;
}

.marketplace-titlebar h1 {
  margin: 0;
  color: #111827;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 900;
}

.marketplace-titlebar p {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

.marketplace-controls {
  display: grid;
  width: min(728px, 100%);
  grid-template-columns: 156px minmax(320px, 560px);
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  transition:
    margin-left 0.24s ease,
    width 0.24s ease;
}

#model-square.filter-panel-open .marketplace-controls {
  width: min(728px, calc(100% - 308px));
  margin-left: 308px;
}

.market-main.market-square-mode .marketplace-controls {
  flex: 0 0 auto;
}

.market-search-box {
  width: 100%;
  height: 44px;
  padding-right: 0;
}

.market-search-box span {
  display: grid;
  width: 44px;
  height: 100%;
  place-items: center;
  border-left: 1px solid var(--line);
  color: #667085;
  font-size: 20px;
}

.marketplace-workspace {
  display: grid;
  grid-template-columns: 0 minmax(0, 1fr);
  gap: 0;
  align-items: start;
  transition:
    grid-template-columns 0.24s ease,
    gap 0.24s ease;
}

.market-main.market-square-mode .marketplace-workspace {
  flex: 1 1 auto;
  min-height: 0;
}

.marketplace-workspace.filters-open {
  grid-template-columns: 288px minmax(0, 1fr);
  gap: 20px;
}

.market-filter-panel {
  position: relative;
  top: auto;
  overflow: hidden;
  max-height: none;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  transform: translateX(-8px);
}

.market-main.market-square-mode .market-filter-panel {
  align-self: start;
  max-height: calc(100% + 56px);
}

.marketplace-workspace.filters-open .market-filter-panel {
  overflow: visible;
  margin-top: -56px;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.marketplace-workspace:not(.filters-open) .market-filter-panel {
  max-height: 0;
}

.filter-group + .filter-group {
  margin-top: 12px;
}

.filter-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 760;
}

.filter-group-head button,
.model-result-meta button {
  border: 0;
  background: transparent;
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
}

.filter-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 10px;
}

.filter-chip-grid button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.82);
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease;
}

.filter-chip-grid button:hover,
.filter-chip-grid button.active {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent-deep);
  box-shadow: 0 8px 20px rgba(255, 106, 0, 0.08);
}

.filter-chip-grid img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.model-results {
  min-width: 0;
}

.market-main.market-square-mode .model-results {
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.model-result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  margin-bottom: 10px;
  color: #64748b;
  font-size: 13px;
  font-weight: 720;
}

.model-result-meta b {
  color: #111827;
}

.model-empty {
  display: none;
  grid-column: 1 / -1;
  min-height: 180px;
  place-items: center;
  border: 1px dashed rgba(148, 163, 184, 0.4);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  color: #64748b;
  font-weight: 760;
}

.model-empty.is-visible {
  display: grid;
}

.first-section .section-head {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 237, 0.94)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), transparent);
  padding: 28px;
  box-shadow: 0 18px 54px rgba(255, 106, 0, 0.08);
}

.first-section .section-head::before {
  position: absolute;
  top: -92px;
  right: -12%;
  width: 58%;
  height: 190px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  content: "";
  transform: rotate(-5deg);
}

.first-section .section-head > * {
  position: relative;
  z-index: 1;
}

.first-section .section-head h1 {
  background: linear-gradient(92deg, #111827, var(--accent) 78%);
  background-clip: text;
  color: transparent;
}

.section-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head.compact {
  align-items: center;
  margin-bottom: 16px;
}

.section-head h1,
.section-head h2 {
  margin: 0;
  max-width: none;
}

.section-head h1 {
  font-size: 28px;
  line-height: 1.2;
}

.section-head h2,
.split-section h2 {
  font-size: 24px;
  line-height: 1.25;
}

.section-head p,
.split-section p {
  margin: 10px 0 0;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.6;
}

.search-box {
  display: flex;
  align-items: center;
  width: min(520px, 40vw);
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 0 12px;
  color: #c4c4c4;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
}

.filter-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  padding: 0 16px;
  color: #344054;
  font-weight: 760;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(255, 106, 0, 0.08);
}

.filter-button span {
  color: var(--accent-deep);
}

.filter-button.is-open {
  border-color: rgba(255, 106, 0, 0.42);
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 0;
}

.marketplace-workspace.filters-open .model-grid {
  grid-template-columns: repeat(3, minmax(260px, 1fr));
}

.model-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 160px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: white;
  padding: 18px;
  cursor: pointer;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.model-card:hover,
.model-card:focus {
  border-color: rgba(255, 106, 0, 0.42);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
  outline: 0;
  transform: translateY(-2px);
}

.model-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 46px;
  padding-right: 0;
}

.model-corner-badge + .model-card-head {
  padding-right: 66px;
}

.model-logo {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  font-weight: 900;
}

.model-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.configured-logo {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
}

.qwen-logo {
  border: 0;
  border-radius: 0;
  background: url("./assets/vendor-qwen.svg") center / contain no-repeat;
  color: transparent;
  font-size: 0;
}

.text-logo {
  justify-content: start;
  width: 74px;
  color: #111827;
  font-size: 20px;
  letter-spacing: 0;
}

.z-logo {
  border-radius: 0;
  background: url("./assets/vendor-zhipu.svg") center / contain no-repeat;
  color: transparent;
  font-size: 0;
}

.kimi-logo {
  background: url("./assets/vendor-kimi.svg") center / contain no-repeat;
  color: transparent;
  font-size: 0;
}

.minimax-logo {
  background: url("./assets/vendor-minimax.svg") center / contain no-repeat;
  color: transparent;
  font-size: 0;
}

.model-name-block {
  min-width: 0;
}

.model-title {
  color: #111827;
  font-size: 18px;
  font-weight: 820;
  line-height: 1.22;
  overflow-wrap: break-word;
  word-break: normal;
}

.model-vendor {
  margin-top: 5px;
  color: #64748b;
  font-size: 13px;
  font-weight: 680;
}

.model-corner-badge {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 0 8px 0 8px;
  background: #ef4444;
  padding: 0 9px;
  color: white;
  font-size: 13px;
  font-weight: 780;
}

.model-corner-badge.hot {
  background: var(--accent-deep);
}

/* 折扣促销角标(promo 推导)：主题橙渐变 + 放大，比普通角标更显眼 */
.model-corner-badge.promo {
  min-height: 34px;
  border-radius: 0 8px 0 12px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  padding: 0 14px;
  font-size: 15px;
  font-weight: 840;
  letter-spacing: 0.5px;
  box-shadow: 0 3px 10px rgba(255, 106, 0, 0.35);
}

/* 一级页卡片右上角的折扣标：实心主题橙，盖过普通 tag 底色 */
.model-badge.home-promo-badge {
  min-height: 28px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  padding: 0 12px;
  color: #fff;
  font-size: 13.5px;
  font-weight: 840;
  letter-spacing: 0.5px;
  box-shadow: 0 3px 10px rgba(255, 106, 0, 0.35);
}

.model-card p {
  display: -webkit-box;
  overflow: hidden;
  flex: 1;
  margin: 12px 0 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.model-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.model-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border: 1px solid rgba(255, 106, 0, 0.18);
  border-radius: 6px;
  background: var(--accent-soft);
  padding: 0 8px;
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 720;
}

.model-detail-shell {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(560px, 40vw);
  visibility: hidden;
  background: rgba(15, 23, 42, 0);
  opacity: 0;
  pointer-events: none;
  transition:
    background 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.36s;
}

.model-detail-shell.is-open {
  visibility: visible;
  background: rgba(15, 23, 42, 0.5);
  opacity: 1;
  pointer-events: auto;
  transition:
    background 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s;
}

.detail-backdrop {
  min-width: 0;
}

.detail-panel {
  position: relative;
  height: 100vh;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: white;
  padding: 28px 26px 40px;
  box-shadow: -24px 0 60px rgba(15, 23, 42, 0.16);
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.model-detail-shell.is-open .detail-panel {
  transform: translateX(0);
}

.detail-top {
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}

.detail-title-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.detail-logo {
  width: 52px;
  height: 52px;
  margin: 0;
}

.detail-kicker {
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
}

.detail-title-copy h2 {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #111827;
  font-size: 24px;
  line-height: 1.2;
}

.detail-title-copy h2 span,
.detail-title-copy h2 button {
  min-width: 0;
  overflow-wrap: anywhere;
}

.detail-name-copy {
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.detail-name-copy:hover {
  color: var(--accent-deep);
}

.detail-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-icon-button,
.detail-tools a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: white;
  padding: 0;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 760;
  cursor: pointer;
}

.detail-icon-button:hover,
.detail-tools a:hover {
  background: #fff7ed;
  color: var(--accent-deep);
}

.detail-icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.detail-tip-target {
  position: relative;
  overflow: visible;
}

.detail-tip-target::after {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  z-index: 4;
  visibility: hidden;
  border-radius: 8px;
  background: #1f2937;
  padding: 8px 12px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  content: attr(data-tip-text);
  opacity: 0;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0.16s ease;
}

.detail-tip-target::before {
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  z-index: 5;
  visibility: hidden;
  width: 10px;
  height: 10px;
  background: #1f2937;
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) rotate(45deg);
  transition:
    opacity 0.16s ease,
    visibility 0.16s ease;
}

.detail-tip-target.show-tip::before,
.detail-tip-target.show-tip::after {
  visibility: visible;
  opacity: 1;
}

.detail-tip-target.show-tip::after {
  transform: translate(-50%, 0);
}

.detail-tools a {
  font-size: 24px;
  line-height: 1;
}

.detail-top p {
  margin: 14px 0 0;
  color: #475467;
  font-size: 14px;
  line-height: 1.7;
}

[data-detail-description] {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

[data-detail-description].is-expanded {
  display: inline;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.detail-top p a {
  color: var(--accent);
  font-weight: 760;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.detail-tags span {
  border-radius: 6px;
  background: var(--soft);
  padding: 5px 9px;
  color: #c54c00;
  font-size: 13px;
  font-weight: 740;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.btn.outline {
  border-color: rgba(255, 106, 0, 0.34);
  background: white;
  color: #c54c00;
}

.lined-title {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 30px 0 18px;
  color: #334155;
  font-size: 18px;
  font-weight: 820;
}

.lined-title::before,
.lined-title::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

.mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 560px;
  margin: 0 auto 22px;
  border-radius: 8px;
  background: #f8fafc;
  padding: 5px;
}

.mode-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #94a3b8;
  font-weight: 780;
}

.mode-tabs button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.mode-tabs button.active {
  background: white;
  color: #111827;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.price-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.price-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) minmax(0, 1fr);
}

.price-table.has-dimension .price-row {
  grid-template-columns: minmax(120px, 0.24fr) minmax(130px, 0.26fr) minmax(0, 1fr);
}

.price-row + .price-row {
  border-top: 1px solid var(--line);
}

.price-row > span,
.price-row > strong,
.price-row > div {
  padding: 16px;
}

.price-row > span,
.price-row > strong:first-child {
  border-right: 1px solid var(--line);
}

.price-table.has-dimension .price-row > span:nth-child(2),
.price-table.has-dimension .price-row > strong:nth-child(2) {
  border-right: 1px solid var(--line);
}

.price-head {
  background: #f8fafc;
}

.price-row div strong {
  color: var(--accent);
  font-size: 25px;
  letter-spacing: 0;
}

.price-row div em {
  margin-left: 6px;
  color: #94a3b8;
  font-style: normal;
  font-size: 13px;
}

.price-row code {
  display: block;
  margin-top: 6px;
  color: #94a3b8;
  font-size: 12px;
  white-space: normal;
  word-break: break-all;
}

/* 折扣促销（纯展示不影响计费）：原价划线 + 「限时X折」标 */
.price-original {
  margin-left: 10px;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 640;
  text-decoration: line-through;
}

.price-promo-tag {
  display: inline-block;
  margin-left: 10px;
  padding: 4px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 840;
  font-style: normal;
  letter-spacing: 0.5px;
  vertical-align: 2px;
  box-shadow: 0 3px 10px rgba(255, 106, 0, 0.35);
}

/* 模型详情·输入/输出模态：横向排布，字体与「支持能力」一致
   （双类选择器压过后面的 .detail-capability-list{display:grid}，否则被排成纵向） */
.detail-capability-list.detail-modality-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.model-info-list {
  display: grid;
  gap: 12px;
}

.model-info-list div {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.model-info-list span {
  color: #475467;
  font-weight: 760;
}

.model-info-list strong {
  color: #111827;
  line-height: 1.6;
}

.detail-info-list {
  display: grid;
  gap: 18px;
}

.detail-info-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.detail-info-row > span {
  color: #475467;
  font-weight: 760;
  line-height: 1.6;
}

.detail-info-row > strong,
.detail-filing-info {
  color: #111827;
  font-weight: 780;
  line-height: 1.7;
}

.detail-capability-list {
  display: grid;
  gap: 8px;
}

.detail-capability-list strong {
  color: #111827;
  font-size: 16px;
  line-height: 1.4;
}

.rate-limit-block {
  display: grid;
  gap: 14px;
}

.rate-limit-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-radius: 10px;
  background: rgba(255, 106, 0, 0.09);
  padding: 13px 16px;
}

.rate-limit-note i {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid rgba(255, 106, 0, 0.45);
  border-radius: 999px;
  color: var(--accent-deep);
  font-size: 12px;
  font-style: normal;
  font-weight: 860;
}

.rate-limit-note p {
  margin: 0;
  color: #334155;
  font-size: 14px;
  line-height: 1.65;
}

.rate-limit-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.rate-limit-table > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rate-limit-table > div + div {
  border-top: 1px solid var(--line);
}

.rate-limit-table span {
  border-right: 1px solid var(--line);
  padding: 11px 13px;
  color: #111827;
  font-size: 14px;
  font-weight: 720;
}

.rate-limit-table span:last-child {
  border-right: 0;
}

.rate-limit-head {
  background: #f8fafc;
}

.rate-limit-head span {
  font-weight: 850;
}

.rate-limit-active span {
  color: var(--accent);
}

.detail-filing-info p {
  margin: 0;
  color: #334155;
}

.api-doc-card {
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.endpoint-card {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

.endpoint-card span {
  border-radius: 6px;
  background: var(--accent);
  padding: 4px 8px;
  color: white;
  font-size: 12px;
  font-weight: 820;
}

.endpoint-card code {
  color: #334155;
  font-size: 13px;
  word-break: break-all;
}

.api-doc-card pre {
  overflow-x: auto;
  margin: 0;
  border-radius: 8px;
  background: #111827;
  padding: 16px;
  color: #f8fafc;
  font-size: 13px;
  line-height: 1.7;
}

.docs-shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
  background: #fff;
}

.docs-side {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  background: #f8fafc;
  padding: 18px;
}

.docs-brand {
  margin-bottom: 28px;
}

.docs-side nav {
  display: grid;
  gap: 6px;
  margin-bottom: 24px;
}

.docs-side nav a {
  border-radius: 8px;
  padding: 10px 12px;
  color: #475467;
  font-size: 14px;
  font-weight: 720;
}

.docs-side nav a.active,
.docs-side nav a:hover {
  background: var(--soft);
  color: var(--accent);
}

.docs-main {
  min-width: 0;
  max-width: 1120px;
  padding: 44px clamp(22px, 5vw, 72px) 72px;
}

.docs-hero {
  border-bottom: 1px solid var(--line);
  padding-bottom: 34px;
}

.docs-hero h1 {
  max-width: 860px;
  margin: 18px 0 16px;
  color: #111827;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
}

.docs-hero p,
.docs-section p {
  max-width: 760px;
  color: #64748b;
  font-size: 16px;
  line-height: 1.75;
}

.docs-section {
  scroll-margin-top: 28px;
  border-bottom: 1px solid var(--line);
  padding: 34px 0;
}

.docs-section h2 {
  margin: 14px 0 10px;
  color: #111827;
  font-size: 30px;
}

.docs-section h3 {
  margin: 0 0 12px;
  color: #111827;
}

.docs-section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.docs-section-head span {
  border-radius: 6px;
  background: var(--accent);
  padding: 5px 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 820;
}

.docs-section-head code {
  color: #334155;
  font-size: 14px;
  word-break: break-all;
}

.docs-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(360px, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.docs-table {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 8px;
  background: #fff;
}

.docs-table th,
.docs-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.docs-table tr:last-child td {
  border-bottom: 0;
}

.docs-table th {
  background: #f8fafc;
  color: #111827;
  font-weight: 820;
}

.docs-table td {
  color: #475467;
  line-height: 1.6;
}

.docs-section pre {
  overflow-x: auto;
  margin: 18px 0 0;
  border-radius: 8px;
  background: #111827;
  padding: 16px;
  color: #f8fafc;
  font-size: 13px;
  line-height: 1.7;
}

.playground-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.45fr) minmax(0, 1fr);
  gap: 18px;
}

.tool-panel,
.result-panel,
.mini-card,
.recharge-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 18px;
}

.tool-panel {
  display: grid;
  gap: 10px;
}

.tool-panel label {
  color: #4b5563;
  font-size: 13px;
  font-weight: 760;
}

.tool-panel select,
.tool-panel textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
}

.tool-panel textarea {
  min-height: 126px;
  resize: vertical;
}

.result-title {
  margin-bottom: 14px;
  font-weight: 780;
}

.result-panel p {
  margin: 0;
  color: #4b5563;
  line-height: 1.7;
}

.result-meta {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 22px;
}

.market-section.split-section {
  display: none;
}

.market-section.is-active.split-section {
  display: grid;
}

.mini-card {
  display: grid;
  gap: 8px;
  background: #f9fafb;
}

.mini-card span {
  color: var(--muted);
  line-height: 1.6;
}

.playground-page {
  margin-top: 0;
}

.playground-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.playground-titlebar h2 {
  margin: 0;
  color: #111827;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 900;
}

.experience-workbench {
  display: grid;
  min-height: calc(100vh - 104px);
  grid-template-columns: 324px minmax(0, 1fr);
  gap: 0;
  border: 1px solid rgba(226, 232, 240, 0.72);
  border-radius: 12px;
  background:
    radial-gradient(circle at 100% 88%, rgba(255, 106, 0, 0.1), transparent 26%),
    rgba(255, 255, 255, 0.82);
  overflow: hidden;
}

.experience-settings {
  display: grid;
  align-content: start;
  gap: 18px;
  border-right: 1px solid #e2e8f0;
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 106, 0, 0.11), transparent 34%),
    rgba(255, 255, 255, 0.86);
  padding: 22px;
}

.experience-field {
  display: grid;
  gap: 8px;
  color: #334155;
  font-size: 14px;
  font-weight: 720;
}

.experience-field > span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.experience-field b {
  color: #ef4444;
}

.experience-field em {
  display: inline-grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border: 1px solid #94a3b8;
  border-radius: 999px;
  color: #94a3b8;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.experience-field select,
.experience-field input,
.experience-field textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  padding: 0 12px;
  color: #111827;
  outline: 0;
}

/* 尺寸/比例/分辨率 chip 选择器(隐藏 select 承载值) */
.exp-hidden-select {
  display: none;
}
.exp-chip-wrap {
  display: grid;
  gap: 12px;
}
.exp-chip-subgroup {
  display: grid;
  gap: 7px;
}
.exp-chip-sublabel {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
}
.exp-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.exp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 9px;
  background: #fff;
  color: #374151;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.exp-chip:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent-deep);
}
.exp-chip.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.exp-chip:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}
.exp-chip-frame {
  flex: none;
}

.experience-field select,
.experience-field input {
  height: 40px;
}

.experience-field textarea {
  min-height: 70px;
  padding: 10px 12px;
  resize: vertical;
}

.experience-field select:focus,
.experience-field input:focus,
.experience-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.11);
}

.experience-field select:disabled,
.experience-field input:disabled,
.experience-field textarea:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.range-field {
  grid-template-columns: minmax(0, 1fr) 104px;
  align-items: center;
}

.range-field span,
.range-field input[type="range"] {
  grid-column: 1 / -1;
}

.range-field > span {
  grid-column: 1;
  min-width: 0;
}

.range-value {
  justify-self: end;
  border-radius: 999px;
  background: #f8fafc;
  padding: 3px 9px;
  color: #475569;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.4;
}

.range-field input[type="range"] {
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  appearance: none;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  outline: 0;
}

.range-field input[type="range"]:focus {
  box-shadow: none;
  outline: 0;
}

.range-field input[type="range"]::-webkit-slider-runnable-track {
  height: 3px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    var(--accent) var(--range-progress, 50%),
    #edf2f7 var(--range-progress, 50%),
    #edf2f7 100%
  );
}

.range-field input[type="range"]::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  margin-top: -5.5px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  appearance: none;
  background: var(--accent);
  box-shadow: 0 2px 8px rgba(255, 106, 0, 0.22);
}

.range-field input[type="range"]:active::-webkit-slider-thumb,
.range-field input[type="range"]:focus::-webkit-slider-thumb {
  box-shadow:
    0 0 0 4px rgba(255, 106, 0, 0.12),
    0 3px 10px rgba(255, 106, 0, 0.22);
}

.range-field input[type="range"]::-moz-range-track {
  height: 3px;
  border: 0;
  border-radius: 999px;
  background: #edf2f7;
}

.range-field input[type="range"]::-moz-range-progress {
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
}

.range-field input[type="range"]::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 2px 8px rgba(255, 106, 0, 0.22);
}

.market-main.experience-mode .range-field input[type="range"] {
  height: 16px;
}

.range-field input[type="range"]::-moz-focus-outer {
  border: 0;
}

.switch-field {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.switch-field > span:first-child {
  min-width: 0;
}

.experience-field > .experience-switch {
  display: inline-grid;
  grid-template-columns: 42px auto;
  gap: 9px;
  align-items: center;
  justify-self: end;
  color: #64748b;
  font-size: 13px;
  font-weight: 760;
  cursor: pointer;
}

.experience-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.experience-switch i {
  position: relative;
  display: block;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.16s ease;
}

.experience-switch i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
  content: "";
  transition: transform 0.16s ease;
}

.experience-switch input:checked + i {
  background: var(--accent);
}

.experience-switch input:checked + i::after {
  transform: translateX(18px);
}

.experience-switch strong {
  color: #475569;
  font-size: 13px;
  font-weight: 760;
}

.experience-param-empty {
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.72);
  padding: 11px 12px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.ratio-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
}

.ratio-grid button {
  min-height: 64px;
  border: 0;
  border-right: 1px solid #e2e8f0;
  background: transparent;
  color: #334155;
  font-weight: 740;
  cursor: pointer;
}

.ratio-grid button:last-child {
  border-right: 0;
}

.ratio-grid button.active {
  box-shadow: inset 0 0 0 2px var(--accent);
  color: var(--accent-deep);
}

.seed-field > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
}

.seed-field input {
  border-radius: 8px 0 0 8px;
}

.seed-field button {
  border: 1px solid #cbd5e1;
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: #ffffff;
  color: #334155;
  font-size: 18px;
  cursor: pointer;
}

.upload-button,
.compare-model-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(255, 106, 0, 0.22);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 780;
  cursor: pointer;
}

.compare-model-button {
  justify-self: center;
  margin-top: 16px;
  padding: 0 18px;
}

.experience-stage {
  display: grid;
  min-width: 0;
  min-height: calc(100vh - 104px);
  grid-template-rows: auto minmax(260px, 1fr) auto;
  gap: 14px;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.72), rgba(255, 255, 255, 0.82)),
    #ffffff;
  padding: 22px;
}

.usage-banner {
  display: grid;
  min-height: 54px;
  grid-template-columns: minmax(190px, 0.42fr) minmax(0, 1fr);
  align-items: center;
  border-radius: 8px;
  background: var(--soft);
  color: #2f261f;
  overflow: hidden;
}

.usage-banner > span {
  padding: 12px 26px;
  color: #2f261f;
  font-size: 15px;
  font-weight: 620;
}

.usage-banner strong {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 12px 26px 12px 18px;
  color: #2f261f;
  font-size: 15px;
  font-weight: 620;
  text-align: center;
}

.usage-banner strong::before {
  color: #f59e0b;
  font-size: 18px;
  line-height: 1;
  content: "▲";
}

.usage-banner a {
  color: var(--accent-deep);
  font-weight: 720;
  text-decoration: none;
}

.experience-canvas {
  position: relative;
  display: grid;
  min-height: 320px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.76)),
    #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.experience-canvas > img {
  display: block;
  max-width: min(720px, 94%);
  /* 夹住画布实际高度：竖图(如9:16)不会被画布 overflow:hidden 裁掉 */
  max-height: min(62vh, 100%);
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 22px 58px rgba(15, 23, 42, 0.16);
}

.experience-canvas > video {
  display: block;
  max-width: min(720px, 94%);
  /* 视频任意宽高比(16:9/9:16/1:1)都完整显示在输出区内 */
  max-height: min(62vh, 100%);
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 22px 58px rgba(15, 23, 42, 0.16);
}

/* ===== 生成过渡 · 方案B（图片画布 ig-* + 视频进度条 vg-*） ===== */

/* --- 视频生成：占满画布(与图片同构：呼吸底+光晕+胶囊+贴底细进度+对焦显影揭示) --- */
.vg-stage {
  position: absolute;
  inset: 0;
}
.vg-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #fff4ea 0%, #f4f6f9 55%, #fdefe6 100%);
  animation: vgBreathe 4s ease-in-out infinite;
}
@keyframes vgBreathe {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
.vg-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 420px;
  height: 320px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 205, 166, 0.5), rgba(255, 205, 166, 0));
  animation: vgGlow 3.4s ease-in-out infinite;
}
@keyframes vgGlow {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(0.92); }
  50% { opacity: 0.75; transform: translate(-50%, -50%) scale(1.05); }
}
.vg-chip-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.vg-eta {
  font-size: 13px;
  color: #9ca3af;
}
.vg-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(242, 81, 27, 0.08);
}
.vg-progress b {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  display: block;
  width: 0%;
  overflow: hidden;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(90deg, #ffb23e, #ff8a50 55%, #f2511b);
  transition: width 0.35s ease;
}
.vg-progress b::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  left: -60px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 100%);
  animation: vgSheen 1.8s ease-in-out infinite;
}
@keyframes vgSheen {
  0% { left: -60px; }
  60%, 100% { left: 100%; }
}
/* 完成揭示：与图片同样的对焦显影；真实 <video> contain 居中完整显示 */
.vg-result {
  position: absolute;
  inset: 0;
  display: none;
}
.vg-result.is-reveal {
  display: block;
  animation: igRevealFocus 1.1s cubic-bezier(0.3, 0.7, 0.25, 1) both;
}
.vg-result video {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 96%;
  height: 96%;
  object-fit: contain;
  border-radius: 8px;
}
/* 完成揭示上的毛玻璃圆形播放钮(点击开始播放并切原生控制条) */
.vg-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(31, 41, 55, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.vg-play svg { margin-left: 4px; }

/* --- 语音合成：同构过渡(呼吸底+光晕+跳动声波+胶囊+贴底进度) + 播放器卡片揭示 --- */
.sg-stage {
  position: absolute;
  inset: 0;
}
.sg-stage .vg-glow {
  width: 360px;
  height: 240px;
}
.sg-chip-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
}
.sg-wave {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 64px;
}
.sg-wave i {
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffb23e, #f2511b);
  height: 30%;
  animation: sgWave 1.1s ease-in-out calc(var(--i) * -0.12s) infinite;
}
@keyframes sgWave {
  0%, 100% { height: 22%; opacity: 0.55; }
  50% { height: var(--h, 85%); opacity: 1; }
}
.sg-result {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
}
.sg-result.is-reveal {
  display: flex;
  animation: sgRevealRise 0.8s cubic-bezier(0.25, 0.9, 0.3, 1) both;
}
@keyframes sgRevealRise {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.sg-player {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #ffffff;
  border: 1px solid #edeff2;
  border-radius: 16px;
  padding: 18px 26px;
  box-shadow: 0 10px 30px rgba(31, 41, 55, 0.08);
}
.sg-play {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(180deg, #ff8a50, #f2511b);
  box-shadow: 0 6px 16px rgba(242, 81, 27, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}
.sg-play:hover { transform: scale(1.06); }
.sg-play:active { transform: scale(0.97); }
.sg-play svg { margin-left: 3px; }
.sg-play.is-playing svg { margin-left: 0; }
.sg-bars {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 44px;
}
.sg-bars i {
  width: 4px;
  border-radius: 999px;
  background: #f4c5af;
  height: var(--h, 40%);
}
.sg-bars i.played { background: #f2511b; }
.sg-time {
  font-size: 14px;
  color: #4b5563;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* --- 图片生成画布：渐变占位呼吸 + 毛玻璃状态胶囊 + 对焦显影揭示 --- */
.ig-stage {
  position: absolute;
  inset: 0;
}
.ig-preview {
  position: absolute;
  inset: 0;
  /* 无低清预览图：内置暖橙渐变占位 */
  background:
    radial-gradient(closest-side at 30% 35%, rgba(255, 178, 62, 0.5), transparent 70%),
    radial-gradient(closest-side at 72% 68%, rgba(242, 81, 27, 0.32), transparent 72%),
    linear-gradient(160deg, #fff4e6, #fde7d2);
  opacity: 0.25;
  transition: opacity 0.8s ease;
}
.ig-preview--breathing { animation: igPreviewPulse 4s ease-in-out infinite; }
@keyframes igPreviewPulse {
  0%, 100% { filter: blur(56px) saturate(0.8); }
  50% { filter: blur(44px) saturate(0.95); }
}
.ig-chip-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ig-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 18px rgba(31, 41, 55, 0.08);
  border-radius: 999px;
  padding: 10px 22px;
}
.ig-ring {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid #f4e3d7;
  border-top-color: #f2511b;
  animation: igSpin 0.9s linear infinite;
}
@keyframes igSpin { to { transform: rotate(360deg); } }
.ig-status {
  position: relative;
  width: 150px;
  height: 21px;
  overflow: hidden;
}
.ig-status span {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 14px;
  color: #4b5563;
  opacity: 0;
  transform: translateY(18px);
  transition: transform 0.45s cubic-bezier(0.3, 0.8, 0.3, 1), opacity 0.45s;
}
.ig-status span.is-on { opacity: 1; transform: translateY(0); }
.ig-status span.is-past { opacity: 0; transform: translateY(-18px); }
.ig-pct {
  font-size: 13px;
  color: #f2511b;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  width: 38px;
  text-align: right;
}
/* 完成揭示：对焦显影（盒撑满+contain：完整显示且最大化利用画布） */
.ig-result {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 96%;
  height: 96%;
  object-fit: contain;
  border-radius: 8px;
  display: none;
}
.ig-result.is-reveal {
  display: block;
  animation: igRevealFocus 1.1s cubic-bezier(0.3, 0.7, 0.25, 1) both;
}
@keyframes igRevealFocus {
  from { opacity: 0.6; filter: blur(36px) saturate(0.75); transform: scale(1.04); }
  to { opacity: 1; filter: blur(0) saturate(1); transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .ig-preview--breathing, .ig-ring, .vg-bg, .vg-glow, .vg-progress b::after, .sg-wave i { animation: none; }
  .sg-wave i { height: var(--h, 60%); }
  .ig-result.is-reveal, .vg-result.is-reveal, .sg-result.is-reveal { animation-duration: 0.01s; }
}

.experience-canvas > audio {
  width: min(560px, 92%);
}

.experience-canvas:has(.inspiration-board) {
  align-content: start;
  justify-items: stretch;
  padding: 22px;
  min-height: 440px;
}

.text-canvas {
  align-content: start;
  justify-items: stretch;
  overflow-y: auto;
  padding: 22px;
}

.text-canvas:not(.has-chat-messages) {
  align-content: start;
  justify-items: stretch;
}

.chat-placeholder,
.speech-empty {
  display: grid;
  place-items: center;
  gap: 10px;
  color: #94a3b8;
  text-align: center;
}

.chat-placeholder strong {
  color: #475569;
  font-size: 18px;
}

.chat-placeholder span {
  max-width: 420px;
  font-size: 14px;
  line-height: 1.7;
}

.mock-image-output {
  position: relative;
  width: min(520px, 72%);
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 2px;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.92), rgba(255, 210, 169, 0.74) 13%, transparent 15%),
    linear-gradient(110deg, rgba(42, 20, 12, 0.9), rgba(93, 50, 22, 0.35) 32%, rgba(26, 28, 30, 0.88) 74%),
    linear-gradient(180deg, #f8dac4, #f7f1e8 42%, #3d2c22 43%, #1e293b);
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.18);
}

.mock-image-output::before {
  position: absolute;
  inset: 18% 38% 0;
  border-radius: 44% 44% 0 0;
  background:
    radial-gradient(circle at 50% 8%, #fff7ed 0 19%, transparent 20%),
    linear-gradient(90deg, transparent 6%, rgba(255, 255, 255, 0.92) 7% 43%, transparent 44% 56%, rgba(255, 255, 255, 0.9) 57% 93%, transparent 94%);
  content: "";
}

.mock-image-output span {
  position: absolute;
  right: 18%;
  bottom: 16%;
  left: 18%;
  height: 18%;
  border-radius: 50% 50% 0 0;
  background: rgba(255, 255, 255, 0.78);
}

.mock-video-output {
  position: relative;
  width: min(920px, 94%);
  aspect-ratio: 16 / 7.2;
  overflow: hidden;
  border: 2px solid #1f2937;
  border-radius: 8px;
  background:
    linear-gradient(90deg, #020617 0 9%, transparent 9% 91%, #020617 91% 100%),
    radial-gradient(circle at 58% 76%, rgba(20, 184, 166, 0.95), transparent 30%),
    linear-gradient(165deg, #14532d 0 28%, #84cc16 29% 33%, #475569 34% 44%, #14b8a6 45% 68%, #0f766e 69% 100%);
  box-shadow: 0 22px 58px rgba(15, 23, 42, 0.16);
}

.mock-video-output button {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.46);
  color: #ffffff;
  font-size: 30px;
  transform: translate(-50%, -50%);
}

.speech-empty {
  color: #cbd5e1;
}

.speech-bubble {
  display: inline-grid;
  width: 58px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: #e2e8f0;
  color: transparent;
}

.speech-mic {
  color: #cbd5e1;
  font-size: 54px;
  line-height: 1;
}

.prompt-dock {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  padding: 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.inspiration-board {
  width: 100%;
  margin: 0;
  padding: 6px 6px 0;
}

.inspiration-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.insp-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff8a50, var(--accent));
  padding: 6px 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 6px 16px rgba(242, 81, 27, 0.28);
  white-space: nowrap;
}

.insp-h {
  color: #1f2937;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1px;
  white-space: nowrap;
}

.insp-sub {
  color: #8a93a3;
  font-size: 14px;
}

.inspiration-grid {
  display: grid;
  /* 自适应列数：空间够 3 列、不够自动降到 2 列/1 列，卡片始终保持可读宽度（≥260px），
     避免中等屏幕下被挤成很窄的 3 列。≤1180px 仍由下方媒体查询强制单列。 */
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.inspiration-column {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.inspiration-category {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1f2937;
  font-size: 15px;
  font-weight: 700;
}

.inspiration-category span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: #ffead9;
  color: #e0560f;
  font-size: 16px;
  font-weight: 800;
  flex: none;
}

/* 三列暖色图标(照搬参考的 c1/c2/c3，按列着色，不分模态) */
.inspiration-column:nth-child(1) .inspiration-category span {
  background: #ffead9;
  color: #e0560f;
}

.inspiration-column:nth-child(2) .inspiration-category span {
  background: #ffe2da;
  color: #e03e0b;
}

.inspiration-column:nth-child(3) .inspiration-category span {
  background: #fff1d6;
  color: #c98708;
}

.inspiration-card {
  position: relative;
  display: block;
  width: 100%;
  min-height: 76px;
  overflow: hidden;
  border: 1px solid #edeff2;
  border-radius: 14px;
  background: #ffffff;
  padding: 16px 16px 14px;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.inspiration-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #ffb23e, var(--accent));
  opacity: 0;
  transition: opacity 0.18s ease;
}

.inspiration-card strong {
  display: block;
  margin-bottom: 8px;
  overflow: hidden;
  color: #1f2937;
  font-size: 15px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inspiration-card span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.6;
  /* 恒为两行高：四类(文本/图片/视频/语音)卡片同尺寸，且三列的行能对齐 */
  min-height: 41.6px;
}

.inspiration-card:hover {
  border-color: rgba(242, 81, 27, 0.35);
  box-shadow: 0 14px 30px rgba(31, 41, 55, 0.1);
  transform: translateY(-3px);
}

.inspiration-card:hover::before {
  opacity: 1;
}

/* ===== 底部装饰带(纯视觉，不拦截点击；锚定画布底部) ===== */
.insp-deco {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 40px;
  opacity: 0.5;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 80%);
  mask-image: linear-gradient(180deg, transparent, #000 80%);
}

/* 语音：波形带 */
.insp-deco-speech {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 70px;
  padding: 0 34px;
}

.insp-deco-speech i {
  flex: 1;
  height: 50%;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, rgba(255, 178, 62, 0.5), rgba(242, 81, 27, 0.18));
}

.insp-deco-speech i:nth-child(3n) { height: 82%; }
.insp-deco-speech i:nth-child(3n + 1) { height: 44%; }
.insp-deco-speech i:nth-child(3n + 2) { height: 96%; }
.insp-deco-speech i:nth-child(5n) { height: 28%; }
.insp-deco-speech i:nth-child(7n) { height: 66%; }

/* 图片：缩略瓦片 */
.insp-deco-image {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  height: 96px;
  opacity: 0.4;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 92%);
  mask-image: linear-gradient(180deg, transparent, #000 92%);
}

.insp-deco-image i {
  flex: 1;
  height: 86%;
  border-radius: 14px;
  background: linear-gradient(160deg, #ffe2c2, #ffb985);
}

.insp-deco-image i:nth-child(2n) {
  height: 72%;
  background: linear-gradient(160deg, #ffd9c4, #f4a878);
}

.insp-deco-image i:nth-child(3n) {
  height: 60%;
  background: linear-gradient(160deg, #ffebd0, #ffc79a);
}

.insp-deco-image i:nth-child(5n) { height: 92%; }

/* 视频：胶片带 */
.insp-deco-video {
  bottom: 18px;
  height: 46px;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 58%);
  mask-image: linear-gradient(180deg, transparent, #000 58%);
}

.insp-deco-video .film {
  position: relative;
  display: flex;
  gap: 5px;
  height: 100%;
  border-radius: 9px;
  background: linear-gradient(180deg, #3c2e26, #2c211b);
  padding: 9px 11px;
  overflow: hidden;
}

.insp-deco-video .film i {
  flex: 1;
  border-radius: 3px;
  background: linear-gradient(160deg, #ffd7a8, #e78a4a);
}

.insp-deco-video .film i:nth-child(2n) { background: linear-gradient(160deg, #ffc8a6, #d87a3c); }
.insp-deco-video .film i:nth-child(3n) { background: linear-gradient(160deg, #ffe3b8, #ffa968); }

/* 文本：段落骨架 */
.insp-deco-text {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  height: 80px;
  padding: 0 34px;
}

.insp-deco-text .para {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;
}

.insp-deco-text .para i {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(255, 178, 62, 0.55), rgba(242, 81, 27, 0.16));
}

.insp-deco-text .para i:last-child { width: 55%; }
.insp-deco-text .para:nth-child(2n) i:last-child { width: 38%; }

/* 换一批(纯视觉刷新按钮) */
.insp-refresh {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 3;
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid #edeff2;
  border-radius: 9px;
  background: #fff;
  color: #4b5563;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.insp-refresh:hover {
  border-color: var(--accent);
  background: #fff7f3;
  color: var(--accent);
}

.insp-refresh svg { transition: transform 0.5s cubic-bezier(0.3, 0.8, 0.3, 1); }
.insp-refresh:hover svg { transform: rotate(180deg); }

/* 清空输入/清空对话 按钮：统一成与「换一批」一致的新款外观 */
[data-exp-clear-input],
[data-exp-clear-chat] {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid #edeff2;
  border-radius: 9px;
  background: #fff;
  color: #4b5563;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

[data-exp-clear-input]:hover,
[data-exp-clear-chat]:hover {
  border-color: var(--accent);
  background: #fff7f3;
  color: var(--accent);
}

[data-exp-clear-input] svg,
[data-exp-clear-chat] svg {
  transition: transform 0.5s cubic-bezier(0.3, 0.8, 0.3, 1);
}

[data-exp-clear-input]:hover svg,
[data-exp-clear-chat]:hover svg {
  transform: rotate(180deg);
}

/* 初始态(灵感库展示时)隐藏「清空对话」：此时无内容可清，避免与「换一批」重叠 */
[data-canvas-wrap]:has(.inspiration-board) [data-exp-clear-chat] {
  display: none;
}

/* 输出框底部的「清空输入」按钮稍小，落在虚线下方、左缘与输入文字对齐(定位见内联 left/bottom) */
[data-exp-clear-input] {
  width: 28px;
  height: 28px;
}

[data-exp-clear-input] svg {
  width: 14px;
  height: 14px;
}

@keyframes inspRefreshIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .insp-refresh:hover svg,
  [data-exp-clear-input]:hover svg,
  [data-exp-clear-chat]:hover svg { transform: none; }
}

.experience-media-input {
  display: grid;
  gap: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.experience-media-input[hidden] {
  display: none;
}

.media-input-head,
.media-input-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.media-input-head {
  align-items: stretch;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
}

.media-input-head > span {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: #334155;
  font-size: 14px;
  font-weight: 760;
}

.media-input-head em {
  display: inline-grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 1px solid #94a3b8;
  border-radius: 999px;
  color: #94a3b8;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.media-input-actions {
  width: 100%;
}

.media-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 40px;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 760;
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}

.media-upload-button span {
  font-size: 18px;
  line-height: 1;
}

.media-upload-button b {
  font: inherit;
}

.media-upload-button {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
}

.media-upload-button:hover {
  border-color: rgba(255, 106, 0, 0.3);
  background: #fff7ed;
  color: var(--accent-deep);
  transform: translateY(-1px);
}

.media-preview-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.media-preview-item {
  display: grid;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  place-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #ffffff;
  color: #64748b;
  font-size: 12px;
  font-weight: 780;
}

.media-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-preview-remove {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  position: absolute;
  top: 3px;
  right: 3px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.76);
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.media-preview-remove:hover {
  background: rgba(234, 88, 12, 0.92);
}

.experience-media-input textarea[data-experience-media-source] {
  display: none;
}

.prompt-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  min-height: 118px;
  border: 0;
  border-bottom: 1px dashed #e8eaee;
  border-radius: 0;
  background: #ffffff;
  overflow: hidden;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.prompt-box:focus-within {
  box-shadow: none;
}

.prompt-box textarea {
  min-height: 118px;
  border: 0;
  background: transparent;
  padding: 16px 4px;
  color: #111827;
  outline: 0;
  resize: none;
}

.prompt-box button {
  align-self: end;
  justify-self: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #ffffff;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(255, 106, 0, 0.18);
  transition:
    background 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.prompt-box button:hover:not(:disabled),
.prompt-box button:focus-visible:not(:disabled) {
  background: linear-gradient(135deg, var(--accent-hover), var(--accent));
  box-shadow: 0 12px 22px rgba(255, 106, 0, 0.22);
  transform: translateY(-1px);
}

.prompt-box button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.experience-status {
  border: 1px solid rgba(255, 106, 0, 0.22);
  border-radius: 8px;
  background: #fff7ed;
  padding: 10px 12px;
  color: #9a3412;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.5;
}

.experience-status.error {
  border-color: rgba(220, 38, 38, 0.22);
  background: #fef2f2;
  color: #b91c1c;
}

.chat-message {
  width: fit-content;
  max-width: min(72%, 760px);
  border-radius: 8px;
  padding: 12px 14px;
  color: #172033;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.chat-message + .chat-message {
  margin-top: 12px;
}

.chat-message.user {
  justify-self: end;
  border: 1px solid rgba(255, 106, 0, 0.14);
  background: #fff7ed;
  color: #7c2d12;
}

.chat-message.assistant {
  justify-self: start;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.96);
}

.chat-message.assistant.has-reasoning {
  max-width: min(82%, 860px);
}

.chat-message.assistant .chat-reasoning {
  margin-bottom: 10px;
  border-left: 3px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
  padding: 8px 12px;
}

.chat-message.assistant .chat-reasoning summary {
  cursor: pointer;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  user-select: none;
}

.chat-message.assistant .chat-reasoning summary::before {
  content: '💭 ';
}

.chat-message.assistant .chat-reasoning[open] summary {
  margin-bottom: 6px;
}

.chat-message.assistant .chat-reasoning-body {
  color: #64748b;
  font-size: 13px;
  line-height: 1.7;
}

.chat-message.assistant .md-code {
  background: rgba(15, 23, 42, 0.06);
  border-radius: 4px;
  padding: 0 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
}

.chat-message.assistant .md-pre {
  background: rgba(15, 23, 42, 0.06);
  border-radius: 8px;
  padding: 8px 10px;
  margin: 6px 0;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  white-space: pre-wrap;
}

.chat-message.assistant .md-h {
  font-weight: 800;
}

.prompt-dock p {
  margin: 0;
  color: #b6bcc8;
  font-size: 12px;
  text-align: center;
}

.market-main.experience-mode .playground-page.is-active {
  display: flex;
  height: calc(100vh - 44px);
  min-height: 0;
  flex-direction: column;
}

.market-main.experience-mode .playground-titlebar {
  flex: 0 0 auto;
  margin-bottom: 14px;
}

.market-main.experience-mode .experience-workbench {
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
}

.market-main.experience-mode .experience-settings {
  min-height: 0;
  max-height: 100%;
  gap: 13px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 14px 18px 20px;
  scrollbar-gutter: stable;
}

.market-main.experience-mode .experience-settings::-webkit-scrollbar {
  width: 8px;
}

.market-main.experience-mode .experience-settings::-webkit-scrollbar-track {
  background: transparent;
}

.market-main.experience-mode .experience-settings::-webkit-scrollbar-thumb {
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.58);
}

.market-main.experience-mode .experience-settings::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 106, 0, 0.72);
}

.market-main.experience-mode .experience-field {
  gap: 6px;
}

.market-main.experience-mode .experience-field select,
.market-main.experience-mode .experience-field input {
  height: 38px;
}

.market-main.experience-mode .experience-field textarea {
  min-height: 64px;
  resize: none;
}

.market-main.experience-mode .ratio-grid button {
  min-height: 52px;
}

.market-main.experience-mode .experience-stage {
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
  gap: 12px;
  overflow: hidden;
  padding: 18px;
}

.market-main.experience-mode .usage-banner > span,
.market-main.experience-mode .usage-banner strong {
  padding-top: 12px;
  padding-bottom: 12px;
}

.market-main.experience-mode .usage-banner > span {
  padding-right: 26px;
  padding-left: 26px;
}

.market-main.experience-mode .usage-banner strong {
  padding-right: 18px;
  padding-left: 18px;
}

.market-main.experience-mode .experience-canvas {
  min-height: 0;
  overflow: hidden;
}

/* 体验中心输出区的图片/视频：画布高度由父布局钳制但自身 height:auto(非确定高度)，
   普通流内 max-height 百分比解析不了会溢出被裁；绝对定位的百分比对祖先 padding box 永远可解析，
   保证任意宽高比(9:16/1:1/16:9)完整显示且居中。 */
.market-main.experience-mode .experience-canvas > img,
.market-main.experience-mode .experience-canvas > video {
  position: absolute;
  inset: 0;
  margin: auto;
  /* 元素盒撑满画布 + contain：等比放大到先碰边的那条边为准(横版宽贴满/竖版高贴满)，
     全部内容可见的前提下最大化利用画布，小尺寸媒体也会放大填充 */
  width: 96%;
  height: 96%;
  object-fit: contain;
}

.market-main.experience-mode .text-canvas {
  overflow-y: auto;
  overscroll-behavior: contain;
}

.market-main.experience-mode .prompt-dock {
  gap: 8px;
  padding: 16px;
}

.market-main.experience-mode .experience-media-input {
  gap: 8px;
  padding: 0;
}

.market-main.experience-mode .media-preview-item {
  width: 56px;
  height: 56px;
}

.market-main.experience-mode .prompt-box,
.market-main.experience-mode .prompt-box textarea {
  min-height: 102px;
}

.market-main.experience-mode .prompt-box button {
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
}

.market-main.experience-mode .prompt-box button.is-stop {
  background: #64748b;
}

.market-main.experience-mode .prompt-dock p {
  line-height: 1.35;
}

.realname-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 106, 0, 0.22);
  border-radius: 14px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 106, 0, 0.16), transparent 34%),
    linear-gradient(135deg, #fff7ed 0%, #ffffff 58%, #fff4eb 100%);
  padding: 28px 30px;
  box-shadow: 0 18px 44px rgba(255, 106, 0, 0.08);
}

.realname-hero span {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(255, 106, 0, 0.12);
  padding: 5px 10px;
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 820;
}

.realname-hero h2 {
  margin: 14px 0 10px;
  color: #111827;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: 0;
}

.realname-hero p {
  max-width: 760px;
  margin: 0;
  color: #475467;
  font-size: 16px;
  line-height: 1.65;
}

.realname-hero-action {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 10px;
  background: var(--accent);
  padding: 0 20px;
  color: #ffffff;
  font-weight: 820;
  box-shadow: 0 14px 28px rgba(255, 106, 0, 0.2);
}

.realname-hero-action.disabled {
  pointer-events: none;
  background: #e2e8f0;
  color: #64748b;
  box-shadow: none;
}

.realname-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  padding: 16px 18px;
}

.realname-status-row div {
  display: grid;
  gap: 4px;
}

.realname-status-row strong {
  color: #111827;
  font-size: 15px;
}

.realname-status-row span:not(.pill) {
  color: #64748b;
  font-size: 13px;
}

.realname-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.realname-entry-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  padding: 22px;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.realname-entry-card:hover {
  border-color: rgba(255, 106, 0, 0.4);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.realname-entry-card.disabled {
  cursor: not-allowed;
  opacity: 0.56;
  filter: grayscale(0.2);
}

.realname-entry-card.disabled:hover {
  border-color: var(--line);
  box-shadow: none;
  transform: none;
}

.realname-entry-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 900;
}

.realname-entry-card h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 20px;
}

.realname-entry-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.65;
}

.realname-entry-card > span {
  color: var(--accent-deep);
  font-size: 14px;
  font-weight: 820;
  white-space: nowrap;
}

.realname-form-section {
  min-height: calc(100vh - 80px);
  padding-bottom: 40px;
}

.realname-form-head {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #d8dee8;
  padding: 2px 0 22px;
}

.realname-back {
  color: #8b93a3;
  font-size: 38px;
  line-height: 0.8;
  font-weight: 300;
}

.realname-form-head h2 {
  margin: 0;
  color: #000000;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0;
}

.realname-alert {
  max-width: 760px;
  margin-top: 24px;
  border: 1px solid #f6d365;
  border-radius: 9px;
  background: #fffbea;
  padding: 12px 16px;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 650;
}

.realname-form {
  display: grid;
  gap: 20px;
  max-width: 560px;
  margin-top: 24px;
}

.realname-field {
  display: grid;
  gap: 8px;
}

.realname-field span {
  color: #1f2937;
  font-size: 14px;
  font-weight: 850;
}

.realname-field.required > span::before {
  margin-right: 8px;
  color: #ef4444;
  content: "*";
}

.realname-field input,
.realname-field select {
  width: 100%;
  height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  padding: 0 12px;
  color: #111827;
  font-size: 14px;
  outline: 0;
}

.realname-field input::placeholder {
  color: #9aa7ba;
}

.realname-consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: #9aa3b2;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 700;
}

.realname-consent input {
  position: relative;
  display: inline-grid;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  appearance: none;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #ffffff;
  cursor: pointer;
}

.realname-consent input:checked {
  border-color: var(--accent);
  background: var(--accent);
}

.realname-consent input:checked::after {
  position: absolute;
  top: 1px;
  left: 5px;
  width: 5px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 3px 3px 0;
  content: "";
  transform: rotate(45deg);
}

.realname-submit {
  height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 820;
}

.realname-submit:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(255, 106, 0, 0.16);
}

.realname-submit:disabled {
  cursor: not-allowed;
}

.realname-result {
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #eff6ff;
  padding: 12px 14px;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.5;
}

.realname-result.success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.realname-result.error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.realname-result[hidden] {
  display: none;
}

.realname-alert[hidden],
.realname-form[hidden],
.realname-success-panel[hidden],
.realname-success-check[hidden] {
  display: none;
}

.realname-success-panel {
  margin-top: 48px;
  border: 1px solid rgba(255, 106, 0, 0.18);
  border-top: 2px solid var(--accent);
  border-radius: 8px;
  background: linear-gradient(110deg, #fff7ed 0%, #ffffff 38%, #ffffff 100%);
  padding: 34px 28px 36px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.realname-success-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 34px;
}

.realname-success-head h3 {
  margin: 0;
  color: #111827;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: 0;
}

.realname-success-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 44px;
}

.realname-success-item {
  display: flex;
  align-items: center;
  min-width: 0;
  color: #334155;
  font-size: 17px;
  line-height: 1.45;
}

.realname-success-item span {
  flex-shrink: 0;
  color: #98a2b3;
  font-weight: 820;
}

.realname-success-item strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #334155;
  font-weight: 860;
}

.realname-success-check {
  display: inline-grid;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-left: 12px;
  place-items: center;
  border-radius: 999px;
  background: #45d483;
  color: #ffffff;
  font-size: 18px;
  font-style: normal;
  line-height: 1;
  font-weight: 900;
}

.realname-reward-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  visibility: hidden;
  place-items: center;
  padding: 22px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    visibility 0.18s ease;
}

.realname-reward-modal.is-visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.realname-reward-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 14, 8, 0.55);
}

/* ===== 实名认证福利弹窗 · 方案B（780x520 奶油卡 + 放射光芒 + 钢印） ===== */
.realname-reward-card {
  --rw-orange: #F2511B;
  --rw-orange-deep: #E03E0B;
  --rw-ink: #1B140E;
  --rw-cream: #FCF2E4;
  --rw-cream-hi: #FFF7EC;
  --rw-serif: 'Songti SC', 'STSong', 'SimSun', Georgia, serif;
  --rw-display: Georgia, 'Times New Roman', 'Songti SC', serif;
  position: relative;
  z-index: 1;
  width: min(780px, 94vw);
  height: 520px;
  border-radius: 22px;
  background: var(--rw-cream);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(20, 10, 4, 0.5);
}

.rw-corner {
  position: absolute; right: 0; bottom: 0; width: 460px; height: 340px; pointer-events: none;
  background: radial-gradient(closest-side at 100% 100%, rgba(167, 148, 245, 0.45), transparent 72%);
}
.rw-glow {
  position: absolute; left: 50%; top: 52%; width: 620px; height: 420px; pointer-events: none;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, #FFE9CC, transparent 72%);
}
.rw-rays {
  position: absolute; left: 50%; top: 52%; width: 700px; height: 700px;
  transform: translate(-50%, -50%); opacity: 0.55; pointer-events: none;
}
.rw-spark { position: absolute; pointer-events: none; }

.rw-body {
  position: relative; height: 100%; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 48px 34px; gap: 6px;
}
.rw-badge {
  position: absolute; left: 36px; top: 30px;
  display: flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--rw-orange); color: var(--rw-orange-deep);
  border-radius: 999px; padding: 7px 18px;
  font-family: var(--rw-serif); font-weight: 700; font-size: 15px;
  letter-spacing: 3px; white-space: nowrap;
  background: none;
}
.rw-stamp {
  position: absolute; right: 64px; top: 30px; width: 110px; height: 110px;
  border-radius: 50%; background: var(--rw-orange); transform: rotate(12deg);
  box-shadow: 0 10px 26px rgba(242, 81, 27, 0.35);
  display: flex; align-items: center; justify-content: center; z-index: 4;
}
.rw-stamp::before {
  content: ''; position: absolute; inset: 6px; border-radius: 50%;
  border: 1.5px dashed rgba(255, 247, 236, 0.85);
}
.rw-stamp-txt { text-align: center; color: var(--rw-cream-hi); }
.rw-stamp-txt small { display: block; font-size: 11px; letter-spacing: 2.5px; }
.rw-stamp-txt b { display: block; font-family: var(--rw-display); font-weight: 900; font-size: 33px; line-height: 1.05; }

.rw-eyebrow {
  font-family: var(--rw-serif); font-weight: 700; font-size: 21px;
  letter-spacing: 8px; color: var(--rw-ink); margin-top: 26px; white-space: nowrap;
}
.rw-hero { position: relative; display: flex; align-items: baseline; margin-top: -6px; white-space: nowrap; }
.rw-hero .rw-num {
  font-family: var(--rw-display); font-weight: 900;
  font-size: 150px; line-height: 1.05; color: var(--rw-orange);
  letter-spacing: -0.03em; text-shadow: 0 4px 0 rgba(224, 62, 11, 0.18);
}
.rw-hero .rw-wan { font-size: 112px; }
.rw-hero .rw-token {
  font-family: var(--rw-display); font-weight: 900; font-style: italic;
  font-size: 78px; color: var(--rw-ink); margin-left: 8px;
}
.rw-amount { display: none; }
.rw-sub { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.rw-sub-line { width: 42px; height: 2px; background: var(--rw-orange); }
.rw-sub-txt {
  font-family: var(--rw-serif); font-weight: 700; font-size: 18px;
  letter-spacing: 4px; color: var(--rw-ink); white-space: nowrap;
}

.realname-reward-confirm {
  margin-top: 22px; background: linear-gradient(180deg, #FF6A2B, #F0480F);
  color: var(--rw-cream-hi); border: none; cursor: pointer;
  font-size: 21px; font-weight: 700;
  letter-spacing: 8px; padding: 14px 64px 14px 72px; border-radius: 999px;
  white-space: nowrap; box-shadow: 0 12px 28px rgba(242, 81, 27, 0.38);
  transition: transform 0.16s cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 0.16s;
}
.realname-reward-confirm:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(242, 81, 27, 0.48); }
.realname-reward-confirm:active { transform: translateY(1px); }

.realname-reward-close {
  position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; z-index: 5;
  border-radius: 50%; border: 1.5px solid rgba(27, 20, 14, 0.35); background: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0.7; transition: transform 0.25s, opacity 0.2s;
}
.realname-reward-close:hover { transform: rotate(90deg); opacity: 1; }

/* 入场动效：挂在 is-visible 上，每次打开都重播（尊重 reduced-motion） */
@media (prefers-reduced-motion: no-preference) {
  .realname-reward-modal.is-visible .realname-reward-card { animation: rwCardIn 0.55s cubic-bezier(0.18, 1.5, 0.36, 1) both; }
  .realname-reward-modal.is-visible .rw-rays { animation: rwBurstIn 0.7s cubic-bezier(0.2, 1.3, 0.4, 1) 0.08s both; }
  .realname-reward-modal.is-visible .rw-hero { animation: rwBigIn 0.6s cubic-bezier(0.2, 1.5, 0.35, 1) 0.18s both; }
  .realname-reward-modal.is-visible .rw-rise { animation: rwRise 0.45s cubic-bezier(0.2, 0.9, 0.3, 1) both; animation-delay: var(--d, 0.3s); }
  .realname-reward-modal.is-visible .rw-stamp { animation: rwStampIn 0.45s cubic-bezier(0.25, 1.4, 0.4, 1) 0.55s both; }
  .realname-reward-modal.is-visible .rw-spark { animation: rwTwinkle 1.7s ease-in-out var(--d, 0s) infinite alternate; }
}
@keyframes rwCardIn {
  0% { opacity: 0; transform: scale(0.55) rotate(-4deg); }
  60% { opacity: 1; transform: scale(1.04) rotate(1deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes rwBurstIn {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.2) rotate(-45deg); }
  100% { opacity: 0.55; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
}
@keyframes rwBigIn {
  0% { opacity: 0; transform: scale(0.3); }
  55% { opacity: 1; transform: scale(1.12); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes rwRise { 0% { opacity: 0; transform: translateY(18px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes rwStampIn {
  0% { opacity: 0; transform: scale(2.4) rotate(28deg); }
  100% { opacity: 1; transform: scale(1) rotate(12deg); }
}
@keyframes rwTwinkle {
  from { opacity: 0.45; transform: scale(0.78) rotate(-10deg); }
  to { opacity: 1; transform: scale(1.1) rotate(10deg); }
}

/* 充值成功模式：沿用方案B外壳，隐藏 token 主视觉，金额当主角 */
.realname-reward-modal[data-reward-mode="recharge"] .realname-reward-card {
  width: min(560px, 94vw);
  height: auto;
  min-height: 340px;
}
.realname-reward-modal[data-reward-mode="recharge"] .rw-stamp,
.realname-reward-modal[data-reward-mode="recharge"] .rw-rays,
.realname-reward-modal[data-reward-mode="recharge"] .rw-spark,
.realname-reward-modal[data-reward-mode="recharge"] .rw-hero,
.realname-reward-modal[data-reward-mode="recharge"] .rw-eyebrow {
  display: none;
}
.realname-reward-modal[data-reward-mode="recharge"] .rw-body {
  padding: 84px 40px 40px;
}
.realname-reward-modal[data-reward-mode="recharge"] .rw-amount {
  display: block;
  font-family: var(--rw-display);
  font-weight: 900;
  font-size: 56px;
  line-height: 1.1;
  color: var(--rw-orange);
  margin: 8px 0 4px;
}
.realname-reward-modal[data-reward-mode="recharge"] [data-realname-reward-desc] {
  white-space: nowrap;
  font-size: 15px;
  letter-spacing: 1.5px;
}
.realname-reward-modal[data-reward-mode="recharge"] .rw-sub-line {
  display: none;
}

/* 窄屏适配：按比例缩小主视觉，保证不溢出 */
@media (max-width: 760px) {
  .realname-reward-card { height: auto; min-height: 460px; }
  .rw-eyebrow { font-size: 17px; letter-spacing: 5px; margin-top: 64px; }
  .rw-hero .rw-num { font-size: 88px; }
  .rw-hero .rw-wan { font-size: 66px; }
  .rw-hero .rw-token { font-size: 46px; }
  .rw-stamp { width: 84px; height: 84px; right: 18px; top: 64px; }
  .rw-stamp-txt b { font-size: 24px; }
  .rw-sub-txt { font-size: 14px; letter-spacing: 2px; white-space: normal; }
  .realname-reward-confirm { font-size: 17px; letter-spacing: 5px; padding: 12px 40px 12px 45px; }
}

.wallet-page {
  color: #1f2937;
}

.wallet-balance-card {
  position: relative;
  display: grid;
  min-height: 128px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 106, 0, 0.18);
  border-top: 2px solid var(--accent);
  border-radius: 12px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 106, 0, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.78);
  padding: 24px 28px;
}

.wallet-balance-card span {
  display: block;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
}

.wallet-balance-card strong {
  display: inline-block;
  margin-top: 16px;
  color: var(--accent);
  font-size: 38px;
  line-height: 1;
}

.wallet-balance-card em {
  margin-left: 14px;
  color: #334155;
  font-size: 15px;
  font-style: normal;
  font-weight: 760;
}

.wallet-section-head,
.wallet-record-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
}

.wallet-section-head h2,
.wallet-record-head h2 {
  margin: 0;
  color: #111827;
  font-size: 22px;
  line-height: 1.2;
}

.wallet-section-head span {
  border-radius: 8px;
  background: rgba(22, 163, 74, 0.12);
  padding: 9px 12px;
  color: #15803d;
  font-size: 13px;
  font-weight: 760;
}

.wallet-recharge-panel {
  display: grid;
  gap: 22px;
  margin-top: 18px;
  border: 1px dashed rgba(148, 163, 184, 0.36);
  border-radius: 12px;
  background:
    radial-gradient(circle at 100% 100%, rgba(255, 106, 0, 0.08), transparent 30%),
    rgba(255, 255, 255, 0.66);
  padding: 30px 32px;
}

.wallet-form-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.wallet-label {
  padding-top: 12px;
  color: #64748b;
  font-size: 15px;
  font-weight: 820;
}

.wallet-field-main {
  display: grid;
  gap: 14px;
}

.wallet-amount-grid {
  display: grid;
  max-width: 760px;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 14px 16px;
}

.wallet-amount-grid button,
.wallet-pay-grid button {
  min-height: 54px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  font-size: 17px;
  font-weight: 780;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease;
}

.wallet-amount-grid button:hover,
.wallet-amount-grid button.active,
.wallet-pay-grid button:hover,
.wallet-pay-grid button.active {
  border-color: var(--accent);
  color: var(--accent-deep);
  box-shadow: inset 0 0 0 1px rgba(255, 106, 0, 0.32);
}

.wallet-other-field {
  display: grid;
  max-width: 360px;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.wallet-other-field[hidden] {
  display: none;
}

.wallet-other-field span {
  color: #64748b;
  font-size: 14px;
  font-weight: 760;
}

.wallet-other-field input {
  height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  padding: 0 12px;
  color: #111827;
  outline: 0;
}

.wallet-other-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.12);
}

.wallet-pay-grid {
  display: grid;
  max-width: 360px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wallet-pay-grid button {
  color: #334155;
  font-size: 15px;
}

.wallet-pay-submit {
  width: 340px;
  height: 48px;
  margin-left: 110px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #ffffff;
  font-size: 15px;
  font-weight: 850;
  box-shadow: 0 14px 30px rgba(255, 106, 0, 0.18);
}

.wallet-pay-submit:disabled {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
}

.wallet-consent {
  display: grid;
  max-width: 760px;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-left: 110px;
  color: #64748b;
  font-size: 14px;
  font-weight: 720;
  line-height: 1.7;
  cursor: pointer;
}

.wallet-consent-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.wallet-consent-box {
  position: relative;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 2px solid var(--accent);
  border-radius: 4px;
  background: #ffffff;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.wallet-consent-input:checked + .wallet-consent-box {
  border-color: var(--accent);
  background: var(--accent);
}

.wallet-consent-input:focus-visible + .wallet-consent-box {
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.18);
}

.wallet-consent-input:checked + .wallet-consent-box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid #ffffff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.wallet-consent-copy {
  display: block;
}

.wallet-consent a {
  color: var(--accent-deep);
  font-weight: 820;
}

.wallet-consent small {
  display: block;
  margin-top: 2px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 620;
}

.wallet-checkout {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 24px;
}

.wallet-checkout.is-visible {
  display: grid;
}

.wallet-checkout-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(3px);
}

.wallet-checkout-card {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(680px, 100%);
  gap: 22px;
  border: 1px solid rgba(22, 193, 96, 0.28);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 106, 0, 0.10), transparent 34%),
    #ffffff;
  padding: 28px;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.24);
}

.wallet-checkout-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.wallet-checkout-info {
  display: block;
  padding-right: 34px;
}

.wallet-checkout-body {
  display: grid;
  grid-template-columns: 240px minmax(180px, 1fr);
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.wallet-checkout h3 {
  margin: 0;
  color: #111827;
  font-size: 16px;
  line-height: 1.2;
}

.wallet-checkout p {
  margin: 6px 0 0;
  color: #64748b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.wallet-checkout-summary {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.wallet-checkout-summary strong {
  color: #111827;
  font-size: 30px;
  line-height: 1;
}

.wallet-checkout-summary span {
  color: #64748b;
  font-size: 13px;
  font-weight: 760;
}

.wallet-checkout-action {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 24px;
}

.wallet-checkout-qr {
  display: grid;
  width: 220px;
  height: 220px;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 14px;
  background: #ffffff;
  padding: 14px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.wallet-checkout-qr img {
  width: 190px;
  height: 190px;
}

.wallet-checkout-qr span {
  color: #94a3b8;
  font-size: 13px;
}

.wallet-checkout-body button {
  min-width: 190px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  padding: 12px 16px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 850;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(255, 106, 0, 0.18);
}

.wallet-checkout-body button:disabled {
  background: #f8fafc;
  color: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
}

.wallet-record-head button {
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 22px;
  cursor: pointer;
}

.wallet-record-table {
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  background: #ffffff;
}

.wallet-record-row {
  display: grid;
  grid-template-columns: minmax(360px, 1.55fr) minmax(190px, 0.95fr) minmax(120px, 0.65fr) minmax(110px, 0.55fr) minmax(120px, 0.55fr);
  align-items: center;
}

.wallet-record-title {
  background: #f8fafc;
}

.wallet-record-row span {
  padding: 15px 14px;
  color: #111827;
  font-size: 14px;
}

.wallet-record-row + .wallet-record-row {
  border-top: 1px solid #eef2f7;
}

.wallet-record-title span {
  color: #64748b;
  font-weight: 780;
}

.wallet-record-row span:first-child {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.wallet-record-row span:last-child {
  border-right: 0;
}

.wallet-record-row.success span:nth-child(4) {
  color: #15803d;
}

.wallet-record-row.pending span:nth-child(4) {
  color: #b45309;
}

.wallet-record-row.failed span:nth-child(4),
.wallet-record-row.closed span:nth-child(4),
.wallet-record-row.refunded span:nth-child(4) {
  color: #dc2626;
}

.wallet-record-row.success span:nth-child(5) {
  color: var(--accent-deep);
}

.wallet-record-empty {
  display: grid;
  min-height: 128px;
  place-items: center;
  border-top: 1px solid #eef2f7;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 720;
}

.wallet-record-empty[hidden] {
  display: none;
}

.small-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 0 12px;
  color: #344054;
  font-weight: 720;
}

.api-key-page {
  position: relative;
}

.api-page-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}

.api-page-titlebar h2 {
  margin: 0;
  color: #111827;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 900;
}

.api-primary-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff6a2b, #f0480f);
  padding: 0 24px;
  color: #fff7ec;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(242, 81, 27, 0.3);
  transition: transform 0.16s cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 0.16s;
}

.api-primary-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(242, 81, 27, 0.4);
}

.api-primary-action span {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 16px;
  line-height: 1;
}

.api-key-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  border: 1px solid #f6e2cc;
  border-radius: 10px;
  background: #fdf3ea;
  padding: 11px 16px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}

.api-notice-ico {
  flex: none;
  color: #ffb23e;
}

.api-key-notice b {
  color: #1f2937;
  font-weight: 700;
}

.api-key-table {
  overflow-x: auto;
  overflow-y: visible;
  margin-top: 20px;
  border: 1px solid #edeff2;
  border-radius: 14px;
  background: #ffffff;
}

.api-key-row {
  display: grid;
  min-width: 1180px;
  grid-template-columns: 64px minmax(280px, 1.2fr) minmax(130px, 0.65fr) minmax(110px, 0.5fr) minmax(120px, 0.55fr) minmax(180px, 0.75fr) minmax(140px, 0.6fr);
  align-items: center;
}

.api-key-row > * {
  min-width: 0;
  padding: 18px 20px;
}

.api-key-row[hidden],
.api-key-empty[hidden],
.api-pagination[hidden] {
  display: none;
}

.api-key-head {
  border-bottom: 1px solid #edeff2;
  background: #fbf7f2;
}

.api-key-head strong {
  color: #4b5563;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1px;
}

.api-key-record {
  color: #172033;
  font-size: 13.5px;
  font-weight: 600;
  transition: background 0.14s ease;
}

.api-key-record:hover {
  background: #fffbf7;
}

.api-key-record + .api-key-record {
  border-top: 1px solid #f4f6f8;
}

.api-key-visibility-cell {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  border: 0;
  background: transparent;
  color: #172033;
  cursor: pointer;
  padding: 0;
}

span.api-key-visibility-cell {
  cursor: default;
}

button.api-key-visibility-cell:hover,
button.api-key-visibility-cell:focus-visible {
  color: var(--accent-deep);
  outline: none;
}

.api-key-visibility-cell svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.api-key-value {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  color: #111827;
  font: inherit;
  text-align: left;
}

.api-key-text,
.api-key-copy-button {
  position: relative;
  border: 0;
  background: transparent;
  padding: 0;
  color: #111827;
  font: inherit;
  cursor: pointer;
}

.api-key-text {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  white-space: nowrap;
}

.api-key-text-label {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-key-static,
.api-key-static .api-key-text {
  cursor: default;
}

.api-key-copy-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  opacity: 0;
  transition:
    color 0.16s ease,
    opacity 0.16s ease,
    transform 0.16s ease;
}

.api-copy-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.api-key-value:hover .api-key-copy-button,
.api-key-copy-button:focus-visible,
.api-key-copy-button.show-tip {
  opacity: 1;
  transform: translateX(2px);
}

.api-key-value:hover .api-key-copy-button,
.api-key-copy-button:focus-visible {
  color: var(--accent-deep);
  outline: none;
}

.api-key-text:focus-visible {
  outline: 2px solid rgba(255, 106, 0, 0.35);
  outline-offset: 3px;
}

.api-copy-target::after {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  z-index: 4;
  visibility: hidden;
  border-radius: 8px;
  background: #1f2937;
  padding: 8px 12px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 820;
  line-height: 1;
  white-space: nowrap;
  content: attr(data-tip-text);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0.16s ease;
}

.api-copy-target::before {
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  z-index: 5;
  visibility: hidden;
  width: 10px;
  height: 10px;
  background: #1f2937;
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) rotate(45deg);
  transition:
    opacity 0.16s ease,
    visibility 0.16s ease;
}

.api-copy-target:hover::before,
.api-copy-target:hover::after,
.api-copy-target.show-tip::before,
.api-copy-target.show-tip::after {
  visibility: visible;
  opacity: 1;
}

.api-copy-target:hover::after,
.api-copy-target.show-tip::after {
  transform: translate(-50%, 0);
}

.api-actions {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.api-actions button {
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  padding: 5px 12px;
  color: #4b5563;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.14s ease, color 0.14s ease, background 0.14s ease;
}

.api-actions button:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #fff7f3;
}

.api-actions button.danger:hover {
  border-color: #d93025;
  color: #d93025;
  background: #fdf2f1;
}

.api-default-lock {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff8a50, #f2511b);
  padding: 0 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(242, 81, 27, 0.25);
}

/* 列表 pill：额度(黄) / 模型权限(橙) */
.api-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
}

.api-pill-quota {
  background: #fff1d6;
  color: #b5790a;
}

.api-pill-models {
  background: #ffe9de;
  color: #e03e0b;
}

.api-key-empty {
  display: grid;
  min-height: 128px;
  place-items: center;
  gap: 8px;
  border-top: 1px solid #e2e8f0;
  color: #94a3b8;
  font-weight: 780;
}

.api-key-empty span {
  font-size: 34px;
  opacity: 0.72;
}

.api-pagination {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}

.api-page-list {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.api-page-ellipsis {
  display: inline-grid;
  width: 22px;
  height: 34px;
  place-items: center;
  color: #94a3b8;
  font-weight: 820;
  user-select: none;
}

.api-pagination button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  font-weight: 820;
  cursor: pointer;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
}

.api-pagination button:hover:not(:disabled),
.api-pagination button:focus-visible:not(:disabled) {
  border-color: rgba(255, 106, 0, 0.34);
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.api-pagination button.active {
  border-color: var(--accent);
  color: var(--accent-deep);
}

.api-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.api-dialog-shell {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  visibility: hidden;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    visibility 0.18s ease;
}

.api-dialog-shell.is-visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.api-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
}

.api-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100vw - 36px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 0;
  border-radius: 18px;
  background: #ffffff;
  padding: 26px 28px 24px;
  box-shadow: 0 32px 80px rgba(30, 16, 5, 0.35);
}

.api-dialog::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, #ffb23e, var(--accent));
}

.api-dialog-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 36px 20px 0;
}

.api-dialog-key-ico {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fdf3ea;
  color: var(--accent);
}

.api-dialog h3 {
  margin: 0;
  color: #1f2937;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: 1px;
}

.api-dialog-close {
  position: absolute;
  top: 22px;
  right: 24px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #edeff2;
  border-radius: 50%;
  background: #fff;
  color: #4b5563;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.15s ease, color 0.15s ease;
}

.api-dialog-close:hover {
  transform: rotate(90deg);
  border-color: var(--accent);
  color: var(--accent);
}

.api-dialog-field {
  display: grid;
  gap: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.api-dialog-field input {
  width: 100%;
  height: 40px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  padding: 0 12px;
  color: #172033;
  font-size: 14px;
  font-weight: 620;
  outline: 0;
}

.api-dialog-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.12);
}

.api-dialog-field em {
  color: #667085;
  font-size: 12px;
  font-style: normal;
  font-weight: 560;
}

.api-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.api-dialog-actions button {
  min-height: 40px;
  border-radius: 999px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.api-secondary {
  border: 1.5px solid #edeff2;
  background: #ffffff;
  color: #4b5563;
}

.api-secondary:hover {
  border-color: #c9cfda;
  color: #1f2937;
}

.api-confirm {
  border: 0;
  background: linear-gradient(180deg, #ff6a2b, #f0480f);
  color: #fff7ec;
  letter-spacing: 1px;
  box-shadow: 0 8px 20px rgba(242, 81, 27, 0.3);
}

.api-confirm:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(242, 81, 27, 0.4);
}

.api-delete-warning {
  margin-bottom: 18px;
  border: 1px solid rgba(255, 159, 28, 0.42);
  border-radius: 8px;
  background: #fffaf0;
  padding: 14px 16px;
  color: #111827;
  font-size: 14px;
  font-weight: 720;
  line-height: 1.65;
}

.api-danger-confirm {
  border: 0;
  background: #ef4444;
  color: #ffffff;
}

.api-danger-confirm:disabled {
  background: #fecaca;
  cursor: not-allowed;
}

.fee-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.fee-head h2 {
  margin: 0;
  color: #111827;
  font-size: 30px;
  line-height: 1.2;
}

.fee-head p {
  margin: 10px 0 0;
  color: #475467;
  font-size: 15px;
  line-height: 1.7;
}

.fee-info {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-top: 26px;
  border: 1px solid #d7dee9;
  border-radius: 9px;
  background: #ffffff;
  padding: 18px 20px;
  color: #475569;
}

.fee-info span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid #64748b;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.fee-info p {
  margin: 0;
  line-height: 1.65;
}

.fee-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.fee-stat-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  padding: 18px;
}

.fee-stat-card span {
  color: #64748b;
  font-size: 13px;
  font-weight: 680;
}

.fee-stat-card strong {
  display: block;
  margin-top: 8px;
  color: var(--accent);
  font-size: 28px;
  line-height: 1.1;
}

.fee-stat-card em {
  display: block;
  margin-top: 8px;
  color: #94a3b8;
  font-size: 12px;
  font-style: normal;
}

.fee-logic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.fee-logic-grid div {
  border: 1px solid rgba(255, 106, 0, 0.18);
  border-radius: 10px;
  background: var(--accent-soft);
  padding: 14px;
}

.fee-logic-grid strong {
  display: block;
  color: var(--accent-deep);
  font-size: 14px;
}

.fee-logic-grid span {
  display: block;
  margin-top: 7px;
  color: #475467;
  font-size: 13px;
  line-height: 1.55;
}

.fee-tabs {
  display: flex;
  gap: 28px;
  margin-top: 30px;
  border-bottom: 1px solid var(--line);
}

.fee-tabs button {
  position: relative;
  border: 0;
  background: transparent;
  padding: 0 0 14px;
  color: #334155;
  font-size: 16px;
  font-weight: 780;
  cursor: pointer;
}

.fee-tabs button.active {
  color: #111827;
}

.fee-tabs button.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--accent);
  content: "";
}

.fee-panel {
  display: none;
}

.fee-panel.active {
  display: block;
}

.fee-filter-card {
  display: grid;
  grid-template-columns: minmax(300px, 1.25fr) minmax(160px, 0.8fr) minmax(180px, 0.8fr) auto;
  gap: 14px;
  align-items: end;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  padding: 18px;
}

.fee-summary-filter {
  /* 与费用明细同风格的 3 列铺满:首列比例对齐明细(1.25fr),无空洞 */
  grid-template-columns: minmax(300px, 1.25fr) minmax(160px, 0.8fr) auto;
}

.fee-filter-card label {
  display: grid;
  gap: 8px;
}

.fee-filter-card label span {
  color: #334155;
  font-weight: 760;
}

.fee-filter-card input,
.fee-filter-card select,
.fee-date-range {
  width: 100%;
  height: 42px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  outline: 0;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.fee-filter-card input,
.fee-filter-card select {
  padding: 0 12px;
}

.fee-date-field {
  min-width: 0;
}

.fee-date-range {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  overflow: visible;
  background:
    linear-gradient(135deg, rgba(255, 247, 237, 0.76), rgba(255, 255, 255, 0.96)),
    #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.fee-date-range input {
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111827;
  cursor: pointer;
  font-weight: 720;
}

.fee-date-range input::-webkit-calendar-picker-indicator {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0.72;
  filter: sepia(1) saturate(3) hue-rotate(350deg);
}

.fee-date-range input:hover::-webkit-calendar-picker-indicator {
  opacity: 1;
}

.fee-date-range em {
  display: inline-grid;
  min-width: 26px;
  height: 24px;
  place-items: center;
  border-right: 1px solid rgba(255, 106, 0, 0.14);
  border-left: 1px solid rgba(255, 106, 0, 0.14);
  color: #94a3b8;
  font-size: 13px;
  font-style: normal;
  font-weight: 760;
}

.fee-filter-card label > input:focus,
.fee-filter-card select:focus,
.fee-date-range:focus-within {
  border-color: var(--accent);
  background:
    linear-gradient(135deg, rgba(255, 247, 237, 0.95), rgba(255, 255, 255, 1)),
    #ffffff;
  box-shadow:
    0 0 0 3px rgba(255, 106, 0, 0.1),
    0 10px 24px rgba(255, 106, 0, 0.08);
}

.fee-filter-actions {
  display: flex;
  gap: 8px;
}

.fee-filter-actions button {
  height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  font-weight: 760;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease,
    color 0.16s ease;
}

.fee-filter-actions button:hover {
  transform: translateY(-1px);
}

.fee-filter-actions button.is-clicked {
  transform: translateY(0);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.14);
}

.fee-filter-actions .query {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(255, 106, 0, 0.14);
}

.fee-filter-actions .reset {
  background: #f1f5f9;
  color: #475569;
}

.fee-filter-actions .export {
  border: 1px solid var(--accent);
  background: #fff7ed;
  color: var(--accent-deep);
}

.fee-limit-note {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 720;
}

.fee-table {
  overflow-x: auto;
  margin-top: 18px;
  border: 1px solid #eef2f7;
  background: #ffffff;
}

.fee-table-row {
  display: grid;
  /* 弹性列：在宽容器里铺满(消除右侧空白)，窄屏靠 min-width 触发横向滚动。与 summary 表同款做法 */
  grid-template-columns: minmax(176px, 1.3fr) minmax(110px, 0.92fr) minmax(150px, 1.16fr) minmax(104px, 0.92fr) minmax(140px, 1.1fr) minmax(150px, 1.24fr) minmax(118px, 1.02fr) minmax(76px, 0.66fr);
  min-width: 1216px;
  align-items: center;
}

.fee-table-row + .fee-table-row {
  border-top: 1px solid #eef2f7;
}

.fee-table-row[hidden],
.fee-summary-table-row[hidden],
.fee-table-empty[hidden] {
  display: none;
}

.fee-table-row > span,
.fee-table-row > strong {
  padding: 15px 14px;
  color: #111827;
  font-size: 14px;
}

.fee-table-row.head {
  background: #f8fafc;
}

.fee-table-row.head span {
  color: #64748b;
  font-weight: 780;
}

.fee-table-row strong {
  color: var(--accent-deep);
  font-weight: 780;
}

.fee-table-row.refunded strong {
  color: #64748b;
}

.fee-status-cell.is-normal {
  color: #16a34a;
  font-weight: 700;
}

.fee-status-cell.is-refunded {
  color: #d97706;
  font-weight: 700;
}

.fee-date-hint {
  margin-left: 6px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 400;
}

.fee-amount-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.fee-refund-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  border-radius: 999px;
  background: #f1f5f9;
  padding: 0 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 780;
}

.fee-table-row.income strong {
  color: var(--accent);
}

.fee-token-link {
  position: relative;
  color: var(--accent-deep) !important;
  text-decoration: underline;
  cursor: default;
}

.fee-token-link em {
  position: absolute;
  right: 12px;
  bottom: calc(100% - 2px);
  display: none;
  width: max-content;
  max-width: min(360px, 86vw);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
  color: #475569;
  font-size: 12px;
  line-height: 1.8;
  font-style: normal;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
  text-decoration: none;
  white-space: nowrap;
}

.fee-token-link:hover em {
  display: block;
}

.fee-table-empty {
  display: grid;
  min-height: 112px;
  place-items: center;
  border-top: 1px solid #eef2f7;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 780;
}

.fee-pagination {
  margin-top: 18px;
}

.fee-pagination[hidden] {
  display: none;
}

.fee-summary-table {
  overflow-x: auto;
  margin-top: 22px;
  border: 1px solid #eef2f7;
  background: #ffffff;
}

.fee-summary-table-row {
  display: grid;
  min-width: 980px;
  grid-template-columns: minmax(180px, 0.75fr) minmax(320px, 1.15fr) minmax(130px, 0.5fr) minmax(170px, 0.7fr) minmax(220px, 0.8fr);
  align-items: center;
}

.fee-summary-table-row + .fee-summary-table-row {
  border-top: 1px solid #eef2f7;
}

.fee-summary-table-row > * {
  padding: 15px 14px;
  color: #111827;
  font-size: 14px;
  font-weight: 720;
}

.fee-summary-table-row.head {
  background: #f8fafc;
}

.fee-summary-table-row.head span {
  color: #64748b;
  font-weight: 780;
}

.fee-summary-table-row a {
  color: var(--accent-deep); /* 与主题一致（原蓝色游离于橙色主题外） */
  font-weight: 780;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fee-summary-table-row strong {
  color: var(--accent-deep); /* 与费用明细金额同色（原绿色与明细不一致） */
  font-weight: 780;
}

.usage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.usage-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 18px;
}

.usage-card span {
  color: var(--muted);
  font-size: 13px;
}

.usage-card strong {
  display: block;
  margin-top: 8px;
  color: var(--accent);
  font-size: 28px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.78);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
}

.brand-logo {
  display: block;
  width: 136px;
  height: auto;
  object-fit: contain;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 8px;
  color: #4b5563;
  font-size: 14px;
}

.nav-links a {
  border-radius: 999px;
  padding: 8px 12px;
}

.nav-links a.active {
  background: var(--soft);
  color: var(--accent);
  font-weight: 760;
}

.admin-nav .brand-mark {
  background: #111827;
}

.admin-nav .nav-links a.active {
  background: #f3f4f6;
  color: #111827;
}

.nav-actions {
  display: flex;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  font-weight: 650;
  font-size: 14px;
  cursor: pointer;
}

.btn.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
  box-shadow: 0 12px 26px rgba(255, 106, 0, 0.22);
}

.page {
  padding: clamp(36px, 7vw, 72px) clamp(20px, 5vw, 72px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid rgba(255, 106, 0, 0.24);
  border-radius: 999px;
  background: rgba(255, 106, 0, 0.08);
  color: #c54c00;
  font-size: 13px;
  font-weight: 680;
}

h1 {
  max-width: 780px;
  margin: 22px 0 18px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: 0;
}

h3 {
  margin: 16px 0 8px;
}

.lead {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 17px;
}

.hero-copy {
  max-width: 670px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.72;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 38px;
  max-width: 680px;
}

.metric {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.metric strong {
  display: block;
  font-size: 28px;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
}

.stat-number {
  margin: 10px 0 0;
  color: var(--accent);
  font-size: 32px;
  font-weight: 800;
}

.panel {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 12px;
  background: white;
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.12);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.panel-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.tabs {
  display: flex;
  gap: 8px;
}

.tab {
  padding: 7px 11px;
  border-radius: 8px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 13px;
  font-weight: 650;
}

.tab.active {
  background: var(--accent);
  color: white;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  padding: 20px;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.card-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  background: var(--soft);
  color: var(--accent);
  font-weight: 900;
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.row-title {
  font-weight: 760;
}

.row-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: #c54c00;
  font-size: 12px;
  font-weight: 720;
  white-space: nowrap;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.filter {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  padding: 8px 13px;
  color: #4b5563;
  font-size: 14px;
  font-weight: 650;
}

.filter.active {
  border-color: var(--accent);
  background: var(--soft);
  color: var(--accent);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(320px, 0.55fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.form {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: #4b5563;
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 11px 12px;
  color: var(--text);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.amounts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.amount {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 14px;
  background: white;
}

.amount.active {
  border-color: var(--accent);
  background: var(--soft);
  color: var(--accent);
}

.pay-methods {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.pay {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: white;
  font-weight: 700;
}

.pay.wechat {
  color: var(--accent-deep);
}

.pay.alipay {
  color: var(--accent-deep);
}

.note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 106, 0, 0.22);
  border-radius: 10px;
  background: var(--soft);
  padding: 14px;
}

.table {
  display: grid;
  gap: 10px;
}

.checklist {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.codeblock {
  margin-top: 16px;
  border: 1px solid rgba(255, 106, 0, 0.24);
  border-radius: 8px;
  background: var(--soft);
  padding: 12px;
  color: #c54c00;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.wide-panel {
  margin-top: 18px;
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

.step {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
}

.step strong {
  display: block;
  margin-bottom: 8px;
}

.step span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 1180px) {
  .market-app {
    grid-template-columns: 1fr;
  }

  .docs-shell {
    grid-template-columns: 1fr;
  }

  .docs-side {
    position: static;
    height: auto;
  }

  .docs-side nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-hero,
  .home-feature-strip,
  .home-model-grid,
  .series-grid {
    grid-template-columns: 1fr;
  }

  .home-hero-centered {
    min-height: auto;
  }

  .hero-copy-centered h1 {
    white-space: normal;
  }

  .hero-vendor-cloud {
    opacity: 0.35;
  }

  .filter-row {
    grid-template-columns: 1fr;
  }

  .home-section-head {
    align-items: start;
    flex-direction: column;
  }

  .side-nav {
    position: static;
    display: flex;
    height: auto;
    flex-direction: row;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px;
  }

  .side-brand {
    display: none;
  }

  .side-group {
    min-width: 180px;
    padding: 0;
  }

  .side-brand + .side-group,
  .side-group + .side-group {
    margin-top: 0;
  }

  .invite-card {
    display: none;
  }

  .market-main {
    padding: 22px 18px 44px;
  }

  .market-main.market-square-mode {
    overflow-y: auto;
    padding-bottom: 44px;
  }

  .market-main.market-square-mode #model-square.is-active {
    display: block;
    height: auto;
  }

  #model-square.filter-panel-open .marketplace-controls {
    width: 100%;
    margin-left: 0;
  }

  .section-head,
  .section-head.compact,
  .split-section {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .section-head {
    flex-direction: column;
  }

  .search-box {
    width: 100%;
  }

  .marketplace-controls,
  .marketplace-workspace,
  .marketplace-workspace.filters-open {
    grid-template-columns: 1fr;
  }

  .market-filter-panel {
    position: static;
    max-height: none;
  }

  .model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .playground-layout,
  .experience-workbench,
  .inspiration-grid,
  .docs-grid,
  .realname-entry-grid,
  .fee-stat-grid,
  .fee-logic-grid,
  .fee-filter-card,
  .usage-grid {
    grid-template-columns: 1fr;
  }

  .experience-settings {
    border-right: 0;
    border-bottom: 1px solid #e2e8f0;
  }

  .experience-stage,
  .experience-workbench {
    min-height: auto;
  }

  .usage-banner {
    grid-template-columns: 1fr;
  }

  .fee-head {
    flex-direction: column;
  }

  .fee-filter-actions {
    justify-content: flex-start;
  }

  .realname-hero,
  .realname-status-row,
  .realname-entry-card {
    align-items: start;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .realname-success-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wallet-form-row {
    grid-template-columns: 1fr;
  }

  .wallet-label {
    padding-top: 0;
  }

  .wallet-amount-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wallet-pay-submit {
    width: 100%;
    margin-left: 0;
  }

  .wallet-consent {
    margin-left: 0;
  }

  .wallet-checkout-card {
    padding: 22px;
  }

  .wallet-checkout-info {
    padding-right: 28px;
  }

  .wallet-checkout-body {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 22px;
  }

  .wallet-checkout-summary {
    justify-items: center;
  }

  .wallet-checkout-qr {
    width: min(100%, 220px);
  }

  .wallet-record-table {
    overflow-x: auto;
  }

  .wallet-record-row {
    min-width: 900px;
  }

  .realname-form-head h2 {
    font-size: 28px;
  }

  .realname-form {
    max-width: none;
  }

  .model-detail-shell {
    grid-template-columns: 1fr;
  }

  .detail-backdrop {
    display: none;
  }

  .detail-panel {
    width: 100%;
    padding: 24px 18px 36px;
  }

  .detail-title-row,
  .price-row,
  .model-info-list div {
    grid-template-columns: 1fr;
  }

  .price-row > span,
  .price-row > strong:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero,
  .workspace {
    grid-template-columns: 1fr;
  }

  .grid,
  .grid.two,
  .flow {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .filter-chip-grid {
    grid-template-columns: 1fr;
  }

  .ratio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .range-field {
    grid-template-columns: 1fr;
  }

  .prompt-box {
    grid-template-columns: 1fr;
  }

  .inspiration-board {
    padding-top: 8px;
  }

  .media-input-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .media-input-actions {
    width: 100%;
  }

  .media-upload-button {
    flex: 1;
  }

  .model-grid {
    grid-template-columns: 1fr;
  }

  .model-card {
    min-height: auto;
    padding: 22px;
  }

  .section-head h1 {
    font-size: 24px;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 12px;
  }

  .metrics,
  .amounts,
  .product-metrics,
  .mode-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .hero-copy-centered h1 {
    font-size: clamp(42px, 14vw, 58px);
  }

  .hero-copy-centered p {
    font-size: 17px;
  }

  .hot-model-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-row div {
    gap: 8px;
  }

  .series-card {
    padding: 24px;
  }

  .realname-field input,
  .realname-field select,
  .realname-submit {
    height: 50px;
    font-size: 16px;
  }

  .realname-field span,
  .realname-consent {
    font-size: 16px;
  }

  .realname-success-panel {
    margin-top: 28px;
    padding: 26px 20px 28px;
  }

  .realname-success-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .realname-success-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    font-size: 16px;
  }

  .mode-tabs button:first-child {
    grid-column: 1 / -1;
  }
}

/* ===== H5 移动端适配补全（全家断点标准：1180 平板 / 760 手机；只动样式不动逻辑） ===== */
@media (max-width: 1180px) {
  /* 平板下模型卡两列（覆盖上方 1180 块里的 1fr，更合理利用宽度） */
  .home-model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  /* —— 全局护栏 —— */
  .model-home,
  .market-app {
    overflow-x: hidden;
  }

  /* iOS 输入聚焦防自动放大：表单控件字号 ≥16px */
  .experience-field select,
  .experience-field input,
  .experience-field textarea,
  .prompt-box textarea,
  .realname-field input,
  .realname-field select,
  .fee-filter-card input,
  .fee-filter-card select,
  .fee-date-range input,
  .search-box input {
    font-size: 16px;
  }

  /* —— 一级页 hero：拆掉 780px 坐标系的束缚 —— */
  .hero-copy-block {
    width: 100%;
    max-width: 100%;
  }

  .hero-copy-centered h1 {
    font-size: clamp(32px, 10.5vw, 44px);
    line-height: 1.12;
    white-space: normal;
  }

  .hero-copy-centered p {
    font-size: 15px;
    padding: 0 6px;
  }

  .qa-bubble {
    max-width: calc(100vw - 48px);
  }

  /* 便签舞台：保留 940 内部坐标系，缩放展示并双向负 margin 归位（不撑宽父容器） */
  .value-stage {
    width: 940px;
    height: 206px;
    margin: 6px calc((100% - 940px) / 2) -120px;
    transform: scale(0.38);
    transform-origin: top center;
  }

  /* 两个贴纸按钮并排最小宽 390px 会撑破 375 屏 → 纵向堆叠 */
  .hero-copy-centered .actions {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .sticker-btn {
    font-size: 15px;
    min-height: 44px;
  }

  .home-model-grid,
  .series-grid {
    grid-template-columns: 1fr;
  }

  .home-section {
    padding: 36px 16px 52px;
  }

  .model-series-section {
    padding: 40px 16px 64px;
  }

  /* —— marketplace 工作台 —— */
  .market-main {
    padding: 16px 14px 40px;
  }

  .playground-titlebar h2 {
    font-size: 22px;
  }

  .usage-banner strong {
    justify-content: flex-start;
    padding: 10px 14px;
    font-size: 13px;
    text-align: left;
  }

  .experience-canvas {
    min-height: 280px;
  }

  .experience-canvas:has(.inspiration-board) {
    min-height: auto;
    padding: 14px;
  }

  /* 灵感库：装饰带在窄屏与卡片/按钮重叠 → 隐藏；给「换一批」留出底部空间 */
  .insp-deco {
    display: none;
  }

  .inspiration-board {
    padding-bottom: 12px;
  }

  /* 换一批改入流：跟内容一起滚动，不再悬浮叠在卡片上 */
  .insp-refresh {
    position: static;
    display: flex;
    width: 44px;
    height: 44px;
    margin: 12px auto 0;
  }

  /* 体验画布给够高度（内部滚动浏览灵感库） */
  .experience-canvas:has(.inspiration-board) {
    min-height: 380px;
  }

  /* 顶部模块条：横滑 chip 行（原桌面竖排侧栏在窄屏被压扁） */
  .side-nav {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 14px;
  }

  .side-group {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 6px;
    min-width: max-content;
    padding: 0;
  }

  /* 分组小标题在窄条里排版混乱 → 隐藏，仅留可点的模块项 */
  .side-label {
    display: none;
  }

  .side-item {
    flex: none;
    white-space: nowrap;
    padding: 9px 13px;
    border-radius: 9px;
  }

  /* 输入坞：输入框整行 + 发送钮固定右下；清空钮与免责文案不再叠 */
  .prompt-box {
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: end;
  }

  .prompt-box button {
    width: 44px;
    height: 44px;
  }

  .prompt-dock p {
    margin-left: 44px;
    font-size: 12px;
    text-align: left;
  }

  /* 触控目标 ≥44px */
  .exp-chip {
    min-height: 44px;
  }

  [data-exp-clear-input] {
    width: 36px;
    height: 36px;
  }

  .experience-field select,
  .experience-field input {
    min-height: 44px;
  }

  .side-item {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .fee-tabs {
    overflow-x: auto;
  }

  .fee-tabs button {
    white-space: nowrap;
  }

  .mode-tabs button,
  .fee-filter-actions button {
    min-height: 44px;
  }

  /* 表格类：容器内横滑（行保持最小宽，不挤爆版式） */
  .fee-table,
  .fee-summary-table,
  .wallet-record-table,
  .key-table-wrap,
  .keys-table {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ===== 一级页「领礼包」浮标 + 弹窗（移植自 活动礼物入口.html，gift- 前缀防类名冲突） ===== */
.gift-entry {
  position: absolute;
  right: clamp(18px, 4vw, 56px);
  bottom: 34px;
  width: 118px;
  height: 140px;
  z-index: 6;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  filter: drop-shadow(0 12px 14px rgba(190, 90, 30, 0.28));
}

.gift-halo {
  position: absolute;
  left: 50%;
  top: 54px;
  width: 120px;
  height: 120px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 180, 90, 0.5) 0%, rgba(255, 180, 90, 0) 68%);
  animation: giftHalo 2.6s ease-in-out infinite;
}

@keyframes giftHalo {
  0%, 100% { transform: translate(-50%, -50%) scale(0.82); opacity: 0.55; }
  50% { transform: translate(-50%, -50%) scale(1.12); opacity: 0.95; }
}

.gift-boxwrap {
  position: absolute;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  animation: giftSwing 3.4s ease-in-out infinite;
}

@keyframes giftSwing {
  0%, 100% { transform: translateX(-50%) rotate(-6deg); }
  50% { transform: translateX(-50%) rotate(6deg); }
}

.gift-entry:hover .gift-boxwrap {
  animation: giftWiggle 0.5s ease-in-out infinite;
}

@keyframes giftWiggle {
  0%, 100% { transform: translateX(-50%) rotate(-9deg) scale(1.04); }
  50% { transform: translateX(-50%) rotate(9deg) scale(1.04); }
}

.gift-tag {
  position: absolute;
  left: 50%;
  top: -2px;
  transform: translateX(-50%) rotate(-3deg);
  z-index: 5;
  border: 2px solid #fff6ec;
  border-radius: 11px;
  background: linear-gradient(180deg, #ff7a3c, #f0500a);
  padding: 4px 11px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  white-space: nowrap;
  box-shadow: 0 3px 7px rgba(210, 80, 10, 0.4);
  animation: giftTagpop 3.4s ease-in-out infinite;
}

@keyframes giftTagpop {
  0%, 100% { transform: translateX(-50%) rotate(-3deg) translateY(0); }
  50% { transform: translateX(-50%) rotate(-3deg) translateY(-3px); }
}

.gift-tag::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  border-width: 5px 5px 0;
  border-style: solid;
  border-color: #f0500a transparent transparent;
}

.gift-twinkle { position: absolute; pointer-events: none; }
.gift-twinkle path { fill: #ebc15e; }
.gift-t1 { left: 6px; top: 38px; animation: giftTw 1.8s ease-in-out infinite; }
.gift-t2 { right: 2px; top: 30px; animation: giftTw 2.2s ease-in-out 0.5s infinite; }
.gift-t3 { right: 14px; bottom: 30px; animation: giftTw 2s ease-in-out 1s infinite; }

@keyframes giftTw {
  0%, 100% { transform: scale(0.4); opacity: 0.2; }
  50% { transform: scale(1); opacity: 1; }
}

.gift-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 120% at 50% 40%, rgba(60, 40, 20, 0.42), rgba(40, 25, 10, 0.6));
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s;
}

.gift-overlay.open { opacity: 1; visibility: visible; }

.gift-modal {
  position: relative;
  width: min(430px, calc(100vw - 32px));
  padding: 0 36px 36px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fffdf7, #fbf3e6);
  box-shadow: 0 30px 60px rgba(60, 35, 15, 0.45);
  transform: translateY(24px) scale(0.9) rotate(-1deg);
  opacity: 0;
  transition: transform 0.42s cubic-bezier(0.2, 1.2, 0.35, 1), opacity 0.3s;
}

.gift-overlay.open .gift-modal {
  transform: translateY(0) scale(1) rotate(-1deg);
  opacity: 1;
}

.gift-tape {
  position: absolute;
  top: -10px;
  width: 74px;
  height: 26px;
  background: linear-gradient(180deg, rgba(214, 213, 210, 0.66), rgba(196, 195, 192, 0.55));
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.gift-tape.l { left: 24px; transform: rotate(-7deg); }
.gift-tape.r { right: 24px; transform: rotate(6deg); }

.gift-close {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 5;
  display: flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: 1.6px solid #e2d4be;
  border-radius: 50%;
  background: #fff;
  color: #9a8e7e;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s, color 0.15s;
}

.gift-close:hover { transform: rotate(90deg); color: #f25b0e; }

.gift-hero-img { display: flex; justify-content: center; margin-top: -30px; }
.gift-hero-img svg { filter: drop-shadow(0 12px 16px rgba(200, 95, 30, 0.32)); }
.gift-hero-img .gift-bob { animation: giftBob 2.8s ease-in-out infinite; transform-origin: 50% 90%; }

@keyframes giftBob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-7px) rotate(2deg); }
}

.gift-tabs {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  padding: 5px;
  border-radius: 14px;
  background: #f3e8d5;
  box-shadow: inset 0 1px 3px rgba(150, 115, 60, 0.18);
}

.gift-tab {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  border: none;
  border-radius: 10px;
  background: transparent;
  padding: 9px 6px 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.gift-tab .tt { color: #8a7c66; font-size: 15px; font-weight: 800; letter-spacing: 0.5px; white-space: nowrap; }
.gift-tab .td { color: #b3a48c; font-size: 11px; font-weight: 700; white-space: nowrap; }

.gift-tab.active {
  background: linear-gradient(180deg, #fffefa, #fff4e2);
  box-shadow: 0 2px 5px rgba(150, 115, 60, 0.2), 0 0 0 1.5px #f2c98e inset;
}

.gift-tab.active .tt { color: #d24e08; }
.gift-tab.active .td { color: #f25b0e; }

.gift-kicker {
  margin-top: 6px;
  color: #f25b0e;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-align: center;
}

.gift-mtitle {
  margin-top: 6px;
  color: #39383a;
  font-family: 'Ma Shan Zheng', 'Kaiti SC', 'STKaiti', serif;
  font-size: 34px;
  text-align: center;
  -webkit-text-stroke: 0.5px #39383a;
}

.gift-token { margin-top: 10px; line-height: 1; text-align: center; }

.gift-token b {
  background: linear-gradient(180deg, #ff8e45, #f0500a);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 62px;
  font-weight: 900;
  letter-spacing: -1px;
}

.gift-token span {
  margin-left: 4px;
  color: #d24e08;
  font-size: 20px;
  font-weight: 800;
}

.gift-perks { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }

.gift-perk {
  position: relative;
  flex: 1;
  border: 1px solid #eee2cf;
  border-radius: 12px;
  background: #fff;
  padding: 11px 6px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(150, 115, 60, 0.08);
}

.gift-perk .pt { color: #39383a; font-size: 14px; font-weight: 800; }
.gift-perk .pd { margin-top: 3px; color: #a89a86; font-size: 11px; }

.gift-perk .perk-badge {
  position: absolute;
  top: -9px;
  right: -7px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 3px;
  transform: rotate(3deg);
  border: 1.5px solid #fff6ec;
  border-radius: 8px;
  background: linear-gradient(180deg, #ff7a3c, #f0500a);
  padding: 4px 7px;
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(210, 80, 10, 0.4);
}

.gift-cta {
  display: flex;
  width: 100%;
  margin-top: 22px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 3px solid #fff6ec;
  border-radius: 16px;
  background: linear-gradient(180deg, #ff8e45, #f25b0e 55%, #d24e08);
  padding: 15px;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 5px 0 rgba(190, 75, 10, 0.85), 0 12px 20px rgba(210, 95, 25, 0.32);
  transition: transform 0.14s, box-shadow 0.14s;
}

.gift-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 rgba(190, 75, 10, 0.85), 0 16px 26px rgba(210, 95, 25, 0.36);
}

.gift-cta:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(190, 75, 10, 0.85); }

.gift-fine { margin-top: 13px; color: #a89a86; font-size: 12px; text-align: center; }

.gift-confetti {
  position: absolute;
  inset: 0;
  z-index: 45;
  overflow: hidden;
  border-radius: 20px;
  pointer-events: none;
}

.gift-confetti i {
  position: absolute;
  top: -14px;
  width: 9px;
  height: 14px;
  border-radius: 2px;
  opacity: 0;
}

@keyframes giftFall {
  0% { transform: translateY(0) rotate(0); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translateY(440px) rotate(var(--rot)); opacity: 0; }
}

/* ===== H5 第二轮：体验中心解锁整页滚动 + 参数面板限高 + 顶部模块条好滑 + 礼包缩放 ===== */
@media (max-width: 760px) {
  /* 输出被遮挡根因：experience-mode 桌面是"锁100vh双栏各自内滚"模型；
     移动端堆叠后改为 main 整体内滚（与 square-mode 同款模式，app-shell 不动） */
  .market-app {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .market-main.experience-mode {
    height: auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .market-main.experience-mode .playground-page.is-active {
    height: auto;
  }

  .market-main.experience-mode .experience-workbench {
    height: auto;
  }

  /* 参数面板霸屏 → 限高内滚，Model 选择保持在顶部可见 */
  .market-main.experience-mode .experience-settings {
    max-height: 42vh;
    border-right: 0;
  }

  /* 顶部模块条：明确横向滑动意图、隐藏滚动条、加大可触面积 */
  .side-nav {
    min-height: 52px;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .side-nav::-webkit-scrollbar {
    display: none;
  }

  /* 礼包浮标：手机上缩小并贴角，避免压住在线试用按钮 */
  .gift-entry {
    right: 8px;
    bottom: 6px;
    transform: scale(0.72);
    transform-origin: bottom right;
  }

  .gift-modal {
    padding: 0 22px 26px;
  }
}

/* ===== 新建/编辑 API 密钥：额度限制 + 模型访问限制 ===== */
.api-limit-block {
  display: grid;
  gap: 8px;
}

.api-limit-block > span {
  font-size: 13.5px;
  font-weight: 700;
  color: #1f2937;
}

/* 分段控件：把现有单选(label+radio)视觉化为 segmented control，radio 隐藏仍作状态源 */
.api-limit-options {
  display: inline-flex;
  align-self: start;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: #f4f5f7;
}

.api-limit-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 18px;
  border-radius: 8px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.api-limit-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.api-limit-option:has(input:checked) {
  background: #ffffff;
  color: var(--accent-deep);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(31, 41, 55, 0.1);
}

/* ¥ 额度输入（前缀 + 描边输入框）*/
.api-quota-amount {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  margin-top: 4px;
}

.api-quota-amount i {
  position: absolute;
  left: 14px;
  top: 12px;
  z-index: 1;
  color: #8a93a3;
  font-style: normal;
  font-weight: 400;
}

.api-quota-amount input {
  width: 100%;
  border: 1.5px solid #edeff2;
  border-radius: 10px;
  padding: 10px 14px 10px 32px;
  background: #fcfcfd;
  color: #1f2937;
  font: inherit;
  font-size: 14px;
  outline: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.api-quota-amount input:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.12);
}

.api-quota-amount em {
  color: #8a93a3;
  font-size: 12px;
  font-style: normal;
}

/* 模型清单（2 列卡片 + 自定义复选框）*/
.api-model-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  max-height: 196px;
  overflow-y: auto;
  margin-top: 4px;
  padding: 6px;
  border: 1.5px solid #edeff2;
  border-radius: 12px;
  background: #fff;
}

.api-model-empty {
  grid-column: 1 / -1;
  padding: 14px;
  color: #8a93a3;
  font-size: 12px;
  font-style: normal;
  text-align: center;
}

.api-model-option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.13s ease;
}

.api-model-option:hover {
  background: #fff7f3;
}

/* 原生 checkbox 隐藏(仍作状态源)，视觉用 .api-model-box */
.api-model-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.api-model-box {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border: 1.5px solid #d5dae1;
  border-radius: 5px;
  background: #fff;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.api-model-box svg {
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.api-model-option:has(input:checked) .api-model-box {
  background: var(--accent);
  border-color: var(--accent);
}

.api-model-option:has(input:checked) .api-model-box svg {
  opacity: 1;
  transform: scale(1);
}

.api-model-name {
  overflow: hidden;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 12px;
  color: #4b5563;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-model-option:has(input:checked) .api-model-name {
  color: #1f2937;
  font-weight: 500;
}

.api-model-foot {
  margin-top: 8px;
  color: #8a93a3;
  font-size: 12px;
}

.api-model-foot b {
  color: var(--accent);
  font-weight: 700;
}

/* 独立注释盒 */
.api-dialog-note {
  margin: 16px 0 4px;
  padding: 9px 13px;
  border-radius: 9px;
  background: #fbf7f2;
  color: #8a93a3;
  font-size: 12px;
  line-height: 1.6;
}

/* 列表单元：额度/模型权限 */
.api-quota-cell,
.api-models-cell {
  font-size: 13px;
}

.api-cell-free {
  color: #8a93a3;
}

@media (max-width: 760px) {
  .api-model-checklist {
    grid-template-columns: 1fr;
  }
}

/* ===== 企业认证（设计令牌：奶油场域/橙渐变/10px输入圆角/聚焦环） ===== */
.realname-entry-card.is-locked {
  cursor: not-allowed;
  opacity: 0.56;
  filter: grayscale(0.2);
  pointer-events: none;
}

/* hero「立即认证」大按钮被二选一锁住时：点不动(拦截导航)+置灰 */
.realname-hero-action.is-locked {
  cursor: not-allowed;
  opacity: 0.5;
  pointer-events: none;
}

.ent-upload {
  display: grid;
  place-items: center;
  min-height: 132px;
  border: 1.5px dashed #d5dae1;
  border-radius: 10px;
  background: #fcfcfd;
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.ent-upload:hover {
  border-color: var(--accent);
  background: #fff7f3;
}

.ent-upload:focus-visible {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(242, 81, 27, 0.12);
}

.ent-upload-empty {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #8a93a3;
  font-size: 13px;
}

.ent-upload-empty svg {
  color: #b6bcc8;
}

.ent-upload:hover .ent-upload-empty,
.ent-upload:hover .ent-upload-empty svg {
  color: var(--accent-deep);
}

.ent-upload-preview {
  max-width: 100%;
  max-height: 220px;
  border-radius: 8px;
  object-fit: contain;
}

.ent-review-hint {
  margin-top: 14px;
  border-radius: 10px;
  background: #fdf3ea;
  padding: 11px 14px;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.7;
}

/* ================================================================
   三页 re-skin（设计稿对齐，纯视觉；保留全部 data-* 钩子与布局）
   ① 费用统计  ② 余额充值
   ================================================================ */

/* ---------- ① 费用统计页 ---------- */
#fee-detail .fee-head h2 {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--wf-ink);
}
:is(#fee-detail, #reseller-customers, #reseller-billing) .fee-stat-card {
  border: 1px solid var(--wf-line);
  border-radius: var(--wf-r-lg);
  background: var(--wf-surface);
  transition: transform 0.18s var(--wf-ease-rise), box-shadow 0.18s, border-color 0.18s;
}
:is(#fee-detail, #reseller-customers, #reseller-billing) .fee-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--wf-shadow-card);
  border-color: rgba(242, 81, 27, 0.25);
}
:is(#fee-detail, #reseller-customers, #reseller-billing) .fee-stat-card > span { color: var(--wf-gray); font-weight: 700; }
:is(#fee-detail, #reseller-customers, #reseller-billing) .fee-stat-card > strong { color: var(--wf-ink); font-weight: 900; font-variant-numeric: tabular-nums; }
:is(#fee-detail, #reseller-customers, #reseller-billing) .fee-stat-card > em { color: var(--wf-gray-faint); font-style: normal; }
/* 余额 = 唯一主角 */
:is(#fee-detail, #reseller-customers, #reseller-billing) .fee-stat-grid .fee-stat-card:first-child {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fffdfb, #fff8f2);
}
:is(#fee-detail, #reseller-customers, #reseller-billing) .fee-stat-grid .fee-stat-card:first-child::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--wf-grad-edge);
}
:is(#fee-detail, #reseller-customers, #reseller-billing) .fee-stat-grid .fee-stat-card:first-child > strong {
  color: var(--wf-orange);
  text-shadow: 0 2px 0 rgba(224, 62, 11, 0.1);
}

#fee-detail .fee-logic-grid > div {
  background: var(--wf-cream);
  border: 0;
  border-radius: var(--wf-r-md);
}
#fee-detail .fee-logic-grid > div > strong { color: var(--wf-orange-deep); font-weight: 700; }
#fee-detail .fee-logic-grid > div > span { color: var(--wf-gray); }

:is(#fee-detail, #reseller-customers, #reseller-billing) .fee-tabs { border-bottom: 1px solid var(--wf-line); }
:is(#fee-detail, #reseller-customers, #reseller-billing) .fee-tabs button {
  position: relative;
  border: 0;
  background: none;
  color: var(--wf-gray-lt);
  font-weight: 700;
  letter-spacing: 1px;
}
:is(#fee-detail, #reseller-customers, #reseller-billing) .fee-tabs button:hover { color: var(--wf-gray); }
:is(#fee-detail, #reseller-customers, #reseller-billing) .fee-tabs button.active { color: var(--wf-ink); }
:is(#fee-detail, #reseller-customers, #reseller-billing) .fee-tabs button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 2px 2px 0 0;
  background: var(--wf-grad-bar);
}

:is(#fee-detail, #reseller-customers, #reseller-billing) .fee-filter-card { border: 1px solid var(--wf-line); border-radius: var(--wf-r-lg); background: #fcfcfd; }
:is(#fee-detail, #reseller-customers, #reseller-billing) .fee-filter-card input {
  border: 1.5px solid var(--wf-line);
  border-radius: var(--wf-r-md);
  background: #fff;
  transition: border-color var(--wf-dur-hover), box-shadow var(--wf-dur-hover);
}
:is(#fee-detail, #reseller-customers, #reseller-billing) .fee-filter-card input:focus { outline: none; border-color: var(--wf-orange); box-shadow: var(--wf-focus-ring); }
:is(#fee-detail, #reseller-customers, #reseller-billing) .fee-filter-actions .query {
  border: 0;
  border-radius: var(--wf-r-full);
  background: var(--wf-grad-cta);
  color: #fff;
  font-weight: 700;
  letter-spacing: 2px;
  box-shadow: var(--wf-shadow-cta);
  transition: transform var(--wf-dur-hover) var(--wf-ease-rise), box-shadow var(--wf-dur-hover);
}
:is(#fee-detail, #reseller-customers, #reseller-billing) .fee-filter-actions .query:hover { transform: translateY(-2px); box-shadow: var(--wf-shadow-cta-h); }
:is(#fee-detail, #reseller-customers, #reseller-billing) .fee-filter-actions .reset,
:is(#fee-detail, #reseller-customers, #reseller-billing) .fee-filter-actions .export {
  border: 1.5px solid var(--wf-line);
  border-radius: var(--wf-r-full);
  background: #fff;
  color: var(--wf-gray);
  transition: border-color var(--wf-dur-hover), color var(--wf-dur-hover), background var(--wf-dur-hover);
}
:is(#fee-detail, #reseller-customers, #reseller-billing) .fee-filter-actions .reset:hover,
:is(#fee-detail, #reseller-customers, #reseller-billing) .fee-filter-actions .export:hover { border-color: var(--wf-orange); color: var(--wf-orange); background: var(--wf-warm-hover-2); }

:is(#fee-detail, #reseller-customers, #reseller-billing) :is(.fee-table-row, .fee-summary-table-row).head { background: var(--wf-warm-head); }
:is(#fee-detail, #reseller-customers, #reseller-billing) :is(.fee-table-row, .fee-summary-table-row).head span { color: var(--wf-gray); font-weight: 700; font-size: 12.5px; }
:is(#fee-detail, #reseller-customers, #reseller-billing) :is(.fee-table-row, .fee-summary-table-row):not(.head):hover { background: var(--wf-warm-hover); }
#fee-detail .fee-token-link {
  justify-self: start;
  align-self: center;
  width: fit-content;
  color: var(--wf-orange);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  border-bottom: 1px dashed rgba(242, 81, 27, 0.45);
  /* 单元格继承了 .fee-table-row>span 的 padding:15px；这里上下对称(1px)，靠 align-items/self:center 垂直居中，虚线仍贴字 */
  padding-top: 1px;
  padding-bottom: 1px;
  transition: color var(--wf-dur-hover), border-color var(--wf-dur-hover);
}
#fee-detail .fee-token-link:hover { color: var(--wf-orange-deep); border-color: var(--wf-orange-deep); }
#fee-detail .fee-status-cell.is-normal {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: var(--wf-r-full);
  background: #eaf6f0;
  padding: 3px 10px;
  color: #1f8a5b;
  font-size: 12px;
}
#fee-detail .fee-status-cell.is-normal::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2aa86f;
}

/* ---------- ② 余额充值页 ---------- */
.wallet-balance-card {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: var(--wf-r-xl);
  background: var(--wf-mkt-cream);
  box-shadow: 0 14px 40px rgba(30, 16, 5, 0.1);
}
.wallet-balance-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: var(--wf-grad-bar);
}
.wallet-balance-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 320px;
  height: 200px;
  pointer-events: none;
  background: radial-gradient(closest-side at 100% 100%, rgba(255, 178, 62, 0.18), transparent 72%);
}
.wallet-balance-card span { color: var(--wf-gray); font-weight: 700; letter-spacing: 2px; }
.wallet-balance-card strong { color: var(--wf-orange); font-weight: 900; font-variant-numeric: tabular-nums; }
.wallet-balance-card em { color: var(--wf-gray-lt); font-style: normal; }

.wallet-section-head h2,
.wallet-record-head h2 { color: var(--wf-ink); font-weight: 900; letter-spacing: 1px; }

.wallet-amount-grid button {
  position: relative;
  overflow: hidden;
  border: 1.5px solid var(--wf-line);
  border-radius: var(--wf-r-md);
  background: #fff;
  color: var(--wf-ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: border-color var(--wf-dur-hover), background var(--wf-dur-hover), color var(--wf-dur-hover), transform var(--wf-dur-hover) var(--wf-ease-rise);
}
.wallet-amount-grid button:hover { border-color: rgba(242, 81, 27, 0.45); transform: translateY(-1px); background: #fff; color: var(--wf-ink); }
.wallet-amount-grid button.active {
  border-color: var(--wf-orange);
  background: var(--wf-warm-hover-2);
  color: var(--wf-orange-deep);
}
.wallet-amount-grid button.active::after {
  content: "";
  position: absolute;
  right: -1.5px;
  top: -1.5px;
  width: 22px;
  height: 22px;
  border-radius: 0 var(--wf-r-md) 0 var(--wf-r-md);
  background: var(--wf-grad-cta);
}
.wallet-amount-grid button.active::before {
  content: "";
  position: absolute;
  right: 3px;
  top: 4px;
  z-index: 1;
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}
.wallet-other-field input {
  border: 1.5px solid var(--wf-line);
  border-radius: var(--wf-r-md);
  background: #fff;
  font-variant-numeric: tabular-nums;
  transition: border-color var(--wf-dur-hover), box-shadow var(--wf-dur-hover);
}
.wallet-other-field input:focus { outline: none; border-color: var(--wf-orange); box-shadow: var(--wf-focus-ring); }

.wallet-pay-grid button.active {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1.5px solid var(--wf-orange);
  border-radius: var(--wf-r-md);
  background: var(--wf-warm-hover-2);
  color: var(--wf-orange-deep);
  font-weight: 700;
}

.wallet-consent-input:checked + .wallet-consent-box {
  background: var(--wf-orange);
  border-color: var(--wf-orange);
}
.wallet-consent-input:checked + .wallet-consent-box::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}
.wallet-consent-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--wf-line);
  border-radius: var(--wf-r-xs);
  background: #fff;
  transition: background var(--wf-dur-hover), border-color var(--wf-dur-hover);
}

.wallet-pay-submit {
  border: 0;
  border-radius: var(--wf-r-full);
  background: var(--wf-grad-cta);
  color: #fff;
  font-weight: 700;
  letter-spacing: 4px;
  box-shadow: var(--wf-shadow-cta);
  transition: transform var(--wf-dur-hover) var(--wf-ease-rise), box-shadow var(--wf-dur-hover);
}
.wallet-pay-submit:hover { transform: translateY(-2px); box-shadow: var(--wf-shadow-cta-h); }

.wallet-record-head button[data-wallet-refresh] {
  border: 1px solid var(--wf-line);
  border-radius: var(--wf-r-sm);
  background: #fff;
  color: var(--wf-gray);
  transition: border-color var(--wf-dur-hover), color var(--wf-dur-hover), background var(--wf-dur-hover);
}
.wallet-record-head button[data-wallet-refresh]:hover { border-color: var(--wf-orange); color: var(--wf-orange); background: var(--wf-warm-hover-2); }

.wallet-record-row.wallet-record-title { background: var(--wf-warm-head); }
.wallet-record-row.wallet-record-title span { color: var(--wf-gray); font-weight: 700; font-size: 12.5px; }
.wallet-record-row[data-wallet-record]:hover { background: var(--wf-warm-hover); }
/* 记录状态列（第4格）→ 状态 chip：成功=绿点 / 待支付=琥珀点 */
.wallet-record-row.success > span:nth-child(4),
.wallet-record-row.pending > span:nth-child(4) {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: var(--wf-r-full);
  padding: 3px 10px;
  font-size: 12px;
}
.wallet-record-row.success > span:nth-child(4) { background: #eaf6f0; color: #1f8a5b; }
.wallet-record-row.pending > span:nth-child(4) { background: var(--wf-chip-amber-bg); color: var(--wf-chip-amber-fg); }
.wallet-record-row.success > span:nth-child(4)::before,
.wallet-record-row.pending > span:nth-child(4)::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.wallet-record-row.success > span:nth-child(4)::before { background: #2aa86f; }
.wallet-record-row.pending > span:nth-child(4)::before { background: var(--wf-amber); }

/* ---------- ③ 实名认证页 ---------- */
/* Banner（个人/企业模式切换 + token 大字 + 钢印 + 放射光芒） */
#real-name .realname-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 200px;
  padding: 50px 44px 28px;
  border-radius: var(--wf-r-2xl);
  background: var(--wf-mkt-cream);
  box-shadow: 0 18px 50px rgba(30, 16, 5, 0.12);
}
#real-name .realname-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 360px;
  height: 240px;
  pointer-events: none;
  background: radial-gradient(closest-side at 100% 100%, var(--wf-mkt-violet), transparent 72%);
}
#real-name .realname-hero.is-ent { background: linear-gradient(140deg, #ff7426 0%, #f1480e 80%); }
#real-name .realname-hero.is-ent::after { display: none; }
.rn-banner-rays { position: absolute; right: 56px; top: 50%; width: 300px; height: 300px; transform: translateY(-50%); opacity: 0.5; pointer-events: none; }
#real-name .realname-hero.is-ent .rn-banner-rays { display: none; }
/* 企业模式专属白色爆炸星芒（对齐设计稿 banner-burst）：默认隐藏，仅企业模式显示 */
.rn-banner-burst { display: none; position: absolute; right: 30px; top: 50%; width: 340px; height: 340px; transform: translateY(-50%); pointer-events: none; }
#real-name .realname-hero.is-ent .rn-banner-burst { display: block; }

.rn-mode-switch {
  position: absolute;
  top: 16px;
  left: 20px;
  z-index: 3;
  display: flex;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--wf-r-full);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  padding: 3px;
}
.rn-mode-switch button {
  border: 0;
  border-radius: var(--wf-r-full);
  background: transparent;
  color: var(--wf-gray);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  padding: 6px 16px;
  cursor: pointer;
  transition: background var(--wf-dur-hover), color var(--wf-dur-hover);
}
.rn-mode-switch button.on { background: #fff; color: var(--wf-orange-deep); box-shadow: 0 2px 8px rgba(31, 41, 55, 0.12); }
#real-name .realname-hero.is-ent .rn-mode-switch { background: rgba(255, 255, 255, 0.22); border-color: rgba(255, 255, 255, 0.4); }
#real-name .realname-hero.is-ent .rn-mode-switch button { color: rgba(255, 247, 236, 0.9); }
#real-name .realname-hero.is-ent .rn-mode-switch button.on { color: var(--wf-orange-deep); }

.rn-banner-l { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.rn-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--wf-orange);
  border-radius: var(--wf-r-full);
  padding: 6px 16px;
  color: var(--wf-orange-deep);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 3px;
  white-space: nowrap;
}
#real-name .realname-hero.is-ent .rn-banner-badge { border-color: transparent; background: var(--wf-mkt-cream-hi); color: var(--wf-orange-deep); }
.rn-banner-big { display: flex; align-items: baseline; white-space: nowrap; margin-top: 2px; }
.rn-banner-big .num {
  font-family: "Playfair Display", "Noto Serif SC", Georgia, serif;
  font-weight: 900;
  font-size: 86px;
  line-height: 1.02;
  color: var(--wf-orange);
  letter-spacing: -0.03em;
  text-shadow: 0 3px 0 rgba(224, 62, 11, 0.18);
}
.rn-banner-big .wan { font-size: 62px; }
.rn-banner-big .token { font-family: "Playfair Display", Georgia, serif; font-weight: 900; font-style: italic; font-size: 44px; color: var(--wf-mkt-ink); margin-left: 10px; }
#real-name .realname-hero.is-ent .rn-banner-big .num { color: #fff6ea; text-shadow: 0 3px 0 rgba(43, 12, 1, 0.5); }
#real-name .realname-hero.is-ent .rn-banner-big .token { color: #21100a; }
.rn-banner-sub { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rn-banner-sub .line { width: 30px; height: 2px; background: var(--wf-orange); flex: none; }
.rn-banner-sub .txt { font-weight: 700; font-size: 14px; letter-spacing: 1px; color: var(--wf-mkt-ink); }
#real-name .realname-hero.is-ent .rn-banner-sub .line { background: var(--wf-mkt-cream-hi); }
#real-name .realname-hero.is-ent .rn-banner-sub .txt { color: rgba(255, 247, 236, 0.95); }

#real-name .realname-hero-action {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  border: 0;
  border-radius: var(--wf-r-full);
  background: var(--wf-grad-cta);
  color: #fff;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 11px 28px;
  box-shadow: var(--wf-shadow-cta);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--wf-dur-hover) var(--wf-ease-rise), box-shadow var(--wf-dur-hover);
}
#real-name .realname-hero-action:hover { transform: translateY(-2px); box-shadow: var(--wf-shadow-cta-h); }
#real-name .realname-hero.is-ent .realname-hero-action { background: #1e1410; color: #ffe9d2; }

.rn-banner-stamp {
  position: relative;
  z-index: 2;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--wf-orange);
  transform: rotate(12deg);
  box-shadow: 0 10px 26px rgba(242, 81, 27, 0.35);
}
.rn-banner-stamp::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 1.5px dashed rgba(255, 247, 236, 0.85); }
.rn-banner-stamp .in { text-align: center; color: var(--wf-mkt-cream-hi); }
.rn-banner-stamp .in small { display: block; font-size: 10px; letter-spacing: 2.5px; font-weight: 500; }
.rn-banner-stamp .in b { display: block; font-family: "Playfair Display", Georgia, serif; font-weight: 900; font-size: 32px; line-height: 1.1; }
#real-name .realname-hero.is-ent .rn-banner-stamp { background: var(--wf-mkt-cream-hi); }
#real-name .realname-hero.is-ent .rn-banner-stamp::before { border-color: rgba(242, 81, 27, 0.55); }
#real-name .realname-hero.is-ent .rn-banner-stamp .in { color: var(--wf-orange-deep); }

/* 类型选择卡：左缘渐变条 hover + 悬浮抬升 */
#real-name .realname-entry-card { position: relative; overflow: hidden; border-radius: var(--wf-r-lg); transition: transform 0.18s var(--wf-ease-rise), box-shadow 0.18s, border-color 0.18s; }
#real-name .realname-entry-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--wf-grad-edge); opacity: 0; transition: opacity 0.18s; }
#real-name .realname-entry-card:not(.is-locked):hover { transform: translateY(-3px); box-shadow: var(--wf-shadow-card); border-color: rgba(242, 81, 27, 0.35); }
#real-name .realname-entry-card:not(.is-locked):hover::before { opacity: 1; }
#real-name .realname-entry-icon { border-radius: var(--wf-r-md); background: var(--wf-chip-cream-bg); color: var(--wf-chip-cream-fg); }
#real-name .realname-entry-card[data-ent-entry] .realname-entry-icon { background: var(--wf-chip-amber-bg); color: var(--wf-chip-amber-fg); }
#real-name .realname-entry-card [data-personal-entry-action],
#real-name .realname-entry-card [data-ent-entry-action] {
  display: inline-flex;
  align-items: center;
  border-radius: var(--wf-r-full);
  background: var(--wf-grad-cta);
  color: #fff;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 8px 18px;
  box-shadow: var(--wf-shadow-cta);
}

/* 表单卡：渐变顶条 + 输入聚焦环 + 渐变提交按钮 */
.realname-form-section .realname-form {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--wf-line);
  border-radius: var(--wf-r-xl);
  background: var(--wf-surface);
  padding: 28px 30px 26px;
  max-width: 640px;
}
.realname-form-section .realname-form::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--wf-grad-bar); }
.realname-form-section .realname-field input,
.realname-form-section .realname-field select {
  border: 1.5px solid var(--wf-line);
  border-radius: var(--wf-r-md);
  background: #fcfcfd;
  transition: border-color var(--wf-dur-hover), box-shadow var(--wf-dur-hover), background var(--wf-dur-hover);
}
.realname-form-section .realname-field input:focus,
.realname-form-section .realname-field select:focus { outline: none; border-color: var(--wf-orange); box-shadow: var(--wf-focus-ring); background: #fff; }
.realname-form-section .realname-submit {
  border: 0;
  border-radius: var(--wf-r-full);
  background: var(--wf-grad-cta);
  color: #fff;
  font-weight: 700;
  letter-spacing: 4px;
  box-shadow: var(--wf-shadow-cta);
  transition: transform var(--wf-dur-hover) var(--wf-ease-rise), box-shadow var(--wf-dur-hover), opacity 0.2s;
}
.realname-form-section .realname-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--wf-shadow-cta-h); }
.realname-form-section .realname-submit:disabled { opacity: 0.55; }
.realname-form-section .realname-alert {
  border-radius: var(--wf-r-md);
  background: var(--wf-warm-head);
  color: var(--wf-gray);
}

@media (max-width: 860px) {
  #real-name .realname-hero { flex-direction: column; align-items: flex-start; padding-top: 56px; }
  .rn-banner-stamp { display: none; }
  .rn-banner-big .num { font-size: 60px; }
  .rn-banner-big .wan { font-size: 44px; }
  .rn-banner-big .token { font-size: 30px; }
}

/* ================================================================
   反馈修正：实名 banner 100% 还原（招牌衬线字体/尺寸/双线副标题）
              + 充值页对齐（标签居中/微信居中/整洁实底卡）
   ================================================================ */
/* —— 实名 banner —— */
#real-name .realname-hero { min-height: 210px; padding: 56px 44px 30px; }
.rn-banner-big { gap: 0; }
.rn-banner-big .num {
  font-family: "Playfair Display", "Noto Serif SC", Georgia, serif;
  font-size: 92px;
}
.rn-banner-big .wan { font-family: "Noto Serif SC", "Playfair Display", serif; font-size: 66px; }
.rn-banner-big .token { font-family: "Playfair Display", Georgia, serif; font-size: 46px; }
.rn-banner-stamp .in b { font-family: "Playfair Display", Georgia, serif; }
.rn-banner-rays { right: 54px; width: 360px; height: 360px; }
@media (max-width: 860px) {
  .rn-banner-big .num { font-size: 60px; }
  .rn-banner-big .wan { font-size: 44px; }
  .rn-banner-big .token { font-size: 32px; }
}

/* —— 充值页对齐 —— */
.wallet-recharge-panel {
  border: 1px solid var(--wf-line);
  border-radius: var(--wf-r-lg);
  background: #fcfcfd;
  padding: 24px 28px;
}
.wallet-form-row { align-items: start; }
.wallet-label { padding-top: 15px; color: var(--wf-ink); font-weight: 700; }
.wallet-amount-grid button { min-height: 46px; }
.wallet-pay-grid {
  display: flex;
  max-width: none;
  gap: 14px;
}
.wallet-pay-grid button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-height: 46px;
  padding: 0 24px;
}
.wallet-pay-grid button svg { flex: none; }
/* 协议自定义勾选盒：干净的橙底白勾 */
.wallet-consent-box {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 1.5px solid var(--wf-line);
  border-radius: var(--wf-r-xs);
  background: #fff;
  transition: background var(--wf-dur-hover), border-color var(--wf-dur-hover);
}
.wallet-consent-input:checked + .wallet-consent-box { background: var(--wf-orange); border-color: var(--wf-orange); }
.wallet-consent-input:checked + .wallet-consent-box::after {
  content: "";
  position: absolute;
  left: 5.5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ================================================================
   企业认证「提交成功」弹窗（橙色满版 · 设计稿 rw-card--ent 还原）
   复用 .realname-reward-modal 的遮罩/居中/.is-visible 显隐
   ================================================================ */
.ent-reward-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(780px, 94vw);
  height: 520px;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(140deg, #ff7426 0%, #f1480e 80%);
  box-shadow: 0 32px 80px rgba(30, 10, 0, 0.5);
}
.realname-reward-modal.is-visible .ent-reward-card {
  animation: rwCardIn 0.55s cubic-bezier(0.18, 1.5, 0.36, 1) both;
}
.ent-reward-burst { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ent-reward-dots {
  position: absolute;
  width: 240px;
  height: 240px;
  pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(circle, rgba(255, 243, 228, 0.85) 2.3px, transparent 2.8px);
  background-size: 15px 15px;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 72%);
  mask-image: radial-gradient(closest-side, #000 30%, transparent 72%);
}
.ent-reward-dots--sm { width: 200px; height: 200px; opacity: 0.4; }
.ent-reward-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 40px 48px;
}
.ent-reward-badge {
  position: relative;
  border-radius: 999px;
  background: #fff7ec;
  padding: 9px 26px;
  color: var(--wf-orange-deep);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 4px;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(60, 16, 0, 0.25);
}
.ent-reward-eyebrow {
  position: relative;
  margin-top: 14px;
  color: rgba(255, 247, 236, 0.95);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 6px;
  white-space: nowrap;
}
.ent-reward-hero { display: flex; align-items: baseline; margin: 10px 0 6px; white-space: nowrap; }
.ent-reward-num {
  font-family: "Playfair Display", "Noto Serif SC", Georgia, serif;
  font-weight: 900;
  font-size: 116px;
  line-height: 1.05;
  color: #fff6ea;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 0 rgba(43, 12, 1, 0.5);
}
.ent-reward-num .wan { font-family: "Noto Serif SC", "Playfair Display", serif; font-size: 86px; }
.ent-reward-token {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-style: italic;
  font-size: 60px;
  line-height: 1;
  color: #21100a;
  margin-left: 8px;
}
.ent-reward-sub {
  position: relative;
  color: rgba(255, 243, 228, 0.88);
  font-size: 16px;
  letter-spacing: 2px;
  text-align: center;
}
.ent-reward-cta {
  position: relative;
  margin-top: 20px;
  border: 0;
  border-radius: 999px;
  background: #1e1410;
  color: #ffe9d2;
  font-family: var(--wf-font-ui, inherit);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 8px;
  padding: 14px 56px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 14px 30px rgba(30, 10, 0, 0.35);
  transition: transform var(--wf-dur-hover) var(--wf-ease-rise), box-shadow var(--wf-dur-hover);
}
.ent-reward-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(30, 10, 0, 0.45); }
.ent-reward-cta:active { transform: translateY(1px); }
.ent-reward-close {
  border-color: rgba(255, 247, 236, 0.55);
  color: rgba(255, 247, 236, 0.9);
}
@media (max-width: 860px) {
  .ent-reward-card { height: auto; min-height: 440px; }
  .ent-reward-num { font-size: 70px; }
  .ent-reward-num .wan { font-size: 52px; }
  .ent-reward-token { font-size: 36px; }
}

/* 个人完成弹窗大字也用 Playfair Display（与企业弹窗/banner 统一招牌衬线） */
.realname-reward-card {
  --rw-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --rw-serif: "Noto Serif SC", "Songti SC", "STSong", serif;
}
.realname-reward-card .rw-num { font-family: "Playfair Display", "Noto Serif SC", Georgia, serif; }
.realname-reward-card .rw-num .rw-wan { font-family: "Noto Serif SC", "Playfair Display", serif; }
.realname-reward-card .rw-token { font-family: "Playfair Display", Georgia, serif; }

/* ================================================================
   实名页「完全还原」设计稿：选择类型卡 + 表单头 + 表单卡（rn- 前缀防撞）
   ================================================================ */
/* —— 选择认证类型 —— */
#real-name .rn-sec-head { display: flex; align-items: baseline; gap: 12px; margin: 34px 0 18px; flex-wrap: wrap; }
#real-name .rn-sec-head h2 { margin: 0; font-size: 24px; font-weight: 900; letter-spacing: 1px; color: var(--wf-ink); white-space: nowrap; }
#real-name .rn-sec-head .sub { font-size: 14px; color: var(--wf-gray-lt); }

#real-name .rn-type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
#real-name .rn-type-card {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--wf-line);
  border-radius: var(--wf-r-lg);
  background: var(--wf-surface);
  padding: 26px 26px 22px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.18s var(--wf-ease-rise), box-shadow 0.18s, border-color 0.18s;
}
#real-name .rn-type-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--wf-grad-edge); opacity: 0; transition: opacity 0.18s; }
#real-name .rn-type-card:not(.is-locked):hover { transform: translateY(-3px); box-shadow: var(--wf-shadow-card); border-color: rgba(242, 81, 27, 0.35); }
#real-name .rn-type-card:not(.is-locked):hover::before { opacity: 1; }
#real-name .rn-type-card.is-locked { cursor: not-allowed; opacity: 0.56; filter: grayscale(0.2); pointer-events: none; }
#real-name .rn-type-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
#real-name .rn-type-icon { display: flex; flex: none; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: var(--wf-r-md); }
#real-name .rn-type-icon.personal { background: var(--wf-chip-cream-bg); color: var(--wf-chip-cream-fg); }
#real-name .rn-type-icon.company { background: var(--wf-chip-amber-bg); color: var(--wf-chip-amber-fg); }
#real-name .rn-type-name { font-size: 17px; font-weight: 900; letter-spacing: 1px; color: var(--wf-ink); }
#real-name .rn-type-tag { margin-top: 3px; font-size: 12px; color: var(--wf-gray-lt); }
#real-name .rn-type-desc { min-height: 44px; font-size: 13px; line-height: 1.7; color: var(--wf-gray); }
#real-name .rn-type-reject {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 12px;
  border: 1px solid rgba(225, 75, 55, 0.28);
  border-radius: var(--wf-r-md);
  background: rgba(231, 76, 60, 0.07);
  padding: 9px 11px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #c0392b;
}
#real-name .rn-type-reject svg { flex: none; margin-top: 2px; }
#real-name .rn-type-reject b { font-weight: 800; }
#real-name .rn-type-go { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
#real-name .rn-type-go .hint { font-size: 12px; color: var(--wf-gray-faint); }
#real-name .rn-type-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: var(--wf-r-full);
  background: var(--wf-grad-cta);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  padding: 9px 22px;
  box-shadow: var(--wf-shadow-cta);
  white-space: nowrap;
  transition: transform var(--wf-dur-hover) var(--wf-ease-rise), box-shadow var(--wf-dur-hover);
}
#real-name .rn-type-card:not(.is-locked):hover .rn-type-btn { transform: translateY(-2px); box-shadow: var(--wf-shadow-cta-h); }

/* —— 表单头（返回键 + 图标牌 + 标题 + 副标题）—— */
.realname-form-section .rn-form-head { display: flex; align-items: center; gap: 14px; margin: 30px 0 18px; }
.realname-form-section .rn-back-btn {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--wf-line);
  border-radius: var(--wf-r-sm);
  background: #fff;
  color: var(--wf-gray);
  text-decoration: none;
  transition: border-color var(--wf-dur-hover), color var(--wf-dur-hover), background var(--wf-dur-hover);
}
.realname-form-section .rn-back-btn:hover { border-color: var(--wf-orange); color: var(--wf-orange); background: var(--wf-warm-hover-2); }
.realname-form-section .rn-form-head-t { display: flex; align-items: center; gap: 12px; }
.realname-form-section .rn-icon-tile {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--wf-r-md);
  background: var(--wf-cream);
  color: var(--wf-orange-deep);
}
.realname-form-section .rn-form-head-t h2 { margin: 0; font-size: 20px; font-weight: 900; letter-spacing: 1px; color: var(--wf-ink); white-space: nowrap; }
.realname-form-section .rn-form-head-t .sub { font-size: 13px; color: var(--wf-gray-lt); }

/* —— 表单提示条 —— */
.realname-form-section .rn-form-tip {
  margin-bottom: 20px;
  border-radius: var(--wf-r-md);
  background: var(--wf-warm-head);
  padding: 11px 14px;
  color: var(--wf-gray);
  font-size: 12px;
  line-height: 1.7;
}
.realname-form-section .rn-form-tip b { color: var(--wf-chip-amber-fg); font-weight: 700; }

/* —— 表单字段标签（对齐设计稿 .field label）—— */
.realname-form-section .realname-field > span { font-size: 13px; font-weight: 700; color: var(--wf-ink); }

@media (max-width: 860px) {
  #real-name .rn-type-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   实名一级页面「认证完成总览卡」（设计系统：描边+渐变顶条+状态chip+信息网格）
   ================================================================ */
#real-name .rn-overview {
  position: relative;
  overflow: hidden;
  margin-top: 24px;
  border: 1px solid var(--wf-line);
  border-radius: var(--wf-r-xl);
  background: var(--wf-surface);
  padding: 26px 30px 24px;
  box-shadow: var(--wf-shadow-card);
}
#real-name .rn-overview::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: var(--wf-grad-bar);
}
#real-name .rn-overview-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
#real-name .rn-overview-tile {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--wf-r-md);
  background: var(--wf-chip-cream-bg);
  color: var(--wf-chip-cream-fg);
}
#real-name .rn-overview-tile.is-company { background: var(--wf-chip-amber-bg); color: var(--wf-chip-amber-fg); }
#real-name .rn-overview-headtext { flex: 1; min-width: 0; }
#real-name .rn-overview-headtext h2 { margin: 0; font-size: 20px; font-weight: 900; letter-spacing: 1px; color: var(--wf-ink); }
#real-name .rn-overview-sub { display: block; margin-top: 4px; font-size: 13px; color: var(--wf-gray-lt); }
#real-name .rn-overview-chip {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  border-radius: var(--wf-r-full);
  background: #eaf6f0;
  padding: 6px 14px;
  color: #1f8a5b;
  font-size: 13px;
  font-weight: 700;
}
#real-name .rn-overview-chip-check { color: #2aa86f; }
#real-name .rn-overview-chip.is-review { background: var(--wf-chip-amber-bg); color: var(--wf-chip-amber-fg); }
#real-name .rn-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 24px;
}
#real-name .rn-overview-item { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
#real-name .rn-overview-item > span { font-size: 12px; color: var(--wf-gray-lt); }
#real-name .rn-overview-item > strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--wf-ink);
  overflow: hidden;
  text-overflow: ellipsis;
}
#real-name .rn-overview-hint {
  margin-top: 18px;
  border-radius: var(--wf-r-md);
  background: var(--wf-cream);
  padding: 11px 14px;
  color: var(--wf-gray);
  font-size: 13px;
  line-height: 1.7;
}
@media (max-width: 760px) {
  #real-name .rn-overview-grid { grid-template-columns: 1fr 1fr; }
}

/* 审核中态：状态 chip 不显示对勾（[hidden] 被全局 svg 规则盖掉，用 class 兜底） */
#real-name .rn-overview-chip.is-review .rn-overview-chip-check { display: none; }

/* 体验中心：中等宽度(1181–1440px)收窄参数栏，给右侧舞台让出空间，配合灵感库自适应列 */
@media (min-width: 1181px) and (max-width: 1440px) {
  .experience-workbench { grid-template-columns: 280px minmax(0, 1fr); }
}

/* 修正：旧 .realname-hero span 徽标样式误命中 banner 大字/副标题，去掉文字底色圆角，保留两侧橙线 */
#real-name .rn-banner-big .num,
#real-name .rn-banner-big .wan,
#real-name .rn-banner-big .token,
#real-name .rn-banner-sub .txt {
  background: none;
  border-radius: 0;
  padding: 0;
}

/* 「万」与「1000/5000」数字完全同款：继承同字体/字号/字重/颜色/基线，去掉之前的 Noto 字体+缩小+下移 → 彻底对齐又统一颜色 */
#real-name .rn-banner-big .wan {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  /* 旧 .realname-hero span 徽标样式把「万」染成 --accent-deep；这里强制继承数字色（个人橙 / 企业奶白），统一颜色 */
  color: inherit;
  position: static;
  top: auto;
}

/* ============ 钱包记录：充值记录 / 余额变动 标签切换 ============ */
.wallet-record-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--wf-warm-head);
  border: 1px solid var(--wf-border, #eef2f7);
}
.wallet-record-tabs button {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 8px 18px;
  border-radius: 9px;
  background: transparent;
  color: var(--wf-gray);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.4px;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}
.wallet-record-tabs button:hover { color: var(--wf-orange); }
.wallet-record-tabs button.active {
  background: #ffffff;
  color: var(--wf-orange);
  box-shadow: 0 1px 4px rgba(31, 41, 55, 0.08);
}

/* 活动赠送表：时间 / 类型 / 金额 / 说明 / 过期时间 五列 */
.wallet-gift-row {
  grid-template-columns: minmax(150px, 0.85fr) minmax(96px, 0.5fr) minmax(96px, 0.5fr) minmax(220px, 1.3fr) minmax(120px, 0.6fr);
}
.wallet-gift-row span:nth-child(4) {
  overflow-wrap: anywhere;
  word-break: break-word;
}
/* 类型列：加粗 */
.wallet-gift-table .wallet-gift-row:not(.wallet-record-title) > span:nth-child(2) {
  font-weight: 800;
  color: var(--wf-gray);
}
/* 金额列：赠送=入账，绿色强调 */
.wallet-gift-table .wallet-gift-row:not(.wallet-record-title) > span:nth-child(3) {
  font-weight: 800;
  color: #1f8a5b;
}
/* 过期时间列：弱化 */
.wallet-gift-table .wallet-gift-row:not(.wallet-record-title) > span:nth-child(5) {
  color: var(--wf-gray-lt);
}
.wallet-record-row[data-gift-record]:hover { background: var(--wf-warm-hover); }

@media (max-width: 760px) {
  /* 五列窄表与充值记录一致地横向滚动 */
  .wallet-gift-row { min-width: 720px; }
}

/* ============ 邀请有礼（模型广场左下角入口 + 专区面板） ============ */
.invite-entry {
  position: fixed;
  top: 16px;
  right: 18px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  padding: 0 18px;
  color: #fff;
  font-size: 15px;
  font-weight: 840;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 18px rgba(255, 106, 0, 0.4);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.invite-entry:hover {
  transform: translateY(-2px);
}

.invite-entry-ico {
  font-size: 17px;
}

.invite-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.45);
  padding: 20px;
}

.invite-panel {
  position: relative;
  width: min(480px, 100%);
  max-height: 86vh;
  overflow: auto;
  border-radius: 16px;
  background: #fff;
  padding: 22px 22px 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
}

.invite-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: none;
  color: #94a3b8;
  font-size: 24px;
  cursor: pointer;
}

.invite-head h3 {
  margin: 0;
  font-size: 20px;
}

.invite-head p {
  margin: 6px 0 0;
  color: var(--accent-deep);
  font-size: 14px;
  font-weight: 760;
}

.invite-block {
  margin-top: 18px;
}

.invite-block h4 {
  margin: 0 0 8px;
  font-size: 15px;
}

.invite-block h4 em {
  color: #64748b;
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
}

.invite-link-row {
  display: flex;
  gap: 8px;
}

.invite-link-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 9px 10px;
  color: #334155;
  font-size: 13px;
}

.invite-copy-btn,
.invite-transfer-btn {
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  padding: 0 16px;
  min-height: 38px;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.invite-transfer-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.invite-list {
  display: grid;
  gap: 6px;
  max-height: 200px;
  overflow: auto;
}

.invite-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
}

.invite-row em {
  color: #94a3b8;
  font-style: normal;
}

.invite-row b {
  color: var(--accent-deep);
}

.invite-empty {
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
}

.invite-rewards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.invite-reward-item {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}

.invite-reward-item span {
  color: #64748b;
  font-size: 12.5px;
}

.invite-reward-item b {
  color: var(--accent-deep);
  font-size: 20px;
}

.invite-transfer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.invite-tip {
  color: #94a3b8;
  font-size: 12.5px;
}

/* ============ 一级页卡片：折扣胶囊(对齐二级页 price-promo-tag) + NEW上新标签竖排 ============ */
/* 有折扣/NEW 时，徽标区改竖排、右对齐：折扣在上、NEW 在下 */
.model-badges.model-badges-stacked {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

/* 折扣胶囊：与二级页详情 .price-promo-tag 视觉一致（去「限时」，只显折扣） */
.card-promo-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 840;
  letter-spacing: 0.5px;
  box-shadow: 0 3px 10px rgba(255, 106, 0, 0.35);
  white-space: nowrap;
}

/* NEW 上新标签（复刻用户提供组件：珊瑚→橙渐变 + ✦火花 + 流光 + 弹入） */
.wf-new {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px 2px 7px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ff6a8b, #ff5a2c);
  box-shadow: 0 3px 9px rgba(255, 74, 60, 0.32);
  vertical-align: middle;
}
.wf-new-t {
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.06em;
}
.wf-new-shine {
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  animation: wf-new-shine 2.8s ease-in-out infinite;
}
.wf-new-pop {
  animation: wf-new-pop 0.4s cubic-bezier(0.2, 1.4, 0.35, 1) both;
}
@keyframes wf-new-shine {
  0% { transform: translateX(-120%) skewX(-18deg); }
  55%, 100% { transform: translateX(360%) skewX(-18deg); }
}
@keyframes wf-new-pop {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.12); }
  100% { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .wf-new-shine, .wf-new-pop { animation: none !important; }
}
