:root {
  --fg: #111827;
  --muted: #6b7280;
  --line: #e8e4dc;
  --bg: #fffdf8;
  --soft: #f7f3eb;
  --card: #ffffff;
  --green: #10A37F;
  --green-d: #0d8c6c;
  --blue: #2563EB;
  --blue-d: #1d4ed8;
  --code-bg: #0f172a;
  --r: 16px;
  --shadow: 0 8px 28px rgba(16, 24, 40, .06);
  --shadow-sm: 0 2px 8px rgba(16, 24, 40, .04);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--fg); font-weight: 700; letter-spacing: -.025em; }
h1 { font-size: clamp(36px, 5.5vw, 52px); }
h2 { font-size: clamp(26px, 3.4vw, 36px); }
h3 { font-size: 18px; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .12em .4em;
  word-break: break-all;
}
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }

/* Header — clean product bar */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 253, 248, .88);
  border-bottom: 1px solid transparent;
  backdrop-filter: saturate(180%) blur(12px);
}
.site-header.is-scrolled,
.site-header { border-bottom-color: var(--line); }
.header-inner {
  /* full rules further below — 3-zone grid */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 68px;
}
.brand {
  font-weight: 800; font-size: 24px; color: var(--green);
  display: inline-flex; align-items: baseline; gap: 10px; white-space: nowrap;
  letter-spacing: -.02em; line-height: 1.15;
}
.brand:hover { text-decoration: none; color: var(--green-d); }
.brand span { color: var(--muted); font-weight: 500; font-size: 13px; letter-spacing: 0; line-height: 1.2; }
.site-header nav {
  display: flex; align-items: center; gap: 8px 28px; flex-wrap: wrap;
}
.site-header nav a:not(.btn) {
  color: #374151; font-size: 16px; font-weight: 600;
}
.site-header nav a:not(.btn):hover { color: var(--green); text-decoration: none; }

.btn {
  display: inline-block; padding: 9px 18px; border-radius: 999px;
  background: var(--green); color: #fff !important; font-weight: 600; font-size: 14px;
  border: 1px solid var(--green); line-height: 1.4; transition: background .15s, box-shadow .15s, transform .1s;
}
.btn:hover { background: var(--green-d); text-decoration: none; box-shadow: 0 6px 16px rgba(16,163,127,.28); }
.btn-blue { background: var(--blue); border-color: var(--blue); }
.btn-blue:hover { background: var(--blue-d); box-shadow: 0 6px 16px rgba(37,99,235,.28); }
.btn-ghost {
  background: transparent; color: var(--fg) !important; border-color: var(--line);
}
.btn-ghost:hover { background: var(--soft); border-color: #d6d1c7; box-shadow: none; }
.btn-outline-green {
  background: transparent; color: var(--green) !important; border-color: var(--green);
}
.btn-outline-green:hover { background: rgba(16,163,127,.08); box-shadow: none; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-xl { padding: 16px 32px; font-size: 17px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 12px; }

/* Hero — full-bleed product landing */
.hero {
  position: relative;
  padding: 88px 0 72px;
  text-align: center;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(16,163,127,.14), transparent 70%),
    radial-gradient(700px 360px at 90% 20%, rgba(37,99,235,.08), transparent 65%),
    linear-gradient(180deg, #f3faf7 0%, #fffdf8 70%);
  overflow: hidden;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  max-width: 920px; margin: 0 auto .4em;
  font-size: clamp(40px, 6vw, 56px);
  letter-spacing: -.035em;
}
.hero .lead {
  max-width: 640px; margin: 0 auto;
  color: #4b5563; font-size: clamp(17px, 2vw, 20px); line-height: 1.55; font-weight: 400;
}
.hero .actions { justify-content: center; margin-top: 36px; }
.hero .actions .btn-hero-cta {
  padding: 18px 40px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.01em;
  box-shadow: 0 10px 28px rgba(37,99,235,.35);
}
.hero .actions .btn-hero-cta:hover {
  box-shadow: 0 14px 36px rgba(37,99,235,.42);
  transform: translateY(-1px);
}
.hero-note { color: var(--muted); font-size: 14px; margin-top: 8px; }
.hero-note a { font-weight: 600; }
.badge {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: rgba(16,163,127,.12); color: var(--green-d);
  font-size: 13px; font-weight: 700; margin-bottom: 18px; letter-spacing: .01em;
}
.badge-blue { background: rgba(37,99,235,.1); color: var(--blue-d); }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
.section-head h2 { margin-bottom: .35em; }
.block { padding: 48px 0 8px; }
.page { padding-top: 48px; padding-bottom: 32px; }
.page .lead { font-size: 18px; color: #4b5563; max-width: 720px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-3 { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.grid-2 { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px; box-shadow: var(--shadow-sm);
  transition: box-shadow .15s, transform .15s, border-color .15s;
}
.card:hover { box-shadow: var(--shadow); border-color: #ddd7cc; }
.card p:last-child { margin-bottom: 0; }
.card h3 { margin-bottom: .4em; }
.card .icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; margin-bottom: 14px;
  background: rgba(16,163,127,.1); color: var(--green); font-size: 18px; font-weight: 800;
}
.card .icon.blue { background: rgba(37,99,235,.1); color: var(--blue); }

.feature-card p { color: #4b5563; font-size: 15px; }
.use-card { text-align: left; }
.use-card h3 { font-size: 17px; }

.steps {
  list-style: none; padding: 0; margin: 0 0 24px;
  display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  counter-reset: s;
}
.steps li { counter-increment: s; }
.steps h3::before {
  content: counter(s); display: inline-grid; place-items: center;
  width: 28px; height: 28px; margin-right: 10px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 14px; vertical-align: middle;
}

.pre, pre.code, .code {
  background: var(--code-bg); color: #e2e8f0; border-radius: var(--r);
  padding: 18px 20px; overflow-x: auto; font-size: 14px; line-height: 1.6; margin: 0 0 12px;
}
.pre code, pre.code code, .code code { background: none; border: 0; padding: 0; color: inherit; }
.muted, .updated { color: var(--muted); font-size: 14px; }
.lead { font-size: 18px; color: #4b5563; }

.cta {
  margin: 0; padding: 64px 28px; text-align: center;
  background:
    radial-gradient(600px 280px at 50% 0%, rgba(16,163,127,.16), transparent 70%),
    linear-gradient(135deg, #e8f8f2, #eef3ff);
  border-top: 1px solid var(--line);
}
.cta .container { max-width: 720px; }
.cta h2 { font-size: clamp(28px, 4vw, 40px); }
.cta p { color: #4b5563; font-size: 17px; }
.cta .actions { justify-content: center; }

.table-wrap { overflow-x: auto; margin: 12px 0 16px; border-radius: 12px; border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; background: #fff; }
th, td { border-bottom: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
th { background: var(--soft); font-weight: 700; }
tr:last-child td { border-bottom: 0; }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; justify-content: center; }
.pill {
  display: inline-block; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--fg);
  font-size: 14px; font-weight: 600; box-shadow: var(--shadow-sm);
}
.model-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.faq-item { margin: 0 0 22px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.faq-item h2 { font-size: 20px; }

.site-footer {
  margin-top: 0; border-top: 1px solid var(--line); background: #fff;
  padding: 36px 0 48px; color: var(--muted); font-size: 14px;
}
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--fg); }

.consult {
  position: fixed; right: 18px; bottom: 18px; z-index: 30;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, .12);
  padding: 10px 14px; font-size: 13px; color: var(--fg); font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
}
.consult::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 4px rgba(16,163,127,.18);
}
.consult:hover { text-decoration: none; border-color: var(--green); }

.note-box {
  background: var(--soft); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 18px; margin: 0 0 20px;
}
.discount { font-size: 28px; font-weight: 800; color: var(--green); }
.compare { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Language switcher */
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--muted);
  padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff;
}
.lang-switch a { color: var(--fg); font-weight: 600; }
.lang-switch a[aria-current="page"] { color: var(--green); pointer-events: none; }
.lang-switch .sep { color: #d1d5db; }
.lang-hint {
  display: none; position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 72px; z-index: 40; max-width: min(420px, calc(100% - 24px));
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 12px 32px rgba(16,24,40,.14); padding: 14px 16px; font-size: 14px;
}
.lang-hint.is-open { display: block; }
.lang-hint .actions { margin: 10px 0 0; justify-content: flex-end; }

@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: clamp(32px, 9vw, 40px); }
  .section { padding: 52px 0; }
  .header-inner { min-height: 56px; }
  .brand span { display: none; }
  .consult { right: 12px; bottom: 12px; font-size: 12px; }
  .site-header nav { gap: 6px 16px; }
  .btn-lg, .btn-xl { width: 100%; text-align: center; }
  .actions { width: 100%; }
  .actions .btn { flex: 1 1 auto; text-align: center; }
}


/* ===== Model Plaza (SiliconFlow-style layout, our colors) ===== */
.plaza-hero {
  padding: 56px 0 28px;
  text-align: center;
  background:
    radial-gradient(800px 360px at 50% -20%, rgba(16,163,127,.12), transparent 70%),
    linear-gradient(180deg, #f3faf7 0%, #fffdf8 85%);
}
.plaza-hero h1 { font-size: clamp(32px, 4.5vw, 44px); margin-bottom: .35em; }
.plaza-hero .lead { max-width: 560px; margin: 0 auto 28px; color: #4b5563; font-size: 17px; }
.plaza-search {
  max-width: 680px; margin: 0 auto 8px; position: relative;
}
.plaza-search input {
  width: 100%; padding: 15px 20px 15px 48px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; font-size: 15px;
  box-shadow: var(--shadow-sm); outline: none;
}
.plaza-search input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(16,163,127,.15); }
.plaza-search::before {
  content: "⌕"; position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 18px; pointer-events: none;
}

/* SiliconFlow-style chip filter rows */
.plaza-filters {
  display: flex; flex-direction: column; gap: 14px;
  padding: 20px 0 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px;
}
.chip-row {
  display: flex; align-items: flex-start; gap: 14px 18px;
}
.chip-row-label {
  flex: 0 0 88px; padding-top: 7px;
  font-size: 13px; font-weight: 600; color: var(--muted); line-height: 1.3;
}
.chip-row-items {
  display: flex; flex-wrap: wrap; gap: 8px; flex: 1; min-width: 0;
}
.chip {
  appearance: none; border: 1px solid var(--line); background: #fff; color: #374151;
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit; line-height: 1.35;
  transition: border-color .12s, color .12s, background .12s;
}
.chip:hover { border-color: var(--green); color: var(--green); }
.chip.is-on {
  background: rgba(16,163,127,.1); border-color: var(--green); color: var(--green-d);
}
.vendor-chip {
  appearance: none; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: #fff; color: #374151;
  padding: 5px 12px 5px 8px; border-radius: 10px; font-size: 12.5px; font-weight: 600;
  cursor: pointer; font-family: inherit; line-height: 1.3;
  transition: border-color .12s, color .12s, background .12s, box-shadow .12s;
}
.vendor-chip img {
  width: 16px; height: 16px; border-radius: 4px; object-fit: contain; flex-shrink: 0;
  background: #f3f4f6;
}
.vendor-chip:hover { border-color: var(--green); color: var(--green); }
.vendor-chip.is-on {
  background: rgba(37,99,235,.08); border-color: var(--blue); color: var(--blue-d);
  box-shadow: 0 0 0 1px rgba(37,99,235,.12);
}
.plaza-meta {
  font-size: 13px; color: var(--muted); margin: 0 0 20px; text-align: left;
}
.plaza-meta strong { color: var(--fg); font-weight: 700; }

@media (max-width: 720px) {
  .chip-row { flex-direction: column; gap: 8px; }
  .chip-row-label { flex: none; padding-top: 0; }
}

.model-plaza-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  margin-bottom: 32px;
}
.mcard {
  display: flex; flex-direction: column; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 18px; box-shadow: var(--shadow-sm);
  transition: box-shadow .15s, transform .15s, border-color .15s;
  text-align: left; min-height: 168px;
}
.mcard:hover { box-shadow: var(--shadow); border-color: rgba(16,163,127,.45); transform: translateY(-2px); }
.mcard-top { display: flex; gap: 12px; align-items: flex-start; }
.mcard-logo {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  background: #fff;
  border: 1px solid #e8e4dc;
  overflow: hidden;
  font-size: 0; line-height: 0; color: transparent;
}
.mcard-logo img {
  width: 26px; height: 26px;
  object-fit: contain;
  display: block;
}
/* Product-mark tiles — white / light brand tint. Site green NEVER default here.
   OpenAI #10A37F is OpenAI's historical brand green (not BuyTokenHere chrome). */
.mcard-logo.vendor-openai { background: #10A37F; border-color: #0d8c6c; }
.mcard-logo.vendor-openai img,
.mcard-logo.vendor-xai img {
  /* marks are dark for light marquee; invert on brand tiles */
  filter: brightness(0) invert(1);
}

.mcard-logo.vendor-anthropic { background: #FBF7F4; border-color: #EDE4DC; } /* Claude warm */
.mcard-logo.vendor-google { background: #fff; border-color: #e8e4dc; } /* Gemini sparkle */
.mcard-logo.vendor-xai { background: #0A0A0A; border-color: #0A0A0A; } /* Grok */
.mcard-logo.vendor-meta { background: #fff; border-color: #e8e4dc; }
.mcard-logo.vendor-mistral { background: #FFF8F0; border-color: #FFE0C2; }
.mcard-logo.vendor-cohere { background: #F3FAF7; border-color: #D0E8DC; }
.mcard-logo.vendor-amazon { background: #FFF8F0; border-color: #FFE0B8; } /* Nova */
.mcard-logo.vendor-perplexity { background: #F0FAFA; border-color: #C9E8E8; }
.mcard-logo.vendor-deepseek-ai { background: #F5F7FF; border-color: #D7DEFF; }
.mcard-logo.vendor-Qwen { background: #FFF7F2; border-color: #FFDCC8; }
.mcard-logo.vendor-moonshotai { background: #fff; border-color: #D6E8FF; } /* Kimi: white + official blue mark */
.mcard-logo.vendor-zai { background: #F5F7FF; border-color: #D7DEFF; } /* GLM / ChatGLM */
.mcard-logo.vendor-hunyuan { background: #F3F8FF; border-color: #D0E0FF; }
.mcard-logo.vendor-baidu { background: #F5F7FF; border-color: #D7DEFF; } /* ERNIE / Wenxin */
.mcard-logo.vendor-ByteDance { background: #fff; border-color: #e8e4dc; } /* Doubao */
.mcard-logo.vendor-MiniMax { background: #FFF5FA; border-color: #F9C2DC; }
.mcard-logo.vendor-Tongyi-MAI { background: #FFF7F2; border-color: #FFDCC8; } /* Tongyi / Qwen family */
.mcard-logo.vendor-Kolors { background: #FFF6F2; border-color: #FFD0C0; }
.mcard-logo.vendor-stepfun-ai { background: #F3F8FF; border-color: #D0E0FF; }
.mcard-logo.vendor-meituan-longcat { background: #FFFBEF; border-color: #FFE9A8; }
.mcard-logo.blue, .mcard-logo.slate, .mcard-logo.amber { background: #fff; border-color: #e8e4dc; color: transparent; }

.mcard-name { font-size: 16px; font-weight: 700; margin: 0 0 4px; letter-spacing: -.02em; }
.mcard-meta { font-size: 12px; color: var(--muted); margin: 0; }
.mcard-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mcard-tags span {
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
  background: var(--soft); color: #4b5563; border: 1px solid var(--line);
}
.mcard-tags .t-text { background: rgba(16,163,127,.1); color: var(--green-d); border-color: transparent; }
.mcard-tags .t-image { background: rgba(37,99,235,.1); color: var(--blue-d); border-color: transparent; }
.mcard-tags .t-audio { background: rgba(245,158,11,.12); color: #b45309; border-color: transparent; }
.mcard-tags .t-video { background: rgba(99,102,241,.12); color: #4338ca; border-color: transparent; }
.mcard-tags .t-sample { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.mcard-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; gap: 8px; }
.mcard-date { font-size: 12px; color: var(--muted); }
.mcard .btn { padding: 7px 14px; font-size: 13px; }
.plaza-empty {
  text-align: center; padding: 28px 20px; border-radius: 16px;
  border: 1px dashed var(--line); background: #fff; margin-bottom: 28px;
}
.plaza-empty h2 { font-size: 22px; }
.sample-banner {
  font-size: 13px; color: #92400e; background: #fffbeb; border: 1px solid #fde68a;
  border-radius: 12px; padding: 10px 14px; margin: 0 0 18px; text-align: center;
}
.home-models .mcard { min-height: 140px; }


/* ===== Announcement banner (proper promo bar, full-bleed) ===== */
.announcement-bar {
  background: linear-gradient(90deg, #0d8c6c 0%, #10A37F 45%, #2563EB 100%);
  color: #fff;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.4;
}
.announcement-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  color: #fff !important;
  text-decoration: none;
  padding: 16px 24px;
  min-height: 52px;
  font-size: 15px;
  font-weight: 600;
}
.announcement-bar a:hover { text-decoration: none; }
.announcement-bar a:hover .ann-cta {
  background: rgba(255,255,255,.28);
}
.announcement-bar .ann-arrow { margin-left: 2px; opacity: .95; }
.announcement-bar .ann-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  font-size: 14px;
  font-weight: 700;
  transition: background .15s;
}

/* Header: 3 zones — brand+slogan left, nav optically centered, auth right */
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 20px;
  min-height: 68px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 40px;
  box-sizing: border-box;
}
.header-inner > .brand {
  justify-self: start;
  grid-column: 1;
  z-index: 1;
}
.header-nav {
  display: flex; align-items: center; justify-content: center;
  gap: 8px 36px; flex-wrap: nowrap;
  justify-self: center;
  grid-column: 2;
  min-width: 0;
}
.header-nav a {
  color: #374151; font-size: 16px; font-weight: 600;
  white-space: nowrap;
  padding: 6px 4px;
  letter-spacing: -.01em;
}
.header-nav a:hover { color: var(--green); text-decoration: none; }
.header-actions {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 10px; flex-wrap: nowrap;
  justify-self: end;
  grid-column: 3;
  flex-shrink: 0;
  z-index: 1;
}
.auth-actions {
  display: inline-flex; align-items: center; gap: 8px;
  padding-left: 12px; border-left: 1px solid var(--line);
  flex-shrink: 0;
}
.site-header nav { /* legacy fallback if any page still uses old nav wrapper */
  display: flex; align-items: center; gap: 6px 18px; flex-wrap: wrap;
}


/* Plaza deal badge — only when live rateMultiplier exists; EN "x% off" / ZH "官网 x 折" */
.mcard-deal {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  display: inline-flex; align-items: center;
  padding: 3px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: -.01em;
  line-height: 1.3; text-decoration: none;
  background: rgba(16,163,127,.12); color: var(--green-d);
  border: 1px solid rgba(16,163,127,.28);
}
.mcard-deal:hover { background: rgba(16,163,127,.18); color: var(--green-d); }
.mcard-tags a.t-deal {
  background: rgba(16,163,127,.1); color: var(--green-d); border-color: transparent;
  text-decoration: none; font-weight: 700;
}
/* Catalog (top-up) badge — not SAMPLE, not live API */
.mcard-tags .t-catalog {
  background: rgba(37,99,235,.1); color: var(--blue-d); border-color: transparent;
}
.mcard-tags .t-region-cn {
  background: rgba(16,163,127,.1); color: var(--green-d); border-color: transparent;
}
.mcard-tags .t-region-intl {
  background: rgba(99,102,241,.12); color: #4338ca; border-color: transparent;
}
.catalog-banner { display: none; } /* retired: API disclaimer moved out of plaza UI */
.mcard { cursor: pointer; }
.mcard a.mcard-hit {
  position: absolute; inset: 0; z-index: 1; border-radius: inherit;
  text-indent: -9999px; overflow: hidden;
}
.mcard { position: relative; }
.mcard .btn { position: relative; z-index: 2; }
.mcard-id { font-size: 11px; color: var(--muted); margin: 0; word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.plaza-section-label {
  font-size: 15px; font-weight: 700; color: var(--fg);
  letter-spacing: -.01em; margin: 10px 0 14px;
}

@media (max-width: 900px) {
  .header-inner { padding: 0 24px; column-gap: 12px; }
  .brand { font-size: 22px; }
  .brand span { font-size: 12px; }
}
@media (max-width: 640px) {
  .auth-actions { border-left: 0; padding-left: 0; }
  .header-inner {
    padding: 0 16px;
    min-height: 56px;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    row-gap: 8px;
    column-gap: 10px;
  }
  .header-inner > .brand { grid-column: 1; grid-row: 1; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .header-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    width: 100%;
    justify-content: center;
    gap: 6px 20px;
  }
  .header-nav a { font-size: 15px; padding: 4px 2px; }
  .brand { font-size: 20px; }
  .announcement-bar { font-size: 14px; }
  .announcement-bar a { padding: 14px 16px; min-height: 48px; font-size: 14px; }
  .announcement-bar .ann-cta { font-size: 13px; padding: 4px 12px; }
}

.section.soft { background: var(--soft); border-top: 1px solid var(--line); }
.eyebrow { text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }

/* ===== Homepage: neon hero canvas ===== */
.hero-neon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}
.hero .container { position: relative; z-index: 1; }

/* ===== Homepage: vendor logo marquee ===== */
.logo-marquee-section {
  padding: 22px 0 28px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}
.logo-marquee-label {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.logo-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.logo-marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  padding: 8px 0;
  animation: logo-marquee-scroll 38s linear infinite;
}
.logo-marquee:hover .logo-marquee-track {
  animation-play-state: paused;
}
.logo-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  flex: 0 0 auto;
  opacity: 1;
  transition: transform .2s, opacity .2s;
}
.logo-item img {
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: none;
}
.logo-item:hover {
  transform: scale(1.05);
}
@keyframes logo-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    gap: 28px 36px;
    padding: 0 24px;
  }
  /* hide duplicate track items for static wrap — second half has data-dup */
  .logo-item[data-dup] { display: none; }
}

/* ===== Homepage: how-to demo (Framer-style) ===== */
.howto-demo {
  padding: 72px 0;
}
.howto-demo .section-head { margin-bottom: 36px; }
.howto-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 36px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
}
.howto-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.howto-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  transition: background .25s, border-color .25s, box-shadow .25s;
  cursor: default;
}
.howto-step.is-active {
  background: #fff;
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.howto-step .n {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800;
  background: rgba(16,163,127,.12); color: var(--green-d);
  transition: background .25s, color .25s;
}
.howto-step.is-active .n {
  background: var(--green); color: #fff;
}
.howto-step h3 {
  font-size: 16px; margin: 0 0 4px;
}
.howto-step p {
  margin: 0; font-size: 14px; color: #4b5563; line-height: 1.45;
}
.howto-step code { font-size: 12px; }

.demo-frame {
  background: #0f172a;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(16,24,40,.18), 0 0 0 1px rgba(15,23,42,.08);
  overflow: hidden;
  aspect-ratio: 16 / 11;
  min-height: 280px;
  position: relative;
}
.demo-chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: #1e293b;
  border-bottom: 1px solid rgba(148,163,184,.15);
}
.demo-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #475569;
}
.demo-dot:nth-child(1) { background: #f87171; }
.demo-dot:nth-child(2) { background: #fbbf24; }
.demo-dot:nth-child(3) { background: #34d399; }
.demo-url {
  margin-left: 8px; flex: 1;
  background: #0f172a; color: #94a3b8;
  font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  padding: 5px 10px; border-radius: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.demo-body {
  position: relative;
  height: calc(100% - 42px);
  padding: 20px 22px;
  color: #e2e8f0;
  font-size: 14px;
}
.demo-panel {
  position: absolute;
  inset: 20px 22px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .45s ease, transform .45s ease;
}
.demo-panel.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.demo-panel h4 {
  margin: 0 0 12px; font-size: 15px; color: #f8fafc; font-weight: 700;
}
.demo-field {
  background: #1e293b; border: 1px solid #334155;
  border-radius: 10px; padding: 12px 14px; margin-bottom: 10px;
}
.demo-field label {
  display: block; font-size: 11px; color: #94a3b8;
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px;
}
.demo-field .val {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px; color: #e2e8f0;
}
.demo-field .val.accent { color: #34d399; }
.demo-field .val.blue { color: #60a5fa; }
.demo-btn-mock {
  display: inline-block; margin-top: 8px;
  background: var(--green); color: #fff;
  font-weight: 700; font-size: 13px;
  padding: 9px 16px; border-radius: 999px;
  animation: demo-btn-pulse 2.2s ease-in-out infinite;
}
.demo-check {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px; color: #34d399; font-weight: 600; font-size: 13px;
}
.demo-check::before {
  content: "✓"; display: grid; place-items: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(52,211,153,.18); font-size: 12px;
}
.demo-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: rgba(148,163,184,.15);
}
.demo-progress > span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--green), var(--blue));
  transition: width .1s linear;
}
@keyframes demo-btn-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,163,127,.45); }
  50% { box-shadow: 0 0 0 8px rgba(16,163,127,0); }
}
.howto-cta {
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px;
}
@media (max-width: 900px) {
  .howto-layout { grid-template-columns: 1fr; gap: 28px; }
  .demo-frame { min-height: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-btn-mock { animation: none; }
  .demo-panel { transition: none; }
}

/* ===== Home Model Plaza teaser ===== */
.home-models .section-head { margin-bottom: 28px; }
.home-plaza-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 0 28px;
}
.home-plaza-grid .mcard {
  min-height: 0;
  padding: 16px;
  gap: 10px;
}
.home-plaza-grid .mcard-name { font-size: 15px; margin: 0 0 2px; }
.home-plaza-grid .mcard-meta { font-size: 12px; }
.home-plaza-grid .mcard-tags { margin-top: 2px; }
.home-plaza-grid .mcard-id,
.home-plaza-grid .mcard-foot,
.home-plaza-grid .mcard-deal { display: none; }
.home-plaza-cta { text-align: center; margin: 0; }
.cta .actions { justify-content: center; }
.cta .actions .btn-hero-cta {
  padding: 18px 40px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.01em;
  box-shadow: 0 10px 28px rgba(37,99,235,.35);
}
.cta .actions .btn-hero-cta:hover {
  box-shadow: 0 14px 36px rgba(37,99,235,.42);
  transform: translateY(-1px);
}
@media (max-width: 900px) {
  .home-plaza-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .home-plaza-grid { grid-template-columns: 1fr; }
}

/* global striking primary CTA */
.btn-hero-cta {
  padding: 18px 40px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.01em;
  box-shadow: 0 10px 28px rgba(37,99,235,.35);
}
.btn-hero-cta:hover {
  box-shadow: 0 14px 36px rgba(37,99,235,.42);
  transform: translateY(-1px);
}
.btn.btn-lg.btn-hero-cta { padding: 16px 36px; font-size: 18px; }
.howto-cta .btn-ghost { align-self: center; }

/* ===== Hero tool chips + agent taste block ===== */
.hero-tool-chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin: 18px 0 0; padding: 0; list-style: none;
}
.hero-tool-chips a {
  display: inline-flex; align-items: center;
  padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  color: #374151; background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: border-color .15s, color .15s, box-shadow .15s;
}
.hero-tool-chips a:hover {
  color: var(--blue); border-color: rgba(37,99,235,.35);
  box-shadow: 0 4px 14px rgba(37,99,235,.12);
  text-decoration: none;
}
.agent-taste-banner {
  max-width: 720px; margin: 0 auto 28px;
  text-align: center;
  padding: 16px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(16,163,127,.08), rgba(37,99,235,.08));
  border: 1px solid var(--line);
}
.agent-taste-banner .eyebrow {
  margin-bottom: 6px; color: var(--green-d);
}
.agent-taste-banner p {
  margin: 0; color: #4b5563; font-size: 15px; line-height: 1.5;
}
.howto-cta-links {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  margin-top: 28px;
}
.howto-cta-links .docs-link {
  font-size: 14px; font-weight: 600; color: var(--blue);
}
.howto-cta-links .docs-link:hover { text-decoration: underline; }

/* ===== Language globe menu ===== */
.lang-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 50;
}
.lang-menu-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  color: var(--fg); font-size: 13px; font-weight: 600;
  cursor: pointer; line-height: 1.2;
  font-family: inherit;
}
.lang-menu-toggle:hover { border-color: #d6d1c7; background: var(--soft); }
.lang-menu-toggle svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--green); }
.lang-menu-toggle .lang-caret {
  width: 0; height: 0; margin-left: 2px;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid #9ca3af;
}
.lang-menu.is-open .lang-caret { transform: rotate(180deg); }
.lang-menu-panel {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 220px; max-height: min(70vh, 420px); overflow-y: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 16px 40px rgba(16,24,40,.14); padding: 6px;
  z-index: 60;
}
.lang-menu.is-open .lang-menu-panel { display: block; }
.lang-menu-panel a {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 12px; border-radius: 10px;
  color: var(--fg); font-size: 14px; font-weight: 500; text-decoration: none;
}
.lang-menu-panel a:hover { background: var(--soft); text-decoration: none; color: var(--fg); }
.lang-menu-panel a[aria-current="page"] {
  color: var(--green); font-weight: 700; background: rgba(16,163,127,.08);
  pointer-events: none;
}
.lang-menu-panel .lang-native { color: var(--muted); font-size: 12px; font-weight: 500; }
.auth-actions { border-left: 0; padding-left: 0; }
.auth-actions .btn { white-space: nowrap; }
@media (max-width: 640px) {
  .lang-menu-toggle .lang-label { max-width: 72px; overflow: hidden; text-overflow: ellipsis; }
  .lang-menu-panel { right: -8px; min-width: 200px; }
  .logo-item { height: 48px; }
  .logo-item img { height: 36px; max-width: 130px; }
  .logo-marquee-track { gap: 20px; }
}

.lang-switch { display: none !important; }
