:root { --ink: #000; --paper: #fff; --mist: #f6f6f6; --grey: #8a8a8a; --line: #e6e6e6; --wrap: 1200px;
  --sans: "PingFang SC", "Noto Sans CJK SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 48px; }
.en { font-size: 12px; letter-spacing: .12em; color: var(--grey); text-transform: uppercase; }
.label { font-size: 13px; letter-spacing: .3em; text-transform: uppercase; }
.more { display: inline-block; margin-top: 32px; font-size: 13px; letter-spacing: .1em; border-bottom: 1px solid var(--ink); padding-bottom: 4px; }

/* 导航 */
header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 500; letter-spacing: .1em; }
.brand img { height: 30px; }
nav { display: flex; gap: 40px; font-size: 14px; letter-spacing: .12em; }
nav a:hover, nav a.on { color: var(--grey); }
nav a.on { border-bottom: 1px solid var(--ink); padding-bottom: 2px; color: var(--ink); }

/* 首屏 */
.hero { min-height: min(calc(100vh - 76px), 760px); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 56px; padding: 40px 0 80px; }
.hands { display: flex; gap: 72px; align-items: flex-end; }
.hands svg.hand { height: 144px; }
.hero h1 { font-size: 30px; font-weight: 400; letter-spacing: .18em; line-height: 1.8; }
.hero .en { margin-top: 12px; }

/* 通用板块 */
section.block { padding: 140px 0; }
.head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 64px; gap: 40px; }
.head h2 { font-size: 26px; font-weight: 400; letter-spacing: .2em; }
.head p { max-width: 520px; font-size: 14px; line-height: 2; color: #444; }

/* 二级页页眉 */
.page-head { padding: 96px 0 64px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: 30px; font-weight: 400; letter-spacing: .25em; }
.page-head .en { margin-top: 14px; }
.page-head p.lead { margin-top: 28px; max-width: 640px; font-size: 15px; line-height: 2; color: #444; }

/* 叩手礼 */
.ritual { background: var(--ink); color: var(--paper); text-align: center; }
.ritual h2 { font-size: 26px; font-weight: 400; letter-spacing: .3em; margin-bottom: 20px; }
.ritual .lead { font-size: 15px; line-height: 2; color: #bbb; }
.gestures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 80px; }
.gestures svg.hand { height: 96px; margin: 0 auto 28px; fill: currentColor; }
.gestures b { display: block; font-weight: 400; font-size: 15px; letter-spacing: .15em; }
.gestures span { display: block; margin-top: 10px; font-size: 12px; color: #888; letter-spacing: .08em; }
.gestures span.line { color: #fff; margin-top: 16px; font-size: 13px; letter-spacing: .2em; }

/* 手势动画：叩、叩，停（纯 CSS）。svg 内联在页面里，分 hand-body（转）和 hand-sound（闪）两组
   原图画的就是触底那一刻（声线围着指尖），所以静止时手抬起 7°，叩下去回到 0° 正好落在声线中间
   一轮 2.4s：8% 第一叩触底、24% 第二叩触底，32% 之后静止；三只手 --d 错开 0 / .8s / 1.6s */
svg.hand { display: block; width: auto; overflow: visible; --d: 0s; }
.hand-body { transform-box: fill-box; transform-origin: 4% 32%; transform: rotate(-7deg); animation: knock 2.4s var(--d) infinite; }
.hand-sound { opacity: 0; animation: sound 2.4s var(--d) infinite; }
.hands svg.hand:nth-child(2), .gestures > div:nth-child(2) svg.hand { --d: .8s; }
.hands svg.hand:nth-child(3), .gestures > div:nth-child(3) svg.hand { --d: 1.6s; }
/* 悬停/按住：叠一段快叩（排在后面的动画赢），循环那条不换名字所以不重启，松开后接着原节奏 */
/* 首屏主 logo：静态，原图姿势，声线常显 */
svg.hand-static .hand-body { transform: none; animation: none; }
svg.hand-static .hand-sound { opacity: 1; animation: none; }
svg.hand-static:hover .hand-body, svg.hand-static:active .hand-body, svg.hand-static:hover .hand-sound, svg.hand-static:active .hand-sound { animation: none; }
svg.hand:hover .hand-body, svg.hand:active .hand-body { animation: knock 2.4s var(--d) infinite, knock-fast .6s 1; }
svg.hand:hover .hand-sound, svg.hand:active .hand-sound { animation: sound 2.4s var(--d) infinite, sound-fast .6s 1; }
@keyframes knock {
  0% { transform: rotate(-7deg); animation-timing-function: ease-in; }
  8%, 10% { transform: rotate(0); animation-timing-function: ease-out; }
  16% { transform: rotate(-7deg); animation-timing-function: ease-in; }
  24%, 26% { transform: rotate(0); animation-timing-function: ease-out; }
  32%, 100% { transform: rotate(-7deg); }
}
@keyframes sound {
  0%, 7.9% { opacity: 0; }
  8% { opacity: 1; animation-timing-function: ease-out; }
  14% { opacity: 0; }
  23.9% { opacity: 0; }
  24% { opacity: 1; animation-timing-function: ease-out; }
  30%, 100% { opacity: 0; }
}
@keyframes knock-fast {
  0% { transform: rotate(-7deg); animation-timing-function: ease-in; }
  16%, 22% { transform: rotate(0); animation-timing-function: ease-out; }
  40% { transform: rotate(-7deg); animation-timing-function: ease-in; }
  56%, 62% { transform: rotate(0); animation-timing-function: ease-out; }
  80%, 100% { transform: rotate(-7deg); }
}
@keyframes sound-fast {
  0%, 15.9% { opacity: 0; }
  16% { opacity: 1; animation-timing-function: ease-out; }
  34% { opacity: 0; }
  55.9% { opacity: 0; }
  56% { opacity: 1; animation-timing-function: ease-out; }
  74%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hand-body, .hand-sound, svg.hand:hover .hand-body, svg.hand:hover .hand-sound, svg.hand:active .hand-body, svg.hand:active .hand-sound { animation: none; }
  .hand-body { transform: none; }
  .hand-sound { opacity: 1; }
}

/* 品牌故事 */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: center; }
.story p { font-size: 15px; line-height: 2.1; color: #333; }
.story p + p { margin-top: 20px; }
.prose { max-width: 680px; }
.prose p { font-size: 15px; line-height: 2.2; color: #333; }
.prose p + p { margin-top: 24px; }
.prose p.en { font-size: 12px; line-height: 2; text-transform: none; letter-spacing: .04em; margin-top: 12px; }
.prose h2 { font-size: 20px; font-weight: 400; letter-spacing: .2em; margin: 80px 0 28px; }
.figure-wide { margin: 96px 0; }
.figure-wide img { width: 100%; aspect-ratio: 3/2; object-fit: cover; object-position: center 60%; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }

/* 产品 */
.promises { display: flex; gap: 48px; }
.promise { font-size: 13px; line-height: 1.7; }
.promise b { display: block; font-weight: 500; font-size: 14px; letter-spacing: .08em; margin-bottom: 4px; }
.promise span { color: var(--grey); }
.cups { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 32px; text-align: center; }
.cups img, .cups .noimg { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--mist); }
.cups b { display: block; margin-top: 8px; font-weight: 400; font-size: 15px; letter-spacing: .1em; }
.cups .ing { margin-top: 6px; font-size: 12px; color: #555; line-height: 1.7; }
.cups .en { margin-top: 6px; }
.line-group { padding: 72px 0; border-top: 1px solid var(--line); }
.line-group .cups { grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 40px; }
.namelist { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; border-top: 1px solid var(--line); }
.namelist li { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.namelist b { font-weight: 400; font-size: 15px; letter-spacing: .08em; }
.namelist .en { text-align: right; }
.line-head { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: baseline; margin-bottom: 40px; }
.line-head h3 { font-size: 22px; font-weight: 400; letter-spacing: .2em; }
.line-head h3 small { font-size: 12px; color: var(--grey); letter-spacing: .1em; margin-left: 10px; }
.line-head .en { margin-top: 8px; }
.line-head .desc { font-size: 14px; line-height: 2; color: #444; max-width: 560px; }
.line-nav { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 32px 0; font-size: 13px; letter-spacing: .1em; }
.line-nav a { border-bottom: 1px solid transparent; padding-bottom: 2px; }
.line-nav a:hover { border-color: var(--ink); }

/* 白天茶饮 · 夜晚茶酒 */
.daynight { display: grid; grid-template-columns: 1fr 1fr; }
.daynight figure { position: relative; }
.daynight img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.daynight figcaption { position: absolute; left: 32px; bottom: 28px; color: #fff; font-size: 13px; letter-spacing: .25em; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.daynight-note { text-align: center; padding: 56px 0 0; font-size: 15px; letter-spacing: .2em; }
.daynight-note small { display: block; margin-top: 14px; font-size: 11px; color: var(--grey); letter-spacing: .1em; }

/* 门店 */
.stores { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px; }
.stores .store { flex: 0 0 360px; scroll-snap-align: start; }
.store .art { background: #f9f9f9; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.store .art img { width: 100%; height: 100%; object-fit: contain; }
.store .city { margin-top: 20px; font-size: 12px; color: var(--grey); letter-spacing: .2em; }
.store b { display: block; margin-top: 6px; font-weight: 400; font-size: 16px; letter-spacing: .1em; }
.store p { margin-top: 8px; font-size: 13px; line-height: 1.9; color: #555; }
.store p .en { text-transform: none; letter-spacing: .03em; font-size: 11px; }
.city-group { padding: 64px 0; border-top: 1px solid var(--line); }
.city-group h3 { font-size: 22px; font-weight: 400; letter-spacing: .3em; margin-bottom: 36px; }
.store-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.store-note { padding: 40px 0 0; font-size: 13px; color: var(--grey); line-height: 2; }

/* 用 AI 点单 */
.agent { background: var(--ink); color: var(--paper); }
.agent .say { font-size: 34px; font-weight: 400; letter-spacing: .12em; line-height: 1.6; }
.agent .say em { font-style: normal; border-bottom: 2px solid #fff; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 88px; }
.steps li { list-style: none; border-top: 1px solid #333; padding-top: 24px; font-size: 14px; line-height: 1.9; color: #ccc; }
.steps li i { display: block; font-style: normal; font-size: 12px; letter-spacing: .3em; color: #777; margin-bottom: 12px; }
.agent .fine { margin-top: 64px; font-size: 12px; color: #777; letter-spacing: .06em; line-height: 1.9; }
.agent .more { border-color: #fff; }
.agent-page .steps { margin-top: 56px; }
.agent-page .steps li { border-color: var(--line); color: #333; }
.agent-page .steps li i { color: var(--grey); }
.say-box { background: var(--mist); padding: 28px 32px; font-size: 15px; line-height: 2; margin: 24px 0; }
.say-box code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; word-break: break-all; }
.qa { border-top: 1px solid var(--line); padding: 28px 0; }
.qa b { display: block; font-weight: 500; font-size: 15px; margin-bottom: 10px; }
.qa p { font-size: 14px; line-height: 2; color: #444; }

/* 页脚 */
footer { padding: 72px 0 48px; border-top: 1px solid var(--line); }
footer .row { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
footer .legal { margin-top: 48px; font-size: 12px; color: var(--grey); line-height: 2; letter-spacing: .04em; }
footer .legal .slot { border-bottom: 1px dashed #bbb; }
footer .legal a:hover { color: var(--ink); }

/* 产品卡可点：杯图和名字打开弹层；首页整杯链到产品页对应卡片 */
.cup[id] { scroll-margin-top: 100px; }
.cup > a, a.cup { display: block; }
.cup a img { transition: opacity .2s; }
.cup a:hover img { opacity: .82; }
.cup a:hover b { text-decoration: underline; text-underline-offset: 4px; }

/* 产品详情弹层：纯 CSS :target，零脚本。直角线条，不要圆角 */
.modal { display: none; position: fixed; inset: 0; z-index: 50; }
.modal:target { display: flex; align-items: center; justify-content: center; padding: 40px; }
.modal-bg { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.modal-card { position: relative; width: 100%; max-width: 880px; max-height: calc(100vh - 80px); background: var(--paper);
  display: grid; grid-template-columns: 40% 1fr; align-items: start; }
.modal-card > img, .modal-card > .noimg { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--mist); }
.modal-body { max-height: calc(100vh - 80px); overflow-y: auto; padding: 48px 48px 40px 36px; }
.modal-body h3 { margin-top: 10px; font-size: 22px; font-weight: 400; letter-spacing: .15em; }
.modal-body h3 + .en { margin-top: 6px; }
.modal-body .ing { margin-top: 18px; font-size: 13px; color: #555; letter-spacing: .06em; }
.modal-body .intro { margin-top: 20px; font-size: 14px; line-height: 2; color: #444; }
.modal-body dl { margin-top: 24px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 64px 1fr; }
.modal-body dt, .modal-body dd { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.8; }
.modal-body dt { color: var(--grey); letter-spacing: .1em; }
.modal-body dd { color: #222; }
.modal-body .note { margin-top: 18px; font-size: 12px; line-height: 1.9; color: var(--grey); }
.pps { display: inline-flex; gap: 4px; vertical-align: -1px; }
.pp { width: 10px; height: 10px; border: 1px solid var(--ink); }
.pp.on { background: var(--ink); }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 1; width: 32px; height: 32px; font-size: 0; background: var(--paper); }
.modal-close::before, .modal-close::after { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 1px; background: var(--ink); }
.modal-close::before { transform: rotate(45deg); }
.modal-close::after { transform: rotate(-45deg); }
.modal-close:hover::before, .modal-close:hover::after { background: var(--grey); }

@media (max-width: 760px) {
  .wrap { padding: 0 22px; }
  nav { gap: 18px; font-size: 12px; }
  .brand span { display: none; }
  .hands { gap: 28px; } .hands svg.hand { height: 88px; }
  .hero h1 { font-size: 20px; }
  section.block { padding: 88px 0; }
  .page-head { padding: 56px 0 40px; } .page-head h1 { font-size: 22px; }
  .head { flex-direction: column; gap: 20px; margin-bottom: 40px; }
  .story, .daynight, .two, .line-head { grid-template-columns: 1fr; gap: 24px; }
  .gestures, .steps { grid-template-columns: 1fr; gap: 48px; }
  .cups, .line-group .cups { grid-template-columns: 1fr 1fr; }
  .namelist { grid-template-columns: 1fr; }
  .store-grid { grid-template-columns: 1fr; }
  .promises { flex-direction: column; gap: 20px; }
  .stores .store { flex-basis: 78vw; }
  .agent .say { font-size: 24px; }
  .modal:target { padding: 0; align-items: stretch; }
  .modal-card { max-width: none; max-height: none; height: 100%; display: block; overflow-y: auto; }
  .modal-body { max-height: none; overflow: visible; padding: 28px 22px 56px; }
  .modal-close { position: fixed; top: 12px; right: 12px; }
  footer .row { flex-direction: column; }
}

/* 公开单页（home.html）：首屏占满一屏，页脚只留备案行并居中 */
.solo .hero { min-height: calc(100vh - 140px); }
.solo footer { padding: 32px 0; }
.solo footer .legal { margin-top: 0; text-align: center; }
footer .legal a, footer .legal .slot { white-space: nowrap; }
@media (max-width: 760px) {
  .solo .hands { gap: 16px; } .solo .hands svg.hand { height: 64px; }
}
