@font-face {
  font-family: 'Barlow Condensed';
  src: url('/assets/barlow-condensed-black.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: 'Noto Sans SC Black';
  src: url('/assets/noto-sans-sc-black.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
}

:root {
  --ink: #171614;
  --paper: #f6f1e8;
  --white: #fffbf3;
  --red: #f54838;
  --red-ink: #ae281c;
  --muted: #5f5850;
  --line: #c9bfb2;
  --heading: 'Noto Sans SC Black', 'Microsoft YaHei', 'PingFang SC', sans-serif;
  --display: 'Barlow Condensed', Impact, 'Arial Narrow', sans-serif;
  font-family: system-ui, 'Microsoft YaHei', 'PingFang SC', 'Noto Sans CJK SC', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .56; }
button, a, input { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
section[id] { scroll-margin-top: 25px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }
::selection { color: var(--white); background: #9f261c; }

.wrap { width: min(100% - 112px, 1280px); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus { position: fixed; z-index: 4; inset: 12px auto auto 12px; padding: 12px; background: var(--white); }
.site-header { color: var(--white); background: var(--ink); border-bottom: 1px solid #3c3731; }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-inner { min-height: 72px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 850; text-decoration: none; white-space: nowrap; }
.ban-icon {
  display: inline-grid;
  flex: none;
  width: 1.55em;
  aspect-ratio: 1;
  place-items: center;
  border: .158em solid currentColor;
  border-radius: 50%;
  color: var(--red);
  overflow: hidden;
}
.ban-icon::after { content: ''; width: 132%; height: .152em; background: currentColor; transform: rotate(45deg); }
nav { display: flex; align-items: center; gap: 32px; font-size: .875rem; font-weight: 650; }
nav a { text-decoration: none; }
.nav-text:hover, .hero-link:hover { color: var(--red); }
.nav-action { padding: 10px 15px; color: var(--white); border: 1px solid #a2988a; white-space: nowrap; }
.nav-action span { margin-left: 8px; }
.nav-action:hover { color: var(--ink); background: var(--red); border-color: var(--red); }

.hero { color: var(--white); background: var(--ink); border-bottom: 5px solid var(--red); }
.hero-layout { display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: 20px; min-height: 610px; padding-block: 48px 56px; }
.hero-copy { position: relative; z-index: 1; min-width: 0; }
.hero-eyebrow { display: flex; align-items: center; gap: 13px; color: #ff6f61; font-size: .82rem; font-weight: 700; letter-spacing: .115em; }
.hero-eyebrow span { width: 25px; height: 2px; background: var(--red); }
.hero h1 { margin-top: 23px; }
.hero-zh { display: block; font: 900 clamp(3.4rem, 7.65vw, 6.8rem) / 1.12 var(--heading); letter-spacing: -.055em; }
.hero-latin {
  display: block;
  margin-left: -.018em;
  color: var(--red);
  font: 900 clamp(5rem, 13.5vw, 12.4rem) / .87 var(--display);
  letter-spacing: -.021em;
  text-transform: uppercase;
}
.hero-message { margin-top: 27px; color: #eee6d9; font-size: clamp(1rem, 1.6vw, 1.37rem); font-weight: 660; line-height: 1.64; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 28px; }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 52px; padding: 12px 19px; border: 1px solid transparent; border-radius: 0; font-weight: 800; text-decoration: none; }
.button span[aria-hidden] { font-size: 1.18em; }
.button-red { min-width: 159px; color: var(--ink); background: var(--red); }
.button-red:hover { background: #ff6b5d; }
.button-red:focus-visible, .nav-action:focus-visible { outline-color: var(--white); }
.hero-link { color: #e7ded1; font-size: .875rem; font-weight: 700; text-underline-offset: .28em; }
.hero-link span { margin-left: 3px; }
.hero-art { min-width: 0; justify-self: end; width: min(100%, 566px); }
.hero-art img { width: 100%; height: auto; mask-image: radial-gradient(ellipse, black 69%, transparent 92%); }

.participation { border-bottom: 1px solid var(--line); background: #ede5d8; }
.closing-stats { border-top: 1px solid var(--line); background: #ede5d8; }
.stat-strip { display: grid; grid-template-columns: 1fr 1fr minmax(0, 1.1fr); align-items: center; min-height: 106px; }
.stat { display: flex; align-items: baseline; gap: 16px; padding: 4px 24px 4px 0; font-size: .9rem; font-weight: 740; }
.stat + .stat { border-left: 1px solid #b9ac9e; padding-left: 31px; }
.stat-value { min-width: 1ch; font: 900 3.1rem / 1 var(--display); font-variant-numeric: tabular-nums; }
.stat-link { justify-self: end; padding-block: 12px; font-size: .875rem; font-weight: 750; text-underline-offset: .28em; }
.stat-link span { margin-left: 6px; }
.stat-link:hover, .policy a:hover, .text-action:hover { color: var(--red-ink); }
.closing-stat-strip { grid-template-columns: 1fr 1fr; margin-top: 18px; }
.region-map { background: #f1eadd; border-top: 1px solid var(--line); }
.map-panel { margin: 23px 0 0; border: 1px solid var(--line); background: #faf4e9; }
.map-panel canvas { display: block; width: 100%; height: auto; }
.map-caption, .map-details { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 12px; font-size: .88rem; }
.map-caption { border-top: 1px solid var(--line); }
.map-caption a { text-underline-offset: .24em; }
.map-details { padding-inline: 0; }
.map-legend, .map-legend span { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.map-legend { gap: 10px; color: var(--muted); }
.map-legend i { width: 12px; height: 12px; background: #d4c8b7; }
.map-legend span:nth-child(2) i { background: #edb19b; }
.map-legend span:nth-child(3) i { background: #e47c61; }
.map-legend span:nth-child(4) i { background: #cc4932; }
.map-legend span:nth-child(5) i { background: #8e281e; }
.map-select select, .field select { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid #8d8174; background: #fffdf8; color: var(--ink); font: inherit; }
.map-select { max-width: 100%; }
.map-details p { color: var(--muted); }
.region-field { position: relative; }
.region-menu { position: absolute; z-index: 3; inset: 100% 0 auto; border: 1px solid #8d8174; background: #fffdf8; box-shadow: 0 5px 12px #24190924; }
.region-menu ul { max-height: 15rem; margin: 0; padding: 0; overflow: auto; overscroll-behavior: contain; list-style: none; }
.region-menu li, .region-menu p { padding: 10px 12px; }
.region-menu li { cursor: pointer; }
.region-menu li:hover, .region-menu li[aria-selected='true'] { background: #eee5d9; }

.section { padding-block: 90px; }
.section-title { font: 900 clamp(2.55rem, 4.7vw, 4.25rem) / 1.17 var(--heading); letter-spacing: -.047em; }
.manifesto-intro { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 44px; margin-bottom: 38px; }
.manifesto-poster { border: 1px solid var(--line); box-shadow: 5px 5px 0 var(--ink); }
.manifesto-poster img { width: 100%; height: auto; }
.policy { margin-top: 24px; border-left: 3px solid var(--red-ink); padding-left: 22px; font-size: .94rem; line-height: 1.9; }
.policy a { display: inline-block; margin-top: 10px; font-weight: 720; text-underline-offset: .24em; }
.statement { margin-bottom: 22px; max-width: 58em; color: var(--muted); font-size: .94rem; line-height: 1.8; }
.pledges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--ink); }
.pledge { padding: 25px 30px 29px 0; }
.pledge + .pledge { padding-left: 29px; border-left: 1px solid var(--line); }
.pledge .ban-icon { color: var(--red-ink); font-size: 1.1rem; }
.pledge-arrow { display: grid; height: 27px; align-items: center; color: var(--red-ink); font-size: 1.7rem; font-weight: 900; line-height: 1; }
.pledge h3 { margin-top: 11px; font-size: clamp(1.05rem, 1.75vw, 1.45rem); font-weight: 850; }
.pledge p { margin-top: 7px; color: var(--muted); line-height: 1.75; }

.payment-help { background: #ede5d8; border-top: 1px solid var(--line); }
.payment-layout { display: grid; grid-template-columns: .85fr 1.15fr; align-items: start; gap: 54px; }
.payment-intro p { max-width: 34em; margin-top: 20px; line-height: 1.8; }
.payment-note { border-left: 3px solid var(--red-ink); padding-left: 13px; color: var(--muted); font-size: .89rem; }
.payment-steps { margin: 3px 0 0; padding: 0 0 0 1.55em; border-block: 1px solid var(--ink); }
.payment-steps li { padding: 13px 0 15px 5px; }
.payment-steps li + li { border-top: 1px solid var(--line); }
.payment-steps li::marker { color: var(--red-ink); font-weight: 850; }
.payment-steps h3 { font-size: 1.1rem; font-weight: 820; }
.payment-steps p { margin-top: 5px; color: var(--muted); font-size: .94rem; line-height: 1.75; }
.payment-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 9px; font-size: .83rem; font-weight: 740; text-underline-offset: .24em; }
.payment-links a:hover { color: var(--red-ink); }

.sign-section { background: var(--red); border-block: 1px solid var(--ink); }
.sign-layout { display: grid; grid-template-columns: .85fr 1.15fr; align-items: start; gap: 54px; }
.sign-intro p { max-width: 19em; margin-top: 21px; font-weight: 630; line-height: 1.7; }
.plain-button { padding: 0; color: inherit; background: transparent; border: 0; }
.withdraw-link { margin-top: 24px; font-size: .875rem; font-weight: 750; text-decoration: underline; text-underline-offset: .27em; }
.sign-panel { padding: 28px; background: var(--white); border: 2px solid var(--ink); box-shadow: 7px 7px 0 var(--ink); }
.type-switch { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 24px; border: 1px solid var(--ink); padding: 0; }
.type-switch label { position: relative; min-width: 0; cursor: pointer; font-weight: 790; }
.type-switch label + label { border-left: 1px solid var(--ink); }
.type-switch input { position: absolute; width: 100%; height: 100%; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.type-switch span { display: block; padding: 12px 10px; text-align: center; }
.type-switch label:hover span { background: #eae0d3; }
.type-switch input:checked + span { color: var(--white); background: var(--ink); }
.type-switch input:focus-visible + span { outline: 3px solid var(--red-ink); outline-offset: 2px; }
.type-switch:disabled label { opacity: .7; cursor: wait; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-weight: 760; }
.field label span { margin-left: 6px; color: var(--muted); font-size: .82rem; font-weight: 560; }
.field input, .receipt-code input { min-width: 0; width: 100%; min-height: 46px; padding: 10px 12px; color: var(--ink); background: #fffdf8; border: 1px solid #8d8174; border-radius: 0; }
.field input::placeholder { color: #74695e; }
.field input:focus-visible, .receipt-code input:focus-visible { outline-offset: 2px; outline-color: var(--red-ink); }
.check-row { display: flex; align-items: start; gap: 9px; margin: 11px 0; font-size: .875rem; line-height: 1.55; cursor: pointer; }
.check-row input { flex: none; width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--ink); }
.button-ink { color: var(--white); background: var(--ink); }
.button-ink:hover:not(:disabled) { background: #38312b; }
.button-ink:focus-visible { outline-color: var(--red-ink); }
#sign-submit { width: 100%; margin-top: 12px; }
.form-error, .form-note { margin-top: 10px; font-size: .81rem; line-height: 1.6; }
.form-error { color: var(--red-ink); font-weight: 750; }
.form-note { color: var(--muted); }
.receipt h3 { font-size: 1.3rem; }
.receipt p { margin-top: 10px; line-height: 1.6; }
.receipt-code { display: flex; gap: 9px; margin-top: 16px; }
.receipt-code input { font-family: ui-monospace, Consolas, monospace; }
.receipt-code button { min-height: 44px; white-space: nowrap; }

.signers-section { min-height: 370px; }
.signers-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.signers-heading p { margin-top: 15px; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.filters { display: flex; align-items: center; border: 1px solid var(--ink); }
.filters button, .pagination button { min-height: 43px; padding: 8px 16px; color: var(--ink); background: transparent; border: 0; white-space: nowrap; font-size: .87rem; font-weight: 730; }
.filters button + button { border-left: 1px solid var(--ink); }
.filters button[aria-pressed='true'] { color: var(--white); background: var(--ink); }
.filters button:hover:not([aria-pressed='true']), .pagination button:hover:not(:disabled) { background: #e7dbcc; }
.filters button:focus-visible { outline-color: var(--red-ink); outline-offset: 2px; }
.list-status { margin-top: 25px; border-top: 1px solid var(--line); padding: 24px 0 7px; color: var(--muted); line-height: 1.6; }
.text-action { padding: 8px 0; border: 0; color: var(--ink); background: transparent; font-weight: 770; text-decoration: underline; text-underline-offset: .25em; }
.signer-list { list-style: none; padding: 0; margin: 25px 0 0; border-top: 1px solid var(--ink); }
.signer-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.signer-info { min-width: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 13px; overflow-wrap: anywhere; }
.signer-kind { border: 1px solid var(--line); padding: 3px 7px; font-size: .77rem; }
.signer-list time, .signer-region { color: var(--muted); font-size: .85rem; }
.pagination { margin-top: 20px; display: flex; justify-content: end; gap: 10px; }
.pagination button { border: 1px solid var(--ink); }
.pagination button:disabled { cursor: default; }

.site-footer { padding-block: 27px; color: var(--white); background: var(--ink); }
.footer-inner > p { margin-right: auto; color: #bdb4a8; font-size: .86rem; }
.footer-inner > a:last-child { font-size: .84rem; white-space: nowrap; text-underline-offset: .26em; }
.withdraw-dialog { width: min(100% - 32px, 470px); max-height: calc(100% - 32px); margin: auto; padding: 24px; color: var(--ink); background: var(--white); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--red); }
.withdraw-dialog::backdrop { background: #171614bb; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.dialog-heading h2 { font-size: 1.45rem; }
.close-button { min-width: 40px; min-height: 40px; border: 0; background: transparent; color: var(--ink); font-size: 1.6rem; }
.withdraw-dialog > p { margin: 8px 0 17px; color: var(--muted); font-size: .92rem; line-height: 1.7; }

@media (max-width: 1190px) {
  .wrap { width: calc(100% - 80px); }
  .hero-layout { min-height: 0; padding-block: 49px 56px; }
  .section { padding-block: 76px; }
}

@media (max-width: 830px) {
  .wrap { width: calc(100% - 52px); }
  .hero-layout { gap: 8px; }
  .hero-zh { font-size: 7.5vw; }
  .hero-latin { font-size: 13.45vw; }
  .sign-layout, .payment-layout { grid-template-columns: .72fr 1.28fr; gap: 30px; }
  .sign-panel { padding: 21px; }
  .pledge, .pledge + .pledge { padding-inline: 16px; }
  .pledge:first-child { padding-left: 0; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 40px); }
  .header-inner { min-height: 61px; gap: 10px; }
  .header-inner nav { gap: 12px; }
  .nav-text:not(.nav-payment) { display: none; }
  .nav-payment { white-space: nowrap; }
  .nav-action { padding-inline: 10px; }
  .nav-action span { margin-left: 3px; }
  .hero-layout { grid-template-columns: 1fr; gap: 10px; padding-block: 35px 15px; }
  .hero h1 { margin-top: 17px; }
  .hero-eyebrow { font-size: .74rem; letter-spacing: .06em; }
  .hero-zh { font-size: clamp(3rem, 14vw, 5.8rem); }
  .hero-latin { font-size: clamp(5rem, 26vw, 10.5rem); }
  .hero-message { margin-top: 20px; }
  .hero-actions { margin-top: 19px; }
  .hero-art { width: min(81vw, 405px); justify-self: center; }
  .stat-strip { min-height: 0; grid-template-columns: 1fr 1fr; }
  .stat { gap: 9px; padding-block: 12px; padding-right: 10px; }
  .stat + .stat { padding-left: 17px; }
  .stat-value { font-size: 2.4rem; }
  .stat-link { grid-column: 1 / -1; justify-self: stretch; border-top: 1px solid var(--line); }
  .section { padding-block: 55px; }
  .manifesto-intro, .sign-layout, .payment-layout { grid-template-columns: 1fr; gap: 23px; }
  .manifesto-intro { margin-bottom: 26px; }
  .policy { margin-top: 16px; padding-left: 12px; }
  .pledges { grid-template-columns: 1fr; }
  .pledge, .pledge + .pledge { padding: 18px 0 20px; border-left: 0; }
  .pledge + .pledge { border-top: 1px solid var(--line); }
  .sign-intro p { margin-top: 12px; }
  .withdraw-link { margin-top: 12px; }
  .sign-panel { padding: 17px; box-shadow: 5px 5px 0 var(--ink); }
  .signers-heading { align-items: start; flex-direction: column; }
  .signer-list li { grid-template-columns: minmax(0, 1fr) auto; gap: 7px 10px; }
  .signer-list time { grid-column: 1 / -1; }
  .footer-inner { gap: 12px 17px; flex-wrap: wrap; }
  .footer-inner > p { order: 1; flex-basis: 100%; }
}

@media (max-width: 390px) {
  .header-inner { gap: 8px; }
  .header-inner .wordmark { gap: 6px; font-size: .875rem; }
  .header-inner nav { gap: 8px; font-size: .78rem; }
  .nav-action { padding-inline: 7px; }
  .nav-action span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.header-inner { flex-wrap: wrap; padding-block: 12px; }
.header-inner nav { flex-wrap: wrap; gap: 10px 18px; }
.language-picker select {
  max-width: 10rem;
  min-height: 38px;
  padding-inline: 7px;
  color: var(--white);
  background: var(--ink);
  border: 1px solid #a2988a;
  font: inherit;
}
.manifesto-poster figcaption { padding: 10px 12px; font-weight: 700; }
html:not([lang^='zh']) .hero-zh { font-size: clamp(2.25rem, 6vw, 5.8rem); overflow-wrap: anywhere; }
html:not([lang^='zh']) .section-title { overflow-wrap: anywhere; }
html:not([lang^='zh']) .nav-action, html:not([lang^='zh']) .nav-payment { white-space: normal; overflow-wrap: anywhere; }
.header-inner nav, .signers-heading > div { min-width: 0; }
.filters { flex-wrap: wrap; }
[dir='rtl'] .policy, [dir='rtl'] .payment-note { border-left: 0; border-right: 3px solid var(--red-ink); padding: 0 14px 0 0; }
[dir='rtl'] .payment-steps { padding: 0 1.55em 0 0; }
[dir='rtl'] .payment-steps li { padding-inline: 5px 0; }
[dir='rtl'] .receipt-code input, [dir='rtl'] #withdraw-code { direction: ltr; }

@media (max-width: 640px) {
  .header-inner nav { gap: 7px 10px; }
  .language-picker select { max-width: 8rem; }
}
