/* ============================================================
   英语帆 · v10 「一个下午」
   第一屏：世界本身是画面，屏幕上只留一句话。下方：白纸、一种字体、少量金色。
   ============================================================ */
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("../assets/fonts/nunito-800.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 900; font-display: swap; src: url("../assets/fonts/nunito-900.woff2") format("woff2"); }

:root {
  --paper: #FFFDF7; --cream: #FFF6E3; --white: #fff;
  --ink: #14264A; --ink-soft: #52648C; --line: #E8E1D1;
  --gold: #FFC52C; --gold-deep: #B07D08; --gold-soft: #FFF1C9;
  --blue: #2D8CFF; --blue-deep: #1668D9; --blue-soft: #E8F1FF; --green: #3F9E3E; --green-soft: #E6F6E4; --coral: #FF6A4D; --red: #E5484D;
  --font-display: "Nunito", -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: -apple-system, "PingFang SC", "Hiragino Sans GB", "Segoe UI", "Microsoft YaHei", sans-serif;
  --r: 16px; --r-lg: 24px; --shadow: 0 10px 30px rgba(20,38,74,.10); --shadow-lg: 0 20px 60px rgba(20,38,74,.22); --wrap: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); line-height: 1.75; font-size: 17px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--gold); color: var(--ink); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; } .wrap.narrow { max-width: 820px; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.2; letter-spacing: .005em; text-wrap: balance; }
.yf-logo { font-family: var(--font-display); font-weight: 900; letter-spacing: .02em; } .yf-logo b { color: var(--red); } .yf-logo i { color: var(--coral); font-style: normal; }
.kicker { margin: 0 0 12px; font-family: var(--font-display); font-weight: 900; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-deep); } .kicker.light { color: var(--gold); }
.lead { font-size: 18px; color: var(--ink-soft); margin: 14px 0 0; max-width: 60ch; }
.fine { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }
mark { background: linear-gradient(transparent 55%, var(--gold-soft) 55%); color: inherit; padding: 0 .1em; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 999px; border: 0; font-family: var(--font-display); font-weight: 900; font-size: 17px; line-height: 1; transition: transform .15s, box-shadow .15s; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn.gold { background: var(--gold); color: var(--ink); box-shadow: 0 8px 22px rgba(255,197,44,.45); } .btn.gold:hover { box-shadow: 0 12px 28px rgba(255,197,44,.6); transform: translateY(-1px); }
.btn.big { min-height: 62px; padding: 0 36px; font-size: 21px; }
.btn.primary { background: var(--blue-deep); color: #fff; box-shadow: 0 8px 22px rgba(22,104,217,.3); }
.btn.ghost { background: #fff; color: var(--ink); border: 2px solid var(--line); } .btn.link { background: none; color: var(--ink-soft); font-weight: 700; min-height: 40px; }

/* ---------- 第一屏 ---------- */
.stage { position: relative; height: 100svh; min-height: 600px; background: #bfe3ff; overflow: hidden; color: #fff; }
.stage canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.stage-poster, .stage-fallback, .ai-badge { display: none; }
.stage.no-webgl canvas, .stage.no-webgl .top, .stage.no-webgl .title button { display: none; }
.stage.no-webgl .stage-poster { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage.no-webgl .ai-badge { display: block; position: absolute; left: 16px; bottom: 16px; background: rgba(20,38,74,.75); font-size: 12px; padding: 4px 10px; border-radius: 999px; }
.stage.no-webgl .stage-fallback { display: block; position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%); background: #fff; color: var(--ink); padding: 14px 22px; border-radius: 999px; box-shadow: var(--shadow-lg); font-weight: 700; } .stage-fallback a { color: var(--blue-deep); text-decoration: underline; }
.top { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: center; padding: max(14px, env(safe-area-inset-top)) 18px 0; pointer-events: none; z-index: 3; }
.top > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px 0 7px; border-radius: 999px; background: rgba(255,253,247,.86); color: var(--ink); backdrop-filter: blur(8px); font-size: 17px; box-shadow: 0 4px 14px rgba(20,38,74,.12); } .brand img { width: 28px; height: 28px; }
.tools { display: flex; gap: 10px; align-items: center; }
#snd { width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,253,247,.86); color: var(--ink); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(20,38,74,.12); backdrop-filter: blur(8px); }
#snd .x { display: none; } #snd.off .x { display: block; } #snd.off .w1, #snd.off .w2 { display: none; }
.skip { height: 42px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; background: rgba(255,253,247,.86); color: var(--ink); font-weight: 800; font-size: 14.5px; box-shadow: 0 4px 14px rgba(20,38,74,.12); backdrop-filter: blur(8px); }

.say { position: absolute; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 3; width: min(620px, calc(100% - 28px)); display: flex; align-items: center; gap: 14px; padding: 14px 16px 14px 14px; border-radius: 24px; background: rgba(255,253,247,.96); color: var(--ink); box-shadow: 0 16px 48px rgba(20,38,74,.28); }
.say[hidden] { display: none; }
.say img { width: 56px; height: 56px; border-radius: 50%; flex: none; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.say-text { flex: 1; min-width: 0; } .say .en { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: 24px; line-height: 1.2; } .say .zh { margin: 4px 0 0; font-size: 15.5px; color: var(--ink-soft); line-height: 1.4; }
#say-spk { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--gold-soft); font-size: 18px; }
.say.bump { animation: bump .4s cubic-bezier(.2,.8,.2,1); } @keyframes bump { 0% { transform: translateX(-50%) translateY(14px); opacity: .4; } 100% { transform: translateX(-50%); opacity: 1; } }

.pocket { position: absolute; left: 18px; bottom: calc(132px + env(safe-area-inset-bottom)); z-index: 2; margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; max-width: min(46%, 520px); }
.pocket[hidden] { display: none; }

/* 得到产物：纯色背景 + 金光（画在 canvas 里），这里只是下面的大字 */
.loot { position: absolute; left: 50%; bottom: calc(150px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 3; text-align: center; pointer-events: none; white-space: nowrap; }
.loot[hidden] { display: none; }
.loot b { display: block; font-family: var(--font-display); font-weight: 900; font-size: 64px; line-height: 1; letter-spacing: .04em; color: #FFD54A; text-shadow: 0 4px 0 rgba(0,0,0,.35), 0 0 30px rgba(255,214,74,.6); }
.loot i { display: block; margin-top: 10px; font-style: normal; font-weight: 700; font-size: 24px; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.35); opacity: 0; transition: opacity .4s; }
.loot.zh i { opacity: 1; }
.loot.in { animation: lootIn .5s cubic-bezier(.2,.8,.2,1); } @keyframes lootIn { from { transform: translateX(-50%) translateY(24px) scale(.8); opacity: 0; } }
.stage.reveal .pocket, .stage.reveal .say { opacity: 0; transition: opacity .2s; }
.flash { position: absolute; inset: 0; z-index: 4; background: #fff; opacity: 0; pointer-events: none; transition: opacity .18s; } .flash.on { opacity: 1; }
.pocket li { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px 0 6px; border-radius: 999px; background: rgba(255,253,247,.92); color: var(--ink); box-shadow: 0 4px 14px rgba(20,38,74,.14); cursor: pointer; animation: chip .5s cubic-bezier(.2,1.4,.3,1); }
.pocket img { width: 24px; height: 24px; image-rendering: pixelated; } .pocket b { font-family: var(--font-display); font-weight: 900; font-size: 15px; } .pocket i { font-style: normal; font-size: 13px; color: var(--ink-soft); }
@keyframes chip { from { transform: scale(.4); opacity: 0; } }

.title { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 24px; text-align: center; background: linear-gradient(180deg, rgba(20,38,74,.42), rgba(20,38,74,.18) 45%, rgba(20,38,74,.5)); transition: opacity .9s ease, visibility .9s; }
.title.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.title-in { max-width: 760px; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.title h1 { font-size: clamp(34px, 6vw, 64px); font-weight: 900; line-height: 1.12; margin: 0 0 18px; }
.title .lead { color: rgba(255,255,255,.92); font-size: clamp(17px, 2.1vw, 21px); margin: 0 auto 30px; max-width: none; }
.title .fine { color: rgba(255,255,255,.78); margin-top: 18px; font-size: 14px; }

.summary { position: absolute; inset: 0; z-index: 5; overflow: auto; display: grid; place-items: center; padding: 20px; background: rgba(20,38,74,.5); backdrop-filter: blur(6px); }
.summary[hidden] { display: none; } .summary { transition: opacity .26s; } .summary.out { opacity: 0; } .summary .card { animation: sumIn .45s cubic-bezier(.2,.8,.2,1) both; } @keyframes sumIn { from { opacity: 0; transform: translateY(28px) scale(.96); } }
.summary .card { width: min(680px, 100%); background: var(--paper); color: var(--ink); border-radius: var(--r-lg); padding: 30px 30px 26px; box-shadow: var(--shadow-lg); margin: auto; }
.summary h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 8px; } .sum-stats { margin: 0 0 20px; color: var(--ink-soft); } .sum-stats b { color: var(--ink); font-family: var(--font-display); font-size: 1.15em; }
.summary h3 { font-size: 16px; margin: 18px 0 10px; } .summary h3 small { font-weight: 700; color: var(--ink-soft); font-size: 13px; margin-left: 6px; }
.sum-words { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sum-words li { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--gold-soft); cursor: pointer; } .sum-words b { font-family: var(--font-display); font-weight: 900; font-size: 16px; } .sum-words i { font-style: normal; font-size: 13px; color: var(--ink-soft); }
.sum-sents { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; } .sum-sents li { padding: 8px 14px; border-radius: 12px; background: var(--blue-soft); color: var(--blue-deep); font-family: var(--font-display); font-weight: 800; cursor: pointer; }
.sum-note { margin: 18px 0 0; font-size: 15px; color: var(--ink-soft); line-height: 1.7; } .sum-note b { color: var(--ink); }
.sum-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 20px; }
#sum-img { margin-top: 18px; border-radius: 14px; box-shadow: var(--shadow); } #sum-dl { display: inline-block; margin-top: 10px; color: var(--blue-deep); text-decoration: underline; font-weight: 700; }

/* ---------- 导航 ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,253,247,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.nav-logo { display: flex; align-items: center; gap: 10px; line-height: 1.1; font-size: 19px; } .nav-logo small { display: block; font-size: 12px; color: var(--ink-soft); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 24px; font-weight: 700; font-size: 15px; } .nav-links a:hover { color: var(--blue-deep); }
.nav-cta { border: 2px solid var(--line); padding: 7px 16px; border-radius: 999px; } .nav-cta:hover { border-color: var(--blue-deep); }
.nav-burger { display: none; width: 44px; height: 44px; border: 0; background: none; font-size: 24px; color: var(--ink); }

/* ---------- 正文 ---------- */
section { padding: 96px 0; scroll-margin-top: 66px; } section.cream { background: var(--cream); }
.sec-head { max-width: 760px; margin-bottom: 44px; }
h2 { font-size: clamp(28px, 3.8vw, 44px); font-weight: 900; }
.mirror { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mirror .col { background: #fff; border-radius: var(--r-lg); padding: 28px 28px 20px; box-shadow: var(--shadow); border-top: 6px solid var(--gold); } .mirror .kid { border-top-color: var(--blue); background: #eef4ff; }
.mirror h3 { font-size: 20px; margin-bottom: 14px; } .mirror ul { list-style: none; margin: 0; padding: 0; } .mirror li { padding: 10px 0; border-top: 1px solid var(--line); line-height: 1.6; } .mirror li b { display: inline-block; min-width: 44px; margin-right: 10px; font-family: var(--font-display); color: var(--blue-deep); font-size: 13px; letter-spacing: .1em; }
.honest { margin: 22px 0 0; font-size: 14.5px; color: var(--ink-soft); }
.tv-fig { margin: 0; } .tv { border-radius: var(--r-lg); overflow: hidden; background: #000; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 9; } .tv video { width: 100%; height: 100%; display: block; } .tv-fig figcaption, .photo figcaption { margin-top: 10px; font-size: 13.5px; color: var(--ink-soft); }
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps li { background: #fff; border-radius: var(--r); padding: 22px 20px 18px; box-shadow: var(--shadow); } .steps span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); font-family: var(--font-display); font-weight: 900; margin-bottom: 12px; } .steps h3 { font-size: 18px; margin-bottom: 6px; } .steps p { margin: 0; font-size: 15px; color: var(--ink-soft); line-height: 1.65; }
.after { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; margin-top: 56px; } .after h3 { font-size: 22px; margin-bottom: 8px; } .after p { margin: 0 0 10px; color: var(--ink-soft); }
.facts { font-family: var(--font-display); font-weight: 800; color: var(--ink) !important; font-size: 15px; }
.kit { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .photo { margin: 0; } .photo img { border-radius: var(--r); box-shadow: var(--shadow); } .photo.duo { margin-top: 24px; max-width: 520px; }
.fit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: #fff; border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow); } .card h3 { font-size: 19px; margin-bottom: 10px; } .card ul { margin: 0; padding-left: 20px; } .card li { margin: 6px 0; line-height: 1.6; }
.card.yes { border-top: 6px solid var(--green); } .card.no { border-top: 6px solid var(--coral); } .card.prep { border-top: 6px solid var(--blue); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: start; }
.faq details { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 0 22px; margin-bottom: 10px; } .faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-family: var(--font-display); font-weight: 900; font-size: 17px; position: relative; } .faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 24px; color: var(--blue-deep); } .faq details[open] summary::after { content: "–"; } .faq p { margin: 0 0 18px; color: var(--ink-soft); } .faq a { color: var(--blue-deep); text-decoration: underline; }
.bk { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: start; }
.bk-state { display: none; } #booked:target, #book-failed:target { display: block; } #booked:target ~ form, #book-failed:target ~ form { display: none; }
.bk form { display: grid; gap: 14px; } .bk label { display: grid; gap: 6px; font-weight: 700; font-size: 14.5px; } .bk input, .bk select { font: inherit; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--line); background: #fff; color: var(--ink); } .bk input:focus, .bk select:focus { outline: 0; border-color: var(--blue); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .hp { position: absolute; left: -9999px; }
.ck { display: grid !important; grid-template-columns: 20px 1fr; gap: 10px !important; font-weight: 500 !important; font-size: 14px !important; color: var(--ink-soft); align-items: start; } .ck input { margin: 4px 0 0; width: 18px; height: 18px; } .ck a { color: var(--blue-deep); text-decoration: underline; }
.qr { width: 180px; border-radius: 12px; margin: 10px 0; } .kefu { text-align: center; } .kefu .qr { margin: 12px auto; } .kefu .btn { margin-top: 8px; }
footer { background: var(--ink); color: #fff; padding: 56px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; } .foot-grid h4 { font-size: 14px; letter-spacing: .08em; margin-bottom: 10px; color: rgba(255,255,255,.7); } .foot-grid a { display: block; margin: 6px 0; opacity: .9; } .foot-grid .fine { color: rgba(255,255,255,.65); margin: 0 0 6px; }
.foot-brand p { color: rgba(255,255,255,.75); font-size: 14.5px; margin: 10px 0 0; } .yf-logo.big { font-size: 22px; margin-top: 10px; }
.foot-base { display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.14); margin-top: 32px; padding-top: 18px; font-size: 13.5px; color: rgba(255,255,255,.7); }
.foot-legal { font-size: 12.5px; color: rgba(255,255,255,.55); margin: 16px 0 0; line-height: 1.7; }
.album { border: 0; padding: 0; border-radius: var(--r-lg); max-width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); overflow: hidden; box-shadow: var(--shadow-lg); } .album::backdrop { background: rgba(20,38,74,.5); }
.album-in { display: grid; grid-template-rows: auto 1fr; max-height: calc(100dvh - 40px); } .album-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 22px 14px; border-bottom: 1px solid var(--line); } .album-head h2 { font-size: 22px; } .album-head p { margin: 4px 0 0; color: var(--ink-soft); font-size: 14.5px; }
.album-x { border: 0; background: var(--cream); width: 36px; height: 36px; border-radius: 50%; } .album-body { overflow: auto; padding: 14px 22px 22px; display: grid; gap: 12px; } .album-body img { border-radius: 12px; }
.album-kefu { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; background: var(--cream); border-radius: 14px; padding: 14px; } .album-kefu h3 { font-size: 17px; } .album-kefu p { font-size: 13.5px; color: var(--ink-soft); margin: 6px 0 10px; }

/* ---------- 丹尼尔的日记 ---------- */
.diary-wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.diary-text h2 { font-size: clamp(28px, 3.8vw, 40px); margin-bottom: 4px; }
.diary-text .lead { font-size: 20px; color: var(--gold-deep); font-family: var(--font-display); font-weight: 800; margin: 0 0 16px; }
.diary-text p { margin: 0 0 20px; color: var(--ink-soft); line-height: 1.8; }
.diary-text b { color: var(--ink); }
.diary-img { margin: 0; } .diary-img img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }

/* ---------- 手机 ---------- */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav-burger { display: block; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 66px; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; } .nav-links.open { display: flex; } .nav-links a { padding: 12px 0; } .nav-cta { text-align: center; margin-top: 8px; }
  section { padding: 64px 0; } .sec-head { margin-bottom: 28px; }
  .mirror, .after, .fit, .split, .bk, .row2, .steps, .foot-grid, .diary-wrap { grid-template-columns: 1fr; }
  .steps { gap: 10px; margin-top: 24px; } .kit { gap: 10px; }
  .title { padding: 20px 18px 110px; align-items: end; text-align: left; place-items: end start; }
  .title h1 { font-size: clamp(30px, 8.6vw, 40px); } .title .lead { margin: 0 0 22px; } .title-in .d { display: none; }
  .brand span { display: none; } .brand { padding: 0 7px; width: 42px; justify-content: center; }
  .say { width: calc(100% - 20px); bottom: calc(12px + env(safe-area-inset-bottom)); padding: 12px 12px 12px 12px; gap: 10px; border-radius: 20px; } .say img { width: 46px; height: 46px; } .say .en { font-size: 20px; } .say .zh { font-size: 14px; } #say-spk { width: 40px; height: 40px; }
  .loot { bottom: calc(172px + env(safe-area-inset-bottom)); } .loot b { font-size: 46px; } .loot i { font-size: 19px; }
  .pocket { left: 10px; right: 10px; max-width: none; bottom: calc(108px + env(safe-area-inset-bottom)); flex-wrap: nowrap; overflow: hidden; } .pocket li { flex: none; height: 32px; } .pocket i { display: none; } .pocket li:nth-last-child(n+6) { display: none; }
  .summary { padding: 12px; } .summary .card { padding: 22px 18px 20px; }
  .foot-base { flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .say.bump, .pocket li, .loot.in, .summary .card { animation: none; } }
