/* ===== 设计令牌：活泼创意风 ===== */
:root {
  --cream: #FFFBEF;       /* 奶油白底 */
  --purple: #5B4FE9;      /* 活力紫：主色 */
  --purple-dark: #473DC4; /* 紫深：悬停 */
  --lemon: #FFD338;       /* 柠檬黄 */
  --coral: #FF6B6B;       /* 珊瑚红 */
  --mint: #7ED9A7;        /* 薄荷绿 */
  --ink: #2B2833;         /* 墨黑：标题 */
  --fog: #6B6675;         /* 灰紫：正文 */
  --line: #EAE2D3;        /* 细线 */

  --fs-display: clamp(2.2rem, 5.5vw + 1rem, 4rem);
  --fs-h2: clamp(1.8rem, 3vw + 1rem, 2.6rem);
  --fs-h3: 1.15rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  font-size: var(--fs-body);
}

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
}

h1 { font-size: var(--fs-display); letter-spacing: 0.01em; }
h2 { font-size: var(--fs-h2); margin-bottom: 1rem; }
h3 { font-size: var(--fs-h3); }

p { color: var(--fog); max-width: 38em; }

a { color: var(--ink); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== 顶栏 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 251, 239, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--ink);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.5rem;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.logo-blob {
  width: 1.3em;
  height: 1.3em;
  margin-left: 0.3em;
  fill: var(--purple);
  animation: spin-slow 14s linear infinite;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }

.site-nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--fog);
  font-size: 0.95rem;
  font-weight: 600;
}
.site-nav a:hover { color: var(--purple); }

.nav-toggle {
  display: none;
  border: 2px solid var(--ink);
  background: var(--lemon);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
}

/* ===== 首屏 ===== */
.hero { padding: 4rem 0 4.5rem; position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-copy { position: relative; }
.hero-copy h1 { margin-bottom: 0.5rem; }
.hero-copy > p { margin: 1.2rem 0 2rem; font-size: 1.05rem; }

/* 高亮词：黄色荧光笔底色 */
.hl {
  background: linear-gradient(transparent 55%, var(--lemon) 55%);
  padding: 0 0.1em;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.7rem 1.7rem;
  border-radius: 14px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 4px 4px 0 var(--ink);
}
.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
  background: var(--purple-dark);
}
.btn-ghost {
  color: var(--ink);
  border: 2px solid var(--ink);
  background: #fff;
  box-shadow: 4px 4px 0 var(--ink);
}
.btn-ghost:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

/* 贴纸行 */
.sticker-row {
  list-style: none;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 2.2rem;
}
.sticker {
  font-size: var(--fs-small);
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
}
.sticker-yellow { background: var(--lemon); transform: rotate(-2deg); }
.sticker-mint { background: var(--mint); transform: rotate(1.5deg); }
.sticker-coral { background: var(--coral); transform: rotate(-1deg); color: #fff; }

/* 比价便签：本页视觉重点之一 */
.quote-sheet {
  position: relative;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 1.4rem 1.4rem 1.2rem;
  box-shadow: 8px 8px 0 var(--mint);
  transform: rotate(1deg);
}

.quote-sheet figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}
.quote-sheet figcaption strong { font-size: 1.15rem; }
.quote-sheet figcaption span { font-size: var(--fs-small); color: var(--fog); }

.quote-sheet table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.quote-sheet th, .quote-sheet td {
  padding: 0.55rem 0.4rem;
  text-align: left;
  border-bottom: 2px dashed var(--line);
}
.quote-sheet th { color: var(--fog); font-size: var(--fs-small); }
.quote-sheet tr.is-won td { font-weight: 700; }

.badge {
  display: inline-block;
  background: var(--purple);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
}

.quote-note {
  margin-top: 0.8rem;
  font-size: var(--fs-small);
  color: var(--fog);
}

/* 手绘涂鸦 */
.doodle { position: absolute; pointer-events: none; }
.doodle-sun {
  width: 52px;
  top: -2.4rem;
  left: -0.6rem;
  animation: wobble 5s ease-in-out infinite;
}
@keyframes wobble {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(8deg); }
}
.doodle-swoosh {
  width: clamp(120px, 30%, 220px);
  margin: 0.2rem 0 0.6rem;
  display: block;
}
.doodle-arrow {
  width: 44px;
  right: -1.2rem;
  bottom: -1.6rem;
  transform: rotate(15deg);
}

/* ===== 区块 ===== */
.section { padding: 4.5rem 0; }
.section-alt {
  background: var(--purple);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.section-alt h2 { color: #fff; }
.section-alt .section-lead { color: rgba(255, 255, 255, 0.75); }

.section-lead { margin-bottom: 2.5rem; font-size: 1.05rem; }

/* 功能：彩色便签墙 */
.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.note {
  border-radius: 16px;
  padding: 1.5rem 1.4rem 1.7rem;
  border: 2px solid var(--ink);
  position: relative;
}
.note h3 { margin-bottom: 0.45rem; }
.note p { font-size: 0.95rem; color: var(--ink); opacity: 0.75; }

/* 便签胶带 */
.note::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 84px;
  height: 22px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(255, 251, 239, 0.55);
  border: 1px dashed rgba(43, 40, 51, 0.35);
}

.note-yellow { background: var(--lemon); transform: rotate(-0.7deg); }
.note-mint { background: var(--mint); transform: rotate(0.6deg); }
.note-coral { background: var(--coral); }
.note-coral h3 { color: #fff; }
.note-coral p { color: rgba(255, 255, 255, 0.9); opacity: 1; }
.note-purple { background: var(--purple); }
.note-purple h3 { color: #fff; }
.note-purple p { color: rgba(255, 255, 255, 0.85); opacity: 1; }

.note-yellow { box-shadow: 5px 5px 0 rgba(43, 40, 51, 0.15); }
.note-mint { box-shadow: 5px 5px 0 rgba(43, 40, 51, 0.15); }

/* 场景：对话气泡 */
.scene { max-width: 36em; margin-bottom: 2.6rem; position: relative; }
.scene:last-child { margin-bottom: 0; }
.scene-left { margin-right: auto; }
.scene-right { margin-left: auto; }

.bubble {
  position: relative;
  border-radius: 22px;
  padding: 1.6rem 1.7rem 1.8rem;
  border: 2px solid var(--ink);
}
.bubble-white { background: #fff; }
.bubble-purple { background: var(--lemon); }

.bubble h3 { margin-bottom: 0.55rem; }
.bubble p { color: var(--ink); opacity: 0.78; line-height: 1.8; }

/* 气泡尾巴 */
.bubble::after {
  content: "";
  position: absolute;
  bottom: -16px;
  width: 26px;
  height: 26px;
  background: inherit;
  border: 2px solid var(--ink);
  border-radius: 6px;
}
.scene-left .bubble::after {
  left: 2.4rem;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  border-bottom: none;
  border-right: none;
  transform: skewX(12deg);
}
.scene-right .bubble::after {
  right: 2.4rem;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  border-bottom: none;
  border-left: none;
  transform: skewX(-12deg);
}

/* 联系方式 */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.contact-grid .section-lead { margin-bottom: 1.8rem; }

.contact-list {
  list-style: none;
  border-top: 2px solid var(--ink);
}
.contact-list li {
  padding: 1rem 0;
  border-bottom: 2px dashed var(--line);
  display: grid;
  grid-template-columns: 6.5em 1fr;
  gap: 1rem;
  align-items: baseline;
}
.contact-list span { color: var(--fog); font-size: var(--fs-small); font-weight: 600; }
.contact-list a { text-decoration: none; font-weight: 600; color: var(--purple); }
.contact-list a:hover { text-decoration: underline; }
.contact-list p { font-size: 0.95rem; }

/* ===== 页脚 ===== */
.site-footer {
  background: var(--ink);
  padding: 1.8rem 0;
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.7);
}

/* ===== 动效：载入 hero 淡入 + logo 慢转（可关） ===== */
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.hero-copy { animation: rise 0.7s ease-out both; }
/* 便签自带倾斜，入场动画最终帧保持倾斜角度 */
@keyframes rise-tilt {
  from { opacity: 0; transform: translateY(12px) rotate(2.5deg); }
  to { opacity: 1; transform: rotate(1deg); }
}
.quote-sheet { animation: rise-tilt 0.7s ease-out both; animation-delay: 0.15s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy, .quote-sheet { animation: none; }
  .quote-sheet { transform: rotate(1deg); }
  .logo-blob { animation: none; }
  .doodle-sun { animation: none; }
  .btn { transition: none; }
}

/* ===== 响应式 ===== */
@media (min-width: 48em) {
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 4rem; }
  .contact-grid { grid-template-columns: 1.1fr 1fr; gap: 4rem; }
}

@media (max-width: 47.9em) {
  .hero { padding: 3rem 0 3.5rem; }
  .section { padding: 3.5rem 0; }

  .feature-list { grid-template-columns: 1fr; gap: 2rem; }
  .note { max-width: 30rem; }

  .scene { max-width: 100%; }
  .scene-right { margin-left: 0; }

  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    width: 100%;
    padding: 0.5rem 0 1rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav a {
    display: block;
    margin: 0;
    padding: 0.7rem 0;
    border-top: 1px solid var(--line);
    font-size: 1rem;
  }
}
