/* 三餐日历品牌官网 · 依据品牌包 V2.0（青墨 / 瓷白 / 熟杏，Noto Sans SC） */

@font-face {
  font-family: "Noto Sans SC Web";
  src: url("fonts/NotoSansSC-common.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans SC Web Ext";
  src: url("fonts/NotoSansSC-extended.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --porcelain: #F5F2EA;
  --ink: #253C36;
  --apricot: #EBA873;
  --stone: #D8D9CF;
  --text: #242A27;
  --muted: #5D6662;
  --surface: #FFFFFF;
  --paper: #EFEBE1;              /* 包装样机背景的暖灰，图片外框用 */
  --ink-2: #2E4741;              /* 青墨上的卡片 */
  --on-ink: rgba(245, 242, 234, .74);
  --line: color-mix(in srgb, var(--stone) 70%, transparent);
  --wrap: 1200px;
  --gutter: 40px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Noto Sans SC Web", "Noto Sans SC Web Ext", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--porcelain); color: var(--text);
  font: 400 16px/1.75 var(--font); font-feature-settings: "palt" 0;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); font-weight: 600; margin: 0; letter-spacing: .01em; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* 眉题：熟杏短横 + 小字（取自品牌 PDF 页眉） */
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 500; letter-spacing: .16em; color: var(--muted); margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--apricot); flex: none; }
.eyebrow.on-dark { color: var(--on-ink); }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 28px; border-radius: 999px; font-size: 16px; font-weight: 500;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn.small { height: 40px; padding: 0 20px; font-size: 15px; }
.btn-ink { background: var(--ink); color: var(--porcelain); }
.btn-ink:hover { background: #1B2E29; }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--porcelain); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.btn.is-soon { cursor: default; opacity: .55; }
.btn.is-soon:hover { background: inherit; color: inherit; }
.btn-ink.is-soon:hover { background: var(--ink); color: var(--porcelain); }

/* 页眉 */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--porcelain) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s var(--ease);
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { padding: 10px 0; }
.brand img { width: 160px; }
.menu { display: flex; gap: 36px; }
.menu a { font-size: 15px; color: var(--muted); text-decoration: none; position: relative; padding: 6px 0; transition: color .2s; }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.menu a:hover { color: var(--ink); }
.menu a:hover::after { transform: scaleX(1); }

/* 首屏 */
.hero { padding: 72px 0 96px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.2vw, 68px); line-height: 1.22; letter-spacing: .02em; }
.lead { margin-top: 28px; font-size: 18px; line-height: 1.9; color: var(--muted); max-width: 30em; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.facts { list-style: none; padding: 28px 0 0; margin: 48px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 40px; }
.facts li { display: grid; gap: 2px; }
.facts strong { font-size: 15px; font-weight: 500; color: var(--ink); }
.facts span { font-size: 13px; color: var(--muted); }
.hero-media { margin: 0; position: relative; }
.hero-media img { border-radius: 20px; width: 100%; background: var(--paper); }
.hero-media::after {
  /* 熟杏竖条：取自礼盒与每日袋的侧边色带 */
  content: ""; position: absolute; right: -14px; top: 12%; bottom: 12%; width: 6px; border-radius: 3px; background: var(--apricot);
}

/* 三个承诺：青墨底 */
.pillars { background: var(--ink); color: var(--porcelain); }
.pillars-in { display: grid; grid-template-columns: repeat(3, 1fr); }
.pillar { padding: 64px 40px 68px; border-left: 1px solid rgba(245, 242, 234, .14); }
.pillar:first-child { border-left: 0; padding-left: 0; }
.pillar .no { display: block; font-size: 14px; font-weight: 500; letter-spacing: .12em; color: var(--apricot); margin-bottom: 22px; font-variant-numeric: tabular-nums; }
.pillar h3 { color: var(--porcelain); font-size: 24px; line-height: 1.4; margin-bottom: 14px; }
.pillar p { color: var(--on-ink); font-size: 15px; line-height: 1.9; }

/* 通用章节 */
.section { padding: 128px 0; }
.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section h2, .buy h2, .week h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.36; }
.sub { margin-top: 20px; font-size: 17px; line-height: 1.9; color: var(--muted); }

/* 步骤：日历格 */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.steps li { padding: 32px 28px 8px 0; position: relative; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.step-no { display: block; font-size: 56px; line-height: 1; font-weight: 400; color: var(--ink); letter-spacing: -.01em; font-variant-numeric: tabular-nums; margin-bottom: 28px; }
.steps h3 { font-size: 19px; line-height: 1.5; margin-bottom: 10px; }
.steps p { font-size: 15px; line-height: 1.85; color: var(--muted); }

/* 一周七袋：青墨底 */
.week { background: var(--ink); color: var(--porcelain); padding: 128px 0; overflow: hidden; }
.week-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.week-media { margin: 0; }
.week-media img { border-radius: 20px; background: var(--paper); }
.week h2 { color: var(--porcelain); }
.week .sub { color: var(--on-ink); }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 44px; }
.days span {
  display: grid; place-items: center; aspect-ratio: 1 / 1.2; border-radius: 10px;
  border: 1px solid rgba(245, 242, 234, .2); font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums;
  color: var(--porcelain); position: relative; transition: background .3s var(--ease), border-color .3s var(--ease);
}
.days span::before { content: "DAY"; position: absolute; top: 8px; font-size: 9px; letter-spacing: .14em; color: var(--on-ink); }
.days span:first-child { background: var(--porcelain); color: var(--ink); border-color: var(--porcelain); }
.days span:first-child::before { color: var(--muted); }
.days span:hover { border-color: var(--apricot); }
.meals { list-style: none; padding: 0; margin: 36px 0 0; }
.meals li { display: flex; gap: 20px; padding: 16px 0; border-top: 1px solid rgba(245, 242, 234, .14); color: var(--on-ink); font-size: 15px; }
.meals li:last-child { border-bottom: 1px solid rgba(245, 242, 234, .14); }
.meals span { color: var(--porcelain); font-weight: 500; width: 3em; flex: none; }

/* 我们的坚持 */
.promises { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.promise { background: var(--surface); border-radius: 18px; padding: 40px 40px 44px; border: 1px solid var(--line); position: relative; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.promise::before { content: ""; position: absolute; left: 40px; top: 0; width: 28px; height: 3px; background: var(--apricot); }
.promise:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(37, 60, 54, .28); }
.promise h3 { font-size: 21px; line-height: 1.5; margin-bottom: 12px; }
.promise p { font-size: 15px; line-height: 1.9; color: var(--muted); }

/* 适合谁 */
.fit { padding-top: 0; }
.fit-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; padding-top: 112px;
  background: linear-gradient(var(--line), var(--line)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat; }
.fit-note { background: color-mix(in srgb, var(--stone) 38%, var(--porcelain)); border-radius: 18px; padding: 36px 36px 32px; }
.fit-note h3 { font-size: 18px; margin-bottom: 12px; }
.fit-note p { font-size: 15px; line-height: 1.85; color: var(--muted); }
.fit-note ul { margin: 16px 0 0; padding: 0; list-style: none; }
.fit-note li { font-size: 15px; padding: 10px 0 10px 18px; border-top: 1px solid var(--line); position: relative; }
.fit-note li::before { content: ""; position: absolute; left: 0; top: 21px; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }

/* 选购 */
.buy { padding: 128px 0; background: color-mix(in srgb, var(--surface) 55%, var(--porcelain)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 24px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 44px 40px 40px; position: relative; overflow: hidden; }
.plan.featured { border-color: var(--ink); }
.plan.featured::after { content: ""; position: absolute; right: 28px; top: 0; bottom: 0; width: 6px; background: var(--apricot); }
.plan-days { display: flex; align-items: baseline; gap: 6px; color: var(--ink); margin-bottom: 18px; }
.plan-days .big { font-size: 88px; line-height: .9; font-weight: 400; font-variant-numeric: tabular-nums; }
.plan-days .unit { font-size: 22px; font-weight: 500; }
.plan h3 { font-size: 22px; margin-bottom: 10px; }
.plan p { font-size: 15px; line-height: 1.85; color: var(--muted); max-width: 22em; }
.opts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; gap: 10px; flex-wrap: wrap; }
.opts li { font-size: 14px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--stone); color: var(--ink); }
.channels { margin-top: 48px; text-align: center; }
.channels .hint { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.channel-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* 常见问题 */
.faq-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: start; }
.faq-in .section-head { margin-bottom: 0; position: sticky; top: 120px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font-size: 18px; font-weight: 500; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; flex: none; background:
  linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat,
  linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 28px 0; font-size: 16px; line-height: 1.9; color: var(--muted); }

/* 页脚 */
.footer { background: var(--ink); color: var(--on-ink); padding: 96px 0 56px; }
.footer-in { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.footer .lockup { width: 420px; }
.footer .wordmark-sm { display: none; width: 160px; }
.footer-meta { text-align: right; font-size: 14px; line-height: 2; }
.footer-meta a { text-decoration: none; border-bottom: 1px solid rgba(245, 242, 234, .3); }
.footer-meta a:hover { color: var(--porcelain); }

/* 进入视口淡入 */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js-reveal .reveal.in { opacity: 1; transform: none; }
.steps li.reveal:nth-child(2), .promise.reveal:nth-child(2), .pillar.reveal:nth-child(2) { transition-delay: .08s; }
.steps li.reveal:nth-child(3), .promise.reveal:nth-child(3), .pillar.reveal:nth-child(3) { transition-delay: .16s; }
.steps li.reveal:nth-child(4), .promise.reveal:nth-child(4) { transition-delay: .24s; }

/* 平板 */
@media (max-width: 1023px) {
  :root { --gutter: 32px; }
  .menu { gap: 24px; }
  .hero-in { grid-template-columns: 1fr; gap: 48px; }
  .hero-media::after { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 8px; }
  .week-in { grid-template-columns: 1fr; gap: 56px; }
  .fit-in, .faq-in { grid-template-columns: 1fr; gap: 40px; }
  .faq-in .section-head { position: static; }
}

/* 手机 */
@media (max-width: 767px) {
  :root { --gutter: 20px; }
  html { scroll-padding-top: 64px; }
  .topbar-in { height: 64px; }
  .brand img { width: 136px; }
  .menu { display: none; }
  .hero { padding: 40px 0 64px; }
  .hero h1 { font-size: 38px; line-height: 1.3; }
  .lead { font-size: 16px; margin-top: 20px; }
  .actions { margin-top: 28px; }
  .actions .btn { flex: 1 1 100%; }
  .facts { grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 36px; padding-top: 20px; }
  .facts strong { font-size: 14px; }
  .facts span { font-size: 12px; }
  .hero-media img { border-radius: 14px; }
  .pillars-in { grid-template-columns: 1fr; }
  .pillar, .pillar:first-child { padding: 40px 0; border-left: 0; border-top: 1px solid rgba(245, 242, 234, .14); }
  .pillar:first-child { border-top: 0; }
  .pillar h3 { font-size: 21px; }
  .section, .week, .buy { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  .sub { font-size: 16px; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 24px 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 0; display: grid; grid-template-columns: 64px 1fr; column-gap: 12px; }
  .steps li:first-child { border-top: 0; }
  .step-no { font-size: 36px; margin: 0; grid-row: span 2; }
  .week-media img { border-radius: 14px; }
  .days { gap: 5px; }
  .days span { font-size: 15px; border-radius: 8px; }
  .days span::before { font-size: 8px; top: 5px; }
  .promises { grid-template-columns: 1fr; gap: 14px; }
  .promise { padding: 32px 24px 30px; }
  .promise::before { left: 24px; }
  .fit-in { padding-top: 72px; }
  .fit-note { padding: 28px 22px 24px; }
  .plans { grid-template-columns: 1fr; }
  .plan { padding: 36px 28px 32px; }
  .plan-days .big { font-size: 72px; }
  .channel-btns .btn { flex: 1 1 100%; }
  .faq summary { font-size: 16px; padding: 22px 0; }
  .faq details p { padding-right: 0; font-size: 15px; }
  .footer { padding: 64px 0 40px; }
  .footer-in { flex-direction: column; align-items: flex-start; }
  .footer .lockup { display: none; }
  .footer .wordmark-sm { display: block; }
  .footer-meta { text-align: left; }
}

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