/* ═══════════════════════════════════════════
   SBTI Test — Global Styles
   ═══════════════════════════════════════════ */
:root {
  --bg: #f5f7fa;
  --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #e8edf5 50%, #f0f2f5 100%);
  --panel: #ffffff;
  --text: #1a1d21;
  --text-secondary: #5a6270;
  --muted: #8a92a1;
  --line: #e2e6ed;
  --soft: #f0f3f8;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-light: #eef2ff;
  --accent-rgb: 99, 102, 241;
  --success: #10b981;
  --warning: #f59e0b;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1100px;
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--bg);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }
button { border: 0; cursor: pointer; font: inherit; transition: all var(--transition); }
button:hover { transform: translateY(-1px); }
button:active { transform: translateY(0); }
button:disabled { cursor: not-allowed; opacity: 0.5; transform: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ── Buttons ───────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-sm); font-weight: 600;
  font-size: 15px; line-height: 1.4; white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.3);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.4);
  color: #fff;
}
.btn-secondary {
  background: var(--panel); color: var(--text);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 16px 36px; font-size: 17px; border-radius: var(--radius); }
.btn-sm { padding: 10px 18px; font-size: 13px; }

/* ── Header / Navigation ───────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
}
.header-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.header-actions {
  display: none;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.logo {
  font-size: 20px; font-weight: 800; color: var(--text);
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.logo-text { display: flex; align-items: center; gap: 4px; }
.logo span { color: var(--accent); }
.nav-links {
  display: flex; align-items: center; gap: 6px;
  list-style: none;
}
.nav-links a {
  padding: 8px 14px; border-radius: var(--radius-xs); color: var(--text-secondary);
  font-size: 14px; font-weight: 500; transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--accent); background: var(--accent-light);
}
.lang-switcher {
  position: relative; margin-left: 8px;
}
.lang-switcher-mobile {
  display: none;
  margin-left: 0;
}
.lang-switcher-desktop {
  display: block;
}
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius-xs);
  background: var(--accent-light); color: var(--accent);
  font-size: 14px; font-weight: 600; cursor: pointer;
  border: 1.5px solid rgba(var(--accent-rgb), 0.2);
  box-shadow: var(--shadow-sm);
}
.lang-btn:hover { 
  border-color: var(--accent); 
  background: var(--panel);
  box-shadow: var(--shadow);
}
.lang-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  min-width: 150px; padding: 8px; z-index: 200;
  animation: dropdown-fade-in 0.2s ease-out;
}
@keyframes dropdown-fade-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.lang-dropdown.open { display: block; }
.lang-dropdown a {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: var(--radius-xs);
  color: var(--text); font-size: 14px;
  border-left: 2px solid transparent;
  transition: all var(--transition);
}
.lang-dropdown a:hover { 
  background: var(--accent-light); 
  color: var(--accent); 
  border-left-color: var(--accent);
  padding-left: 16px;
}
.lang-dropdown a.current { 
  color: var(--accent); 
  font-weight: 600;
  background: var(--accent-light);
  border-left-color: var(--accent);
}
.lang-dropdown a + a {
  margin-top: 4px;
}

/* Mobile menu */
.menu-toggle {
  display: none; padding: 10px 12px; 
  background: var(--accent-light);
  color: var(--accent); font-size: 20px; line-height: 1;
  border-radius: var(--radius-xs);
  border: 1.5px solid rgba(var(--accent-rgb), 0.2);
  margin-left: 0;
}
.menu-toggle:hover {
  background: var(--panel);
  border-color: var(--accent);
}
@media (max-width: 768px) {
  .header-actions { display: flex; }
  .lang-switcher-mobile { display: block; }
  .lang-switcher-desktop { display: none !important; }
  .menu-toggle { display: block; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--panel); border-bottom: 1px solid var(--line);
    padding: 16px; box-shadow: var(--shadow-lg);
    gap: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav-links.open li { width: 100%; }
  .nav-links.open > li:not(.lang-switcher) a { 
    padding: 14px 16px; 
    border-radius: var(--radius-xs);
    display: block;
    border-left: 3px solid transparent;
    margin-bottom: 6px;
    font-size: 15px;
  }
  .nav-links.open > li:not(.lang-switcher) a:hover,
  .nav-links.open > li:not(.lang-switcher) a.active {
    border-left-color: var(--accent);
    padding-left: 20px;
  }
  .nav-links.open .lang-switcher {
    margin-left: 0;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }
  .nav-links.open .lang-btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 15px;
  }
  .nav-links.open .lang-dropdown {
    position: static;
    margin-top: 8px;
    box-shadow: none;
    border: none;
    padding: 0;
    background: transparent;
  }
  .nav-links.open .lang-dropdown.open {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .nav-links.open .lang-dropdown a {
    background: var(--soft);
    border: 1px solid var(--line);
    padding: 12px 16px;
    margin-bottom: 0;
  }
}

/* ── Hero Section ──────────────────────── */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--accent-light); color: var(--accent);
  font-size: 13px; font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 800px; margin: 0 auto;
}
.hero-subtitle {
  margin-top: 20px; color: var(--text-secondary);
  font-size: 17px; line-height: 1.8;
  max-width: 680px; margin-left: auto; margin-right: auto;
}
.hero-actions {
  display: flex; gap: 12px; justify-content: center;
  flex-wrap: wrap; margin-top: 36px;
}
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  max-width: 700px; margin: 48px auto 0;
  padding: 24px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.hero-stat {
  text-align: center; padding: 8px;
}
.hero-stat-value {
  font-size: 28px; font-weight: 800; color: var(--accent);
  line-height: 1.2;
}
.hero-stat-label {
  font-size: 13px; color: var(--muted); margin-top: 4px;
}
@media (max-width: 600px) {
  .hero { padding: 48px 0 36px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ── Section Base ──────────────────────── */
.section {
  padding: 80px 0;
}
.section-header {
  text-align: center; margin-bottom: 48px;
}
.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800; letter-spacing: -0.02em;
}
.section-header p {
  margin-top: 12px; color: var(--text-secondary);
  font-size: 16px; max-width: 600px; margin-left: auto; margin-right: auto;
}

/* ── Card Grid ─────────────────────────── */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  transition: all var(--transition);
}
.card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(var(--accent-rgb), 0.2);
}

.card-grid {
  display: grid; gap: 20px;
}
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .card-grid-3, .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .card-grid-2, .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }
}

/* ── Why Viral Cards ───────────────────── */
.reason-card { padding: 28px; }
.reason-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 16px;
}
.reason-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.reason-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.7; }

/* ── Comparison Table ──────────────────── */
.comparison {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  max-width: 900px; margin: 0 auto;
}
.comparison-col {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.comparison-col.highlight {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow);
}
.comparison-col h3 {
  font-size: 18px; font-weight: 700; margin-bottom: 20px;
  padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.comparison-col.highlight h3 { color: var(--accent); }
.comparison-list {
  list-style: none; display: grid; gap: 12px;
}
.comparison-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; line-height: 1.6; color: var(--text-secondary);
}
.comparison-list li::before {
  content: '✓'; color: var(--success);
  font-weight: 700; flex-shrink: 0;
}
@media (max-width: 600px) {
  .comparison { grid-template-columns: 1fr; }
}

/* ── Models Section ────────────────────── */
.model-card { padding: 28px; }
.model-icon {
  font-size: 32px; margin-bottom: 12px;
}
.model-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.model-dims { display: grid; gap: 10px; }
.model-dim {
  padding: 12px; background: var(--soft); border-radius: var(--radius-sm);
}
.model-dim-name { font-size: 13px; font-weight: 700; color: var(--accent); }
.model-dim-desc { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }

/* ── Types Grid ────────────────────────── */
.type-card {
  padding: 20px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  text-decoration: none; color: inherit;
}
.type-card:hover { color: inherit; }
.type-card-image {
  width: 80px; height: 80px; border-radius: 50%;
  object-fit: cover; margin-bottom: 12px;
  border: 2px solid var(--line);
  background: var(--soft);
}
.type-card-code {
  font-size: 16px; font-weight: 800; color: var(--accent);
}
.type-card-cn {
  font-size: 13px; color: var(--muted); margin-top: 2px;
}
.type-card-intro {
  font-size: 12px; color: var(--text-secondary);
  margin-top: 8px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── How-to Steps ──────────────────────── */
.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  max-width: 1000px; margin: 0 auto;
}
.step-card { text-align: center; padding: 28px 20px; }
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; margin: 0 auto 16px;
}
.step-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }
@media (max-width: 768px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .steps-grid { grid-template-columns: 1fr; }
}

/* ── FAQ Accordion ─────────────────────── */
.faq-list { max-width: 800px; margin: 0 auto; display: grid; gap: 8px; }
.faq-item {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-sm); overflow: hidden;
}
.faq-item summary {
  padding: 18px 24px; cursor: pointer; font-weight: 600; font-size: 15px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 20px; font-weight: 300; color: var(--muted);
  flex-shrink: 0; transition: transform var(--transition);
}
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-answer {
  padding: 0 24px 18px;
  font-size: 14px; line-height: 1.8; color: var(--text-secondary);
}

/* ── CTA Section ───────────────────────── */
.cta-section {
  text-align: center;
  padding: 60px 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  border-radius: var(--radius);
  color: #fff;
  margin: 40px auto;
  max-width: var(--max-width);
}
.cta-section h2 { font-size: clamp(24px, 4vw, 36px); font-weight: 800; }
.cta-section p { margin-top: 12px; opacity: 0.9; font-size: 16px; }
.cta-section .btn {
  margin-top: 28px;
  background: #fff; color: var(--accent);
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}
.cta-section .btn:hover { background: #f0f0f0; color: var(--accent-hover); }

/* ── Footer ────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
  margin-top: 60px;
}
.footer-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 20px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px;
  margin-bottom: 32px;
}
.footer-brand .logo { margin-bottom: 8px; }
.footer-brand p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.footer-col h4 {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--muted); margin-bottom: 12px;
}
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.footer-col a { color: var(--text-secondary); font-size: 14px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted); gap: 16px; flex-wrap: wrap;
}
@media (max-width: 768px) {
  .site-footer {
    padding: 32px 0 24px;
    margin-top: 40px;
  }
  .footer-inner {
    padding: 0 20px;
  }
  .footer-grid { 
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-brand {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
  }
  .footer-brand p {
    font-size: 12px;
  }
  /* 链接列横向排列 */
  .footer-col {
    text-align: center;
  }
  .footer-grid .footer-col:first-of-type {
    grid-column: 1;
    grid-row: 2;
  }
  .footer-grid .footer-col:last-of-type {
    grid-column: 1;
    grid-row: 3;
  }
  .footer-col h4 {
    font-size: 13px;
    margin-bottom: 10px;
  }
  .footer-col ul {
    gap: 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 16px;
  }
  .footer-col li {
    display: inline-block;
  }
  .footer-col a {
    font-size: 13px;
    white-space: nowrap;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding-top: 20px;
  }
}
@media (max-width: 480px) {
  .footer-grid { 
    gap: 20px;
  }
  .footer-col ul {
    gap: 8px 12px;
  }
  .footer-col a {
    font-size: 12px;
  }
}

/* ── Test Page ─────────────────────────── */
.test-page { padding: 24px 0 60px; }
.test-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px; max-width: 800px; margin: 0 auto;
}
.test-topbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.progress-bar {
  flex: 1; min-width: 200px; height: 10px;
  background: var(--soft); border-radius: 999px; overflow: hidden;
}
.progress-bar > span {
  display: block; width: 0; height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  border-radius: inherit; transition: width 0.3s ease;
}
.progress-text { color: var(--muted); font-size: 13px; white-space: nowrap; font-weight: 600; }
.question-list { display: grid; gap: 20px; }
.question-card {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 20px; background: linear-gradient(180deg, #fff, #fafbfc);
}
.question-meta {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-bottom: 10px; color: var(--muted); font-size: 12px;
}
.question-badge {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; padding: 5px 10px;
  background: var(--accent-light); color: var(--accent);
  font-weight: 600; font-size: 12px;
}
.question-title {
  font-size: 15px; line-height: 1.8; white-space: pre-wrap;
}
.options-list { display: grid; gap: 8px; margin-top: 14px; }
.option-label {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: #fff;
  cursor: pointer; transition: all var(--transition);
}
.option-label:hover { border-color: rgba(var(--accent-rgb), 0.3); background: var(--accent-light); }
.option-label input {
  margin-top: 3px; accent-color: var(--accent);
  transform: scale(1.1); flex-shrink: 0;
}
.option-code {
  font-weight: 800; color: var(--accent); min-width: 20px;
}
.test-actions {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap; margin-top: 24px; padding-top: 16px;
  border-top: 1px solid var(--line);
}
.test-hint { color: var(--muted); font-size: 13px; line-height: 1.6; }

/* ── Result Page ───────────────────────── */
.result-page { padding: 24px 0 60px; }
.result-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px; max-width: 900px; margin: 0 auto;
}
.result-layout { display: grid; gap: 24px; }
.result-top {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: 20px; align-items: stretch;
}
.poster-box {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; overflow: hidden; position: relative;
  background: radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.06), transparent 60%),
              linear-gradient(180deg, #fff, #fafbfc);
  display: grid; grid-template-rows: 1fr auto; min-height: 280px;
}
.poster-image {
  width: 100%; min-height: 200px; max-height: 440px;
  object-fit: contain; border-radius: var(--radius-sm);
}
.poster-caption {
  margin-top: 14px; color: var(--text-secondary);
  font-size: 14px; line-height: 1.8;
}
.type-box {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; background: linear-gradient(180deg, #fff, #fafbfc);
}
.type-kicker {
  font-size: 12px; color: var(--accent); margin-bottom: 8px;
  letter-spacing: 0.06em; font-weight: 600; text-transform: uppercase;
}
.type-name {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.03em;
}
.type-subname {
  margin-top: 12px; color: var(--text-secondary);
  font-size: 14px; line-height: 1.8;
}
.match-badge {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; padding: 10px 16px;
  background: var(--accent-light); border: 1px solid rgba(var(--accent-rgb), 0.15);
  color: var(--accent); font-weight: 700; font-size: 14px;
}
.analysis-box, .dim-box, .note-box {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; background: linear-gradient(180deg, #fff, #fafbfc);
}
.analysis-box h3, .dim-box h3, .note-box h3 {
  font-size: 17px; margin-bottom: 14px;
}
.analysis-box p {
  color: var(--text-secondary); font-size: 15px; line-height: 1.9;
  white-space: pre-wrap;
}
.dim-list { display: grid; gap: 10px; }
.dim-item {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px; background: #fff;
}
.dim-item-top {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 10px; margin-bottom: 6px; flex-wrap: wrap;
}
.dim-item-name { font-size: 14px; font-weight: 700; }
.dim-item-score { color: var(--accent); font-weight: 800; font-size: 14px; }
.dim-item p { color: var(--text-secondary); font-size: 13px; line-height: 1.7; }
.note-box p { color: var(--text-secondary); font-size: 13px; line-height: 1.8; }

.author-box {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #fafbfc); overflow: hidden;
}
.author-box summary {
  list-style: none; cursor: pointer; padding: 18px 24px;
  font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.author-box summary::-webkit-details-marker { display: none; }
.author-box summary::after {
  content: attr(data-expand); font-size: 12px; font-weight: 600;
  color: var(--accent); border: 1px solid var(--line);
  background: var(--accent-light); padding: 5px 10px; border-radius: 999px;
}
.author-box[open] summary::after { content: attr(data-collapse); }
.author-content {
  border-top: 1px solid var(--line); padding: 0 24px 20px;
}
.author-content p {
  margin-top: 14px; color: var(--text-secondary);
  font-size: 14px; line-height: 1.9;
}
.result-actions {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap; margin-top: 24px;
}
@media (max-width: 860px) {
  .result-top { grid-template-columns: 1fr; }
}

/* ── Type Detail Page ──────────────────── */
.type-detail-page { padding: 24px 0 60px; }
.type-detail {
  max-width: 800px; margin: 0 auto;
}
.type-detail-hero {
  display: grid; grid-template-columns: 280px 1fr; gap: 32px;
  align-items: center; margin-bottom: 32px;
}
.type-detail-image {
  width: 100%; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.type-detail-info h1 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800; letter-spacing: -0.02em;
}
.type-detail-intro {
  margin-top: 8px; color: var(--text-secondary);
  font-size: 16px; font-style: italic;
}
.type-detail-pattern {
  margin-top: 16px; display: inline-flex; padding: 8px 14px;
  background: var(--accent-light); border-radius: var(--radius-xs);
  color: var(--accent); font-weight: 700; font-size: 14px;
  font-family: monospace;
}
.type-detail-desc {
  margin-top: 32px; font-size: 16px; line-height: 2;
  color: var(--text-secondary); white-space: pre-wrap;
}
.type-detail-cta {
  margin-top: 40px; text-align: center;
  padding: 32px; background: var(--soft); border-radius: var(--radius);
}
.type-detail-cta p { margin-bottom: 16px; font-size: 16px; font-weight: 600; }
@media (max-width: 640px) {
  .type-detail-hero { grid-template-columns: 1fr; text-align: center; }
  .type-detail-image { max-width: 200px; margin: 0 auto; }
}

/* ── About / Legal Pages ───────────────── */
.content-page {
  padding: 48px 0 60px;
}
.content-page .content-card {
  max-width: 800px; margin: 0 auto;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 40px;
}
.content-page h1 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800; margin-bottom: 8px;
}
.content-page .updated {
  color: var(--muted); font-size: 13px; margin-bottom: 32px;
}
.content-page h2 {
  font-size: 20px; font-weight: 700; margin-top: 32px; margin-bottom: 12px;
  padding-top: 24px; border-top: 1px solid var(--line);
}
.content-page h2:first-of-type { border-top: none; padding-top: 0; }
.content-page p {
  color: var(--text-secondary); font-size: 15px; line-height: 1.8;
  margin-bottom: 12px;
}
.content-page ul {
  color: var(--text-secondary); font-size: 15px; line-height: 1.8;
  padding-left: 24px; margin-bottom: 12px;
}
.content-page .disclaimer-box {
  margin-top: 24px; padding: 20px; background: #fff8e1;
  border: 1px solid #ffe082; border-radius: var(--radius-sm);
  font-size: 14px; line-height: 1.8; color: #795548;
}

/* ── Types List Page ───────────────────── */
.types-page { padding: 48px 0 60px; }
.types-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

/* ── Utility ───────────────────────────── */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.hidden { display: none !important; }

/* ── Screen visibility (for test SPA) ──── */
.screen { display: none; }
.screen.active { display: block; }

/* ── Share Toast ───────────────────────── */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--text); color: #fff; padding: 12px 24px;
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg); z-index: 9999;
  opacity: 0; transition: opacity 0.3s ease;
  pointer-events: none;
}
.toast.show { opacity: 1; }
