:root {
    --bg: #120e1a;
    --bg-soft: #1b1426;
    --card: #221a30;
    --line: #362a49;
    --text: #f3eef8;
    --muted: #b5a7c7;
    --accent: #d67ab0;
    --accent-2: #8f6fd8;
  }
  * { 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", sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
  }
  img { display: block; max-width: 100%; }
  a { color: inherit; text-decoration: none; }
  .wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

  /* header */
  .site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(18, 14, 26, .88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  .nav-bar { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
  .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-links { display: flex; align-items: center; gap: 22px; font-size: 15px; color: var(--muted); }
  .nav-links a:hover { color: var(--text); }
  .nav-cta {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff !important; padding: 8px 18px; border-radius: 999px;
    font-size: 14px; white-space: nowrap;
  }
  .nav-toggle {
    display: none; background: none; border: 1px solid var(--line); color: var(--text);
    border-radius: 8px; padding: 6px 12px; font-size: 15px; cursor: pointer;
  }

  /* hero */
  .hero { padding: 56px 0 64px; background: radial-gradient(900px 420px at 78% 10%, rgba(143,111,216,.22), transparent 65%); }
  .hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
  .hero h1 { font-size: 40px; line-height: 1.3; letter-spacing: 1px; margin-bottom: 18px; }
  .hero h1 span { color: var(--accent); }
  .hero p.lead { color: var(--muted); font-size: 16px; margin-bottom: 26px; max-width: 480px; }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
  .btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 26px; border-radius: 999px; font-size: 15px; font-weight: 600;
    transition: transform .18s ease, box-shadow .18s ease;
  }
  .btn:hover { transform: translateY(-2px); }
  .btn-main { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 8px 22px rgba(190,110,175,.28); }
  .btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
  .hero-note { font-size: 13px; color: var(--muted); }
  .hero-visual { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
  .hero-visual img { width: 100%; height: 380px; object-fit: cover; }

  section { padding: 60px 0; }
  .sec-head { margin-bottom: 32px; }
  .sec-head h2 { font-size: 27px; letter-spacing: .5px; margin-bottom: 10px; }
  .sec-head p { color: var(--muted); font-size: 15px; max-width: 660px; }
  .kicker { display: inline-block; font-size: 12px; letter-spacing: 2px; color: var(--accent); margin-bottom: 8px; }

  /* scenes */
  .scene-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .scene-card {
    background: var(--card); border: 1px solid var(--line); border-radius: 16px;
    overflow: hidden; transition: border-color .18s ease, transform .18s ease;
  }
  .scene-card:hover { border-color: var(--accent); transform: translateY(-3px); }
  .scene-card img { width: 100%; height: 150px; object-fit: cover; }
  .scene-body { padding: 14px 16px 18px; }
  .scene-body h3 { font-size: 17px; margin-bottom: 6px; }
  .scene-body p { font-size: 13.5px; color: var(--muted); }

  /* purpose */
  .purpose { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .purpose-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
  .tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
  .tag { font-size: 13px; color: var(--muted); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; }
  .purpose-img { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
  .purpose-img img { width: 100%; height: 320px; object-fit: cover; }

  /* features */
  .feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .feature-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
  .feature-card img { width: 100%; height: 170px; object-fit: cover; }
  .feature-body { padding: 16px 18px 20px; }
  .feature-body h3 { font-size: 17px; margin-bottom: 8px; }
  .feature-body p { font-size: 13.5px; color: var(--muted); }

  /* creator form */
  .creator-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
  .field { margin-bottom: 16px; }
  .field label { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 6px; }
  .field input, .field select {
    width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--text);
    border-radius: 10px; padding: 11px 14px; font-size: 14px; font-family: inherit;
  }
  .field input:focus, .field select:focus { outline: none; border-color: var(--accent); }
  .creator-actions { display: flex; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
  .output-box {
    background: var(--bg); border: 1px dashed var(--line); border-radius: 14px;
    padding: 16px; min-height: 180px; font-size: 14.5px; color: var(--muted); white-space: pre-wrap;
  }
  .output-box.has-text { color: var(--text); border-style: solid; }
  .output-hint { font-size: 12.5px; color: var(--muted); margin-top: 12px; }

  /* topics */
  .topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .topic-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
  .topic-card img { width: 100%; height: 180px; object-fit: cover; }
  .topic-body { padding: 14px 16px 18px; }
  .topic-body .cat { font-size: 12px; color: var(--accent); letter-spacing: 1px; }
  .topic-body h3 { font-size: 16.5px; margin: 4px 0 8px; }
  .topic-body p { font-size: 13px; color: var(--muted); }

  /* gallery */
  .gallery-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
  .gallery-row img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }

  /* learning */
  .learn-list { display: grid; gap: 16px; }
  .learn-item { display: flex; gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; align-items: flex-start; }
  .learn-num { flex: none; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
  .learn-item h3 { font-size: 16.5px; margin-bottom: 4px; }
  .learn-item p { font-size: 13.5px; color: var(--muted); }

  /* continue chat */
  .continue-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; align-items: center; }
  .continue-img { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
  .continue-img img { width: 100%; height: 380px; object-fit: cover; }
  .step { margin-bottom: 20px; }
  .step h3 { font-size: 16.5px; margin-bottom: 4px; color: var(--accent); }
  .step p { font-size: 14px; color: var(--muted); }

  /* fixes */
  .fix-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .fix-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
  .fix-card h3 { font-size: 16px; margin-bottom: 8px; }
  .fix-card p { font-size: 13.5px; color: var(--muted); }

  /* faq */
  .faq-list { display: grid; gap: 12px; }
  details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
  details summary { cursor: pointer; font-size: 15px; font-weight: 600; list-style: none; }
  details summary::-webkit-details-marker { display: none; }
  details summary::after { content: "＋"; float: right; color: var(--accent); }
  details[open] summary::after { content: "－"; }
  details p { font-size: 14px; color: var(--muted); margin-top: 10px; }

  /* final cta */
  .final { background: var(--bg-soft); border-top: 1px solid var(--line); }
  .final-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
  .final-img { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
  .final-img img { width: 100%; height: 260px; object-fit: cover; }
  .final h2 { font-size: 28px; margin-bottom: 14px; }
  .final p { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
  .final .btn { margin-top: 16px; }

  /* footer */
  .site-footer { border-top: 1px solid var(--line); padding: 40px 0 30px; font-size: 13px; color: var(--muted); }
  .footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
  .footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
  .footer-brand img { height: 26px; border-radius: 6px; }
  .footer-col h3 { font-size: 14px; color: var(--text); margin-bottom: 12px; }
  .footer-col a { display: block; margin-bottom: 8px; }
  .footer-col a:hover { color: var(--text); }
  .footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: 12.5px; }

  @media (max-width: 1024px) {
    .hero-grid, .purpose-grid, .continue-grid, .final-inner { grid-template-columns: 1fr; }
    .hero h1 { font-size: 32px; }
    .hero-visual img { height: 300px; }
    .scene-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-grid, .topic-grid, .fix-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-row { grid-template-columns: repeat(4, 1fr); }
    .creator-panel { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
  }

  @media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
      display: none; position: absolute; top: 64px; left: 0; right: 0;
      background: var(--bg-soft); border-bottom: 1px solid var(--line);
      flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 20px 16px;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 10px 0; width: 100%; }
    .nav-cta { display: inline-block; width: auto !important; margin-top: 8px; }
    .hero { padding: 36px 0 44px; }
    .hero h1 { font-size: 26px; }
    .scene-grid, .feature-grid, .topic-grid, .fix-grid { grid-template-columns: 1fr; }
    .gallery-row { grid-template-columns: repeat(3, 1fr); }
    .sec-head h2 { font-size: 22px; }
    section { padding: 44px 0; }
    .learn-item { flex-direction: column; gap: 10px; }
    .footer-top { grid-template-columns: 1fr; }
    .final h2 { font-size: 23px; }
    .hero-visual img, .continue-img img, .purpose-img img { height: 240px; }
  }