:root {
  --cream: #fff8f0;
  --paper: #fffdf9;
  --ink: #4a3a32;
  --ink-soft: #8b7467;
  --terracotta: #d97a5d;
  --terracotta-deep: #c46347;
  --peach: #ffdfc7;
  --line: #f0dfd1;
  --shadow: 0 18px 50px rgba(160, 110, 80, .10);
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--ink);
  background: radial-gradient(circle at 12% 8%, #ffead6 0, transparent 34%),
              radial-gradient(circle at 88% 26%, #ffe3e0 0, transparent 30%),
              radial-gradient(circle at 50% 92%, #fff1d8 0, transparent 38%),
              var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.ambient { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.ambient-blob { position: absolute; display: block; border-radius: 50%; filter: blur(70px); opacity: .42; }
.blob-one { width: 300px; height: 300px; top: -80px; left: -60px; background: #ffd5ae; animation: drift 18s ease-in-out infinite; }
.blob-two { width: 260px; height: 260px; top: 40%; right: -90px; background: #ffd0cc; animation: drift 22s ease-in-out infinite reverse; }
.blob-three { width: 320px; height: 320px; bottom: -120px; left: 30%; background: #ffe6b8; animation: drift 26s ease-in-out infinite; }
.spark { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #e9ac82; opacity: .45; animation: twinkle 6s ease-in-out infinite; }
.spark-one { top: 18%; left: 72%; }
.spark-two { top: 58%; left: 16%; animation-delay: 2s; }
.spark-three { top: 82%; left: 78%; animation-delay: 4s; }

@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(30px, -26px); } }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.8); } 50% { opacity: .7; transform: scale(1.2); } }

.wrap { width: min(1080px, calc(100% - 48px)); margin-inline: auto; position: relative; z-index: 1; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 248, 240, .82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(233, 205, 182, .55);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand-mark { font-family: Georgia, "Times New Roman", serif; font-size: 27px; font-weight: 700; letter-spacing: -.06em; color: var(--terracotta-deep); }
.brand-dot { color: #eab28c; }
.brand-divider { width: 1px; height: 20px; background: #e5cbb8; }
.brand-name { font-family: var(--serif); font-size: 17px; letter-spacing: .12em; }
.site-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-size: 14px; padding: 6px 2px; transition: color .2s ease; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--terracotta-deep); }
.lang-switch { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 253, 249, .8); border: 1px solid #edd5c3; flex-shrink: 0; }
.lang-btn { border: 0; border-radius: 999px; background: transparent; color: var(--ink-soft); font: inherit; font-size: 12px; line-height: 1; padding: 7px 10px; cursor: pointer; transition: background .2s ease, color .2s ease; }
.lang-btn:hover { color: var(--terracotta-deep); }
.lang-btn.is-active { background: var(--terracotta); color: #fff; }
.lang-btn:focus-visible { outline: 3px solid rgba(217, 122, 93, .35); outline-offset: 2px; }

.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 84px 0 58px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; font-size: 14px; color: var(--ink-soft); letter-spacing: .04em; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--terracotta); box-shadow: 0 0 0 5px rgba(217, 122, 93, .14); }
h1, h2 { font-family: var(--serif); font-weight: 600; margin: 0; letter-spacing: .02em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); line-height: 1.28; }
h2 { font-size: clamp(1.85rem, 3.8vw, 2.6rem); line-height: 1.4; }
.warm-highlight {
  background: linear-gradient(180deg, transparent 68%, #ffd8b4 68%, #ffe9cf 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero-lead { margin: 24px 0 30px; font-size: 16px; color: var(--ink-soft); line-height: 2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-whisper { margin: 26px 0 0; font-family: var(--serif); font-size: 14px; color: #b3917e; letter-spacing: .04em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-size: 15px; cursor: pointer;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, .text-btn:focus-visible { outline: 3px solid rgba(217, 122, 93, .35); outline-offset: 3px; }
.btn-primary { color: #fff; background: linear-gradient(135deg, #e38b6d, #d07055); box-shadow: 0 10px 24px rgba(196, 99, 71, .22); }
.btn-primary:hover { box-shadow: 0 14px 30px rgba(196, 99, 71, .3); }
.btn-ghost { color: var(--terracotta-deep); background: rgba(255, 253, 249, .85); border-color: #edcdb8; }

.hero-art { position: relative; }
.art-frame {
  padding: 12px;
  border-radius: 38px;
  background: linear-gradient(150deg, #fff7ec, #ffe9d8 70%, #ffded1);
  border: 1px solid #f3dcc9;
  box-shadow: var(--shadow);
}
.art-frame svg { display: block; width: 100%; height: auto; }
.art-caption { display: block; margin-top: 14px; text-align: center; font-family: var(--serif); font-size: 13px; color: #b3917e; letter-spacing: .06em; }
.steam path { animation: steam 4s ease-in-out infinite; transform-origin: 50% 100%; }
.steam-two { animation-delay: .8s; }
@keyframes steam { 0%, 100% { opacity: .25; transform: translateY(3px) scaleY(.9); } 50% { opacity: .8; transform: translateY(-4px) scaleY(1.05); } }

.section { padding: 58px 0; scroll-margin-top: 84px; }
.section-heading { max-width: 660px; margin-bottom: 28px; }
.kicker { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--terracotta); }
.section-sub { margin: 14px 0 0; color: var(--ink-soft); line-height: 1.9; }

.quote-card {
  position: relative; overflow: hidden;
  min-height: 260px;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 42px 48px 30px;
  border-radius: 30px;
  background: linear-gradient(140deg, rgba(255, 253, 249, .96), rgba(255, 244, 232, .92));
  border: 1px solid #f0dfd1;
  box-shadow: var(--shadow);
}
.quote-mark { position: absolute; top: 4px; left: 22px; font-family: Georgia, serif; font-size: 160px; line-height: 1; color: #eec7a9; opacity: .35; pointer-events: none; }
.quote-card blockquote { position: relative; margin: 26px 0 30px; font-family: var(--serif); font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.9; letter-spacing: .03em; }
.quote-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px dashed #ecd8c6; padding-top: 18px; }
.quote-from { font-size: 13px; color: var(--ink-soft); letter-spacing: .06em; }
.quote-actions { display: flex; gap: 20px; }
.text-btn { border: 0; background: none; padding: 4px 0; font: inherit; font-size: 14px; color: var(--terracotta-deep); cursor: pointer; border-bottom: 1px solid transparent; }
.text-btn:hover { border-bottom-color: currentColor; }
.heart-btn[aria-pressed="true"] { color: #cf5f5f; font-weight: 600; }

.comfort-panel { padding: 32px; border-radius: 28px; background: rgba(255, 253, 249, .88); border: 1px solid var(--line); box-shadow: var(--shadow); }
.comfort-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.comfort-card {
  padding: 24px 22px; border-radius: 20px;
  background: linear-gradient(160deg, #fffaf4, #fff1e4);
  border: 1px solid #f2ded0;
  animation: soft-in .4s ease both;
}
.comfort-card svg { width: 32px; height: 32px; margin-bottom: 14px; }
.comfort-card h3 { margin: 0 0 10px; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--terracotta-deep); }
.comfort-card p { margin: 0; font-size: 14px; line-height: 1.9; color: var(--ink-soft); }
.panel-actions { display: flex; align-items: center; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.panel-hint { font-size: 12px; color: #b39989; }

.breathe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.breathe-grid .section-heading { margin-bottom: 0; }
.breathe-grid .btn { margin-top: 26px; }
.breath-count { margin: 14px 0 0; font-size: 13px; color: var(--ink-soft); min-height: 22px; }
.breath-stage { position: relative; min-height: 360px; display: grid; place-items: center; }
.breath-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(224, 170, 136, .5); }
.ring-one { width: 280px; height: 280px; }
.ring-two { width: 340px; height: 340px; border-color: rgba(224, 170, 136, .28); }
.breath-orb {
  position: relative; z-index: 2;
  width: 214px; height: 214px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 34% 28%, #fff8ea 0%, #ffdfba 55%, #ffc49c 100%);
  box-shadow: inset 0 -12px 30px rgba(210, 120, 80, .12), 0 16px 46px rgba(214, 138, 96, .22);
  color: #8b513b;
}
.breath-phase { font-family: var(--serif); font-size: 21px; letter-spacing: .06em; text-align: center; padding: 0 18px; }
.breath-hint { margin-top: 8px; font-size: 12px; opacity: .72; letter-spacing: .08em; }
.breath-stage.is-breathing .breath-orb { animation: breathe 12s ease-in-out infinite; }
.breath-stage.is-breathing .breath-ring { animation: ring-pulse 12s ease-in-out infinite; }
.breath-stage.is-breathing .ring-two { animation-delay: .3s; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 33%, 50% { transform: scale(1.24); } }
@keyframes ring-pulse { 0%, 100% { opacity: .45; transform: scale(1); } 40%, 55% { opacity: .9; transform: scale(1.1); } }

.letter-sheet { padding: 34px 38px; border-radius: 26px; background: linear-gradient(160deg, #fffdf7, #fff3e5); border: 1px dashed #e9d3bf; box-shadow: var(--shadow); }
.paper-label { font-size: 12px; letter-spacing: .16em; color: var(--terracotta); }
.letter-title { margin: 12px 0 0; font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 600; color: var(--ink); }
.paper-date { margin: 8px 0 18px; font-size: 13px; color: var(--ink-soft); }
.letter-body { max-width: 780px; font-family: var(--serif); font-size: 1.1rem; line-height: 2.1; white-space: pre-line; word-break: break-word; animation: soft-in .4s ease both; }

.joy-panel { padding: 30px 32px; border-radius: 26px; background: rgba(255, 253, 249, .9); border: 1px solid var(--line); box-shadow: var(--shadow); }
.joy-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.joy-list li { position: relative; padding: 12px 16px 12px 42px; border-radius: 14px; background: #fff4e9; color: var(--ink); font-size: 15px; word-break: break-word; animation: soft-in .4s ease both; }
.joy-list li::before { content: "\2661"; position: absolute; left: 16px; top: 11px; color: #dc8a6e; font-size: 17px; }

.site-footer { margin-top: 60px; padding: 42px 0 52px; border-top: 1px solid rgba(233, 205, 182, .6); background: rgba(255, 250, 243, .65); }
.footer-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-mark { font-size: 32px; }
.footer-inner p { margin: 10px 0 0; font-family: var(--serif); font-size: 14px; color: var(--ink-soft); line-height: 1.9; }
.footer-note { font-family: var(--sans) !important; font-size: 12px !important; color: #b39989 !important; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 50;
  transform: translate(-50%, 18px); opacity: 0; pointer-events: none;
  padding: 12px 24px; border-radius: 999px;
  background: rgba(74, 58, 50, .94); color: #fff8f0; font-size: 14px;
  box-shadow: 0 12px 30px rgba(74, 58, 50, .22);
  transition: opacity .25s ease, transform .25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes soft-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  /* 中等屏幕：header 保持单行，导航放不下时自身横向滚动，不撑高高度 */
  .header-inner { min-height: 0; flex-wrap: nowrap; padding: 9px 0; gap: 12px; }
  .brand { gap: 8px; }
  .brand-mark { font-size: 23px; }
  .brand-divider { height: 17px; }
  .brand-name { font-size: 14px; letter-spacing: .08em; }
  .site-nav {
    flex: 1 1 auto; min-width: 0; flex-wrap: nowrap;
    justify-content: flex-start; margin-left: auto; gap: 12px; white-space: nowrap;
    overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { font-size: 12px; flex-shrink: 0; }
  .lang-switch { padding: 3px; gap: 2px; }
  .lang-btn { font-size: 11px; padding: 6px 8px; }
  .hero { grid-template-columns: 1fr; gap: 34px; padding-top: 60px; }
  .hero-art { max-width: 520px; margin-inline: auto; width: 100%; }
  .breathe-grid { grid-template-columns: 1fr; gap: 30px; }
  .breathe-grid .section-heading { margin-bottom: 0; }
  .comfort-grid, .joy-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wrap { width: min(100% - 32px, 1080px); }
  /* 小屏只保留品牌和语言按钮，导航链接交给页面滚动与首屏按钮 */
  .header-inner { min-height: 0; flex-wrap: nowrap; padding: 9px 0; gap: 10px; }
  .site-nav { display: none; }
  .brand { gap: 8px; }
  .brand-mark { font-size: 23px; }
  .brand-divider { height: 17px; }
  .brand-name { font-size: 15px; letter-spacing: .08em; }
  .lang-switch { padding: 3px; gap: 2px; }
  .lang-btn { font-size: 11px; padding: 6px 8px; }
  .hero { padding: 46px 0 30px; }
  .hero-lead { font-size: 15px; }
  .section { padding: 44px 0; }
  .quote-card { padding: 34px 26px 24px; min-height: 240px; }
  .quote-mark { font-size: 120px; }
  .comfort-panel, .letter-sheet, .joy-panel { padding: 22px; }
  .comfort-card { padding: 20px 18px; }
  .breath-stage { min-height: 320px; }
  .ring-two { width: 300px; height: 300px; }
  .ring-one { width: 250px; height: 250px; }
  .breath-orb { width: 190px; height: 190px; }
  .panel-actions { align-items: flex-start; flex-direction: column; gap: 8px; }
}

/* 这一档放不下 5 个导航链接，直接收起，避免链接被裁切 */
@media (min-width: 641px) and (max-width: 730px) {
  .site-nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
