/* 围炉网站。配色：白、小火苗绿、灯光黄、墨绿（OC-091）。
   颜色、字体、圆角都从这里取，页面里不另起颜色。 */
:root {
  --green: #20D88C;           /* 小火苗绿：品牌色，和 App 同色 */
  --green-dark: #12B574;
  --green-deep: #0B7A52;
  --mint: #E4F9EF;
  --forest: #0D3B2C;          /* 墨绿：标题、深色块。全站没有纯黑和棕色 */
  --sun: #FFC933;             /* 灯光黄：高亮、灯、亲友家 */
  --sun-soft: #FFF3C7;
  --coral: #FF6F4E;           /* 只在插画里用 */
  --ink: #1F2A25;
  --ink-2: #5A6A62;
  --ink-3: #8A9790;
  --line: #E1E9E5;
  --mist: #F2F6F4;
  /* 家人和亲友家的颜色，取自 App */
  --dad: #3B8AD9;
  --mom: #D4517E;
  --kid: #B97516;
  --gran: #5F8CA3;
  --zhang: #F0A028;
  --wang: #5F8CA3;

  --display: "WL Display", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --sans: -apple-system, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", sans-serif;
  --r-lg: 32px;
  --r-md: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.2, .9, .3, 1.25);
}

/* 标题字体：思源黑体最粗的一档，只裁了网页上用到的字（tools/build-font.py），所有人看到的都一样 */
@font-face { font-family: "WL Display"; font-weight: 900; font-display: swap; src: url(../fonts/weilu-display.woff2) format("woff2"); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.75; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
h1, h2, h3, p, figure, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
/* 标题只在标点处换行，不把一个词拆成两行 */
h1, h2, h3 { font-family: var(--display); font-weight: 900; color: var(--forest); line-height: 1.3; word-break: keep-all; overflow-wrap: anywhere; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

/* 黄色记号笔：滚到眼前时现场划出来 */
mark { color: inherit; padding: 0 .08em; background: linear-gradient(transparent 58%, var(--sun) 58%, var(--sun) 93%, transparent 93%) no-repeat left / 100% 100%; }
.js mark { background-size: 0% 100%; transition: background-size .9s var(--ease) .35s; }
.js .in mark, .js mark.in { background-size: 100% 100%; }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }

/* 滚动时浮现 */
.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease) calc(var(--i, 0) * 90ms), transform .8s var(--ease) calc(var(--i, 0) * 90ms), translate .35s var(--spring), rotate .35s var(--spring), background .35s; }
.js [data-reveal="pop"] { transform: scale(.92); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- 小零件 ---------- */
.flame { display: inline-block; flex: none; width: 40px; aspect-ratio: 1; border-radius: 50%; background: var(--green); position: relative; overflow: hidden; }
.flame::after { content: ""; position: absolute; inset: 0; background: url(../assets/flame.png) center / 150% no-repeat; filter: brightness(0) invert(1); }
.appicon { width: 40px; aspect-ratio: 1; border-radius: 26%; background: #fff url(../assets/icon.png) center / 118% no-repeat; flex: none; }
.who { display: inline-grid; place-items: center; flex: none; width: 40px; aspect-ratio: 1; border-radius: 50%; color: #fff; font-weight: 600; font-size: 16px; background: var(--c, var(--kid)); }
.tag { display: inline-block; padding: 5px 14px; border-radius: 10px; background: var(--forest); color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .04em; line-height: 1.5; }
.tag.sun { background: var(--sun); color: var(--forest); }
.tag.white { background: #fff; color: var(--forest); }
.tag.green { background: var(--green); color: var(--forest); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 30px; border-radius: 999px; font-size: 17px; font-weight: 700; white-space: nowrap; transition: transform .25s var(--spring), box-shadow .25s var(--ease); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 8px 0 rgba(13, 59, 44, .16); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn.dark { background: var(--forest); color: #fff; }
.btn.white { background: #fff; color: var(--forest); }
.btn.small { height: 44px; padding: 0 22px; font-size: 15px; }
.btn .arrow { display: inline-block; transition: transform .25s var(--spring); }
.btn:hover .arrow { transform: translateY(3px); }
.btn .soon { font-size: 13px; font-weight: 500; opacity: .6; }

.bubble { display: inline-block; max-width: 100%; padding: 10px 16px; border-radius: 20px; background: var(--mist); color: var(--ink); font-size: 15px; line-height: 1.55; }
.bubble.me { background: var(--green); color: #fff; }
.bubble.friend { background: #FDF1DF; box-shadow: inset 0 0 0 1px #F4D7A6; }
.says { display: flex; gap: 10px; align-items: flex-start; }
.says .who, .says .flame { width: 34px; font-size: 14px; }
.says small { display: block; font-size: 12px; color: var(--ink-3); line-height: 1.4; margin-bottom: 3px; }

.seat { position: absolute; translate: -50% -50%; padding: 4px 14px; border-radius: 999px; background: var(--c); color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; transition: scale .25s var(--spring); }
.seat.on-green { color: var(--forest); }
button.seat:hover, .seat.hi { scale: 1.14; }

/* ---------- 顶栏 ---------- */
.nav { position: sticky; top: 0; z-index: 30; background: var(--green); transition: background .3s, box-shadow .3s; }
.nav.stuck { background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 36px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 900; font-size: 24px; letter-spacing: .08em; color: var(--forest); }
.brand .appicon { transition: rotate .4s var(--spring); }
.brand:hover .appicon { rotate: -8deg; }
.nav.stuck .brand .appicon { box-shadow: 0 0 0 2px var(--line); }
.nav nav { display: flex; gap: 32px; margin-left: auto; font-size: 15px; font-weight: 600; color: var(--forest); }
.nav nav a { position: relative; padding: 6px 0; }
.nav nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 2px; background: var(--forest); scale: 0 1; transform-origin: left; transition: scale .3s var(--ease); }
.nav.stuck nav a::after { background: var(--green); }
.nav nav a:hover::after { scale: 1 1; }

/* ---------- 头图：一整块小火苗绿 ---------- */
.hero { background: var(--green); overflow: hidden; padding: 52px 0 120px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) clamp(400px, 44vw, 540px); gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(38px, 4.3vw, 62px); margin: 24px 0 26px; white-space: nowrap; }
.hero h1 mark { background-image: linear-gradient(transparent 60%, var(--sun) 60%, var(--sun) 92%, transparent 92%); }
.hero .lead { font-size: 19px; color: var(--forest); max-width: 29em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero .note { margin-top: 20px; font-size: 14px; color: rgba(13, 59, 44, .8); }

.table { position: relative; width: 100%; aspect-ratio: 1; }
.table > svg { width: 100%; height: 100%; overflow: visible; }
.susan { transform-origin: 300px 300px; animation: spin 90s linear infinite; }
.table:hover .susan { animation-duration: 24s; }
.bub { transform-box: fill-box; transform-origin: center; animation: simmer 2.4s ease-in-out infinite; }
.bub:nth-of-type(2n) { animation-delay: -.8s; }
.bub:nth-of-type(3n) { animation-delay: -1.5s; }
.bowl { transform-box: fill-box; transform-origin: center; transition: transform .35s var(--spring); }
.bowl.hi { transform: scale(1.16); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes simmer { 50% { transform: scale(1.25) translateY(-2px); } }

/* 围着桌子的几句话 */
.talk { position: absolute; max-width: 250px; padding: 12px 14px; border-radius: 20px; background: #fff; box-shadow: 0 8px 0 rgba(13, 59, 44, .14); rotate: var(--r, 0deg); translate: calc(var(--px, 0) * var(--depth, 10px)) calc(var(--py, 0) * var(--depth, 10px)); transform-origin: var(--o, center); transition: opacity .35s var(--ease), transform .45s var(--spring), translate .4s ease-out; z-index: 2; }
.js .talk { opacity: 0; transform: scale(.6); pointer-events: none; }
.js .talk.show { opacity: 1; transform: none; }
.talk.t-mom { left: -6%; top: -9%; --r: -3deg; --o: 80% 100%; }
.talk.t-dad { right: -4%; top: -10%; --r: 2.5deg; --o: 20% 100%; --depth: 16px; }
.talk.t-kid { right: -4%; top: 47%; --r: 3deg; --o: 0% 50%; --depth: 14px; }
.talk.t-gran { left: -4%; bottom: -5%; --r: -2deg; --o: 50% 0%; --depth: 14px; }
.talk.t-fu { right: 0; bottom: -13%; --r: 1.5deg; --o: 50% 0%; --depth: 18px; }

/* ---------- 通用段落 ---------- */
section { padding: 108px 0; }
.head { max-width: 760px; }
.head.center { margin-inline: auto; text-align: center; }
.head h2 { font-size: clamp(32px, 3.8vw, 48px); margin: 18px 0 18px; }
.head p { font-size: 18px; color: var(--ink-2); }
.head.center p { text-wrap: balance; }

/* 两份感情 */
.two .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.half { display: block; border-radius: var(--r-lg); padding: 44px 44px 40px; position: relative; overflow: hidden; transition: translate .35s var(--spring); }
.half:hover { translate: 0 -6px; }
.half.home { background: var(--mint); }
.half.friends { background: var(--sun-soft); }
.half::after { content: ""; position: absolute; right: -70px; bottom: -70px; width: 220px; aspect-ratio: 1; border-radius: 50%; background: var(--green); opacity: .16; transition: scale .6s var(--ease); }
.half.friends::after { background: var(--sun); opacity: .35; }
.half:hover::after { scale: 1.5; }
.half h3 { font-size: 28px; margin: 18px 0 20px; }
.half li { position: relative; padding-left: 28px; margin-top: 10px; font-size: 17px; color: var(--forest); }
.half li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 12px; height: 12px; border-radius: 50%; background: var(--green); }
.half.friends li::before { background: var(--sun); }
.half .more { position: relative; z-index: 1; display: inline-block; margin-top: 28px; font-weight: 700; font-size: 15px; color: var(--forest); }
.half .more i { display: inline-block; font-style: normal; transition: translate .3s var(--spring); }
.half:hover .more i { translate: 0 4px; }
.motto { margin-top: 64px; text-align: center; font-family: var(--display); font-weight: 900; font-size: 28px; color: var(--forest); line-height: 1.7; }

/* ---------- 网页里的手机：照 App 的样子重做的演示 ---------- */
.phone { width: 310px; padding: 9px; border-radius: 46px; background: #10201A; flex: none; position: relative; }
.phone .screen { border-radius: 38px; overflow: hidden; aspect-ratio: 292 / 600; background: #fff; position: relative; }
.app { position: absolute; inset: 0; display: flex; flex-direction: column; font-size: 13px; line-height: 1.5; color: #1A1B1C; }
.app-bar { flex: none; height: 52px; padding-top: 10px; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; position: relative; }
.app-bar .burger { position: absolute; left: 18px; top: 30px; width: 16px; height: 2px; border-radius: 1px; background: #1A1B1C; box-shadow: 0 5px 0 #1A1B1C, 0 -5px 0 #1A1B1C; }
.app-bar .back { position: absolute; left: 18px; top: 24px; width: 9px; height: 9px; border-left: 2px solid #1A1B1C; border-bottom: 2px solid #1A1B1C; rotate: 45deg; }
.chat { flex: 1; min-height: 0; overflow: hidden auto; padding: 4px 12px 12px; display: flex; flex-direction: column; gap: 8px; scrollbar-width: none; scroll-behavior: smooth; }
.chat::-webkit-scrollbar { display: none; }
.chat > :first-child { margin-top: auto; }
.msg { display: flex; gap: 8px; align-items: flex-start; animation: pop .4s var(--spring) both; transform-origin: 0 100%; }
.msg.me { flex-direction: column; align-items: flex-end; gap: 2px; transform-origin: 100% 100%; }
.msg .flame, .msg .who { width: 28px; font-size: 12px; }
.msg .body { min-width: 0; max-width: 222px; }
.msg small { display: block; font-size: 10.5px; color: #8A8F94; margin-bottom: 2px; }
.msg small.from { color: var(--c); font-weight: 600; }
.msg .bubble { font-size: 13px; padding: 8px 12px; border-radius: 16px; background: #F5F6F7; max-width: 222px; }
.msg .bubble.me { background: var(--green); }
.msg .why { font-size: 10px; color: #8A8F94; margin-top: 4px; }
.stamp { text-align: center; font-size: 10.5px; color: #8A8F94; padding: 4px 0; animation: pop .4s var(--spring) both; }
.typing { display: inline-flex; gap: 4px; padding: 11px 13px; border-radius: 16px; background: #F5F6F7; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #B4BABF; animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 30% { transform: translateY(-4px); background: #8A8F94; } }
@keyframes pop { from { opacity: 0; transform: scale(.7) translateY(8px); } }

.kcard { margin-top: 6px; border: 1px solid #E9ECEF; border-radius: 14px; padding: 10px 12px 11px; background: #fff; animation: pop .4s var(--spring) both; transform-origin: 0 0; }
.kcard.fam { border-top: 3px solid var(--c); }
.kcard .k-tag { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: #8A8F94; }
.kcard.fam .k-tag::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.kcard .k-ev { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; }
.kcard .k-ev::before { content: ""; width: 3px; height: 15px; border-radius: 2px; background: var(--c, var(--green)); }
.kcard .k-text { margin-top: 6px; font-size: 13px; }
.kcard .k-done { margin-top: 6px; font-size: 12.5px; color: #12A56B; }
.kcard .k-hint { margin-top: 6px; font-size: 10px; color: #8A8F94; }
.kcard .k-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.kcard .k-title { margin-top: 2px; font-size: 14px; font-weight: 700; }
.kcard .k-sub { font-size: 11px; color: #8A8F94; }
.k-opt { margin-top: 8px; padding: 9px 10px 10px; border-radius: 10px; background: #F5F6F7; }
.k-opt .k-btns { margin-top: 8px; }
.kb { height: 30px; padding: 0 13px; border-radius: 10px; font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; transition: scale .2s var(--spring); }
button.kb:hover { scale: 1.06; }
button.kb:disabled { cursor: default; scale: 1; }
.kb.main { background: var(--green); color: #fff; }
.kb.side { box-shadow: inset 0 0 0 1px #E9ECEF; }
.kb.quiet { color: #8A8F94; font-weight: 400; padding: 0 4px; }
.kb.ask { position: relative; }
.kb.ask::after { content: ""; position: absolute; inset: -4px; border-radius: 14px; border: 2px solid var(--sun); animation: ask 1.1s ease-out infinite; }
@keyframes ask { from { opacity: 1; scale: .92; } to { opacity: 0; scale: 1.16; } }
.kb.tapped { scale: .92; }

.to-row { flex: none; display: flex; align-items: center; gap: 6px; padding: 4px 12px 6px; font-size: 11px; color: #8A8F94; }
.to-row i { font-style: normal; padding: 3px 11px; border-radius: 999px; box-shadow: inset 0 0 0 1px #E9ECEF; color: #1A1B1C; font-size: 12px; transition: background .25s, color .25s; }
.to-row i.on { background: var(--green); color: #fff; box-shadow: none; }
.hold-row { flex: none; display: flex; align-items: center; gap: 10px; margin: 0 12px 8px; }
.hold-row .kbd { flex: none; width: 20px; height: 14px; border-radius: 3px; border: 2px solid #1A1B1C; background: linear-gradient(#1A1B1C, #1A1B1C) center 7px / 8px 2px no-repeat; }
.hold { flex: 1; height: 40px; border-radius: 20px; background: #F5F6F7; display: grid; place-items: center; font-weight: 600; font-size: 13.5px; transition: background .2s, color .2s, scale .2s; }
.hold.rec { background: var(--green); color: #fff; scale: .97; }
.tabs { flex: none; display: grid; grid-template-columns: 1fr 1fr; font-size: 10.5px; padding: 6px 0 10px; border-top: 1px solid #F0F2F3; }
.tabs span { display: grid; justify-items: center; }
.ico { width: 17px; height: 17px; }
.toast { position: absolute; left: 10px; right: 10px; bottom: 12px; padding: 10px 14px; border-radius: 10px; background: #2B2F31; color: #fff; font-size: 12.5px; opacity: 0; translate: 0 12px; transition: opacity .3s, translate .3s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; translate: 0 0; }
.banner { position: absolute; left: 8px; right: 8px; top: 10px; z-index: 3; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(13, 59, 44, .28); font-size: 12px; line-height: 1.4; opacity: 0; translate: 0 -120%; transition: opacity .3s, translate .5s var(--spring); }
.banner.show { opacity: 1; translate: 0 0; }
.banner .appicon { width: 30px; box-shadow: 0 0 0 1px #E9ECEF; }
.banner b { display: block; font-size: 12.5px; }

/* 家里人之间：左边选场景，右边手机里演 */
.stage { display: grid; grid-template-columns: minmax(0, 1fr) 470px; gap: 56px; align-items: center; margin-top: 56px; }
.scenes { display: grid; gap: 12px; }
.scene { display: block; width: 100%; padding: 20px 24px 22px; border-radius: var(--r-md); background: var(--mist); position: relative; overflow: hidden; transition: background .3s, translate .3s var(--spring); }
.scene:hover { translate: 6px 0; }
.scene b { display: block; font-family: var(--display); font-weight: 900; font-size: 21px; color: var(--forest); }
.scene span { display: block; font-size: 15px; color: var(--ink-2); margin-top: 2px; }
.scene.on { background: var(--mint); }
.scene .bar { position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--green); }
.scene.on .bar { transition: width .8s linear; }
.scenes-tip { margin-top: 6px; font-size: 14px; color: var(--ink-3); }
.pic { display: grid; place-items: center; position: relative; padding: 16px 0; }
.pic::before { content: ""; position: absolute; width: 470px; max-width: 100%; aspect-ratio: 1; border-radius: 50%; background: var(--mint); }
.pic.sunny::before { background: var(--sun-soft); }
.pic > * { position: relative; }

/* 日程 */
.row { display: grid; grid-template-columns: 470px minmax(0, 1fr); gap: 56px; align-items: center; margin-top: 96px; }
.row .text h3 { font-size: 32px; margin-bottom: 18px; }
.row .text p { color: var(--ink-2); font-size: 18px; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.legend button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px 8px 12px; border-radius: 999px; background: var(--mist); font-size: 15px; font-weight: 600; color: var(--forest); transition: background .25s, color .25s, scale .25s var(--spring); }
.legend button::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c); transition: background .25s; }
.legend button:hover { scale: 1.06; }
.legend button.on { background: var(--c); color: #fff; }
.legend button.on::before { background: #fff; }
.legend-tip { margin-top: 14px; font-size: 14px; color: var(--ink-3); }
.cal { flex: 1; min-height: 0; padding: 0 14px; overflow: hidden; }
.cal-legend { display: flex; gap: 10px; font-size: 10.5px; padding: 2px 0 8px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 4px; }
.cal-legend span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.cal-week { text-align: center; font-weight: 700; font-size: 14px; line-height: 1.3; padding-bottom: 6px; }
.cal-week small { display: block; font-weight: 400; font-size: 10px; color: #12B574; }
.cal-day { border-top: 1px solid #F0F2F3; padding: 7px 0 8px; }
.cal-day b { font-size: 12px; }
.cal-day.sat b { color: var(--dad); }
.cal-day.sun b { color: #E0494F; }
.cal-day em { font-style: normal; font-size: 10.5px; color: #B4BABF; margin-left: 6px; }
.ev { margin-top: 5px; padding: 6px 10px; border-radius: 8px; background: var(--c); color: #fff; font-size: 12px; transition: opacity .3s, scale .3s var(--spring); transform-origin: left; }
.js .cal:not(.in) .ev { opacity: 0; }
.js .cal.in .ev { animation: evin .6s var(--spring) backwards; animation-delay: calc(var(--i) * 140ms + 300ms); }
@keyframes evin { from { opacity: 0; translate: -24px 0; } }
.cal[data-only] .ev { opacity: .16; }
.cal[data-only="dad"] .ev[data-who="dad"], .cal[data-only="mom"] .ev[data-who="mom"], .cal[data-only="kid"] .ev[data-who="kid"], .cal[data-only="all"] .ev[data-who="all"] { opacity: 1; scale: 1.03; }
.seg { position: absolute; right: 14px; top: 22px; display: grid; grid-template-columns: 1fr 1fr; font-size: 11px; border-radius: 999px; box-shadow: inset 0 0 0 1px #1A1B1C; overflow: hidden; }
.seg span { padding: 2px 10px; }
.seg span:first-child { background: #CDEBDB; }

/* ---------- 亲友家：夜里亮着灯的几户人家 ---------- */
.dusk { background: var(--forest); color: #fff; padding: 108px 0 0; overflow: hidden; }
.dusk h2 { color: #fff; }
.dusk .head p { color: rgba(255, 255, 255, .78); }
.village { position: relative; margin-top: 56px; }
.village svg { width: 100%; overflow: visible; }
.house { cursor: pointer; }
.house .lift { transition: transform .4s var(--spring); transform-box: fill-box; transform-origin: 50% 100%; }
.house:hover .lift, .house.hi .lift { transform: translateY(-10px) scale(1.04); }
.win { fill: var(--sun); transition: fill .6s ease; }
.halo { transition: opacity 1.2s ease; }
.js .house:not(.lit) .win { fill: #1F5A46; }
.js .house:not(.lit) .halo { opacity: 0; }
.bulb { fill: var(--c); transition: fill .4s ease; transform-box: fill-box; transform-origin: center; }
.js .bulb:not(.lit) { fill: #1F5A46; }
.bulb.lit { animation: twinkle 2.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.4s); }
.star { animation: twinkle 3.4s ease-in-out infinite; animation-delay: calc(var(--i) * -.7s); }
.smoke circle { opacity: 0; animation: smoke 5s ease-out infinite; animation-delay: calc(var(--i) * 1.6s); transform-box: fill-box; transform-origin: center; }
.js .house:not(.lit) .smoke { display: none; }
@keyframes twinkle { 50% { opacity: .45; transform: scale(.85); } }
@keyframes smoke { 0% { opacity: 0; transform: translate(0, 0) scale(.5); } 20% { opacity: .35; } 100% { opacity: 0; transform: translate(14px, -64px) scale(1.6); } }
.h-zhang { left: 19.2%; }
.h-ours { left: 50%; }
.h-wang { left: 80.8%; }
.village .seat { top: 89%; }
.hello.h-zhang, .hello.h-wang { top: 35%; }
.hello.h-ours { top: 26%; }
.hello { position: absolute; translate: -50% -100%; padding: 8px 14px; border-radius: 16px; background: #fff; color: var(--ink); font-size: 14px; line-height: 1.5; white-space: nowrap; box-shadow: 0 6px 0 rgba(0, 0, 0, .22); opacity: 0; scale: .6; transform-origin: 50% 100%; transition: opacity .3s, scale .45s var(--spring); pointer-events: none; }
.hello::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 14px; height: 14px; background: #fff; rotate: 45deg; translate: -50% 0; border-radius: 3px; }
.hello.show { opacity: 1; scale: 1; }

/* 约一次：两部手机 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; counter-reset: step; }
.step { counter-increment: step; padding: 22px 24px 24px; border-radius: var(--r-md); background: var(--mist); transition: background .4s, translate .4s var(--spring); }
.step .num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; font-family: var(--display); font-weight: 900; font-size: 19px; color: var(--forest); transition: background .4s, scale .4s var(--spring); }
.step .num::before { content: counter(step); }
.step h3 { font-size: 21px; margin: 12px 0 6px; }
.step p { color: var(--ink-2); font-size: 15px; }
.step.on { background: var(--sun-soft); translate: 0 -6px; }
.step.on .num { background: var(--sun); scale: 1.12; }
.duo { margin-top: 40px; border-radius: var(--r-lg); background: var(--mint); padding: 36px 24px 32px; position: relative; overflow: hidden; }
.duo-cap { min-height: 3.2em; max-width: 34em; margin: 0 auto 20px; text-align: center; font-weight: 700; font-size: 17px; line-height: 1.6; color: var(--forest); text-wrap: balance; }
.duo-track { display: flex; justify-content: center; align-items: center; gap: 0; }
.duo-side { display: grid; justify-items: center; gap: 14px; }
.duo-side .who-is { display: inline-flex; align-items: center; gap: 8px; padding: 5px 16px; border-radius: 999px; background: var(--c); color: #fff; font-weight: 700; font-size: 15px; }
.duo-side .who-is.on-green { color: var(--forest); }
.wire { width: 150px; height: 60px; position: relative; flex: none; }
.wire::before { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; border-top: 3px dashed rgba(13, 59, 44, .25); }
.wire .pkt { position: absolute; top: 50%; left: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: var(--sun); display: grid; place-items: center; opacity: 0; box-shadow: 0 4px 0 rgba(13, 59, 44, .16); }
.wire .pkt::after { content: ""; width: 14px; height: 10px; border-radius: 2px; background: var(--forest); clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 100%, 0 100%); }
.wire.go .pkt { animation: go 1.1s var(--ease) forwards; }
.wire.back .pkt { animation: back 1.1s var(--ease) forwards; }
@keyframes go { 0% { left: 0; opacity: 0; scale: .5; } 15% { opacity: 1; scale: 1; } 85% { opacity: 1; scale: 1; } 100% { left: 100%; opacity: 0; scale: .5; } }
@keyframes back { 0% { left: 100%; opacity: 0; scale: .5; } 15% { opacity: 1; scale: 1; } 85% { opacity: 1; scale: 1; } 100% { left: 0; opacity: 0; scale: .5; } }
.duo-foot { display: flex; justify-content: center; margin-top: 24px; min-height: 44px; }
.replay { height: 44px; padding: 0 22px; border-radius: 999px; background: var(--forest); color: #fff; font-weight: 700; font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .3s, scale .25s var(--spring); }
.replay.show { opacity: 1; pointer-events: auto; }
.replay:hover { scale: 1.06; }
.confetti { position: absolute; left: 50%; top: 46%; width: 0; height: 0; pointer-events: none; }
.confetti i { position: absolute; width: 10px; height: 10px; border-radius: 3px; background: var(--c); opacity: 0; }
.confetti.fire i { animation: burst 1.3s var(--ease) forwards; }
@keyframes burst { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--rot)); } }

.cards { display: grid; gap: 24px; margin-top: 56px; }
.cards.c3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--mist); border-radius: var(--r-lg); padding: 36px; transition: translate .35s var(--spring), background .35s; }
.card:hover { translate: 0 -6px; background: var(--sun-soft); }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 16px; }

/* ---------- 围炉的一天 ---------- */
.day { background: var(--mint); }
.moments { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; position: relative; }
.moment { background: #fff; border-radius: var(--r-md); padding: 28px 24px 30px; display: grid; gap: 16px; align-content: start; transition: translate .35s var(--spring), rotate .35s var(--spring); }
.moment:hover { translate: 0 -8px; rotate: -1deg; }
.moment:nth-child(even):hover { rotate: 1deg; }
.moment time { font-family: var(--display); font-weight: 900; font-size: 22px; color: var(--forest); width: max-content; }
.moment p { font-size: 15px; color: var(--ink-2); }

/* ---------- 说给谁听 ---------- */
.reach { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; border-radius: var(--r-lg); background: var(--forest); color: #fff; overflow: hidden; }
.reach div { padding: 38px 32px 42px; transition: background .3s; }
.reach div:hover { background: #135240; }
.reach div + div { border-left: 1px solid rgba(255, 255, 255, .16); }
.reach small { display: block; font-size: 14px; font-weight: 600; color: var(--sun); margin-bottom: 10px; }
.reach strong { font-family: var(--display); font-weight: 900; font-size: 21px; line-height: 1.5; display: block; }
.reach-note { margin-top: 22px; text-align: center; font-size: 15px; color: var(--ink-3); }

/* ---------- 结尾 ---------- */
.get { background: var(--green); text-align: center; overflow: hidden; }
.get .appicon { width: 88px; margin: 0 auto 28px; animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -8px; rotate: 3deg; } }
.get h2 { font-size: clamp(34px, 4.2vw, 54px); }
.get .sub { margin: 18px auto 0; max-width: 34em; color: var(--forest); font-size: 18px; }
.get .cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 38px; }
.get ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; margin-top: 52px; counter-reset: s; font-size: 16px; font-weight: 600; color: var(--forest); }
.get ol li { counter-increment: s; display: flex; align-items: center; gap: 10px; }
.get ol li::before { content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--sun); font-weight: 800; font-size: 14px; }
.get .fine { margin-top: 30px; font-size: 14px; color: var(--forest); opacity: .75; }

footer { padding: 44px 0 56px; font-size: 14px; background: var(--forest); color: rgba(255, 255, 255, .66); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; }
footer .brand { font-size: 18px; color: #fff; }
footer p { flex: 1 1 320px; }
footer .beian { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .3); }
footer .beian:hover { color: #fff; }

/* ---------- 手机上 ---------- */
@media (max-width: 1000px) {
  .stage, .row { grid-template-columns: 1fr; gap: 40px; }
  .row .pic { order: 2; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .table { max-width: 460px; margin: 96px auto 64px; }
  .hero h1 { white-space: normal; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  html { scroll-padding-top: 68px; }
  .wrap { width: calc(100% - 40px); }
  .nav .wrap { height: 64px; }
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
  .hero { padding: 20px 0 88px; }
  .hero h1 { font-size: 36px; margin: 18px 0; }
  .hero .lead { font-size: 17px; }
  .hero .cta .btn { flex: 1 1 100%; }
  .talk { max-width: 230px; padding: 9px 11px; }
  .talk .bubble { font-size: 13px; padding: 7px 12px; }
  .talk.t-mom { left: 0; top: -24%; }
  .talk.t-dad { right: 0; top: -22%; }
  .talk.t-kid { right: 0; top: auto; bottom: -19%; }
  .talk.t-gran { left: 0; top: auto; bottom: -19%; }
  .talk.t-fu { left: 8%; right: auto; bottom: -22%; }
  .seat { font-size: 12px; padding: 2px 10px; }
  section { padding: 72px 0; }
  .head h2 { font-size: 30px; }
  .head p { font-size: 16px; }
  .two .pair, .cards.c3, .steps { grid-template-columns: 1fr; }
  .two .pair { margin-top: 32px; gap: 16px; }
  .half { padding: 30px 24px; }
  .half h3 { font-size: 23px; }
  .motto { font-size: 21px; margin-top: 44px; }
  .motto span { display: block; }
  .stage { margin-top: 36px; gap: 28px; }
  .scenes { grid-template-columns: 1fr 1fr; gap: 10px; }
  .scene { padding: 14px 10px 16px; text-align: center; }
  .scene b { font-size: 14px; }
  .scene span { display: none; }
  .scene:hover { translate: none; }
  .pic::before { width: 340px; }
  .phone { width: 290px; }
  .row { margin-top: 64px; }
  .row .text h3 { font-size: 25px; }
  .row .text p { font-size: 16px; }
  .dusk { padding-top: 72px; }
  .village { margin: 84px -20px 0; overflow-x: clip; }
  .village svg { width: 125%; max-width: none; margin-left: -12.5%; }
  .h-zhang { left: 11.5%; }
  .h-wang { left: 88.5%; }
  .hello { font-size: 13px; white-space: normal; width: max-content; max-width: 200px; }
  .hello.h-zhang { left: 12px; translate: 0 -100%; transform-origin: 20% 100%; }
  .hello.h-zhang::after { left: 34px; }
  .hello.h-wang { left: auto; right: 12px; translate: 0 -100%; transform-origin: 80% 100%; }
  .hello.h-wang::after { left: auto; right: 20px; }
  .steps { gap: 10px; margin-top: 32px; }
  .step { display: grid; grid-template-columns: 40px 1fr; gap: 0 14px; padding: 16px 18px; }
  .step .num { grid-row: span 2; }
  .step h3 { margin: 0; font-size: 18px; }
  .step.on { translate: 0 0; }
  .duo { margin: 24px -20px 0; border-radius: 0; padding: 28px 0 24px; }
  .duo-cap { font-size: 15px; padding: 0 20px; min-height: 4.8em; }
  .duo-track { justify-content: flex-start; width: 200%; transition: translate .6s var(--ease); }
  .duo[data-side="b"] .duo-track { translate: -50% 0; }
  .duo-side { width: 50%; }
  .wire { display: none; }
  .cards { margin-top: 40px; gap: 16px; }
  .card { padding: 28px 24px; }
  .moments { grid-template-columns: 1fr; gap: 12px; margin-top: 36px; }
  .moment { padding: 22px 22px 24px; }
  .reach { grid-template-columns: 1fr; margin-top: 36px; }
  .reach div { padding: 24px 26px; }
  .reach div + div { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .16); }
  .get .cta .btn { flex: 1 1 100%; }
  .get ol { flex-direction: column; align-items: flex-start; width: max-content; margin-inline: auto; }
}

/* 不喜欢动画的人：内容直接出现，不转不闪 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js mark { background-size: 100% 100%; }
  .js .cal .ev { opacity: 1; translate: 0 0; }
}
