/* ===== 云隐 COFFEE · 设计变量 ===== */
:root {
  --bg: #f4ece0;          /* 燕麦奶底 */
  --ink: #211307;         /* 深烘咖啡渣 */
  --paper: #fffdf7;
  --red: #c2410c;         /* 焙烤橙红 */
  --blue: #1e4b3f;        /* 咖啡森林绿 */
  --lime: #d9c48a;        /* 生豆金 */
  --yellow: #f0b429;      /* 焦糖 */
  --cream: #f7e9d3;
  --line: #211307;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --sans: "Space Grotesk", "Noto Sans SC", system-ui, sans-serif;
  --display: "Archivo Black", "Noto Serif SC", system-ui, sans-serif;
  --serif: "Noto Serif SC", Georgia, serif;
  --mono: "Space Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
.hide { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { text-wrap: balance; }
.mono { font-family: var(--mono); font-size: .86em; }

.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 12px; top: 12px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 9999; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* 背景网格与装饰 */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(33,19,7,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33,19,7,.045) 1px, transparent 1px);
  background-size: 46px 46px;
}
.deco { position: fixed; z-index: 1; pointer-events: none; opacity: .42; }
.deco--bean { top: 20%; left: 5%; font-size: 34px; animation: float 7s ease-in-out infinite; }
.deco--cup { bottom: 13%; right: 6%; font-size: 42px; animation: float 6s ease-in-out infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-16px) rotate(7deg); } }
@keyframes steam {
  0% { transform: translateY(0) scale(1); opacity: .5; }
  100% { transform: translateY(-26px) scale(1.5); opacity: 0; }
}

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 5px; width: 0;
  background: var(--red); z-index: 999; border-right: 2px solid var(--ink);
}

/* ===== 开场动画 ===== */
.intro {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: grid; place-items: center;
  transition: opacity .5s, visibility .5s;
}
.intro.done { opacity: 0; visibility: hidden; }
.intro__stage { text-align: center; }
.intro__mark { display: flex; align-items: center; justify-content: center; gap: 14px; }
.intro__name { font-family: var(--display); font-size: clamp(34px, 10vw, 92px); letter-spacing: -1px; }
.intro__emoji { font-size: clamp(32px, 9vw, 76px); animation: float 2.6s ease-in-out infinite; }
.intro__tag { font-family: var(--mono); letter-spacing: 3px; margin: 8px 0 22px; color: #6f5c44; font-size: 13px; }
.intro__track { width: min(320px, 74vw); height: 16px; border: 3px solid var(--ink); background: #fff; box-shadow: var(--shadow-sm); }
.intro__fill { display: block; height: 100%; width: 0; background: var(--red); }
.intro__meta { display: flex; justify-content: space-between; width: min(320px, 74vw); font-family: var(--mono); font-size: 12px; margin-top: 8px; color: #6f5c44; }
.intro__skip { position: absolute; bottom: 28px; left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: 12px; color: #8c7a5f; }

/* ===== 跑马灯 ===== */
.ticker {
  overflow: hidden; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
  background: var(--yellow); position: relative; z-index: 2;
}
.ticker--top { position: sticky; top: 0; z-index: 40; background: var(--ink); color: var(--bg); border-top: 0; }
.ticker--band { background: var(--lime); }
.ticker__track {
  display: inline-flex; white-space: nowrap; gap: 26px; padding: 9px 0;
  font-family: var(--display); font-size: 14px; letter-spacing: .5px;
  animation: marquee 26s linear infinite;
}
.ticker--reverse .ticker__track { animation-direction: reverse; }
.ticker__track b { opacity: .55; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== 导航 ===== */
.nav {
  position: sticky; top: 39px; z-index: 39;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px clamp(14px, 4vw, 40px);
  background: var(--paper); border-bottom: 3px solid var(--ink);
}
.nav__brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.nav__logo { height: 40px; width: auto; }
@media (max-width: 560px) { .nav__logo { height: 32px; } }
.nav__links { display: flex; gap: 4px; }
.nav__links a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 11px; border: 2px solid transparent; border-radius: 8px; }
.nav__links a:hover { border-color: var(--ink); background: var(--yellow); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__burger {
  display: none; flex-direction: column; gap: 4px; cursor: pointer;
  background: var(--paper); border: 3px solid var(--ink); border-radius: 10px; padding: 9px 10px;
  box-shadow: var(--shadow-sm);
}
.nav__burger span { display: block; width: 20px; height: 3px; background: var(--ink); }

/* ===== 通用组件 ===== */
.btn {
  text-decoration: none; font-weight: 700; padding: 12px 22px;
  border: 3px solid var(--ink); box-shadow: var(--shadow); border-radius: 12px;
  font-size: 16px; transition: transform .12s, box-shadow .12s; display: inline-block;
  font-family: inherit; cursor: pointer;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.btn--red { background: var(--red); color: #fff; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--plain { background: var(--paper); color: var(--ink); }
.btn--share { background: var(--paper); color: var(--ink); }
.btn--share:hover { background: var(--yellow); }
.btn--compact { padding: 9px 14px; border-width: 2px; border-radius: 10px; box-shadow: var(--shadow-sm); font-size: 14px; }

.badge {
  display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 700;
  background: var(--lime); border: 2px solid var(--ink); padding: 5px 12px; box-shadow: var(--shadow-sm);
}
.tag {
  display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 700;
  border: 2px solid var(--ink); padding: 3px 9px; background: #fff;
}
.tag--red { background: var(--red); color: #fff; }
.tag--lime { background: var(--lime); }
.tag--yellow { background: var(--yellow); }
mark { background: var(--yellow); color: inherit; }

.panel {
  background: var(--paper); border: 3px solid var(--ink); box-shadow: var(--shadow);
  border-radius: 16px; padding: 20px;
  transition: transform .16s, box-shadow .16s, background-color .16s;
}
.card--lime { background: #f4ecd6; }
.card--blue { background: #e3eeea; }
.card--red { background: #fbe7dc; }
.card__emoji { font-size: 32px; display: block; }
.panel h3 { font-family: var(--display); font-size: 20px; margin: 8px 0; }
.panel p { margin: 4px 0; font-size: 15px; color: #4a3a29; }

/* ===== HERO ===== */
.hero-wrap { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding: clamp(26px, 5vw, 54px) clamp(14px, 4vw, 40px) 0; }
.hero {
  position: relative;
  padding: clamp(34px, 7vw, 70px) clamp(22px, 5vw, 58px) 46px;
  background: rgba(255, 253, 247, .88);
  border: 3px solid var(--ink); border-radius: 30px;
  box-shadow: 11px 11px 0 var(--ink); overflow: hidden; isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%;
  right: -130px; top: -130px; background: rgba(240, 180, 41, .22); z-index: -1;
}
.hero::after {
  content: "SLOW DOWN · DRINK GOOD COFFEE ·"; position: absolute; right: -60px; bottom: 72px;
  padding: 6px 70px; border-block: 2px solid var(--ink); background: var(--blue); color: #fff;
  font: 700 11px var(--mono); letter-spacing: 1.5px; transform: rotate(-8deg); z-index: -1;
}
.hero__bigemoji { position: absolute; top: -14px; right: 4%; font-size: clamp(78px, 17vw, 190px); opacity: .1; transform: rotate(-12deg); }
.hero__logo { width: clamp(150px, 26vw, 230px); height: auto; margin-bottom: 18px; }
.hero__title { margin: 20px 0 8px; line-height: .98; }
.hero__hi { display: block; font-family: var(--mono); font-size: clamp(11px, 2.2vw, 15px); letter-spacing: 2px; color: #7d6a4f; }
.hero__giant { display: block; font-family: var(--display); font-size: clamp(62px, 16vw, 168px); letter-spacing: -2px; margin: 6px 0; }
.hero__cn { display: block; font-family: var(--display); font-size: clamp(24px, 5.6vw, 54px); }
.hero__cn mark { display: inline-block; padding: 0 10px; box-decoration-break: clone; }
.hero__role { font-size: clamp(17px, 3vw, 25px); font-weight: 600; margin: 20px 0 6px; }
.hero__role-hl { border-bottom: 4px solid var(--red); }
#roleRotate::after { content: "▍"; color: var(--red); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__tagline { max-width: 660px; font-size: 16px; color: #4a3a29; }
.hero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 18px 0; font-family: var(--mono); font-size: 12px; }
.hero__facts li { border: 2px solid var(--ink); background: var(--paper); padding: 5px 10px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0 30px; }
.hero__stats { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 0; margin: 8px 0 0; }
.stat { border: 3px solid var(--ink); background: var(--paper); padding: 14px; box-shadow: var(--shadow-sm); }
.stat strong { display: block; font-family: var(--display); font-size: clamp(22px, 3.4vw, 32px); line-height: 1.05; }
.stat span { font-size: 12px; color: #6f5c44; font-weight: 600; }
.stat--red { background: #fbe7dc; } .stat--blue { background: #e3eeea; } .stat--lime { background: #f4ecd6; }

.hero__seal { position: absolute; top: 88px; right: 5%; width: 148px; height: 148px; display: grid; place-items: center; }
.hero__seal .seal__svg { width: 100%; height: 100%; animation: spin 20s linear infinite; }
.seal__ring { fill: none; stroke: var(--ink); stroke-width: 2; }
.seal__text { font-family: var(--mono); font-size: 11px; font-weight: 700; fill: var(--ink); letter-spacing: 1px; }
.seal__center { position: absolute; font-size: 38px; }
@media (max-width: 1000px) { .hero__seal { display: none; } }
@media (max-width: 620px) { .hero__stats { grid-template-columns: repeat(2, 1fr); } }

/* ===== 区块通用 ===== */
.section { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding: clamp(46px, 8vw, 84px) clamp(16px, 4vw, 40px); }
.section--dark { max-width: none; background: var(--ink); color: var(--cream); border-block: 3px solid var(--ink); margin-top: 20px; }
.section--dark .section__num { background: var(--yellow); color: var(--ink); }
.section--dark .section__sub { color: #cbb99f; }
.section__head { margin-bottom: 30px; }
.section__num { font-family: var(--mono); font-weight: 700; font-size: 13px; background: var(--ink); color: var(--bg); padding: 3px 10px; }
.section__title { font-family: var(--display); font-size: clamp(28px, 5.6vw, 52px); letter-spacing: -1px; margin: 12px 0 0; }
.section__title span { font-family: var(--mono); font-size: .38em; color: #8c7a5f; letter-spacing: 1px; }
.section--dark .section__title span { color: var(--lime); }
.section__sub { max-width: 640px; color: #4a3a29; font-size: 16px; }

/* 分类筛选 */
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; }
.chip {
  font-family: inherit; font-weight: 700; font-size: 14px; cursor: pointer;
  padding: 8px 15px; border: 3px solid var(--ink); border-radius: 999px;
  background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm);
  transition: transform .12s, box-shadow .12s, background-color .12s;
}
.chip:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.chip--on { background: var(--red); color: #fff; }

/* ===== 菜单卡片 ===== */
.menu__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(252px, 1fr)); gap: 18px; }
.mcard { position: relative; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.mcard:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.mcard__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-bottom: 3px solid var(--ink); background: var(--cream); }
.mcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.mcard:hover .mcard__media img { transform: scale(1.05); }
.mcard__tag { position: absolute; top: 10px; left: 10px; z-index: 2; }
.mcard__body { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mcard__name { font-family: var(--serif); font-weight: 900; font-size: 18px; margin: 0; line-height: 1.35; }
.mcard__en { font-family: var(--mono); font-size: 11px; color: #8c7a5f; letter-spacing: .5px; }
.mcard__desc { font-size: 13.5px; color: #4a3a29; margin: 2px 0 0; flex: 1; line-height: 1.6; }
.mcard__opts { display: flex; flex-wrap: wrap; gap: 5px; }
.mcard__opts span { font-family: var(--mono); font-size: 10.5px; border: 1.5px solid #cbb99f; padding: 2px 6px; color: #6f5c44; }
.mcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding-top: 10px; border-top: 2px dashed #d8c6ab; }
.price { font-family: var(--display); font-size: 21px; color: var(--red); }
.price small { font-family: var(--mono); font-size: 11px; color: #8c7a5f; margin-left: 4px; }
.mcard__like {
  font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  background: transparent; border: 2px solid var(--ink); border-radius: 8px; padding: 5px 10px;
}
.mcard__like:hover { background: var(--yellow); }
.mcard__like.on { background: var(--red); color: #fff; }
.menu__empty { grid-column: 1 / -1; text-align: center; padding: 40px; font-family: var(--mono); color: #8c7a5f; }

/* ===== 手冲私藏 ===== */
.reserve__grid {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px;
}
.rcard {
  display: flex; flex-direction: column; padding: 0; overflow: hidden;
  background: #2c1c0e; border: 3px solid var(--lime); border-radius: 18px;
  box-shadow: 6px 6px 0 var(--lime); color: var(--cream);
  transition: transform .16s, box-shadow .16s;
}
.rcard:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--lime); }
.rcard__media { aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 3px solid var(--lime); background: #1a1008; }
.rcard__media img { width: 100%; height: 100%; object-fit: cover; }
.rcard__body { padding: 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.rcard__name { font-family: var(--mono); font-weight: 700; font-size: 16px; margin: 0; letter-spacing: .3px; color: #fff; }
.rcard__origin { font-family: var(--serif); font-weight: 700; font-size: 15px; color: var(--lime); margin: 0; }
.rcard__meta { list-style: none; padding: 0; margin: 2px 0; font-size: 13px; color: #cbb99f; display: grid; gap: 3px; }
.rcard__meta b { color: var(--cream); font-weight: 600; }
.rcard__notes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.rcard__notes span { font-family: var(--mono); font-size: 11px; border: 1.5px solid var(--lime); color: var(--lime); padding: 3px 8px; border-radius: 999px; }
.rcard__spec { font-size: 12px; color: #9d8b72; margin: 4px 0 0; line-height: 1.6; }
.rcard__foot { margin-top: auto; padding-top: 12px; border-top: 1px solid #4a3826; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rcard__price { font-family: var(--display); font-size: 24px; color: var(--yellow); }
.rcard__price small { font-family: var(--mono); font-size: 11px; color: #9d8b72; display: block; font-weight: 400; }
.rcard--secret .rcard__media { display: grid; place-items: center; position: relative; }
.rcard--secret .rcard__media img { filter: saturate(.75) brightness(.8); }

/* ===== 咖啡豆 ===== */
.bean__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 18px; }
.bcard { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.bcard:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.bcard__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-bottom: 3px solid var(--ink); background: var(--cream); }
.bcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.bcard:hover .bcard__media img { transform: scale(1.05); }
.bcard__code {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-family: var(--display); font-size: 13px; background: var(--ink); color: var(--bg);
  padding: 3px 9px; border: 2px solid var(--ink);
}
.bcard__body { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.bcard__name { font-family: var(--serif); font-weight: 900; font-size: 18px; margin: 0; }
.bcard__roast { font-size: 12.5px; color: #6f5c44; font-family: var(--mono); line-height: 1.55; }
.bcard__notes { display: flex; flex-wrap: wrap; gap: 5px; }
.bcard__notes span { font-size: 11.5px; background: var(--cream); border: 1.5px solid #cbb99f; padding: 2px 8px; border-radius: 999px; color: #4a3a29; }
.bcard__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 2px dashed #d8c6ab; }
.bcard__spec { font-family: var(--mono); font-size: 11px; color: #8c7a5f; }

/* ===== 器具 ===== */
.gear__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.gcard { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.gcard:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.gcard__media { aspect-ratio: 1 / 1; overflow: hidden; border-bottom: 3px solid var(--ink); background: var(--cream); }
.gcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gcard:hover .gcard__media img { transform: scale(1.05); }
.gcard__body { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.gcard__name { font-family: var(--serif); font-weight: 900; font-size: 17px; margin: 0; }
.gcard__desc { font-size: 13.5px; color: #4a3a29; flex: 1; line-height: 1.6; }
.gcard__tags { display: flex; flex-wrap: wrap; gap: 5px; }
.gcard__tags span { font-family: var(--mono); font-size: 10.5px; border: 1.5px solid #cbb99f; padding: 2px 7px; color: #6f5c44; }
.gcard__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; border-top: 2px dashed #d8c6ab; }

/* ===== 课程 ===== */
.course__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.ccourse { display: grid; grid-template-columns: 1fr; padding: 0; overflow: hidden; }
.ccourse:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.ccourse__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 3px solid var(--ink); background: var(--cream); }
.ccourse__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.ccourse__badge { position: absolute; top: 12px; left: 12px; z-index: 2; }
.ccourse__body { padding: 18px; display: flex; flex-direction: column; gap: 9px; }
.ccourse__name { font-family: var(--display); font-size: 21px; margin: 0; }
.ccourse__slogan { font-family: var(--serif); font-size: 14px; color: #6f5c44; margin: 0; font-weight: 700; }
.ccourse__points { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 6px; }
.ccourse__points li { font-size: 13.5px; color: #4a3a29; padding-left: 20px; position: relative; line-height: 1.55; }
.ccourse__points li::before { content: "☕"; position: absolute; left: 0; font-size: 11px; top: 3px; }
.ccourse__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 2px dashed #d8c6ab; }
.ccourse__bar { height: 8px; }
.ccourse--red .ccourse__bar { background: var(--red); }
.ccourse--blue .ccourse__bar { background: var(--blue); }
.ccourse--lime .ccourse__bar { background: var(--lime); }
.ccourse--yellow .ccourse__bar { background: var(--yellow); }

/* ===== 赛事 / 礼遇 ===== */
.events__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: start; }
.event-card { padding: 0; overflow: hidden; }
.event-card__media { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 3px solid var(--ink); background: var(--cream); }
.event-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 26%; }
.event-card__body { padding: 20px; }
.event-card__body h3 { font-family: var(--display); font-size: 23px; margin: 10px 0 4px; }
.event-card__sub { font-size: 14px; color: #6f5c44; margin: 0 0 12px; line-height: 1.6; }
.kv { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.kv li { display: grid; grid-template-columns: 80px 1fr; gap: 10px; font-size: 13.5px; align-items: baseline; }
.kv b { font-family: var(--mono); font-size: 11.5px; color: #8c7a5f; font-weight: 700; }
.kv span { color: #4a3a29; line-height: 1.55; }
.event-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 2px dashed #d8c6ab; }
.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: p; }
.perks li { border: 2px solid var(--ink); border-radius: 12px; padding: 12px 14px; background: var(--cream); }
.perks__no { font-family: var(--display); font-size: 13px; background: var(--ink); color: var(--bg); padding: 2px 9px; display: inline-block; }
.perks p { margin: 8px 0 0; font-size: 13.5px; color: #4a3a29; line-height: 1.6; }
.note { font-family: var(--mono); font-size: 11.5px; color: #8c7a5f; margin: 14px 0 0; line-height: 1.6; }
@media (max-width: 900px) { .events__grid { grid-template-columns: 1fr; } }

/* ===== 到店 ===== */
.contact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 18px; }
.ccard__val { font-family: var(--mono); font-weight: 700; font-size: 15px; margin: 6px 0 8px; line-height: 1.5; }
.ccard__hint { font-size: 13px; color: #6f5c44; line-height: 1.6; }
.ccard__acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.ccard__btn {
  font-weight: 700; text-decoration: none; padding: 8px 14px; border: 2px solid var(--ink);
  background: var(--ink); color: var(--bg); border-radius: 9px; cursor: pointer; font-size: 13.5px;
  font-family: inherit;
}
.ccard__btn--ghost { background: transparent; color: var(--ink); }
.ccard__btn:hover { background: var(--red); color: #fff; border-color: var(--ink); }

/* ===== 页脚 ===== */
.footer {
  position: relative; z-index: 2; background: var(--ink); color: var(--cream);
  border-top: 3px solid var(--ink); padding: 58px clamp(16px, 4vw, 40px) 26px;
  text-align: center; overflow: hidden;
}
.footer__emoji { font-size: 64px; display: block; animation: float 5s ease-in-out infinite; }
.footer__logo { width: clamp(140px, 24vw, 190px); height: auto; margin: 0 auto 6px; animation: float 6s ease-in-out infinite; }
.footer__qr {
  display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
  margin: 30px auto 0; padding: 16px; background: var(--paper);
  border: 3px solid var(--lime); border-radius: 16px; box-shadow: 5px 5px 0 var(--lime);
}
.footer__qr img { width: 132px; height: 132px; display: block; }
.footer__qr span { font-family: var(--mono); font-size: 11.5px; color: #6f5c44; letter-spacing: .3px; }
.footer__kicker { font-family: var(--mono); color: #9d8b72; margin: 14px 0 8px; font-size: 13px; letter-spacing: 1px; }
.footer__big {
  font-family: var(--display); font-size: clamp(26px, 6vw, 52px); text-decoration: none;
  color: var(--cream); border-bottom: 5px solid var(--red);
}
.footer__big span { color: var(--yellow); }
.footer__big:hover { color: var(--lime); }
.footer__cta { font-family: var(--serif); color: #cbb99f; margin: 22px auto 0; max-width: 520px; font-size: 15px; }
.footer__bar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  margin-top: 44px; padding-top: 18px; border-top: 1px solid #43301c; font-size: 12.5px; color: #9d8b72;
}
.footer__brand { font-family: var(--display); color: var(--cream); }
.egg-note { color: #6b5941; font: 10px var(--mono); white-space: nowrap; opacity: .7; }
.egg { margin: 0; padding: 0 1px; border: 0; border-bottom: 1px dotted currentColor; background: none; color: inherit; font: inherit; cursor: pointer; }
.egg:hover, .egg:focus-visible { color: var(--yellow); opacity: 1; }

/* ===== 弹窗 / Toast ===== */
.nb-modal { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; }
.nb-modal__mask { position: absolute; inset: 0; background: rgba(33, 19, 7, .62); }
.nb-modal__panel {
  position: relative; background: var(--paper); border: 4px solid var(--ink); border-radius: 18px;
  box-shadow: 8px 8px 0 var(--ink); padding: 26px; max-width: 420px; width: 90%; text-align: center;
}
.nb-modal__title { font-family: var(--display); font-size: 21px; margin: 0 0 10px; }
.nb-modal__text { font-size: 14.5px; color: #4a3a29; margin: 0 0 18px; word-break: break-all; }
.nb-modal__actions { display: flex; gap: 10px; justify-content: center; }
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 1300;
  background: var(--ink); color: var(--cream); border: 3px solid var(--ink);
  box-shadow: var(--shadow-sm); border-radius: 12px; padding: 11px 20px;
  font-size: 14px; font-weight: 700; max-width: 88vw; text-align: center;
}

/* ===== 入场动画 ===== */
[data-reveal], .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.2,.7,.3,1), transform .6s cubic-bezier(.2,.7,.3,1); }
[data-reveal].in, .reveal.in { opacity: 1; transform: none; }

/* ===== 响应式 ===== */
@media (max-width: 1080px) { .nav__links a { padding: 6px 8px; font-size: 14px; } }
@media (max-width: 860px) {
  .nav__links, .nav__actions { display: none; }
  .nav__burger { display: flex; }
  .nav.open .nav__links {
    display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    background: var(--paper); border-bottom: 3px solid var(--ink); padding: 10px;
  }
  .nav.open .nav__links a { border: 2px solid var(--ink); margin: 3px 0; text-align: center; }
}
@media (max-width: 560px) {
  .hero { border-radius: 22px; }
  .deco { display: none; }
  .kv li { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  [data-reveal], .reveal { opacity: 1; transform: none; }
}

/* ===== 企业微信二维码区块 ===== */
.wecom {
  position: relative; z-index: 2; overflow: hidden;
  background: var(--ink); color: var(--cream);
  border-bottom: 3px solid var(--ink);
}
.wecom::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(217,196,138,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217,196,138,.07) 1px, transparent 1px);
  background-size: 42px 42px;
}
.wecom__inner {
  position: relative; max-width: 1180px; margin: 0 auto;
  padding: clamp(44px, 7vw, 78px) clamp(16px, 4vw, 40px);
  display: grid; grid-template-columns: 1.15fr auto; gap: clamp(26px, 5vw, 60px);
  align-items: center;
}
.wecom__badge { background: var(--yellow); border-color: var(--yellow); box-shadow: 4px 4px 0 rgba(0,0,0,.35); }
.wecom__title {
  font-family: var(--display); font-size: clamp(30px, 5.6vw, 58px);
  line-height: 1.06; margin: 18px 0 14px; letter-spacing: -1px;
}
.wecom__sub { font-size: 15.5px; color: #cbb99f; max-width: 460px; margin: 0; line-height: 1.75; }
.wecom__list { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 9px; }
.wecom__list li { font-size: 14px; color: var(--cream); padding-left: 24px; position: relative; }
.wecom__list li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 9px; height: 9px; background: var(--yellow); border: 2px solid var(--ink);
}
.wecom__acts { display: flex; flex-wrap: wrap; gap: 12px; }

/* 二维码卡片：仿实体卡片，四角定位标记 */
.wecom__card {
  position: relative; margin: 0; padding: 22px;
  background: var(--paper); border: 4px solid var(--lime); border-radius: 22px;
  box-shadow: 10px 10px 0 var(--lime);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.wecom__frame { position: relative; display: grid; place-items: center; }
.wecom__qr { width: clamp(190px, 26vw, 250px); height: auto; display: block; }
/* 中心 logo：QR 用 H 级容错，遮挡中心不影响识读 */
.wecom__mark {
  position: absolute; display: grid; place-items: center;
  width: 26%; aspect-ratio: 1; background: var(--paper);
  border-radius: 8px; padding: 5px;
}
.wecom__mark img { width: 100%; height: auto; }
.wecom__cap { display: grid; gap: 3px; text-align: center; }
.wecom__cap b { font-family: var(--display); font-size: 15px; color: var(--ink); letter-spacing: .5px; }
.wecom__cap span { font-family: var(--mono); font-size: 11.5px; color: #8c7a5f; }
.wecom__corner { position: absolute; width: 18px; height: 18px; border: 4px solid var(--red); }
.wecom__corner--tl { top: 9px; left: 9px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.wecom__corner--tr { top: 9px; right: 9px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.wecom__corner--bl { bottom: 9px; left: 9px; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.wecom__corner--br { bottom: 9px; right: 9px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }

@media (max-width: 820px) {
  .wecom__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .wecom__sub { max-width: none; }
  .wecom__list { text-align: left; }
  .wecom__acts { justify-content: center; }
}

/* 到店卡片里的二维码 */
.ccard--qr { display: flex; flex-direction: column; }
.ccard__qr {
  display: block; width: 128px; margin: 4px 0 12px; padding: 8px;
  background: #fff; border: 2px solid var(--ink); border-radius: 10px;
  transition: transform .14s;
}
.ccard__qr:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-sm); }
.ccard__qr img { width: 100%; height: auto; }

/* ===== 门店实拍画廊 ===== */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px; gap: 14px;
}
.gitem {
  position: relative; overflow: hidden; margin: 0;
  border: 3px solid var(--ink); border-radius: 14px; box-shadow: var(--shadow-sm);
  background: var(--cream); cursor: pointer;
  transition: transform .16s, box-shadow .16s;
}
.gitem:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--ink); }
.gitem img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gitem:hover img { transform: scale(1.06); }
/* 错落布局：大图占两格 */
.gitem--wide { grid-column: span 2; }
.gitem--tall { grid-row: span 2; }
.gitem__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 22px 12px 10px; font-size: 12.5px; font-weight: 700; color: #fff;
  background: linear-gradient(transparent, rgba(20,10,3,.82));
  opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s;
}
.gitem:hover .gitem__cap, .gitem:focus-visible .gitem__cap { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 165px; }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; gap: 10px; }
  .gitem--tall { grid-row: span 1; }
}

/* 图片灯箱 */
.lightbox { position: fixed; inset: 0; z-index: 1250; display: grid; place-items: center; padding: 4vw; }
.lightbox__mask { position: absolute; inset: 0; background: rgba(20, 10, 3, .88); }
.lightbox__img {
  position: relative; max-width: min(1000px, 92vw); max-height: 86vh; width: auto;
  border: 4px solid var(--paper); border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox__close {
  position: absolute; top: 3vh; right: 4vw; z-index: 3;
  font: 700 22px var(--sans); line-height: 1; cursor: pointer;
  background: var(--paper); color: var(--ink); border: 3px solid var(--ink);
  border-radius: 50%; width: 46px; height: 46px; box-shadow: var(--shadow-sm);
}
.lightbox__close:hover { background: var(--red); color: #fff; }

/* ===== 咖啡师资质 ===== */
.cert__grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.cert {
  display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 14px;
  box-shadow: 6px 6px 0 var(--lime); overflow: hidden;
  transition: transform .16s, box-shadow .16s;
}
.cert:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--lime); }
/* 证书是文档，用 contain 保证签发信息不被裁掉 */
.cert__media {
  position: relative; margin: 0; cursor: pointer;
  aspect-ratio: 4 / 3; background: var(--cream);
  border-bottom: 3px solid var(--ink); overflow: hidden;
}
.cert__media img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.cert__zoom {
  position: absolute; right: 8px; bottom: 8px;
  font: 700 10.5px var(--mono); letter-spacing: .5px;
  background: var(--ink); color: var(--bg); padding: 3px 8px; border-radius: 999px;
  opacity: 0; transition: opacity .18s;
}
.cert__media:hover .cert__zoom, .cert__media:focus-visible .cert__zoom { opacity: 1; }
.cert__body { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.cert__org { font: 700 10.5px var(--mono); letter-spacing: .6px; color: #8c7a5f; text-transform: uppercase; }
.cert__title { margin: 0; font-size: 16.5px; line-height: 1.35; }
.cert__note { margin: 0; font-size: 12.5px; line-height: 1.6; color: #6f5c44; flex: 1; }
.cert__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border-top: 2px dashed #d8c8ac; padding-top: 10px; margin-top: 2px;
}
.cert__holder { font-weight: 700; font-size: 13.5px; }
.cert__year { color: #8c7a5f; }
@media (max-width: 520px) {
  .cert__grid { grid-template-columns: 1fr; gap: 14px; }
}
