/* 巴萨红蓝魂 20 周年网站样式 — 只引用 tokens.css 的变量；直角、无阴影、无渐变 */
* { box-sizing: border-box; }
html { scroll-padding-top: 64px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--pb-ink); color: var(--pb-white); font-family: var(--f-body); font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--pb-yellow); outline-offset: 2px; }
.yellow :focus-visible, .hero :focus-visible { outline-color: var(--pb-ink); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--pb-yellow); color: var(--pb-ink); padding: 8px 12px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; top: 8px; }

.in { max-width: 1120px; margin: 0 auto; padding-inline: max(var(--pb-gutter), env(safe-area-inset-left, 0px)); position: relative; z-index: 1; }
.wm { font-family: var(--f-wordmark); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: 13px; line-height: 1.2; }
.note { font-size: 13px; color: var(--pb-muted); }
.ink { color: var(--pb-ink) !important; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--pb-black); border-bottom: 1px solid #2A2A2A; }
.nav-in { max-width: 1120px; margin: 0 auto; padding-inline: var(--pb-gutter); height: 56px; display: flex; align-items: center; gap: 16px; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.nav-20 { font-family: var(--f-display); font-size: 24px; line-height: 1; background: var(--pb-yellow); color: var(--pb-ink); padding: 4px 6px 3px; }
.nav-wm { font-family: var(--f-wordmark); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-links { margin-left: auto; display: flex; gap: 4px; }
.nav-links a { text-decoration: none; font-weight: 700; font-size: 14px; padding: 8px 10px; color: var(--pb-tag-line); }
.nav-links a:hover, .nav-links a.on { color: var(--pb-yellow); }
.nav-links a.nav-home { color: var(--pb-white); border-left: 1px solid #2A2A2A; margin-left: 6px; padding-left: 14px; }
@media (max-width: 820px) { .nav-links a.nav-home { border-left: 0; margin-left: 0; padding-left: 0; } }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--pb-tag-line); padding: 6px 12px; font-weight: 700; font-size: 13px; cursor: pointer; }
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 56px; background: var(--pb-black); flex-direction: column; padding: 8px var(--pb-gutter) 16px; border-bottom: 1px solid #2A2A2A; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; font-size: 16px; border-bottom: 1px solid #1E1E1E; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--pb-yellow); color: var(--pb-ink); }
.sq { position: absolute; }
.hero .sq-b { background: var(--pb-blue); width: 38vw; max-width: 520px; height: 46vw; max-height: 600px; right: -4vw; top: 40px; transform: rotate(var(--pb-tilt-blue)); }
.hero .sq-g { background: var(--pb-garnet); width: 32vw; max-width: 440px; height: 32vw; max-height: 440px; right: 14vw; top: 160px; transform: rotate(var(--pb-tilt-garnet)); display: flex; align-items: center; justify-content: center; }
.emblem { width: 62%; height: auto; transform: rotate(5deg); }
.hero-in { max-width: 1120px; margin: 0 auto; padding: 32px var(--pb-gutter) 40px; position: relative; z-index: 1; }
.hero-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.hero-top .zh { font-weight: 900; font-size: 15px; position: relative; z-index: 2; background: var(--pb-yellow); padding: 0 4px; }
.hero h1 { margin: 24px 0 0; font-family: var(--f-display); font-weight: 400; line-height: .82; display: flex; flex-direction: column; }
.h-20 { font-size: clamp(180px, 34vw, 420px); letter-spacing: -.01em; }
.h-anys { font-size: clamp(64px, 11vw, 140px); color: var(--pb-blue); line-height: 1; margin-top: 4px; }
.hero-script { font-family: var(--f-script); font-size: clamp(28px, 4.4vw, 44px); line-height: 1.2; margin: 10px 0 0; }
.hero-lede { max-width: 30em; font-weight: 500; font-size: 16px; margin: 18px 0 0; }
.hero-next { margin-top: 24px; display: inline-grid; grid-template-columns: auto 1fr; gap: 0; background: var(--pb-ink); color: var(--pb-white); max-width: 100%; }
.hero-next:empty { display: none; }
.hero-next .cd { background: var(--pb-garnet); padding: 10px 14px; text-align: center; line-height: 1; display: flex; flex-direction: column; justify-content: center; }
.hero-next .cd b { font-family: var(--f-display); font-weight: 400; font-size: 34px; }
.hero-next .cd small { font-size: 12px; opacity: .85; margin-top: 4px; }
.hero-next .nx { padding: 10px 16px; min-width: 0; }
.hero-next .nx .lbl { font-family: var(--f-wordmark); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: 11px; color: var(--pb-tag-line); }
.hero-next .nx .t { font-weight: 800; font-size: 16px; line-height: 1.35; }
.hero-next .nx .d { color: var(--pb-yellow); font-weight: 700; font-size: 13px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-yr { font-family: var(--f-wordmark); font-weight: 700; font-size: 22px; letter-spacing: .04em; margin-top: 32px; }
.big-stripe { height: 10px; }
@media (max-width: 720px) {
  .hero .sq-b { width: 58vw; height: 70vw; right: -22vw; top: 70px; }
  .hero .sq-g { width: 46vw; height: 46vw; right: -2vw; top: 150px; }
  .h-anys { color: var(--pb-ink); }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 10px 18px; font-weight: 800; font-size: 15px; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-ink { background: var(--pb-ink); color: var(--pb-yellow); }
.btn-ink:hover { background: var(--pb-black); }
.btn-line { border-color: var(--pb-ink); color: var(--pb-ink); background: transparent; }
.btn-line:hover { background: var(--pb-ink); color: var(--pb-yellow); }
.btn-yellow { background: var(--pb-yellow); color: var(--pb-ink); }
.btn-line-light { border-color: var(--pb-tag-line); color: var(--pb-white); }
.btn-line-light:hover { border-color: var(--pb-yellow); color: var(--pb-yellow); }

/* ---------- Sections ---------- */
.sec { padding: 72px 0; position: relative; overflow: hidden; }
.sec.dark { background: var(--pb-ink); }
.sec.dark.alt { background: var(--pb-black); }
.sec.yellow { background: var(--pb-yellow); color: var(--pb-ink); }
.eyebrow { font-family: var(--f-wordmark); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: 13px; color: var(--pb-yellow); }
.sec h2 { margin: 6px 0 10px; font-weight: 900; font-size: clamp(28px, 4.6vw, 44px); line-height: 1.15; text-wrap: balance; }
.intro { margin: 0 0 32px; color: var(--pb-muted); max-width: 40em; font-size: 16px; }
.sub { font-size: 18px; font-weight: 900; margin: 48px 0 14px; }
.yellow .sq-b.small { background: var(--pb-blue); width: 220px; height: 260px; right: -70px; top: -40px; transform: rotate(var(--pb-tilt-blue)); }
.yellow .sq-g.small { background: var(--pb-garnet); width: 180px; height: 170px; right: 60px; top: 40px; transform: rotate(var(--pb-tilt-garnet)); }
@media (max-width: 720px) {
  .sec { padding: 56px 0; }
  .yellow .sq-b.small { width: 140px; height: 160px; right: -60px; }
  .yellow .sq-g.small { width: 110px; height: 100px; right: 0; top: 20px; }
}

/* ---------- About ---------- */
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: #2A2A2A; border: 1px solid #2A2A2A; }
.stat { background: var(--pb-surface); padding: 18px 16px; min-width: 0; }
.stat b { font-family: var(--f-display); font-weight: 400; font-size: clamp(34px, 4vw, 48px); line-height: 1; color: var(--pb-yellow); }
.stat b small { font-family: var(--f-body); font-size: 14px; font-weight: 700; margin-left: 4px; color: var(--pb-white); }
.stat p { margin: 8px 0 0; font-size: 13px; color: var(--pb-muted); line-height: 1.45; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat:last-child { grid-column: 1 / -1; } }

.timeline { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(9, minmax(118px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; border-top: 6px solid var(--pb-blue); }
.timeline li { scroll-snap-align: start; padding: 14px 16px 4px 0; position: relative; min-width: 0; }
.timeline li:nth-child(even) { border-top: 6px solid var(--pb-garnet); margin-top: -6px; }
.timeline .y { font-family: var(--f-display); font-size: 30px; line-height: 1; }
.timeline li:last-child .y { color: var(--pb-yellow); }
.timeline .t { font-size: 13.5px; color: var(--pb-muted); margin-top: 6px; line-height: 1.5; }

/* ---------- Calendar ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filters button { background: transparent; border: 1px solid var(--pb-tag-line); color: var(--pb-tag-text); padding: 8px 14px; min-height: 40px; font-weight: 700; font-size: 14px; cursor: pointer; }
.filters button[aria-selected="true"] { background: var(--pb-yellow); border-color: var(--pb-yellow); color: var(--pb-ink); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--pb-card-gap); }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }
.card-wrap { background: var(--pb-surface); display: flex; flex-direction: column; scroll-margin-top: 72px; }
.card-wrap:target { outline: 2px solid var(--pb-yellow); }
.card-wrap .pb-card { background: transparent; align-items: start; flex: 1; }
.card-wrap .pb-card .title { overflow-wrap: anywhere; }
.card-meta { color: var(--pb-tag-line); font-size: 12.5px; margin-top: 4px; }
.card-acts { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid #2A2A2A; }
.card-acts a, .card-acts button { flex: 1 1 auto; background: none; border: 0; border-right: 1px solid #2A2A2A; padding: 10px 8px; min-height: 40px; font-size: 13px; font-weight: 700; color: var(--pb-muted); text-decoration: none; text-align: center; cursor: pointer; }
.card-acts > :last-child { border-right: 0; }
.card-acts a:hover, .card-acts button:hover { color: var(--pb-yellow); }
.card-acts .go { color: var(--pb-yellow); }
.foot { padding-inline: 0 !important; margin: 14px 0 0; }
.cal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* ---------- Features ---------- */
.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .feats { grid-template-columns: 1fr; } }
.feat { background: var(--pb-ink); color: var(--pb-white); display: flex; flex-direction: column; min-width: 0; }
.feat-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 16px 18px; color: var(--pb-white); }
.feat-head.blue { background: var(--pb-blue); }
.feat-head.garnet { background: var(--pb-garnet); }
.feat-date { font-family: var(--f-display); font-size: clamp(30px, 4vw, 40px); line-height: 1; white-space: nowrap; }
.feat-kicker { font-family: var(--f-wordmark); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; text-align: right; line-height: 1.3; }
.feat-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.feat-body h3 { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.35; }
.feat-body p { margin: 0; color: var(--pb-muted); font-size: 14.5px; }
.feat-body .btn { align-self: flex-start; margin-top: auto; background: var(--pb-yellow); color: var(--pb-ink); }
.ink-tag { vertical-align: middle; margin-left: 6px; font-size: 12px; }
.mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: #2A2A2A; }
.mini li { background: var(--pb-surface); padding: 8px 12px; font-size: 14px; }
.mini b { color: var(--pb-yellow); font-family: var(--f-wordmark); letter-spacing: .08em; margin-right: 10px; }
.mini-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.mini-tbl th { text-align: left; font-family: var(--f-wordmark); letter-spacing: .12em; text-transform: uppercase; font-size: 11.5px; color: var(--pb-tag-line); padding: 6px 0; border-bottom: 1px solid #2A2A2A; }
.mini-tbl td { padding: 7px 0; border-bottom: 1px solid #2A2A2A; vertical-align: top; }
.mini-tbl td:first-child { color: var(--pb-yellow); font-weight: 700; white-space: nowrap; padding-right: 14px; }
.months { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.months div { background: var(--pb-surface); padding: 8px 4px; text-align: center; line-height: 1.2; }
.months b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 20px; }
.months span { font-size: 11px; color: var(--pb-muted); }
.months div:nth-child(n+4):nth-child(-n+6), .months div:nth-child(n+10) { background: #2a1420; }
.months div:nth-child(-n+3), .months div:nth-child(n+7):nth-child(-n+9) { background: #0f1c2c; }
@media (max-width: 420px) { .months { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.wall li { background: var(--pb-surface); padding: 8px; font-size: 12px; color: var(--pb-muted); line-height: 1.3; min-width: 0; }
.wall li b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 20px; color: var(--pb-white); }
.wall li.now { background: var(--pb-yellow); color: var(--pb-ink); }
.wall li.now b { color: var(--pb-ink); }
@media (max-width: 420px) { .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Charity ---------- */
.auctions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--pb-card-gap); }
@media (max-width: 760px) { .auctions { grid-template-columns: 1fr; } }
.auction { background: var(--pb-surface); padding: var(--pb-card-pad); display: grid; grid-template-columns: var(--pb-badge) minmax(0, 1fr); gap: 12px; align-items: start; }
.auction .date { color: var(--pb-yellow); font-weight: 800; font-size: 16px; }
.auction p { margin: 2px 0 0; color: var(--pb-muted); font-size: 13.5px; line-height: 1.5; }
.news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: #2A2A2A; border: 1px solid #2A2A2A; }
@media (max-width: 760px) { .news { grid-template-columns: 1fr; } }
.news a { background: var(--pb-ink); padding: 16px; text-decoration: none; display: flex; flex-direction: column; gap: 6px; }
.news a:hover { background: var(--pb-surface); }
.news .d { font-family: var(--f-display); font-size: 22px; line-height: 1; color: var(--pb-yellow); }
.news .s { font-family: var(--f-wordmark); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 11px; color: var(--pb-tag-line); }
.news .t { font-weight: 700; font-size: 15px; }
.news .r { font-size: 13px; color: var(--pb-muted); margin-top: auto; }

/* ---------- Partners ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .tiers { grid-template-columns: 1fr; } }
.tier { background: var(--pb-ink); color: var(--pb-white); padding: 20px; }
.tier-n { font-family: var(--f-display); font-size: 40px; line-height: 1; color: var(--pb-yellow); }
.tier h3 { margin: 10px 0 6px; font-size: 19px; font-weight: 800; }
.tier p { margin: 0; color: var(--pb-muted); font-size: 14px; }
.brands { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.brands li { border: 1px solid var(--pb-ink); padding: 6px 12px; font-weight: 700; font-size: 14px; }
.contact { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 32px; }

/* ---------- Connect ---------- */
.network { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 860px) { .network { grid-template-columns: 1fr; } }
.net-g h4 { margin: 0 0 8px; font-family: var(--f-wordmark); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: 13px; color: var(--pb-tag-line); }
.net-g ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid #2A2A2A; }
.net-g li { border-bottom: 1px solid #2A2A2A; }
.net-g a, .net-g span.row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; text-decoration: none; }
.net-g a b { color: var(--pb-white); }
.net-g a:hover b { color: var(--pb-yellow); }
.net-g a i { font-style: normal; color: var(--pb-yellow); }
.net-g span.row b { color: var(--pb-muted); font-weight: 700; }
.net-g small { color: var(--pb-tag-line); font-size: 12.5px; text-align: right; }
.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 960px) { .tools { grid-template-columns: 1fr; } }
.tool { background: var(--pb-surface); padding: 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tool-h { font-weight: 800; font-size: 17px; display: flex; align-items: center; gap: 10px; }
.tool-n { width: 28px; height: 28px; background: var(--pb-blue); display: inline-flex; align-items: center; justify-content: center; font-family: var(--f-display); font-weight: 400; font-size: 16px; }
.tool:nth-child(2) .tool-n { background: var(--pb-garnet); }
.tool p { margin: 0; font-size: 13.5px; color: var(--pb-muted); }
.tool code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12px; }
.tool p code { color: var(--pb-yellow); }
.code { position: relative; background: var(--pb-black); border: 1px solid #2A2A2A; }
.code pre { margin: 0; padding: 12px; padding-right: 64px; overflow-x: auto; color: #DADADA; line-height: 1.55; }
.copy { position: absolute; top: 6px; right: 6px; background: var(--pb-yellow); color: var(--pb-ink); border: 0; font-weight: 700; font-size: 12px; padding: 5px 10px; cursor: pointer; }
.embed-preview { border: 1px dashed var(--pb-tag-line); }
.embed-preview iframe { width: 100%; height: 132px; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--pb-black); }
.foot-in { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 40px; padding-bottom: max(40px, env(safe-area-inset-bottom, 0px)); }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr; } }
.foot-20 { font-family: var(--f-display); font-size: 56px; line-height: 1; color: var(--pb-yellow); }
.wm.light { color: var(--pb-white); margin-top: 6px; }
.footer p { color: #9A9A9A; font-size: 13px; margin: 8px 0 0; }
.foot-r a { color: var(--pb-yellow); font-weight: 700; }

.toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--pb-yellow); color: var(--pb-ink); font-weight: 700; padding: 10px 16px; font-size: 14px; z-index: 80; opacity: 0; pointer-events: none; transition: opacity .2s; }
.toast.show { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
