:root {
  --bg: #fbf8f3;
  --bg-alt: #f4ede3;
  --ink: #2a2438;
  --ink-soft: #6b6478;
  --brand: #e0522b;
  --brand-2: #f58a4c;
  --brand-soft: #ffe4d2;
  --accent: #7c5cbf;
  --accent-soft: #efe9fb;
  --cream: #fffaf3;
  --dark: #1d1826;
  --dark-2: #2a2235;
  --line: #ece4d9;
  --shadow: 0 24px 60px -30px rgba(74, 46, 28, 0.45);
  --radius: 20px;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  z-index: 0;
  background-image: radial-gradient(rgba(120, 90, 60, 0.035) 1px, transparent 1px);
  background-size: 3px 3px;
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

a { color: inherit; text-decoration: none; }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(224, 82, 43, 0.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(224, 82, 43, 0.85); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--brand-2); color: var(--brand); transform: translateY(-2px); }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* 导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(251, 248, 243, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; }
.brand-mark { display: grid; place-items: center; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 15px; color: var(--ink-soft); font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--brand); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.25s; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
}
.lang-option {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 5px 11px;
  border-radius: 999px;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
}
.lang-option.active { background: var(--brand); color: #fff; }

/* 首屏 */
.hero { padding: 72px 0 40px; position: relative; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.pill {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}
.grad {
  background: linear-gradient(120deg, var(--brand) 10%, var(--brand-2) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede { font-size: 17px; color: var(--ink-soft); max-width: 480px; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13px; color: #9a928a; }

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(251, 248, 243, 0.97) 0%,
    rgba(251, 248, 243, 0.72) 38%,
    rgba(251, 248, 243, 0.12) 68%,
    rgba(251, 248, 243, 0) 84%);
}
.hero-glow {
  position: absolute;
  top: 2%;
  right: -8%;
  width: 54vw;
  height: 54vw;
  max-width: 760px;
  max-height: 760px;
  background: radial-gradient(circle, rgba(245, 138, 76, 0.34), transparent 62%);
  filter: blur(24px);
}
.star-field {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 18% 28%, rgba(224, 82, 43, 0.5), transparent 100%),
    radial-gradient(1.5px 1.5px at 72% 16%, rgba(124, 92, 191, 0.45), transparent 100%),
    radial-gradient(2px 2px at 88% 62%, rgba(224, 82, 43, 0.4), transparent 100%),
    radial-gradient(1.5px 1.5px at 42% 76%, rgba(124, 92, 191, 0.35), transparent 100%),
    radial-gradient(2px 2px at 54% 8%, rgba(224, 82, 43, 0.42), transparent 100%),
    radial-gradient(1.5px 1.5px at 8% 58%, rgba(224, 82, 43, 0.35), transparent 100%);
}
.cosmos {
  position: absolute;
  top: 44%;
  right: -5%;
  width: min(680px, 76vw);
  height: min(680px, 76vw);
  transform: translateY(-50%);
}
.cosmos .planet {
  width: 58%;
  height: 58%;
  box-shadow: inset -38px -34px 80px rgba(120, 40, 12, 0.42), 0 0 130px 12px rgba(224, 82, 43, 0.3);
}
.cosmos .planet-ring { inset: -7%; }
.cosmos .orbit-a { width: 78%; height: 78%; }
.cosmos .orbit-b { width: 94%; height: 94%; }

.hero-visual { position: relative; height: 470px; }
.planet {
  position: absolute;
  top: 50%; left: 50%;
  width: 300px; height: 300px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #f9b57f, var(--brand-2) 45%, var(--brand) 80%);
  box-shadow: inset -28px -24px 60px rgba(120, 40, 12, 0.4), 0 40px 80px -30px rgba(224, 82, 43, 0.65);
}
.planet-ring {
  position: absolute;
  inset: -34px;
  border-radius: 50%;
  border: 2px dashed rgba(224, 82, 43, 0.25);
  animation: spin 30s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes orbit-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
.orbit { position: absolute; top: 50%; left: 50%; border-radius: 50%; border: 1px solid rgba(124, 92, 191, 0.18); transform: translate(-50%, -50%); }
.orbit-a { width: 380px; height: 380px; animation: orbit-spin 40s linear infinite reverse; }
.orbit-b { width: 440px; height: 440px; border-style: dashed; animation: orbit-spin 55s linear infinite; }

.diary-card {
  position: absolute;
  top: 50%; left: 50%;
  width: 250px;
  transform: translate(-50%, -50%) rotate(-3deg);
  background: var(--cream);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translate(-50%, -50%) rotate(-3deg) translateY(0); } 50% { transform: translate(-50%, -50%) rotate(-3deg) translateY(-10px); } }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand-2); }
.card-date { font-size: 12.5px; color: var(--ink-soft); font-weight: 600; }
.card-text { font-size: 14.5px; margin: 0 0 14px; color: var(--ink); }
.mood-bar { height: 8px; border-radius: 99px; background: #f1e6da; overflow: hidden; }
.mood-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-2), var(--brand)); border-radius: 99px; }
.card-tags { display: flex; gap: 7px; margin-top: 12px; }
.card-tags span { font-size: 11.5px; padding: 3px 9px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); }

.chip {
  position: absolute;
  padding: 10px 16px;
  border-radius: 14px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 16px 34px -18px rgba(74, 46, 28, 0.4);
  animation: floatY 7s ease-in-out infinite;
}
.chip-1 { top: 16%; right: 4%; animation-delay: 0.8s; }
.chip-2 { bottom: 14%; left: 0; animation-delay: 1.6s; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 64px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.stat { text-align: center; }
.stat strong { display: block; font-size: 28px; letter-spacing: -0.02em; }
.stat span { font-size: 13px; color: var(--ink-soft); }

/* 通用区块 */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: linear-gradient(160deg, var(--dark), var(--dark-2)); color: #f3edf9; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--brand); text-transform: uppercase; margin-bottom: 14px; }
.eyebrow-light { color: var(--brand-2); }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.25; margin: 0 0 14px; letter-spacing: -0.01em; }
.section-head p { color: var(--ink-soft); margin: 0; }
.section-dark .section-head p { color: #b9aed0; }

/* 功能网格 */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: grid; place-items: center;
  font-size: 25px;
  margin-bottom: 18px;
}
.i-1 { background: var(--brand-soft); }
.i-2 { background: #fdeeda; }
.i-3 { background: #fff3d6; }
.i-4 { background: #e8f5e9; }
.i-5 { background: var(--accent-soft); }
.i-6 { background: #e3f2fd; }
.feature h3 { font-size: 18px; margin: 0 0 10px; }
.feature p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* 步骤 */
.steps { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.step {
  flex: 1 1 220px;
  max-width: 260px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
}
.step-num {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #fff; font-weight: 700;
  margin-bottom: 16px;
}
.step h3 { margin: 0 0 8px; font-size: 18px; }
.step p { font-size: 14px; color: var(--ink-soft); margin: 0; }
.step-arrow { font-size: 26px; color: var(--brand-2); }

/* AI 演示 */
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.demo-input, .demo-result {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.demo-input label { display: block; font-weight: 700; margin-bottom: 12px; }
.demo-input textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  resize: vertical;
  background: var(--bg);
  transition: border-color 0.2s;
}
.demo-input textarea:focus { outline: none; border-color: var(--brand-2); }
.demo-input .btn { margin-top: 16px; width: 100%; }

.demo-result { background: linear-gradient(180deg, #fffdfb, #fff7ef); display: flex; flex-direction: column; }
.result-empty { margin: auto; text-align: center; color: var(--ink-soft); }
.result-empty-icon { font-size: 44px; margin-bottom: 12px; }
.result-empty p { margin: 0; }
.result-head { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.score-ring {
  flex: 0 0 auto;
  width: 76px; height: 76px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 26px; font-weight: 700;
  color: var(--brand);
  background: conic-gradient(var(--brand) 0%, #f1e6da 0%);
  position: relative;
}
.score-ring::after { content: ""; position: absolute; inset: 7px; background: #fff; border-radius: 50%; z-index: 0; }
.score-ring span { position: relative; z-index: 1; }
.result-head h3 { margin: 0 0 4px; font-size: 20px; }
.result-summary { margin: 0; font-size: 14px; color: var(--ink-soft); }
.result-row { margin-bottom: 16px; }
.result-label { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 8px; }
.tag-list { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-list span { font-size: 13px; padding: 5px 12px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.meters { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.meter { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 12px; }
.meter-label { font-size: 13px; color: var(--ink-soft); }
.meter-track { height: 9px; border-radius: 99px; background: #f1e6da; overflow: hidden; }
.meter-track span { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--brand-2), var(--brand)); transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.suggestions h4 { margin: 0 0 10px; font-size: 15px; }
.suggestions ul { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.suggestions li { font-size: 14px; color: var(--ink-soft); padding-left: 22px; position: relative; }
.suggestions li::before { content: "✦"; position: absolute; left: 0; color: var(--brand-2); }

/* 隐私 */
.privacy-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.privacy-copy h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.22; margin: 0 0 16px; letter-spacing: -0.01em; }
.privacy-copy > p { color: #b9aed0; max-width: 460px; margin: 0 0 26px; }
.privacy-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.privacy-list li { font-size: 15.5px; color: #e8e0f2; }
.privacy-visual { display: grid; place-items: center; }
.lock-badge {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 30px;
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  font-weight: 600;
}
.lock-badge svg { color: var(--brand-2); }

/* 用户声音 */
.voices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.voice { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.voice blockquote { margin: 0 0 22px; font-size: 15px; line-height: 1.75; color: var(--ink); }
.voice figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; font-size: 14px; color: var(--ink-soft); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--brand-2), var(--brand)); }
.a2 { background: linear-gradient(135deg, #9a7ee0, var(--accent)); }
.a3 { background: linear-gradient(135deg, #5db9a3, #2f9e82); }

/* 下载 */
.download { text-align: center; background: linear-gradient(160deg, var(--bg-alt), var(--brand-soft)); }
.download-inner h2 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.22; margin: 0 0 12px; letter-spacing: -0.01em; }
.download-inner > p { color: var(--ink-soft); margin: 0 0 34px; }
.download-badges { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 34px; }
.badge {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 22px;
  border-radius: 14px;
  background: #17111e;
  color: #fff;
  transition: transform 0.2s ease;
}
.badge:hover { transform: translateY(-3px); }
.badge svg { flex: 0 0 auto; }
.badge span { display: flex; flex-direction: column; text-align: left; line-height: 1.15; font-size: 18px; font-weight: 600; }
.badge small { font-size: 10px; font-weight: 500; opacity: 0.75; letter-spacing: 0.04em; }
.qr { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-soft); }
.qr-box {
  width: 92px; height: 92px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  background-image:
    linear-gradient(#17111e 20%, transparent 20%, transparent 80%, #17111e 80%),
    linear-gradient(90deg, #17111e 20%, transparent 20%, transparent 80%, #17111e 80%);
  background-size: 8px 8px;
}

/* 页脚 */
.site-footer { background: var(--dark); color: #c9c0d8; padding: 60px 0 30px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand .brand-name { font-size: 20px; font-weight: 700; color: #fff; }
.footer-brand p { font-size: 14px; margin: 8px 0 0; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--brand-2); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 12.5px; color: #8d83a0; }

/* 响应式 */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; height: 360px; }
  .cosmos { top: 22%; right: -18%; width: 130vw; height: 130vw; opacity: 0.55; }
  .hero-bg::after {
    background: linear-gradient(100deg,
      rgba(251, 248, 243, 0.98) 0%,
      rgba(251, 248, 243, 0.86) 46%,
      rgba(251, 248, 243, 0.3) 100%);
  }
  .diary-card { width: 220px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .voices { grid-template-columns: 1fr; }
  .privacy-inner { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    inset: 70px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 6%; border-bottom: 1px solid var(--bg-alt); }
  .nav-toggle { display: flex; }
  .nav-actions .btn { display: none; }
  .grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .section { padding: 64px 0; }
  .hero { padding-top: 40px; }
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
  .step { max-width: none; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
