/* 哞哞写作 Moo Writing — Design System */
:root {
  --brand: #4B8FE8;
  --brand-dark: #3A7AD4;
  --brand-mid: #5B9FFF;
  --brand-light: #E8F3FF;
  --brand-soft: #F3F8FF;
  --ink: #0F2744;
  --ink-2: #4A6078;
  --ink-3: #8A9BB0;
  --line: #D8E4F0;
  --line-soft: #E8F0F8;
  --bg: #F3F8FF;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(15,39,68,.06);
  --shadow: 0 4px 16px rgba(75,143,232,.12);
  --shadow-lg: 0 12px 40px rgba(75,143,232,.14);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --mono: "SF Mono", "Menlo", monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

img { max-width: 100%; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 14px; }

/* ========== Utilities ========== */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.text-sm { font-size: 13px; }
.text-muted { color: var(--ink-3); }
.text-center { text-align: center; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: all .2s ease;
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(75,143,232,.3);
}
.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(75,143,232,.35);
}
.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  padding: 8px 12px;
}
.btn-ghost:hover { background: var(--brand-light); color: var(--brand); }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-icon {
  width: 36px; height: 36px; padding: 0;
  border-radius: 8px;
  color: var(--ink-3);
}
.btn-icon:hover { background: var(--line-soft); color: var(--ink); }

/* ========== Cards ========== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}
.card-hover:hover {
  box-shadow: var(--shadow);
  border-color: rgba(75,143,232,.25);
  transform: translateY(-2px);
  transition: all .25s ease;
}

/* ========== Forms ========== */
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  transition: border-color .2s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(75,143,232,.12);
}
.form-textarea { resize: vertical; min-height: 160px; line-height: 1.7; }
.form-group { margin-bottom: 16px; }

/* ========== Tags ========== */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: var(--brand-light);
  color: var(--brand-dark);
}
.tag-pink { background: #FFE8F0; color: #D6336C; }
.tag-blue { background: #E7F5FF; color: #1971C2; }
.tag-orange { background: #FFF4E6; color: #E8590C; }
.tag-purple { background: #F3F0FF; color: #7048E8; }
.tag-yellow { background: #FFF9DB; color: #E67700; }
.tag-teal { background: #E6FCF5; color: #0CA678; }

/* ========== Toast ========== */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  animation: toastIn .3s ease;
  max-width: 360px;
}
.toast.success { background: var(--brand); }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== Modal ========== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: fadeIn .2s ease;
}
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  animation: scaleIn .25s ease;
}
.modal h3 { font-size: 18px; margin-bottom: 8px; }
.modal p { color: var(--ink-2); font-size: 14px; margin-bottom: 20px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: scale(1); } }

/* ========== Nav (marketing) ========== */
.mkt-nav {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  z-index: 100;
}
.mkt-nav .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}
.logo:hover { color: var(--ink); }
.logo-mark {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--brand), var(--brand-mid));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(75,143,232,.3);
  flex-shrink: 0;
  object-fit: cover;
}
img.logo-mark {
  background: none;
  box-shadow: 0 2px 8px rgba(75,143,232,.25);
  border-radius: 8px;
}
.mkt-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.mkt-nav-links a {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
}
.mkt-nav-links a:hover { color: var(--brand); }
.mkt-nav-links a.active {
  color: var(--brand);
  font-weight: 600;
}
.mkt-nav-links a.btn-primary,
.mkt-nav-links a.btn-primary:hover,
.mkt-nav-links a.btn-primary.active {
  color: #fff;
}

/* ========== Hero ========== */
.hero {
  padding: 72px 0 56px;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(75,143,232,.18), transparent),
    radial-gradient(ellipse 50% 40% at 90% 20%, rgba(91,159,255,.1), transparent),
    var(--bg);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--brand-light);
  color: var(--brand-dark);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero .sub {
  font-size: 18px;
  color: var(--ink-2);
  margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ========== Feature cards ========== */
.features {
  padding: 48px 0 64px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all .25s ease;
}
.feature-card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(75,143,232,.3);
  transform: translateY(-3px);
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  background: var(--brand-light);
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.7;
}
.feature-card .link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
}

/* ========== Preview mock ========== */
.preview-section {
  padding: 0 0 80px;
}
.preview-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}
.preview-bar {
  background: var(--brand-soft);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}
.preview-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #ddd;
}
.preview-dot.r { background: #FF5F57; }
.preview-dot.y { background: #FEBC2E; }
.preview-dot.g { background: #28C840; }
.preview-body {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 280px;
}
.preview-side {
  background: #F3F8FF;
  padding: 20px 16px;
  border-right: 1px solid var(--line);
  font-size: 13px;
}
.preview-side .nav-item {
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 4px;
  color: var(--ink-2);
}
.preview-side .nav-item.active {
  background: var(--brand-light);
  color: var(--brand-dark);
  font-weight: 600;
}
.preview-main { padding: 24px; }
.preview-main h4 { font-size: 16px; margin-bottom: 12px; }
.preview-skeleton {
  height: 10px;
  background: linear-gradient(90deg, #eee, #f5f5f5, #eee);
  border-radius: 4px;
  margin-bottom: 10px;
}
.preview-skeleton.w60 { width: 60%; }
.preview-skeleton.w80 { width: 80%; }
.preview-skeleton.w40 { width: 40%; }
.preview-chip {
  display: inline-block;
  padding: 4px 10px;
  background: var(--brand-light);
  color: var(--brand);
  border-radius: 4px;
  font-size: 12px;
  margin-right: 6px;
  margin-top: 8px;
}

/* ========== Footer ========== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
  background: var(--white);
}
.site-footer .logo { justify-content: center; margin-bottom: 8px; font-size: 16px; }

/* ========== App Layout (workbench etc) ========== */
.app-layout {
  display: flex;
  min-height: 100vh;
}
.app-sidebar {
  width: 220px;
  background: var(--white);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 20px 12px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
}
.app-sidebar .logo {
  padding: 0 12px;
  margin-bottom: 28px;
  font-size: 18px;
}
.side-nav { list-style: none; flex: 1; }
.side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
}
.side-nav a:hover { background: var(--line-soft); color: var(--ink); }
.side-nav a.active {
  background: var(--brand-light);
  color: var(--brand-dark);
  font-weight: 600;
}
.side-nav .icon { font-size: 16px; width: 20px; text-align: center; }
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  background: var(--bg);
  margin-top: auto;
}
.user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #5B9FFF);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.user-info { font-size: 13px; line-height: 1.4; }
.user-info .name { font-weight: 600; color: var(--ink); }
.user-info .plan { color: var(--ink-3); font-size: 12px; }

.app-main {
  flex: 1;
  padding: 36px 40px;
  overflow-y: auto;
  max-width: 900px;
}
.app-main.wide { max-width: none; }
.app-main.bleed {
  max-width: none;
  padding: 0;
}
.app-main .board-page {
  max-width: none;
  margin: 0;
  padding: 0 0 48px;
}
.app-main .inspire-header { text-align: left; }
.app-main .inspire-tabs { justify-content: flex-start; }

.page-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.page-desc {
  color: var(--ink-2);
  font-size: 15px;
  margin-bottom: 28px;
}

/* ========== Analysis layout ========== */
.analysis-top {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}
.analysis-top h1 {
  font-size: 18px;
  font-weight: 700;
}
.analysis-tabs {
  display: flex;
  gap: 4px;
  padding: 0 28px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.analysis-tabs .tab {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.analysis-tabs .tab:hover { color: var(--ink); }
.analysis-tabs .tab.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
  font-weight: 600;
}
.analysis-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  padding: 28px 28px 48px;
  max-width: 1280px;
  margin: 0 auto;
  align-items: start;
}
.analysis-left { min-width: 0; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.section-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.section-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-card h3 .badge {
  font-size: 11px;
  padding: 2px 8px;
  background: var(--brand-light);
  color: var(--brand-dark);
  border-radius: 4px;
  font-weight: 600;
}
.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.meta-item {
  background: var(--bg);
  border-radius: 8px;
  padding: 12px;
}
.meta-item .label {
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.meta-item .value {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.5;
}

.builder-panel {
  position: sticky;
  top: 100px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 16px 16px 18px;
  box-shadow: none;
}
.builder-panel h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.builder-panel > .text-muted {
  font-size: 12px;
  margin-bottom: 12px;
}
.builder-panel .form-textarea,
.builder-panel .form-input {
  background: var(--bg);
  border-color: transparent;
  font-size: 13px;
}
.builder-panel .form-textarea { min-height: 0; }
.builder-field {
  margin-bottom: 14px;
}
.builder-field .label {
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.builder-field .value {
  font-size: 13px;
  color: var(--ink);
  background: var(--bg);
  padding: 10px 12px;
  border-radius: 8px;
  line-height: 1.6;
  border: 1px solid transparent;
}
.builder-field .value.editable:hover {
  border-color: var(--line);
}

/* ========== Imitate editor ========== */
.imitate-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 100vh;
}
.imitate-left {
  background: var(--white);
  border-right: 1px solid var(--line);
  padding: 24px;
  overflow-y: auto;
  height: 100vh;
  position: sticky;
  top: 0;
}
.imitate-left h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}
.builder-mini-card {
  background: var(--bg);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid var(--line-soft);
}
.builder-mini-card .k {
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 4px;
}
.builder-mini-card .v {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.6;
}
.imitate-right {
  display: flex;
  flex-direction: column;
  height: 100vh;
}
.editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.editor-tabs {
  display: flex;
  gap: 4px;
}
.editor-tabs .etab {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
}
.editor-tabs .etab.active {
  background: var(--brand-light);
  color: var(--brand-dark);
}
.editor-body {
  flex: 1;
  padding: 24px 32px;
  overflow-y: auto;
  background: #FAFCFF;
}
.editor-area {
  width: 100%;
  min-height: 420px;
  border: none;
  outline: none;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink);
  background: transparent;
  resize: none;
  font-family: var(--font);
}
.editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.word-count {
  font-size: 13px;
  color: var(--ink-3);
}
.toggle-done {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
}
.toggle-done input {
  width: 16px; height: 16px;
  accent-color: var(--brand);
}

/* ========== Inspire page ========== */
.inspire-tabs {
  display: flex;
  gap: 6px;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.inspire-tabs .tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--white);
  border: 1.5px solid var(--line);
}
.inspire-tabs .tab:hover { border-color: var(--brand); color: var(--brand); }
.inspire-tabs .tab.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.search-box {
  position: relative;
  max-width: 420px;
  margin: 0 auto 28px;
}
.search-box input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  font-size: 14px;
}
.search-box input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(75,143,232,.12);
}
.search-box .icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  font-size: 16px;
}

.inspire-main {
  max-width: 1240px;
  padding-top: 20px;
}
.inspire-page {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  max-width: none;
  margin: 0;
  padding: 0 0 64px;
}
.inspire-rail {
  position: sticky;
  top: 72px;
  max-height: calc(100vh - 92px);
  overflow: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 18px 18px;
}
.inspire-rail-h {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.inspire-rail-h h1 {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.03em;
  margin: 0 0 4px;
}
.inspire-rail-h p {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.5;
  margin: 0;
}
.inspire-rail-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
  min-width: 1.5em;
  text-align: right;
}
.inspire-rail-tools { margin-bottom: 16px; }
.inspire-density {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--ink-3);
}
.inspire-rail-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.inspire-rail-actions #btn-draw,
.inspire-rail-actions #btn-draw-reset {
  height: 38px;
  border-radius: 8px;
  font-size: 13px;
}
#btn-write-project {
  width: 100%;
  margin-top: 10px;
  height: 38px;
  border-radius: 8px;
  font-size: 13px;
}
.count-btns {
  display: flex;
  gap: 2px;
  background: var(--bg);
  border-radius: 8px;
  padding: 2px;
  border: 1px solid var(--line);
}
.count-btns button {
  min-width: 28px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
}
.count-btns button.active {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.draw-results-wrap { display: block; }
.draw-results { display: block; }
.inspire-combo-empty {
  font-size: 13px;
  color: var(--ink-3);
  padding: 12px 0 4px;
}
.inspire-combo-group { margin-bottom: 14px; }
.inspire-combo-group h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.inspire-combo-item {
  border-top: 1px solid var(--line-soft);
}
.inspire-combo-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 8px 0;
  text-align: left;
}
.inspire-combo-title {
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.4;
}
.inspire-combo-g {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--ink-3);
}
.inspire-combo-item.is-open .inspire-combo-title { color: var(--brand-dark); }
.inspire-combo-detail {
  padding: 0 0 10px;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.65;
}
.inspire-combo-detail p { margin-bottom: 6px; }
.inspire-copy-all { width: 100%; margin-top: 4px; }

.inspire-lib-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}
.inspire-lib-h h2 {
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.03em;
  margin: 0;
}
.inspire-foot {
  font-size: 12px;
  color: var(--ink-3);
  margin: 4px 0 0;
  text-align: left;
}
.inspire-lib-tabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  margin: 12px 0 16px;
  overflow-x: auto;
  flex-wrap: nowrap;
}
.inspire-lib-tabs .tab {
  position: relative;
  padding: 8px 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-3);
  background: none;
  border: 0;
  border-radius: 0;
}
.inspire-lib-tabs .tab:hover { color: var(--ink); }
.inspire-lib-tabs .tab.active {
  color: var(--ink);
  background: none;
  border: 0;
}
.inspire-lib-tabs .tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--ink);
}
.inspire-search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.inspire-page .search-box {
  flex: 1;
  max-width: none;
  margin: 0;
}
.fav-only-btn {
  flex-shrink: 0;
  height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.fav-only-btn.active,
.fav-only-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.inspire-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.inspire-group {
  padding: 2px 0;
  font-size: 13px;
  color: var(--ink-3);
  background: none;
  border: 0;
}
.inspire-group i {
  font-style: normal;
  margin-left: 4px;
  font-size: 11px;
}
.inspire-group:hover,
.inspire-group.active { color: var(--ink); font-weight: 650; }

.trope-section { margin-bottom: 28px; }
.trope-section-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}
.trope-section-h h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.trope-section-h span { color: var(--ink-3); font-size: 12px; }
.trope-cells {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 8px;
}
.trope-cell {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 550;
  line-height: 1.35;
  text-align: left;
}
.trope-cell:hover { border-color: var(--ink-2); }
.trope-cell.is-on,
.trope-card.is-on {
  border-color: var(--ink);
  background: #F7F9FC;
}
.trope-stack { display: flex; flex-direction: column; gap: 10px; }
.trope-plot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.trope-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  transition: border-color .15s, box-shadow .15s;
  position: relative;
  cursor: pointer;
  text-align: left;
}
.trope-card:hover { border-color: var(--ink-2); }
.trope-card .star {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 16px;
  color: #D0D7E0;
  cursor: pointer;
  line-height: 1;
}
.trope-card .star.fav { color: #C58A00; }
.trope-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  padding-right: 18px;
}
.trope-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}
.trope-mark {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--ink-3);
}
.trope-card.is-on .trope-mark { color: var(--brand-dark); }
.trope-card p {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 6px;
}
.trope-card p:last-child { margin-bottom: 0; }
.trope-lead { color: var(--ink) !important; }
.trope-line span {
  display: inline-block;
  min-width: 2em;
  margin-right: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-3);
}
.inspire-empty {
  color: var(--ink-3);
  padding: 40px 0;
}
@media (max-width: 960px) {
  .inspire-page { grid-template-columns: 1fr; }
  .inspire-rail {
    position: static;
    max-height: none;
  }
  .trope-plot-grid { grid-template-columns: 1fr; }
}

/* ========== Promo page ========== */
.promo-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(91,159,255,.22), transparent),
    linear-gradient(180deg, #E8F3FF 0%, #F3F8FF 45%, #FFFFFF 100%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 16px 40px;
}
.promo-sheet {
  max-width: 420px;
  width: 100%;
  text-align: center;
}
.promo-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 18px;
}
.promo-brand img.logo-mark {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin-bottom: 12px;
  box-shadow: 0 6px 20px rgba(75,143,232,.28);
}
.promo-brand .brand-name {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.promo-brand .brand-en {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}
.promo-sheet .sell-sub {
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 22px;
  line-height: 1.55;
}
.promo-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
  text-align: left;
}
.promo-fcard {
  background: var(--white);
  border-radius: 16px;
  padding: 14px 14px 16px;
  box-shadow: 0 4px 14px rgba(75,143,232,.1);
  border: 1px solid rgba(216,228,240,.8);
  transition: transform .2s, box-shadow .2s;
}
.promo-fcard:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(75,143,232,.16);
}
.promo-fcard .fi {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(15,39,68,.12);
}
.promo-fcard .ft {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.3;
}
.promo-fcard .fd {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.45;
}
.promo-fcard .fi.c1 { background: linear-gradient(135deg, #4B8FE8, #5B9FFF); }
.promo-fcard .fi.c2 { background: linear-gradient(135deg, #3D8BDB, #6BB0F0); }
.promo-fcard .fi.c3 { background: linear-gradient(135deg, #5B9FFF, #7EB6FF); }
.promo-fcard .fi.c4 { background: linear-gradient(135deg, #4A7FD4, #6A9FE8); }
.promo-fcard .fi.c5 { background: linear-gradient(135deg, #5BA8E8, #8EC5F5); }
.promo-fcard .fi.c6 { background: linear-gradient(135deg, #3A7AD4, #5B9FFF); }
.promo-sheet .btn-lg {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  border-radius: 999px;
}
.promo-footer {
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-3);
}

/* ========== Original text panel ========== */
.original-text {
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-2);
  white-space: pre-wrap;
}
.overview-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.stat-box {
  background: var(--bg);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}
.stat-box .num {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand);
}
.stat-box .lbl {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 4px;
}
.storyline {
  position: relative;
  padding-left: 24px;
}
.storyline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--brand-light);
}
.story-node {
  position: relative;
  margin-bottom: 20px;
}
.story-node::before {
  content: '';
  position: absolute;
  left: -21px;
  top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--brand);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--brand-light);
}
.story-node h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.story-node p { font-size: 13px; color: var(--ink-2); }

.tech-list { list-style: none; }
.tech-list li {
  padding: 14px;
  background: var(--bg);
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.7;
}
.tech-list li strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--brand-dark);
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; }
  .preview-body { grid-template-columns: 1fr; }
  .preview-side { display: none; }
  .analysis-body { grid-template-columns: 1fr; }
  .builder-panel { position: static; }
  .az-split,
  .az-grid-2,
  .az-tech-grid { grid-template-columns: 1fr; }
  .az-fact:nth-child(odd) { border-right: none; }
  .imitate-layout { grid-template-columns: 1fr; }
  .imitate-left { height: auto; position: static; border-right: none; border-bottom: 1px solid var(--line); }
  .imitate-right { height: auto; }
  .app-layout { flex-direction: column; }
  .app-sidebar {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    height: auto;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 16px;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .app-sidebar .logo { margin-bottom: 0; margin-right: 8px; }
  .side-nav {
    display: flex;
    flex-wrap: wrap;
    flex: 1;
    gap: 4px;
  }
  .side-nav a { margin-bottom: 0; padding: 8px 10px; }
  .user-chip { display: none; }
  .overview-stats { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 28px; }
  .mkt-nav .inner {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 8px;
  }
  .mkt-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    width: 100%;
  }
  .promo-feature-grid { gap: 10px; }
  .promo-fcard { padding: 12px; }
}

/* ========== Knowledge / empty / draw extras ========== */
.empty-state {
  text-align: center;
  color: var(--ink-2);
}
.kb-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.kb-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}
.kb-card-main {
  flex: 1;
  min-width: 200px;
  cursor: pointer;
}
.kb-card-main h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.kb-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.kb-tabs.inspire-tabs .tab.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.toast.error {
  border-left: 3px solid #E03131;
}
.draw-tag-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin: 6px 8px 6px 0;
  vertical-align: top;
}
.draw-tag-actions {
  display: flex;
  gap: 4px;
}
.trope-actions {
  display: flex;
  gap: 8px;
}
.chapter-card .form-textarea {
  min-height: 64px;
  font-size: 13px;
}
.builder-panel .form-textarea,
.builder-mini-card .form-textarea {
  min-height: 48px;
  font-size: 13px;
  background: var(--bg);
  border-color: var(--line-soft);
}
.builder-mini-card .form-textarea {
  width: 100%;
}

/* ========== Daily ranking (imitate.html) ========== */
.ranking-page {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}
.ranking-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.ranking-header h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.ranking-date-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ranking-date-bar .form-label {
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
}
.ranking-date-bar .form-input {
  width: auto;
  min-width: 150px;
  padding: 8px 12px;
}
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rank-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, border-color .2s;
}
.rank-card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(75,143,232,.28);
}
.rank-badge {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4B8FE8, #5B9FFF);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(75,143,232,.28);
}
.rank-main {
  flex: 1;
  min-width: 0;
}
.rank-main h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}
.rank-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.rank-why {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
}
.rank-why strong {
  color: var(--brand-dark);
  font-weight: 600;
}
.rank-heat {
  flex-shrink: 0;
  text-align: center;
  min-width: 64px;
  padding-top: 2px;
}
.rank-heat .heat-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.1;
}
.rank-heat .heat-lbl {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 2px;
}
@media (max-width: 900px) {
  .rank-card { flex-wrap: wrap; }
  .rank-heat { width: 100%; text-align: left; display: flex; align-items: baseline; gap: 8px; }
}

/* ========== Pricing / Redeem / Seller ========== */
.pricing-hero {
  padding: 56px 0 16px;
  text-align: center;
}
.pricing-hero h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 10px;
}
.pricing-hero .sub {
  color: var(--ink-2);
  font-size: 15px;
  max-width: 560px;
  margin: 0 auto;
}
.pricing-section { padding: 24px 0 64px; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.price-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.price-card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(75,143,232,.35);
  transform: translateY(-2px);
}
.price-card.featured {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  position: relative;
}
.price-card .badge-hot {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.price-card .pkg-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.price-card .pkg-desc {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.price-card .pkg-price {
  font-size: 36px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.1;
  margin-bottom: 16px;
}
.price-card .pkg-price span {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-3);
  margin-left: 4px;
}
.price-card ul {
  list-style: none;
  flex: 1;
  margin-bottom: 20px;
}
.price-card ul li {
  font-size: 13px;
  color: var(--ink-2);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}
.price-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}
.pricing-actions { max-width: 720px; margin-left: auto; margin-right: auto; }

.entitlement-success { text-align: center; }
.ok-badge {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 28px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.entitlement-box {
  background: var(--brand-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  text-align: left;
  font-size: 14px;
  color: var(--ink-2);
}

.soft-gate-banner {
  background: linear-gradient(90deg, #E8F3FF, #F3F8FF);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-2);
}
.soft-gate-banner strong { color: var(--brand-dark); }
.entitlement-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: var(--brand-light);
  color: var(--brand-dark);
  max-width: 100%;
}
.entitlement-chip.off {
  background: #FFF4E6;
  color: #E8590C;
}

.seller-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin-bottom: 12px;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.seller-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.seller-table th, .seller-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
.seller-table th {
  background: var(--brand-soft);
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}
.seller-table code {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--brand-light);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--ink);
}
.script-block {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.script-block:last-child { border-bottom: none; margin-bottom: 0; }
.script-pre {
  background: var(--brand-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--ink-2);
  font-family: var(--font);
  max-height: 200px;
  overflow: auto;
}

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .seller-form-grid { grid-template-columns: 1fr; }
  .pricing-hero h1 { font-size: 26px; }
}

/* ========== Cold-start extras ========== */
.first-visit-tip {
  background: linear-gradient(135deg, #E8F3FF, #F8FBFF);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}
.first-visit-tip .tip-body { flex: 1; min-width: 0; }
.first-visit-tip .tip-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 4px;
}
.first-visit-tip .tip-text {
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 12px;
  line-height: 1.55;
}
.first-visit-tip .tip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.seller-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.seller-stat {
  background: var(--brand-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  min-width: 110px;
}
.seller-stat .num {
  font-size: 22px;
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1.2;
}
.seller-stat .lbl {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
}
.guide-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0 40px;
}
.guide-step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.guide-step .step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}
.guide-step h3 {
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--ink);
}
.guide-step p {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
}
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 12px;
}
.faq-item h4 {
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--brand-dark);
}
.faq-item p {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
}
.redeem-hint {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 6px;
}
.redeem-hint code {
  background: var(--brand-light);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink);
}

/* ========== Launch nav / coming soon ========== */
.nav-soon,
.side-soon {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 500;
  cursor: default;
}
.nav-soon small,
.side-soon small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  background: var(--line-soft);
  border-radius: 999px;
  padding: 1px 6px;
}
.side-soon {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 2px;
}
.side-soon .icon { font-size: 16px; width: 20px; text-align: center; }
.feature-card.is-soon {
  position: relative;
  opacity: 0.72;
  pointer-events: none;
}
.soon-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--brand-light);
  border-radius: 999px;
  padding: 3px 8px;
}
.soon-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 39, 68, 0.45);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.soon-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  max-width: 440px;
  text-align: center;
}
.soon-card h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

/* ========== Landing carousel / bullets ========== */
.landing-carousel-wrap { padding: 8px 0 16px; }
.landing-carousel {
  max-width: 880px;
  margin: 0 auto;
}
.carousel-track {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 280px;
}
.carousel-slide {
  display: none;
  margin: 0;
}
.carousel-slide.is-on { display: block; }
.carousel-slide img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: top;
}
.carousel-slide figcaption {
  padding: 12px 16px 16px;
  font-size: 13px;
  color: var(--ink-2);
  text-align: center;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}
.carousel-dots button.active { background: var(--brand); }
.landing-bullets { padding: 24px 0 8px; }
.bullet-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}
.bullet-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.bullet-list strong {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
}
.bullet-list span {
  font-size: 14px;
  color: var(--ink-2);
}

/* ========== Ranking board + gate ========== */
.board-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}
.rank-gate {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.rank-gate-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  width: 100%;
  max-width: 440px;
}
.rank-gate-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brand);
  margin-bottom: 8px;
}
.rank-gate-card h1 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}
.board-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-bottom: 16px;
}
.board-tab {
  flex-shrink: 0;
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid transparent;
}
.board-tab:hover { background: var(--white); color: var(--ink); }
.board-tab.active {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: 0 1px 2px rgba(18, 32, 51, 0.04);
}
.board-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.board-panel > .text-muted { padding: 16px 18px; }
.board-error {
  padding: 28px 18px;
  text-align: center;
}
.board-error .text-muted { padding: 0; margin-bottom: 12px; }
.trend {
  display: grid;
  grid-template-columns: 4px 1fr;
  min-height: 76px;
}
.trend + .trend { border-top: 1px solid var(--line-soft); }
.trend-bar { background: var(--brand); }
.trend-body { padding: 16px 18px 16px 16px; }
.trend-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}
.trend-desc {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
}
.board-list {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  user-select: none;
}
.board-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
}
.board-row:last-child { border-bottom: 0; }
.board-row.top .board-no { color: #d95740; }
.board-no {
  width: 28px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink-3);
  text-align: center;
  flex-shrink: 0;
}
.board-title {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}
.board-tag {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--ink-3);
}

@media (max-width: 900px) {
  .bullet-list { grid-template-columns: 1fr; }
  .carousel-slide img { height: 220px; }
  .nav-soon { display: none; }
}

@media (max-width: 900px) {
  .guide-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .guide-steps { grid-template-columns: 1fr; }
}

/* ========== Landing extra (layout only) ========== */
.trust-chips {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 28px;
  color: var(--ink-2);
  font-size: 14px;
}
.trust-chips li::before {
  content: "✓ ";
  color: var(--brand);
  font-weight: 700;
}
.landing-preview { padding: 0 0 48px; }
.landing-preview .preview-card { max-width: 720px; margin: 0 auto; }
.landing-preview-body { padding: 20px 22px 16px; }
.lp-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.lp-meta span { display: block; font-size: 12px; color: var(--ink-3); }
.lp-meta strong { font-size: 15px; }
.lp-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
}
.lp-row b { width: 20px; color: var(--brand); font-weight: 800; }
.lp-row span { flex: 1; min-width: 0; }
.lp-row em { font-style: normal; font-size: 12px; color: var(--ink-3); flex-shrink: 0; }
.lp-note { text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 14px; }
.landing-h2 {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 28px;
}
.landing-steps { padding: 24px 0 16px; }
.step-row {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step-row li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.step-n {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  background: var(--brand-light);
  color: var(--brand-dark);
  border-radius: 8px;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 10px;
}
.step-row h3 { font-size: 16px; margin-bottom: 6px; }
.step-row p { font-size: 14px; color: var(--ink-2); }
.landing-bottom-cta {
  padding: 56px 0 72px;
  text-align: center;
}
.landing-bottom-cta h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 20px;
}
.landing-bottom-cta p {
  color: var(--ink-2);
  margin-bottom: 20px;
}

/* ========== Landing A · workbench loop ========== */
.stage-wrap { padding: 8px 0 56px; }
.stage {
  background: #F4F6F8;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 920px;
  margin: 0 auto;
}
.stage-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 12px 0 14px;
  background: #fff;
  border-bottom: 1px solid #E4EAF0;
}
.stage-bar .logo { font-size: 14px; pointer-events: none; }
.stage-bar .logo-mark { width: 26px; height: 26px; }
.stage-tabs { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; }
.stage-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 11px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  background: none;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
.stage-tab svg { width: 15px; height: 15px; }
.stage-tab:hover { color: var(--ink); background: var(--line-soft); }
.stage-tab.is-on { background: #163A5C; color: #fff; }
.stage-user {
  margin-left: auto;
  font-size: 12px;
  color: var(--brand-dark);
  background: #F7FBFF;
  border: 1px solid #D7E6F8;
  border-radius: 8px;
  padding: 4px 10px;
  font-weight: 600;
}
.stage-body { padding: 22px 24px 20px; min-height: 320px; }
.stage-panel { display: none; }
.stage-panel.is-on { display: block; }
.stage-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.stage-head h3 { font-size: 20px; font-weight: 750; letter-spacing: -.02em; }
.stage-head p { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.stage-date {
  display: flex; align-items: center; gap: 4px;
  background: #fff; border: 1px solid #E4EAF0; border-radius: 10px; padding: 4px;
  height: fit-content; font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.stage-date span { padding: 6px 12px; }
.plat { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.plat b {
  font-size: 12px; font-weight: 600; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px;
}
.plat b.on { background: #163A5C; color: #fff; border-color: #163A5C; }
.rank-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 16px;
}
.rank-card .lp-row:first-child { border-top: 0; }
.rank-card .lp-row em {
  background: var(--brand-light);
  color: var(--brand-dark);
  border-radius: 4px;
  padding: 2px 8px;
}
.split-grid { display: grid; grid-template-columns: 1.4fr .9fr; gap: 16px; }
.split-box, .builder-box, .kb-item, .combo-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
}
.split-tabs { display: flex; gap: 16px; font-size: 13px; color: var(--ink-3); margin-bottom: 12px; }
.split-tabs span.on { color: var(--ink); font-weight: 700; border-bottom: 2px solid var(--brand); padding-bottom: 6px; }
.split-k { font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
.split-box h4 { font-size: 15px; margin: 10px 0 6px; }
.split-box p, .builder-box p, .combo-card p { font-size: 13px; color: var(--ink-2); line-height: 1.65; }
.builder-box h4 { font-size: 13px; margin-bottom: 10px; }
.builder-box dl { display: grid; gap: 8px; font-size: 13px; }
.builder-box dt { color: var(--ink-3); font-size: 11px; }
.combo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.combo-card small { display: block; font-size: 11px; color: #0B7C66; font-weight: 700; margin-bottom: 6px; }
.combo-card h4 { font-size: 15px; margin-bottom: 6px; }
.kb-list { display: grid; gap: 10px; }
.kb-item { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.kb-item h4 { font-size: 14px; }
.kb-item p { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.kb-tag { font-size: 12px; color: var(--brand-dark); background: var(--brand-light); border-radius: 6px; padding: 3px 8px; }
.stage-note { text-align: center; font-size: 12px; color: var(--ink-3); margin-top: 16px; }
.loop { padding: 8px 0 56px; }
.loop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.loop-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 18px 18px;
}
.loop-n {
  font-size: 12px; font-weight: 700; color: var(--brand-dark);
  letter-spacing: .08em; margin-bottom: 8px;
}
.loop-card h3 { font-size: 16px; margin-bottom: 6px; }
.loop-card p { font-size: 13px; color: var(--ink-2); }
.loop-plats {
  display: block;
  margin-top: 8px;
  letter-spacing: .18em;
  font-size: 16px;
  line-height: 1.4;
}
.features-grid.four { grid-template-columns: repeat(4, 1fr); }
.features .feature-icon.is-mark {
  font-size: 13px;
  font-weight: 800;
  color: var(--brand-dark);
}
.xianyu-slot {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.xianyu-qr {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.xianyu-qr img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  display: block;
}
.xianyu-slot .xianyu-copy { font-size: 12px; color: var(--ink-3); margin-top: 8px; line-height: 1.5; }
@media (max-width: 960px) {
  .features-grid.four { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .mkt-nav-links li:has(a:not(.btn)) { display: none; }
  .split-grid, .combo-row, .loop-grid, .features-grid.four { grid-template-columns: 1fr; }
  .stage-head { flex-direction: column; }
  .stage-user { display: none; }
  .xianyu-slot { flex-direction: column; align-items: flex-start; }
}

/* ========== Workbench top bar (layout like 剧拆拆, colors ours) ========== */
.bench-body { background: #F4F6F8; }
.bench-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 16px 0 14px;
  background: var(--white);
  border-bottom: 1px solid #E4EAF0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.bench-bar .logo { font-size: 15px; }
.bench-bar .logo-mark,
.bench-bar img.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  box-shadow: none;
}
.bench-tabs {
  display: none;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
}
.bench-body.is-member .bench-tabs { display: flex; }
.bench-body:not([data-page="ranking"]):not(.is-member) .bench-main {
  visibility: hidden;
}
.bench-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}
.bench-tab svg { width: 16px; height: 16px; flex-shrink: 0; }
.bench-tab:hover { color: var(--ink); background: var(--line-soft); }
.bench-tab.active {
  background: #163A5C;
  color: #fff;
}
.bench-tab.active:hover { color: #fff; background: #163A5C; }
.bench-tab.is-soon { color: var(--ink-3); font-weight: 500; }
.bench-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.bench-icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--ink-2);
}
.bench-icon-btn svg { width: 18px; height: 18px; }
.bench-icon-btn:hover { background: var(--line-soft); color: var(--ink); }
.bench-user .plan {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #D7E6F8;
  background: #F7FBFF;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 600;
}
.bench-user .plan.is-off {
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font-weight: 500;
}
.bench-lock {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
}
.bench-lock:hover { background: var(--line-soft); color: var(--ink); }
.bench-user .user-avatar {
  width: 32px;
  height: 32px;
  font-size: 13px;
}
.bench-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 40px 72px;
}
.bench-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.bench-heading h1 {
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0;
}
.bench-heading p {
  color: var(--ink-2);
  font-size: 14px;
  margin-top: 6px;
  line-height: 1.5;
}
.bench-market {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-2);
}
.bench-market b { color: var(--ink); font-weight: 700; }
.date-group {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding: 4px;
  background: var(--white);
  border: 1px solid #E4EAF0;
  border-radius: 10px;
}
.date-nav {
  height: 34px;
  padding: 0 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.date-nav:hover { background: var(--line-soft); color: var(--ink); }
.date-nav.disabled,
.date-nav:disabled { color: var(--ink-3); pointer-events: none; }
.date-now-wrap { position: relative; }
.date-now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 148px;
  height: 34px;
  padding: 0 12px 0 14px;
  border-radius: 7px;
  background: #163A5C;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
.date-now:hover,
.date-now[aria-expanded="true"] { background: #1d4a73; }
.date-now-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(255,255,255,.85);
  margin-top: 1px;
}
.date-now[aria-expanded="true"] .date-now-caret {
  border-top: 0;
  border-bottom: 5px solid rgba(255,255,255,.85);
}
.date-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 100%;
  background: var(--white);
  border: 1px solid #E4EAF0;
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 6px;
  z-index: 90;
  max-height: 280px;
  overflow-y: auto;
}
.date-menu-item {
  display: block;
  width: 100%;
  text-align: center;
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}
.date-menu-item:hover { background: var(--line-soft); color: var(--ink); }
.date-menu-item.is-on {
  background: #163A5C;
  color: #fff;
}
.bench-empty {
  text-align: center;
  padding: 64px 16px 40px;
  max-width: 480px;
  margin: 0 auto;
}
.bench-empty-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  color: var(--ink-3);
}
.bench-empty-icon svg { width: 48px; height: 48px; }
.bench-empty h2 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.bench-redeem {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin: 20px auto 8px;
}
.bench-redeem .form-input { flex: 1; }
.bench-body .btn { border-radius: 8px; }

@media (max-width: 900px) {
  .hero h1 { font-size: 32px; }
  .step-row { grid-template-columns: 1fr; }
  .lp-meta { grid-template-columns: 1fr; }
  .bench-bar {
    height: auto;
    min-height: 56px;
    flex-wrap: wrap;
    padding: 10px 16px;
  }
  .bench-tabs { width: 100%; order: 3; }
  .bench-main { padding: 20px 16px 56px; }
  .bench-heading { flex-direction: column; }
  .bench-user .chip-extra { display: none; }
  .bench-redeem { flex-direction: column; }
}

/* ========== Split / analysis V1 ========== */
.split-main { max-width: 760px; }
.split-hero {
  text-align: center;
  margin: 24px 0 20px;
}
.split-hero .logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 12px;
}
.split-hero h1 {
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.split-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.split-card .form-input { margin-bottom: 10px; }
.split-card .form-textarea { min-height: 220px; margin-bottom: 12px; }
.split-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.analyze-left {
  font-weight: 600;
  opacity: .88;
}
.ai-soon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ai-soon-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}
.split-recent { margin-top: 36px; }
.split-recent h2 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}
a.kb-card { color: inherit; display: flex; }
.split-loading {
  position: fixed;
  inset: 0;
  background: rgba(243,248,255,.94);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
}
.split-loading-inner {
  width: 288px;
  max-width: calc(100vw - 48px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  color: var(--ink-2);
}
.split-wait-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
  text-align: center;
}
.split-wait-copy {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.7;
  margin: 0;
  text-align: center;
}
.split-loading.is-wait .split-loading-inner { width: 320px; }
.split-loading.is-wait .snake-root { display: none; }
.snake-root {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.snake-hud {
  width: 100%;
  font-size: 13px;
  font-weight: 650;
  color: var(--brand-dark);
  margin-bottom: 8px;
  line-height: 1.45;
  text-align: center;
}
.snake-board {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 288 / 216;
  background: var(--brand-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  cursor: pointer;
}
.snake-board:focus { box-shadow: 0 0 0 3px var(--brand-light); }
.split-loading-inner .snake-close {
  margin: 16px auto 0;
  align-self: center;
}
.guide-list {
  padding-left: 18px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.7;
}
.guide-list b { color: var(--ink); }

.bench-body .analysis-top { top: 56px; }
.rw-banner {
  display: inline-block;
  background: var(--brand-light);
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 12px;
}
.rw-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 12px;
}
.rw-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 8px;
}
.rw-kv {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 4px;
}
.rw-kv b {
  color: var(--ink-2);
  font-weight: 650;
  margin-right: 6px;
}
.rw-prose {
  white-space: pre-wrap;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}

.az-section { margin-bottom: 32px; }
.az-section-head { margin-bottom: 14px; }
.az-section-head h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.az-section-head h2::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--brand);
  flex-shrink: 0;
}
.az-section-head p {
  margin: 4px 0 0 15px;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.5;
}
.az-split {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(200px, 0.9fr);
  gap: 12px;
  margin-bottom: 12px;
}
.az-hero {
  background: var(--brand-soft);
  border: 1px solid var(--brand-light);
  border-radius: 16px;
  padding: 20px 22px;
}
.az-hero .k {
  font-size: 12px;
  font-weight: 650;
  color: var(--brand-dark);
  margin-bottom: 8px;
}
.az-hero .t {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  font-weight: 500;
}
.az-facts {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
}
.az-fact {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
}
.az-fact:nth-child(odd) { border-right: 1px solid var(--line-soft); }
.az-fact-wide {
  grid-column: 1 / -1;
  border-right: none;
}
.az-fact .k {
  font-size: 11px;
  color: var(--ink-3);
  margin-bottom: 6px;
  font-weight: 500;
}
.az-fact .v {
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.55;
}
.az-fact-text { font-weight: 500; font-size: 13px; color: var(--ink-2); }
.az-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.az-pill {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 650;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-light);
  color: var(--brand-dark);
}
.az-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.az-tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
}
.az-tile .k {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.az-tile .t {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-2);
  white-space: pre-wrap;
}
.az-char .role {
  font-size: 11px;
  font-weight: 650;
  color: var(--brand-dark);
  margin-bottom: 4px;
}
.az-char .who {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.45;
}
.az-dl {
  display: grid;
  gap: 8px;
}
.az-dl > div b {
  display: block;
  font-size: 11px;
  font-weight: 650;
  color: var(--ink-3);
  margin-bottom: 2px;
}
.az-dl > div {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
}
.az-chapter {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 10px;
}
.az-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.az-chapter-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.az-chapter-head h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.az-emo {
  font-size: 12px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 2px 10px;
  font-weight: 650;
}
.az-lead {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 10px;
}
.az-quote {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
  border-left: 3px solid var(--brand);
  padding: 4px 0 4px 12px;
  margin: 10px 0 0;
}
.az-take {
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--brand-soft);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink);
}
.az-take b {
  display: block;
  font-size: 11px;
  font-weight: 650;
  color: var(--brand-dark);
  margin-bottom: 4px;
}
.az-tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.char-card { margin-bottom: 12px; }
.export-wrap { position: relative; }
.export-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  min-width: 150px;
  z-index: 80;
  padding: 6px;
}
.export-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink);
}
.export-menu button:hover { background: var(--bg); }

.bench-body .imitate-layout {
  min-height: calc(100vh - 56px);
  height: calc(100vh - 56px);
}
.bench-body .imitate-left,
.bench-body .imitate-right { height: calc(100vh - 56px); }
.imitate-field-card {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}
.imitate-field-card .k {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 6px;
}
.imitate-field-card textarea,
.imitate-field-card input {
  width: 100%;
  border: none;
  background: transparent;
  resize: vertical;
  color: var(--ink);
}
.imitate-field-card textarea:focus,
.imitate-field-card input:focus { outline: none; }

@media (max-width: 900px) {
  .split-card-foot { flex-direction: column; align-items: stretch; }
  .bench-body .imitate-layout {
    display: block;
    height: auto;
    min-height: 0;
  }
  .bench-body .imitate-left,
  .bench-body .imitate-right {
    height: auto;
    position: static;
  }
}
