:root {
  --paper: #f5f1e8;
  --ink: #151412;
  --muted: #6f6b63;
  --red: #b51f24;
  --blue: #174a7e;
  --blue-deep: #10375f;
  --blue-highlight: #2a6fa8;
  --line: #d8d0c2;
  --white: #fffdf8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.footer-link { color: inherit; text-underline-offset: 3px; }
.footer-link:hover { color: var(--ink); }
.paper-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .3;
  background-image: radial-gradient(#7c7468 0.45px, transparent .45px);
  background-size: 6px 6px;
}
.shell { width: min(1180px, calc(100% - 40px)); margin: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.portal-header {
  height: 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.portal-brand {
  display: flex;
  gap: 13px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}
.portal-brand b { font: 700 24px "SimSun", "Songti SC", serif; letter-spacing: .08em; }
.portal-brand small {
  display: block;
  color: var(--muted);
  font: 700 10px/1.4 Arial, sans-serif;
  letter-spacing: .14em;
}
.header-actions { display: flex; align-items: center; gap: 24px; }
.header-actions p { margin: 0; color: var(--muted); font-size: 13px; }
.message-nav {
  position: relative;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.message-nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 1px;
  background: var(--red);
  transition: right .2s ease;
}
.message-nav:hover::after, .message-nav:focus-visible::after, .message-nav.active::after { right: 0; }
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: #2b9361;
  box-shadow: 0 0 0 5px #2b936116;
}
.hero {
  padding: 72px 0 65px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  column-gap: 70px;
  align-items: end;
}
.eyebrow {
  grid-column: 1 / -1;
  margin: 0 0 28px;
  color: var(--red);
  font: 700 12px Arial, sans-serif;
  letter-spacing: .18em;
}
.hero-primary { min-width: 0; }
.hero h1 {
  margin: 0;
  font: 800 clamp(56px, 6vw, 82px)/1.05 "SimSun", "Songti SC", serif;
  letter-spacing: -.035em;
}
.hero-secondary {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.hero-personal-logo { width: 168px; height: 168px; margin: -28px auto 16px; }
.hero-personal-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hero-copy {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
  text-align: center;
}
.update-chip {
  width: 100%;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}
.update-chip span { color: var(--ink); font: 700 15px Consolas, monospace; }
.update-chip i { width: 32px; height: 1px; background: var(--line); }
.quick-message-cta { max-width: 620px; margin-top: 45px; }
.form-eyebrow {
  margin: 0 0 8px;
  color: var(--red);
  font: 700 11px Arial, sans-serif;
  letter-spacing: .16em;
}
.quick-message-cta h2 { margin: 0 0 16px; font: 700 25px "SimSun", "Songti SC", serif; }
.quick-message-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 4px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.quick-message-link span { margin-left: 12px; transition: transform .2s; }
.quick-message-link:hover span { transform: translateX(3px); }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.turnstile-slot { width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 18px; margin: 9px 0 0; color: var(--muted); font-size: 12px; }
.form-status[data-state="success"] { color: #21734d; }
.form-status[data-state="error"] { color: var(--red); }
.channels { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.channel-card {
  position: relative;
  min-height: 520px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 18px 50px #564a3720;
}
.channel-card::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 7px; background: var(--accent); }
.channel-card.civic { --accent: var(--red); }
.channel-card.game{--accent:var(--blue)}
.card-top { display: flex; justify-content: flex-end; align-items: center; }
.status { padding: 6px 10px; border: 1px solid currentColor; border-radius: 99px; color: var(--accent); font-size: 11px; font-weight: 700; }
.channel-title { display: flex; align-items: center; gap: 18px; margin: 50px 0 24px; }
.channel-title small { color: var(--muted); font: 700 10px Arial, sans-serif; letter-spacing: .13em; }
.channel-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  min-width: 168px;
  height: 72px;
  margin: 0;
  padding: 0 18px;
  color: #fff;
  font: 800 34px/1 "SimSun", "Songti SC", serif;
  letter-spacing: .03em;
  white-space: nowrap;
}
.civic-mark { background: var(--red); }
.game-mark { background: linear-gradient(112deg, var(--blue-deep), var(--blue) 56%, var(--blue-highlight)); }
.channel-card.game::before { background: linear-gradient(90deg, var(--blue-deep), var(--blue-highlight)); }
.channel-card.game .enter-link { background: linear-gradient(112deg, var(--blue-deep), var(--blue) 58%, var(--blue-highlight)); }
.channel-description { min-height: 58px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.latest { margin: 28px 0 34px; padding: 25px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.latest time { color: var(--accent); font: 700 13px Consolas, monospace; }
.latest h3 { margin: 12px 0 8px; font-size: 22px; line-height: 1.45; }
.latest p { margin: 0; color: var(--muted); font-size: 12px; }
.enter-link { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 800; }
.enter-link span { transition: transform .2s; }
.enter-link:hover span { transform: translate(3px, -3px); }
footer { height: 120px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
footer span { color: var(--ink); font: 700 16px "SimSun", serif; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  opacity: 0;
  transform: translate(-50%, 18px);
  padding: 11px 18px;
  border-radius: 4px;
  background: #1e1d1a;
  color: #fff;
  pointer-events: none;
  transition: .25s;
  font-size: 13px;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 800px) {
  .shell { width: min(calc(100% - 28px), 620px); }
  .portal-header { height: 78px; }
  .header-actions { gap: 18px; }
  .header-update { display: none; }
  .hero { display: block; padding: 55px 0 42px; }
  .eyebrow { margin-bottom: 25px; }
  .hero h1 { font-size: 52px; }
  .quick-message-cta { margin-top: 38px; }
  .hero-secondary { margin-top: 54px; }
  .hero-personal-logo { width: 136px; height: 136px; margin: -18px auto 10px; }
  .hero-copy { max-width: 520px; }
  .update-chip { margin-top: 25px; }
  .channels { grid-template-columns: 1fr; }
  .channel-card { min-height: 0; padding: 27px; }
  .channel-title { margin: 38px 0 22px; }
  footer { height: 95px; align-items: flex-start; padding-top: 30px; }
  footer p { margin: 0; text-align: right; }
}

@media (max-width: 560px) {
  .portal-brand b { font-size: 21px; }
  .update-chip { flex-wrap: wrap; gap: 7px; }
  .update-chip i { width: 18px; }
}

@media (max-width: 430px) {
  .hero h1 { font-size: 46px; }
  .channel-title { gap: 13px; }
  .channel-title small { font-size: 9px; letter-spacing: .09em; }
  .channel-mark { min-width: 142px; height: 58px; padding: 0 13px; font-size: 28px; }
  .channel-card { padding: 23px; }
}
