/* 卷发计时器 — 官网样式 */
/* 配色取自 App 设计系统 (CurlRitual/DesignSystem/Colors.swift) */

:root {
  --bg-cream:      #FFF7F2;
  --bg-blush:      #FFEAF4;
  --bg-blush-2:    #FFD6E8;
  --bg-petal:      #FFE0EF;
  --pink:          #FF6BB5;
  --pink-deep:     #C84592;
  --pink-accent:   #B8367E;
  --pink-soft:     #FFB8D5;
  --purple:        #B85AC8;
  --purple-deep:   #8B3F9F;
  --purple-ink:    #6B3A7E;
  --amber:         #FF9E3C;
  --mint:          #4ABA70;
  --ink:           #4A2645;
  --ink-soft:      #6B3A55;
  --paper-line:    rgba(74, 38, 69, 0.08);
  --shadow-soft:   0 14px 40px -18px rgba(184, 54, 126, 0.35);
  --shadow-card:   0 28px 60px -28px rgba(107, 58, 126, 0.45);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-cream);
  color: var(--ink);
  font-family: "Noto Serif SC", "Songti SC", "Source Han Serif SC", "PingFang SC", serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* 纸张纹理叠层 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 107, 181, 0.10), transparent 38%),
    radial-gradient(circle at 88% 8%,  rgba(184, 90, 200, 0.10), transparent 42%),
    radial-gradient(circle at 50% 95%, rgba(255, 158, 60, 0.08), transparent 50%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.29 0 0 0 0 0.15 0 0 0 0 0.27 0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.wrap { position: relative; z-index: 1; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: relative;
  z-index: 5;
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav .brand {
  font-family: "Fraunces", "Noto Serif SC", serif;
  font-weight: 600;
  font-style: italic;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--pink-accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav .brand .logo-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #FFB8D5, var(--pink) 70%, var(--pink-deep));
  box-shadow: 0 0 0 4px rgba(255, 107, 181, 0.15);
}

.nav-links {
  display: flex;
  gap: 26px;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--pink-accent);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--pink);
  border-radius: 2px;
}

/* ---------- 通用容器 ---------- */
.container {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

.kicker {
  font-family: "Caveat", "Noto Serif SC", cursive;
  font-size: 26px;
  color: var(--pink-deep);
  display: inline-block;
  transform: rotate(-3deg);
  margin-bottom: 6px;
}

h1, h2, h3 {
  font-family: "Fraunces", "Noto Serif SC", serif;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(40px, 6.4vw, 76px);
  font-weight: 700;
}

h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--purple-deep);
  background: linear-gradient(110deg, var(--pink) 20%, var(--purple) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 600;
}

h3 {
  font-size: 22px;
  font-weight: 600;
}

p { color: var(--ink-soft); }

a { color: var(--pink-accent); }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative;
  padding: 56px 0 100px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-copy .lead {
  font-size: 19px;
  margin: 20px 0 36px;
  max-width: 460px;
}

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-pink {
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
  color: #fff;
  box-shadow: 0 12px 24px -10px rgba(200, 69, 146, 0.55);
}

.btn-pink:hover { transform: translateY(-2px); box-shadow: 0 18px 30px -10px rgba(200, 69, 146, 0.6); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  border: 1.5px solid var(--pink-soft);
}

.btn-ghost:hover { background: #fff; border-color: var(--pink); }

/* 手机壳 mockup */
.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 540px;
}

.phone-stage::before {
  content: "";
  position: absolute;
  inset: 30px 10% 30px 10%;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 107, 181, 0.35), transparent 65%);
  filter: blur(20px);
  z-index: 0;
}

.phone {
  position: relative;
  width: 280px;
  height: 560px;
  background: #1b1018;
  border-radius: 46px;
  padding: 12px;
  box-shadow:
    0 40px 80px -30px rgba(107, 58, 126, 0.55),
    inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  transform: rotate(-4deg);
  z-index: 1;
}

.phone-screen {
  position: relative;
  overflow: hidden;
  height: 100%;
  border-radius: 36px;
  background: linear-gradient(180deg, var(--bg-blush) 0%, var(--pink-soft) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px 18px 24px;
  font-family: "Noto Sans SC", sans-serif;
  color: var(--ink);
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  background: #1b1018;
  border-radius: 14px;
}

.phone-screen .phase {
  font-family: "Caveat", cursive;
  font-size: 22px;
  color: var(--pink-deep);
  margin-bottom: 4px;
}

.phone-screen .big-num {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 122px;
  line-height: 1;
  background: linear-gradient(180deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 6px 0 4px;
}

.phone-screen .sub {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 22px;
}

.phone-screen .ring {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background:
    conic-gradient(var(--pink) 0 62%, rgba(255, 255, 255, 0.5) 62% 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  margin: 6px 0 20px;
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.4);
}

.phone-screen .ring-inner {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.phone-screen .ring-inner .label {
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
}

.phone-screen .ring-inner .pct {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 36px;
  color: var(--pink-deep);
}

.phone-screen .praise {
  font-family: "Caveat", cursive;
  font-size: 18px;
  color: var(--purple-ink);
  text-align: center;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  border: 1.5px dashed var(--pink-soft);
}

/* 漂浮装饰 */
.float {
  position: absolute;
  pointer-events: none;
  z-index: 2;
}

.float.heart {
  top: 60px;
  right: 8%;
  font-family: "Caveat", cursive;
  font-size: 64px;
  color: var(--pink-deep);
  transform: rotate(12deg);
}

.float.sparkle {
  bottom: 80px;
  left: 4%;
  font-family: "Caveat", cursive;
  font-size: 44px;
  color: var(--purple);
  transform: rotate(-8deg);
}

/* ---------- 特性区块 ---------- */
.features {
  padding: 60px 0 80px;
}

.section-head { max-width: 640px; margin-bottom: 48px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  position: relative;
  padding: 32px 28px;
  background: rgba(255, 255, 255, 0.7);
  border: 1.5px solid var(--paper-line);
  border-radius: 28px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease;
}

.feature-card:hover { transform: translateY(-4px); }

.feature-card .num {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 600;
  font-size: 32px;
  color: var(--pink);
  display: inline-block;
  margin-bottom: 12px;
}

.feature-card h3 { margin-bottom: 8px; }

.feature-card p { font-size: 15px; margin: 0; }

/* ---------- 流程时间轴 ---------- */
.flow {
  padding: 60px 0 100px;
}

.flow-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
}

.flow-rail::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--pink-soft) 0 8px, transparent 8px 16px);
  z-index: 0;
}

.flow-step {
  position: relative;
  text-align: center;
  z-index: 1;
}

.flow-step .dot {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 30px;
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.flow-step:nth-child(1) .dot { background: linear-gradient(135deg, var(--amber), #FFB05C); }
.flow-step:nth-child(2) .dot { background: linear-gradient(135deg, var(--pink), var(--pink-deep)); }
.flow-step:nth-child(3) .dot { background: linear-gradient(135deg, var(--mint), #2A8B4A); }
.flow-step:nth-child(4) .dot { background: linear-gradient(135deg, var(--purple), var(--purple-deep)); }

.flow-step h3 { font-size: 18px; margin-bottom: 4px; }
.flow-step p { font-size: 14px; margin: 0; }

/* ---------- 简单 Page Header (内页) ---------- */
.page-head {
  padding: 60px 0 32px;
}

.page-head .meta {
  font-family: "Noto Sans SC", sans-serif;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ---------- 内容区 (FAQ / 隐私) ---------- */
.content {
  padding: 16px 0 80px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 60px;
  max-width: 1080px;
  margin: 0 auto;
}

.toc {
  position: sticky;
  top: 32px;
  align-self: start;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 14px;
}

.toc .toc-title {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 18px;
  color: var(--pink-deep);
  margin-bottom: 12px;
}

.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
  margin-bottom: 10px;
  position: relative;
  padding-left: 28px;
  color: var(--ink-soft);
}

.toc li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: "Fraunces", serif;
  font-style: italic;
  color: var(--pink);
  font-size: 13px;
  font-weight: 600;
}

.toc a { color: inherit; text-decoration: none; }
.toc a:hover { color: var(--pink-deep); }

.prose section { margin-bottom: 44px; scroll-margin-top: 20px; }
.prose section:last-child { margin-bottom: 0; }

.prose h2 {
  font-size: 28px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1.5px dashed var(--pink-soft);
}

.prose h3 {
  font-size: 19px;
  color: var(--purple-ink);
  margin-top: 24px;
}

.prose p, .prose li { font-size: 16px; line-height: 1.85; }

.prose ul { padding-left: 22px; }
.prose ul li { margin-bottom: 8px; }

.prose .callout {
  margin: 24px 0;
  padding: 20px 24px;
  background: linear-gradient(135deg, var(--bg-blush), rgba(255, 234, 252, 0.6));
  border: 1.5px solid var(--pink-soft);
  border-radius: 20px;
  position: relative;
}

.prose .callout::before {
  content: "♡";
  position: absolute;
  top: 16px;
  right: 18px;
  color: var(--pink-deep);
  font-size: 20px;
}

.prose .callout p { margin: 0; color: var(--ink); }

.prose .contact-card {
  margin-top: 16px;
  padding: 26px 28px;
  background: #fff;
  border-radius: 22px;
  border: 1.5px solid var(--paper-line);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.prose .contact-card .label {
  font-family: "Caveat", cursive;
  color: var(--pink-deep);
  font-size: 22px;
}

.prose .contact-card .email {
  font-family: "Fraunces", serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
}

.prose .contact-card .note {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 6px;
}

/* FAQ 折叠 */
.faq details {
  background: rgba(255, 255, 255, 0.75);
  border: 1.5px solid var(--paper-line);
  border-radius: 18px;
  padding: 18px 24px;
  margin-bottom: 14px;
  transition: border-color 0.2s ease;
}

.faq details[open] {
  border-color: var(--pink-soft);
  background: #fff;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: 28px;
  color: var(--pink);
  transition: transform 0.25s ease;
  line-height: 0.8;
}

.faq details[open] summary::after {
  content: "−";
}

.faq .answer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--paper-line);
  font-size: 15px;
  color: var(--ink-soft);
}

.faq .answer p { margin: 0 0 10px; }

/* ---------- 页脚 ---------- */
footer {
  margin-top: 60px;
  padding: 36px 32px;
  background: linear-gradient(180deg, transparent, rgba(255, 214, 232, 0.5));
  border-top: 1.5px dashed var(--paper-line);
}

footer .foot-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 13px;
  color: var(--ink-soft);
}

footer a { color: var(--ink-soft); text-decoration: none; margin-left: 22px; }
footer a:hover { color: var(--pink-deep); }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .hero { padding: 32px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .phone-stage { min-height: 480px; }
  .features-grid { grid-template-columns: 1fr; }
  .flow-rail { grid-template-columns: 1fr 1fr; }
  .flow-rail::before { display: none; }
  .content { grid-template-columns: 1fr; gap: 28px; }
  .toc { position: static; }
  .nav-links { gap: 16px; font-size: 13px; }
  .nav { padding: 20px 24px 0; }
  .container { padding: 0 24px; }
}

@media (max-width: 480px) {
  .flow-rail { grid-template-columns: 1fr; }
  .phone { transform: rotate(-2deg) scale(0.9); }
  .float.heart { right: 4%; font-size: 48px; }
}

/* ---------- 入场动画 ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rise { animation: rise 0.7s ease-out both; }
.rise-1 { animation-delay: 0.05s; }
.rise-2 { animation-delay: 0.18s; }
.rise-3 { animation-delay: 0.30s; }
.rise-4 { animation-delay: 0.42s; }

@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50%      { transform: translateY(-10px) rotate(var(--r, 0deg)); }
}

.float.heart   { --r: 12deg; animation: drift 5s ease-in-out infinite; }
.float.sparkle { --r: -8deg; animation: drift 6s ease-in-out infinite 0.5s; }
