:root {
    --bg: #14101c;
    --bg-soft: #1d1727;
    --bg-card: #241b30;
    --line: #3a2d4d;
    --text: #f0e9f6;
    --text-soft: #b9a8cc;
    --accent: #e85d8a;
    --accent-2: #8b6cf0;
    --radius: 16px;
    --maxw: 1160px;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--bg);
    color: var(--text);
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  img { display: block; max-width: 100%; }
  a { color: inherit; text-decoration: none; }
  .wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

  /* ---------- header ---------- */
  .site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(20, 16, 28, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  .header-inner {
    display: flex; align-items: center; gap: 24px;
    height: 68px;
  }
  .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: .5px; }
  .brand img { height: 32px; width: auto; border-radius: 8px; }
  .nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
  .nav a { color: var(--text-soft); transition: color .2s; }
  .nav a:hover { color: var(--text); }
  .header-cta {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    color: #fff; font-size: 14px; font-weight: 600;
    padding: 9px 18px; border-radius: 999px;
    white-space: nowrap;
  }
  .header-cta .tag {
    font-size: 11px; font-weight: 500;
    background: rgba(255,255,255,.22);
    padding: 1px 7px; border-radius: 999px;
  }
  .menu-toggle {
    display: none; margin-left: auto;
    width: 42px; height: 42px; border-radius: 10px;
    background: var(--bg-card); border: 1px solid var(--line);
    color: var(--text); font-size: 20px; cursor: pointer;
  }

  /* ---------- hero ---------- */
  .hero {
    position: relative;
    padding: 64px 0 56px;
    background:
      radial-gradient(circle at 85% 12%, rgba(232,93,138,.22), transparent 55%),
      radial-gradient(circle at 10% 85%, rgba(139,108,240,.18), transparent 50%);
  }
  .hero-grid {
    display: grid; grid-template-columns: 1.05fr .95fr;
    gap: 48px; align-items: center;
  }
  .hero-kicker {
    display: inline-block; font-size: 13px; letter-spacing: 2px;
    color: var(--accent); border: 1px solid rgba(232,93,138,.4);
    padding: 4px 12px; border-radius: 999px; margin-bottom: 20px;
  }
  .hero h1 {
    font-size: 42px; line-height: 1.28; font-weight: 800;
    letter-spacing: .5px; margin-bottom: 18px;
  }
  .hero h1 em { font-style: normal; color: var(--accent); }
  .hero-lead { color: var(--text-soft); font-size: 16px; max-width: 520px; margin-bottom: 28px; }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
  .btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 13px 26px; border-radius: 999px; font-size: 15px; font-weight: 600;
    transition: transform .2s, box-shadow .2s;
  }
  .btn:hover { transform: translateY(-2px); }
  .btn-primary {
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    color: #fff; box-shadow: 0 8px 26px rgba(232,93,138,.32);
  }
  .btn-ghost {
    border: 1px solid var(--line); color: var(--text);
    background: rgba(255,255,255,.03);
  }
  .hero-note { font-size: 13px; color: var(--text-soft); }
  .hero-visual {
    position: relative; border-radius: 24px; overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 24px 60px rgba(0,0,0,.45);
  }
  .hero-visual img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

  /* ---------- section common ---------- */
  section { padding: 72px 0; }
  .section-head { max-width: 680px; margin-bottom: 40px; }
  .section-head h2 { font-size: 30px; font-weight: 800; margin-bottom: 12px; letter-spacing: .5px; }
  .section-head p { color: var(--text-soft); font-size: 15px; }
  .eyebrow { font-size: 13px; color: var(--accent-2); letter-spacing: 2px; margin-bottom: 8px; display: block; }

  /* ---------- 场景选择 ---------- */
  .scene-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .scene-card {
    background: var(--bg-card); border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden;
    transition: transform .25s, border-color .25s;
  }
  .scene-card:hover { transform: translateY(-4px); border-color: var(--accent); }
  .scene-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
  .scene-body { padding: 20px 20px 24px; }
  .scene-body h3 { font-size: 18px; margin-bottom: 8px; }
  .scene-body p { font-size: 14px; color: var(--text-soft); }

  /* ---------- 功能与角色设定 ---------- */
  .feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
  .role-card {
    background: linear-gradient(160deg, #2a1f38, #1b1526);
    border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
    display: flex; flex-direction: column;
  }
  .role-card img { width: 100%; aspect-ratio: 16/11; object-fit: cover; }
  .role-body { padding: 24px; }
  .role-body h3 { font-size: 20px; margin-bottom: 10px; }
  .role-body p { font-size: 14px; color: var(--text-soft); margin-bottom: 16px; }
  .role-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .role-fields div {
    background: rgba(255,255,255,.04); border: 1px solid var(--line);
    border-radius: 10px; padding: 10px 12px; font-size: 13px;
  }
  .role-fields span { display: block; color: var(--accent); font-size: 11px; letter-spacing: 1px; margin-bottom: 2px; }

  .feature-list { display: flex; flex-direction: column; gap: 18px; }
  .feature-item {
    display: flex; gap: 18px; align-items: flex-start;
    background: var(--bg-soft); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 20px;
  }
  .feature-item img {
    width: 86px; height: 86px; border-radius: 12px; object-fit: cover; flex-shrink: 0;
  }
  .feature-item h3 { font-size: 17px; margin-bottom: 6px; }
  .feature-item p { font-size: 14px; color: var(--text-soft); }

  /* ---------- 开场工具 ---------- */
  .tool {
    background: var(--bg-soft);
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  }
  .tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
  .tool-panel {
    background: var(--bg-card); border: 1px solid var(--line);
    border-radius: 20px; padding: 26px;
  }
  .tool-panel h3 { font-size: 18px; margin-bottom: 18px; }
  .field { margin-bottom: 16px; }
  .field label { display: block; font-size: 13px; color: var(--text-soft); margin-bottom: 6px; }
  .field input[type="text"], .field select {
    width: 100%; padding: 11px 14px; border-radius: 10px;
    background: #1a1324; border: 1px solid var(--line);
    color: var(--text); font-size: 14px; outline: none;
    font-family: inherit;
  }
  .field input[type="text"]:focus, .field select:focus { border-color: var(--accent-2); }
  .field select option { background: #1a1324; }
  .tool-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
  .btn-sm { flex: 1; min-width: 110px; padding: 10px 18px; font-size: 14px; }
  .output-area {
    width: 100%; min-height: 190px; padding: 16px;
    background: #1a1324; border: 1px solid var(--line);
    border-radius: 12px; color: var(--text); font-size: 14px; line-height: 1.8;
    resize: vertical; outline: none; font-family: inherit;
  }
  .output-area:focus { border-color: var(--accent-2); }
  .tool-hint { font-size: 12px; color: var(--text-soft); margin-top: 12px; }

  /* ---------- 话题封面 ---------- */
  .topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .topic-card {
    background: var(--bg-card); border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden;
    transition: transform .25s, border-color .25s;
  }
  .topic-card:hover { transform: translateY(-4px); border-color: var(--accent); }
  .topic-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
  .topic-body { padding: 14px 16px 16px; }
  .topic-cat { font-size: 11px; color: var(--accent); letter-spacing: 1px; }
  .topic-body h3 { font-size: 15px; margin: 4px 0 8px; line-height: 1.4; }
  .topic-body button {
    background: none; border: none; color: var(--accent-2);
    font-size: 12px; cursor: pointer; padding: 0; font-family: inherit;
  }
  .topic-body button:hover { text-decoration: underline; }

  /* ---------- 学习路线 ---------- */
  .roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .roadmap-item {
    background: var(--bg-soft); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 26px 22px;
    position: relative;
  }
  .roadmap-num {
    font-size: 26px; font-weight: 800; color: var(--accent);
    opacity: .8; margin-bottom: 10px;
  }
  .roadmap-item h3 { font-size: 17px; margin-bottom: 8px; }
  .roadmap-item p { font-size: 14px; color: var(--text-soft); }

  /* ---------- 续聊示范 ---------- */
  .demo-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: center; }
  .demo-img { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
  .demo-img img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
  .demo-steps { list-style: none; display: flex; flex-direction: column; gap: 20px; }
  .demo-steps li {
    display: flex; gap: 16px; background: var(--bg-card);
    border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px;
  }
  .demo-steps .step-no {
    flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    color: #fff; font-size: 14px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
  }
  .demo-steps h3 { font-size: 16px; margin-bottom: 4px; }
  .demo-steps p { font-size: 14px; color: var(--text-soft); }

  /* ---------- 纠偏 ---------- */
  .fix-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; }
  .fix-img { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
  .fix-img img { width: 100%; aspect-ratio: 16/11; object-fit: cover; }
  .fix-list { display: flex; flex-direction: column; gap: 16px; }
  .fix-item {
    background: var(--bg-soft); border-left: 3px solid var(--accent);
    border-radius: 0 12px 12px 0; padding: 16px 18px;
  }
  .fix-item h3 { font-size: 15px; margin-bottom: 6px; }
  .fix-item p { font-size: 14px; color: var(--text-soft); }

  /* ---------- 长图墙 ---------- */
  .gallery {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
  }
  .gallery img {
    width: 100%; aspect-ratio: 3/4; object-fit: cover;
    border-radius: 12px; border: 1px solid var(--line);
    transition: transform .3s;
  }
  .gallery img:hover { transform: scale(1.04); }

  /* ---------- FAQ ---------- */
  .faq-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 36px; }
  .faq details {
    background: var(--bg-card); border: 1px solid var(--line);
    border-radius: 12px; padding: 16px 20px; margin-bottom: 12px;
  }
  .faq details summary {
    cursor: pointer; font-size: 15px; font-weight: 600; list-style: none;
    display: flex; justify-content: space-between; align-items: center;
  }
  .faq details summary::-webkit-details-marker { display: none; }
  .faq details summary::after { content: "+"; color: var(--accent); font-size: 18px; }
  .faq details[open] summary::after { content: "−"; }
  .faq details p { font-size: 14px; color: var(--text-soft); margin-top: 10px; }
  .faq-side {
    background: var(--bg-soft); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 24px; align-self: start;
  }
  .faq-side h3 { font-size: 16px; margin-bottom: 10px; }
  .faq-side p { font-size: 14px; color: var(--text-soft); }

  /* ---------- 收尾 ---------- */
  .finale {
    background:
      radial-gradient(circle at 20% 20%, rgba(139,108,240,.25), transparent 50%),
      radial-gradient(circle at 80% 80%, rgba(232,93,138,.22), transparent 50%),
      var(--bg-soft);
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  }
  .finale-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; }
  .finale-img { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
  .finale-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
  .finale h2 { font-size: 30px; margin-bottom: 14px; }
  .finale p { color: var(--text-soft); font-size: 15px; margin-bottom: 24px; }
  .finale-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
  .finale-note { font-size: 12px; color: var(--text-soft); margin-top: 16px; }

  /* ---------- footer ---------- */
  .site-footer {
    padding: 44px 0 30px; font-size: 13px; color: var(--text-soft);
    border-top: 1px solid var(--line);
  }
  .footer-top { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; margin-bottom: 28px; }
  .footer-brand { max-width: 320px; }
  .footer-brand .brand { margin-bottom: 12px; font-size: 16px; }
  .footer-brand p { font-size: 13px; line-height: 1.7; }
  .footer-links { display: flex; flex-wrap: wrap; gap: 40px; }
  .footer-col h4 { font-size: 13px; color: var(--text); margin-bottom: 10px; }
  .footer-col a { display: block; color: var(--text-soft); margin-bottom: 8px; font-size: 13px; }
  .footer-col a:hover { color: var(--accent); }
  .footer-bottom {
    border-top: 1px solid var(--line); padding-top: 18px;
    display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
    font-size: 12px; color: #7d6f92;
  }
  .footer-bottom a { color: #7d6f92; }
  .footer-bottom a:hover { color: var(--text-soft); }

  /* ---------- responsive ---------- */
  @media (max-width: 1024px) {
    .hero-grid { gap: 32px; }
    .hero h1 { font-size: 34px; }
    .topic-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery { grid-template-columns: repeat(4, 1fr); }
    .feature-split { grid-template-columns: 1fr; }
    .scene-grid { gap: 16px; }
  }
  @media (max-width: 768px) {
    .header-inner { height: 60px; gap: 12px; }
    .nav {
      display: none; position: absolute; top: 60px; left: 0; right: 0;
      flex-direction: column; gap: 0;
      background: #1a1324; border-bottom: 1px solid var(--line);
      padding: 8px 20px 16px;
    }
    .nav.open { display: flex; }
    .nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
    .header-cta { padding: 8px 14px; font-size: 13px; }
    .header-cta .tag { display: none; }
    .menu-toggle { display: block; margin-left: 0; }

    .hero { padding: 40px 0 36px; }
    .hero-grid { grid-template-columns: 1fr; gap: 28px; }
    .hero h1 { font-size: 28px; }
    .hero-lead { font-size: 15px; }
    .hero-visual { order: -1; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .btn { width: 100%; }

    section { padding: 48px 0; }
    .section-head { margin-bottom: 28px; }
    .section-head h2 { font-size: 24px; }

    .scene-grid { grid-template-columns: 1fr; }
    .scene-card { display: flex; }
    .scene-card img { width: 40%; aspect-ratio: 1/1; }
    .scene-body { padding: 16px; }

    .role-fields { grid-template-columns: 1fr; }
    .feature-item { flex-direction: column; }
    .feature-item img { width: 100%; height: 140px; }

    .tool-grid { grid-template-columns: 1fr; gap: 20px; }
    .tool-panel { padding: 20px; }

    .topic-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .roadmap { grid-template-columns: 1fr; }
    .demo-grid, .fix-grid, .finale-grid { grid-template-columns: 1fr; gap: 24px; }
    .demo-img img { aspect-ratio: 16/10; }
    .gallery { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .faq-grid { grid-template-columns: 1fr; gap: 24px; }
    .finale h2 { font-size: 24px; }
    .footer-top { flex-direction: column; gap: 28px; }
    .footer-links { gap: 28px; }
  }
  @media (max-width: 480px) {
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .topic-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 25px; }
  }