/* ============================================================
   宇宙疯人院 · CRAZIEST STARS
   圣洁风落地页：象牙白 / 鎏金 / 衬线 / 光晕
   ============================================================ */

:root {
  /* 底色：暖象牙 */
  --bg: #f6f1e8;
  --bg-top: #fdfbf7;
  --bg-bottom: #ebe1d0;

  --surface: rgba(255, 255, 255, 0.66);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --surface-warm: rgba(255, 252, 245, 0.8);

  --border: rgba(122, 98, 62, 0.14);
  --border-strong: rgba(122, 98, 62, 0.28);

  /* 文字：暖调近黑 */
  --text: #37312a;
  --text-dim: #6d6353;
  --text-faint: #8b8069;

  /* 鎏金 */
  --gold: #ab8750;
  --gold-deep: #8d6b39;
  --gold-soft: #d8bc88;
  --gold-wash: rgba(214, 185, 132, 0.22);
  --blush: #e9d3c4;
  --sage: #8e9b87;
  --ok: #6f8f5e;
  --danger: #b4695f;

  --radius: 16px;
  --max: 940px;

  --serif: 'Optima', 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia,
    'Songti SC', 'STSong', 'Noto Serif SC', 'Source Han Serif SC', 'SimSun', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

/* .btn 的 display:inline-flex 会覆盖 UA 的 [hidden]{display:none} */
[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(
    180deg,
    var(--bg-top) 0%,
    var(--bg) 38%,
    var(--bg-bottom) 100%
  );
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------------- 背景：柔光 + 纸感颗粒 ---------------- */

/* 纸纹颗粒 */
.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

/* 顶部天光 */
.glow {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
}

.glow-a {
  top: -420px;
  left: 50%;
  width: 1100px;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at center,
    rgba(255, 252, 240, 0.95) 0%,
    rgba(255, 248, 228, 0.55) 34%,
    rgba(246, 241, 232, 0) 68%
  );
}

.glow-b {
  top: 30%;
  right: -380px;
  width: 760px;
  height: 760px;
  background: radial-gradient(
    circle,
    rgba(226, 199, 160, 0.42) 0%,
    rgba(233, 211, 196, 0.2) 40%,
    rgba(246, 241, 232, 0) 70%
  );
}

/* ---------------- 布局 ---------------- */

.nav,
.hero,
.section,
.cta,
.footer-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 26px;
  padding-bottom: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface-warm);
  color: var(--gold);
  font-size: 13px;
  box-shadow: 0 2px 10px -4px rgba(141, 107, 57, 0.5);
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.06em;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover {
  color: var(--gold-deep);
  border-bottom-color: var(--gold-soft);
}

/* ---------------- HERO ---------------- */

.hero {
  position: relative;
  padding-top: 76px;
  padding-bottom: 96px;
  text-align: center;
}

/* 圣光圆环 */
.orb {
  position: absolute;
  top: 0;
  left: 50%;
  width: 420px;
  height: 420px;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0.9;
}

.orb-core {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 190px;
  height: 190px;
  margin: -95px 0 0 -95px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 253, 246, 0.95) 0%,
    rgba(255, 246, 224, 0.6) 38%,
    rgba(240, 230, 210, 0) 72%
  );
}

.orb-ring {
  position: absolute;
  inset: 50% auto auto 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orb-ring-1 {
  width: 210px;
  height: 210px;
  border: 1px solid rgba(171, 135, 80, 0.34);
  animation: spin 40s linear infinite;
}

.orb-ring-1::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--gold-soft);
  box-shadow: 0 0 10px rgba(216, 188, 136, 0.9);
}

.orb-ring-2 {
  width: 310px;
  height: 310px;
  border: 1px solid rgba(171, 135, 80, 0.2);
  animation: spin 66s linear infinite reverse;
}

.orb-ring-2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--blush);
  box-shadow: 0 0 8px rgba(233, 211, 196, 0.9);
}

.orb-ring-3 {
  width: 408px;
  height: 408px;
  border: 1px solid rgba(171, 135, 80, 0.11);
  animation: spin 104s linear infinite;
}

@keyframes spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* 状态标签 */
.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 30px;
  padding: 7px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-dim);
  font-size: 12.5px;
  letter-spacing: 0.16em;
}

.pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 9px rgba(171, 135, 80, 0.8);
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}

/* 主标题 */
.hero h1 {
  position: relative;
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(42px, 8.5vw, 74px);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-indent: 0.12em;
  color: var(--text);
}

.sub-en {
  position: relative;
  margin: 0 0 26px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.46em;
  text-indent: 0.46em;
}

/* 金色分隔饰线 */
.rule {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 26px;
  color: var(--gold-soft);
  font-size: 11px;
}

.rule::before,
.rule::after {
  content: '';
  width: 68px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft));
}

.rule::after {
  background: linear-gradient(90deg, var(--gold-soft), transparent);
}

.tagline {
  position: relative;
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(21px, 3.6vw, 29px);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--gold-deep);
}

.lede {
  position: relative;
  max-width: 500px;
  margin: 0 auto 36px;
  color: var(--text-dim);
  font-size: 16px;
}

.hero-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ---------------- 按钮 ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s,
    color 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, #c4a468 0%, #ab8750 55%, #97733f 100%);
  color: #fffdf8;
  box-shadow: 0 12px 28px -14px rgba(141, 107, 57, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -14px rgba(141, 107, 57, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--surface);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
  background: var(--gold-wash);
  transform: translateY(-2px);
}

.btn-text {
  color: var(--text-faint);
  background: transparent;
  padding: 13px 12px;
  letter-spacing: 0.06em;
}

.btn-text:hover {
  color: var(--gold-deep);
}

/* ---------------- section ---------------- */

.section {
  padding-top: 72px;
  padding-bottom: 68px;
}

.section-title {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(25px, 3.8vw, 34px);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  color: var(--text);
}

.section-sub {
  max-width: 500px;
  margin: 0 0 36px;
  color: var(--text-dim);
  font-size: 15.5px;
}

/* ---------------- 提点子 ---------------- */

.idea-box {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

#idea-form {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: 0 1px 2px rgba(90, 72, 44, 0.04),
    0 18px 40px -28px rgba(90, 72, 44, 0.4);
}

.field {
  display: block;
  margin-bottom: 18px;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

input[type='text'],
textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

input[type='text']:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold-soft);
  background: #fffdf9;
  box-shadow: 0 0 0 3px rgba(216, 188, 136, 0.28);
}

textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.7;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-faint);
}

.field-meta {
  margin: -10px 0 20px;
  text-align: right;
  color: var(--text-faint);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.form-status {
  min-height: 22px;
  margin: 16px 0 0;
  color: var(--ok);
  font-size: 14px;
}

.form-status.is-error {
  color: var(--danger);
}

/* 侧栏：暖色卡片 */
.idea-side {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(
    170deg,
    rgba(255, 252, 244, 0.92) 0%,
    rgba(243, 233, 216, 0.6) 100%
  );
  box-shadow: 0 18px 40px -30px rgba(90, 72, 44, 0.5);
}

.idea-side h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.idea-side p {
  margin: 0 0 18px;
  color: var(--text-dim);
  font-size: 13.5px;
}

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
  padding: 0;
}

.chips li {
  padding: 8px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-dim);
  font-size: 13.5px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s;
}

.chips li:hover {
  border-color: var(--gold-soft);
  color: var(--gold-deep);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px -8px rgba(141, 107, 57, 0.8);
}

/* ---------------- CTA ---------------- */

.cta {
  padding-top: 60px;
  padding-bottom: 76px;
  text-align: center;
}

.cta-text {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 27px);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-indent: 0.12em;
  color: var(--text);
}

.cta-sub {
  margin: 0;
  color: var(--text-dim);
  font-size: 14.5px;
  letter-spacing: 0.14em;
}

/* ---------------- footer ---------------- */

.footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  padding-top: 38px;
  padding-bottom: 44px;
  text-align: center;
}

.footer-brand {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--text-dim);
}

.footer-note {
  margin: 0 0 12px;
  color: var(--text-faint);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.footer-meta {
  margin: 0;
  color: var(--text-faint);
  font-size: 13px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.footer-meta a {
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 1px;
}

.footer-meta a:hover {
  color: var(--gold-deep);
  border-bottom-color: var(--gold-soft);
}

/* ---------------- 入场动画 ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .starfield,
  .orb-ring,
  .pill .dot {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------------- 响应式 ---------------- */

@media (max-width: 860px) {
  .idea-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .nav,
  .hero,
  .section,
  .cta,
  .footer-inner {
    padding-left: 18px;
    padding-right: 18px;
  }
  .hero {
    padding-top: 44px;
    padding-bottom: 66px;
  }
  .section {
    padding-top: 54px;
    padding-bottom: 44px;
  }
  .hero h1 {
    letter-spacing: 0.08em;
    text-indent: 0.08em;
  }
  .sub-en {
    letter-spacing: 0.32em;
    text-indent: 0.32em;
  }
  .orb {
    width: 280px;
    height: 280px;
  }
  .orb-core {
    width: 130px;
    height: 130px;
    margin: -65px 0 0 -65px;
  }
  .orb-ring-1 {
    width: 140px;
    height: 140px;
  }
  .orb-ring-2 {
    width: 210px;
    height: 210px;
  }
  .orb-ring-3 {
    width: 274px;
    height: 274px;
  }
  #idea-form,
  .idea-side {
    padding: 22px;
  }
}
