/* 学生优惠地图 v2：「优惠票根」+ 新粗野主义。Figma「网站重设计 v2」页。三个页面共用这一份。 */
:root {
  --paper: #f3efe6;
  --surface: #ffffff;
  --ink: #141414;
  --muted: #6b665e;
  --line: #141414;
  --shadow: #141414;
  --yellow: #f3e24a;
  --cobalt: #2f4bff;
  --tomato: #ff5b39;
  --mint: #bfe8d2;
  --on-color: #141414;
  --font-display: "Bricolage Grotesque", "Noto Sans SC", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --r: 18px;
  --bw: 2px;
  --sh: 5px 5px 0 var(--shadow);
  --active-bg: #141414;
  --active-fg: #f3e24a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #141414; --surface: #1f1e1c; --ink: #f3efe6; --muted: #a8a296; --line: #f3efe6; --shadow: #000000;
    --active-bg: #f3e24a; --active-fg: #141414;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #141414; --surface: #1f1e1c; --ink: #f3efe6; --muted: #a8a296; --line: #f3efe6; --shadow: #000000;
    --active-bg: #f3e24a; --active-fg: #141414;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 96px; overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.6; overflow-x: hidden; }
.wrap { max-width: 1280px; margin: 0 auto; padding-inline: 24px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.mono { font-family: var(--font-mono); }
.eyebrow { font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: .12em; color: var(--cobalt); text-transform: uppercase; }
:root[data-theme="dark"] .eyebrow { color: var(--yellow); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .eyebrow { color: var(--yellow); } }

/* ---------- Nav ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand picture { display: contents; }
.brand img { width: 48px; height: 48px; flex: none; }
.brand b { display: block; font-weight: 900; font-size: 17px; line-height: 1.2; }
.brand small { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; color: var(--muted); }
.seg { display: flex; gap: 4px; padding: 4px; border: var(--bw) solid var(--line); border-radius: 999px; background: var(--surface); }
.seg a { padding: 7px 16px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 14px; white-space: nowrap; }
.seg a:hover { background: var(--paper); }
.seg a.on { background: var(--active-bg); color: var(--active-fg); }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: var(--bw) solid var(--line); border-radius: 999px; background: var(--cobalt); color: #fff; font-family: var(--font-mono); font-weight: 500; font-size: 12px; white-space: nowrap; box-shadow: 3px 3px 0 var(--shadow); }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }

/* ---------- Common ---------- */
.hl { display: inline-block; background: var(--yellow); color: var(--on-color); padding: 0 .16em; border: 3px solid var(--line); border-radius: .18em; box-shadow: 6px 6px 0 var(--shadow); transform: rotate(-2deg); }
.btn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; border: var(--bw) solid var(--line); border-radius: 12px; background: var(--cobalt); color: #fff; font-weight: 700; padding: 10px 20px; text-decoration: none; box-shadow: 3px 3px 0 var(--shadow); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--shadow); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow); }
.btn.ghost { background: var(--surface); color: var(--ink); }
.chip-s { display: inline-flex; align-items: center; padding: 3px 12px; border: var(--bw) solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 700; font-size: 12px; white-space: nowrap; }
.sec { padding-top: 88px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; flex-wrap: wrap; }
.sec-head h2 { margin-top: 8px; font-weight: 900; font-size: clamp(28px, 4vw, 44px); line-height: 1.15; letter-spacing: -.02em; }
.sec-head .aside { font-size: 14px; color: var(--muted); }
.sec-head a.aside { color: var(--ink); font-weight: 700; text-decoration: none; }
.sec-head a.aside:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Brand icon tile */
.bi { flex: none; width: 40px; height: 40px; border: var(--bw) solid var(--line); border-radius: 11px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.bi svg { width: 22px; height: 22px; }
.bi.mono { color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: -.02em; }
.bi.mono.long { font-size: 11px; }

/* ---------- Ticket (deal card) ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ticket { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 64px; min-width: 0; border: var(--bw) solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--sh); transition: transform .14s, box-shadow .14s; }
.ticket:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--shadow); }
.t-main { display: flex; flex-direction: column; gap: 12px; padding: 20px 20px 18px; min-width: 0; }
.t-head { display: flex; align-items: center; gap: 12px; }
.t-head .meta { font-family: var(--font-mono); font-size: 11px; color: var(--muted); line-height: 1.4; }
.ticket h3 { font-weight: 900; font-size: 18px; line-height: 1.35; }
.offer { margin: 0; font-size: 14px; flex: 1; }
.rows { display: grid; gap: 6px; margin: 0; padding-top: 12px; border-top: 1.5px dashed color-mix(in srgb, var(--ink) 35%, transparent); font-size: 13px; }
.rows div { display: grid; grid-template-columns: 32px 1fr; gap: 10px; }
.rows dt { color: var(--muted); font-weight: 500; }
.rows dd { margin: 0; min-width: 0; }
.t-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pill { display: inline-flex; align-items: center; padding: 2px 10px; border: 1.5px solid var(--line); border-radius: 999px; font-family: var(--font-mono); font-weight: 500; font-size: 11px; white-space: nowrap; }
.cta { display: inline-flex; align-items: center; gap: 4px; font-weight: 900; font-size: 14px; text-decoration: none; white-space: nowrap; }
.cta:hover { text-decoration: underline; text-underline-offset: 3px; }
.stub { position: relative; display: flex; align-items: center; justify-content: center; gap: 4px; flex-direction: column; border-left: 2px dashed var(--line); border-radius: 0 calc(var(--r) - 2px) calc(var(--r) - 2px) 0; background: var(--yellow); color: var(--on-color); }
.stub.deal { background: var(--tomato); }
.stub b, .stub span { writing-mode: vertical-rl; }
.stub b { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: .06em; }
.stub span { font-weight: 900; font-size: 13px; }
/* 票根两端的半圆缺口：整圆铺纸色盖住外框，只描内侧半圈 */
.stub::before, .stub::after { content: ""; position: absolute; left: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: var(--bw) solid var(--line); transform: rotate(-45deg); }
.stub::before { top: -13px; border-top-color: transparent; border-right-color: transparent; }
.stub::after { bottom: -13px; border-bottom-color: transparent; border-left-color: transparent; }

/* ---------- Generic card (subpages) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 22px; border: var(--bw) solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--sh); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card h3 { font-family: var(--font-display); font-weight: 800; font-size: 21px; line-height: 1.25; }
.card p { margin: 0; font-size: 14px; }
.card .how { font-size: 13px; color: var(--muted); }
.card .how b { color: var(--ink); }
.card .src { margin-top: auto; padding-top: 10px; border-top: 1.5px dashed color-mix(in srgb, var(--ink) 35%, transparent); font-size: 12px; color: var(--muted); }
.card .src a { color: var(--ink); font-weight: 500; }

/* Status tags */
.st { display: inline-flex; align-items: center; padding: 2px 10px; border: 1.5px solid var(--line); border-radius: 999px; font-family: var(--font-mono); font-weight: 500; font-size: 12px; white-space: nowrap; color: var(--on-color); background: var(--mint); }
.st.free { background: var(--yellow); }
.st.ok { background: var(--mint); }
.st.past { background: var(--tomato); }
.st.guess { background: var(--surface); color: var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 10px; }

/* Subpage hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 56px; align-items: center; padding-block: 56px 24px; }
.hero h1 { font-weight: 900; font-size: clamp(36px, 4.8vw, 68px); line-height: 1.12; letter-spacing: -.04em; margin-block: 18px 22px; }
.hero h1 mark { display: inline-block; background: var(--yellow); color: var(--on-color); padding: 0 .14em; border: 3px solid var(--line); border-radius: .16em; box-shadow: 5px 5px 0 var(--shadow); transform: rotate(-1.5deg); }
.lede { color: var(--muted); font-size: 17px; max-width: 36em; margin: 0 0 22px; }
.back { font-weight: 700; font-size: 14px; text-decoration: none; padding: 8px 16px; border: var(--bw) solid var(--line); border-radius: 999px; background: var(--surface); white-space: nowrap; }
.dark-panel { background: #141414; color: #f3efe6; border: var(--bw) solid var(--line); border-radius: 22px; box-shadow: 8px 8px 0 var(--tomato); padding: 28px; display: grid; gap: 14px; }
.dark-panel .label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--mint); }
.dark-panel h2 { font-size: 28px; font-weight: 900; color: var(--yellow); }
.dark-panel ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; font-size: 14px; }
.dark-panel a { color: var(--yellow); }
.dark-panel .fine { font-size: 13px; opacity: .75; }
.countdown .big { font-family: var(--font-display); font-weight: 800; font-size: 88px; line-height: 1; color: var(--yellow); font-variant-numeric: tabular-nums; }
.countdown .big small { font-family: var(--font-body); font-size: 20px; font-weight: 900; color: #f3efe6; margin-left: 8px; }
.countdown .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 1.5px dashed rgba(243, 239, 230, .35); padding-top: 16px; }
.countdown .pair b { display: block; font-size: 20px; }
.countdown .pair span { font-size: 13px; opacity: .7; }

/* Timeline */
.timeline { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.tl { min-width: 0; padding: 16px; border: var(--bw) solid var(--line); border-radius: 14px; background: var(--surface); }
.tl .d { font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1.2; }
.tl.key { background: var(--yellow); color: var(--on-color); box-shadow: 4px 4px 0 var(--shadow); }
.tl p { margin: 6px 0 8px; font-size: 14px; }

/* Brand rows */
.cat { margin-top: 36px; }
.cat h3 { font-size: 20px; font-weight: 900; margin-bottom: 10px; }
.list { border: var(--bw) solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--sh); overflow: hidden; }
.row { display: grid; grid-template-columns: 190px minmax(0, 1fr) 220px; gap: 20px; padding: 16px 22px; border-top: 1.5px dashed color-mix(in srgb, var(--ink) 35%, transparent); align-items: start; }
.row:first-child { border-top: 0; }
.row .b { font-weight: 900; }
.row .o { font-size: 14px; }
.row .s { font-size: 12px; color: var(--muted); text-align: right; }
.row .s a { color: var(--ink); }

/* Stack */
.stack { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stack div { min-width: 0; padding: 16px; border: var(--bw) solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 4px 4px 0 var(--shadow); }
.stack b { display: block; font-size: 15px; }
.stack span { font-family: var(--font-display); font-weight: 800; font-size: 24px; color: var(--cobalt); }
.stack small { display: block; font-size: 12px; color: var(--muted); }

/* Tiers (McDonald's) */
.tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 2px 0; }
.tiers div { min-width: 0; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--mint); color: var(--on-color); }
.tiers b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 16px; }
.tiers small { display: block; font-size: 12px; line-height: 1.45; }

/* Tips */
.tips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tip { padding: 20px 22px; border: var(--bw) solid var(--line); border-radius: var(--r); background: var(--surface); }
.tip h3 { font-size: 18px; font-weight: 900; }
.tip p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- Footer ---------- */
footer { margin-top: 112px; background: var(--yellow); color: var(--on-color); border-top: 3px solid var(--line); padding-block: 56px 40px; overflow: hidden; }
.foot-word { display: flex; align-items: center; gap: 24px; font-family: var(--font-display); font-weight: 800; font-size: clamp(48px, 10.5vw, 152px); line-height: .9; letter-spacing: -.05em; }
.foot-word img { width: clamp(72px, 12vw, 168px); height: auto; flex: none; }
.foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; margin-top: 36px; }
.foot b { display: block; font-size: 16px; margin-bottom: 6px; }
.foot p { margin: 0; max-width: 44em; font-size: 14px; }
.foot .mono { font-size: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { flex-wrap: wrap; }
  .seg { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .seg::-webkit-scrollbar { display: none; }
  .seg a { flex: 1 0 auto; text-align: center; }
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .grid, .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stack { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .row { grid-template-columns: 150px minmax(0, 1fr); }
  .row .s { grid-column: 2; text-align: left; }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 16px; }
  .nav { padding-block: 14px; }
  .brand img { width: 40px; height: 40px; }
  .brand small, .badge { display: none; }
  .sec { padding-top: 56px; }
  .grid, .cards { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ticket { grid-template-columns: minmax(0, 1fr) 56px; }
  .hero { padding-block: 24px 8px; }
  .hero h1 { font-size: 30px; }
  .lede { font-size: 15px; }
  .dark-panel { padding: 22px; box-shadow: 6px 6px 0 var(--tomato); }
  .countdown .big { font-size: 64px; }
  .timeline { grid-template-columns: minmax(0, 1fr); }
  .stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 16px; }
  .row .s { grid-column: auto; }
  .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tips { grid-template-columns: minmax(0, 1fr); }
  footer { margin-top: 72px; padding-block: 40px 32px; }
  .foot-word { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
