@import url("https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,500;0,6..72,700;1,6..72,500&family=Noto+Sans+SC:wght@400;500;700&display=swap");

:root {
  --red: #dc2626;
  --red-deep: #9f1239;
  --ink: #450a0a;
  --muted: #7f1d1d;
  --paper: #fef2f2;
  --card: #fff7f7;
  --line: #fecaca;
  --navy: #1e40af;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Newsreader", "Songti SC", serif;
  --dock: 72px;
  --z-dock: 40;
  --z-toast: 80;
  --z-pay: 90;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  padding-bottom: var(--dock);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(220, 38, 38, 0.12), transparent 55%),
    var(--paper);
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button, a, .pass, .plan-pass { cursor: pointer; }
img { max-width: 100%; }

.frame {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* ---------- Brand strip (top, not a full navbar) ---------- */
.mast {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 8px;
}

.mast-brand {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.mast-mark {
  font-family: var(--display);
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: var(--red);
}

.mast-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mast-en {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.mast-zh {
  font-size: 14px;
  font-weight: 500;
}

.user-chip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: 13px;
}

.vip-badge {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--red);
  color: var(--red);
  font-size: 12px;
}

/* ---------- Bottom dock ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-dock);
  height: var(--dock);
  background: #fff;
  border-top: 2px solid var(--ink);
  display: flex;
  align-items: stretch;
}

.dock > div {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.dock a {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  letter-spacing: 0.12em;
  border-right: 1px solid var(--line);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.dock a:last-child { border-right: 0; }
.dock a:hover,
.dock a.active {
  background: var(--red);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: #fff;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:hover { background: var(--red); border-color: var(--red); }
.btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink); }
.btn-ghost:hover { color: var(--red); }
.btn-navy { background: var(--navy); border-color: var(--navy); }
.btn-navy:hover { background: #1d4ed8; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- Home hero ---------- */
.hero {
  padding: 12px 0 48px;
  border-bottom: 2px solid var(--ink);
  display: grid;
  grid-template-columns: 1fr minmax(140px, 22%);
  gap: 32px;
  align-items: end;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.hero p {
  margin-top: 14px;
  max-width: 42ch;
  font-size: 15px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-spine {
  writing-mode: vertical-rl;
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0.35em;
  color: var(--red);
  border-left: 1px solid var(--line);
  padding-left: 18px;
  height: min(280px, 40vw);
  align-self: start;
}

/* ---------- Boarding-pass news ---------- */
.board-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 36px 0 16px;
}

.board-head h2 {
  font-family: var(--display);
  font-size: 1.8rem;
}

.board-head p { font-size: 13px; color: var(--muted); }

.board { display: flex; flex-direction: column; }

.pass {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px dashed var(--line);
  background: transparent;
  transition: color 0.2s var(--ease);
}

.pass:hover { color: var(--red); }
.pass:first-child { border-top: 2px solid var(--ink); }

.pass-no {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.pass h3 { font-size: 1.05rem; font-weight: 500; }
.pass .excerpt {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}
.pass:hover .excerpt { color: var(--red-deep); }

.pass-side {
  text-align: right;
  font-size: 12px;
  color: var(--muted);
}

.lock-hint {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--red);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 64px;
  padding: 36px 0 28px;
  border-top: 2px solid var(--ink);
}

.footer-brand {
  font-family: var(--display);
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.footer-contact { font-size: 13px; color: var(--muted); }
.footer-contact li { margin-bottom: 6px; }
.footer-contact a:hover { color: var(--red); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 18px 0 10px;
  font-size: 13px;
}

.footer-links a:hover { color: var(--red); }

.footer-copy {
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Inner pages ---------- */
.page-kicker {
  padding-top: 20px;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--red);
}

.page-title {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 8px 0 12px;
}

.page-desc { color: var(--muted); max-width: 52ch; }

/* Article */
.article-shell { padding: 24px 0 48px; max-width: 720px; }
.article-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
}
.article-title {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.article-content p { margin-bottom: 16px; }
.article-preview { position: relative; }
.fade-mask {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 80px;
  background: linear-gradient(transparent, var(--paper));
  pointer-events: none;
}
.lock-panel {
  margin-top: 8px;
  padding: 24px;
  border: 2px solid var(--ink);
  background: var(--card);
}
.lock-panel h3 { font-family: var(--display); font-size: 1.4rem; margin-bottom: 8px; }
.lock-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* Recharge tickets */
.plan-rack {
  display: grid;
  gap: 14px;
  margin: 28px 0;
}

.plan-pass {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 22px 24px;
  background: var(--card);
  border: 1.5px dashed var(--line);
  text-align: left;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.plan-pass.is-selected {
  border-style: solid;
  border-color: var(--ink);
  background: #fff;
}

.plan-pass .name { font-size: 13px; letter-spacing: 0.16em; color: var(--muted); }
.plan-pass .price {
  font-family: var(--display);
  font-size: 2.2rem;
  letter-spacing: -0.04em;
  line-height: 1;
}
.plan-pass .price span { font-size: 0.95rem; }
.plan-pass .desc { margin-top: 8px; font-size: 13px; color: var(--muted); }
.plan-pass .tag {
  align-self: start;
  font-size: 12px;
  padding: 4px 8px;
  border: 1px solid var(--red);
  color: var(--red);
}

.confirm-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-top: 2px solid var(--ink);
}

.form-footer { margin-top: 16px; font-size: 13px; color: var(--muted); }
.form-footer a { color: var(--navy); text-decoration: underline; }

/* Auth */
.auth-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  gap: 40px;
  padding: 32px 0 48px;
  align-items: start;
}

.auth-giant {
  font-family: var(--display);
  font-size: clamp(5rem, 18vw, 11rem);
  line-height: 0.8;
  letter-spacing: -0.08em;
  color: var(--red);
  user-select: none;
}

.auth-card h1 {
  font-family: var(--display);
  font-size: 2rem;
  margin: 8px 0 8px;
}

.hint { color: var(--muted); margin-bottom: 22px; font-size: 14px; }

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  border: 0;
  border-bottom: 1.5px solid var(--ink);
  background: transparent;
  padding: 10px 0;
  border-radius: 0;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: var(--red);
}
.form-group textarea { min-height: 120px; resize: vertical; }

.form-msg { display: none; margin-top: 12px; font-size: 13px; }
.form-msg.show { display: block; }
.form-msg.ok { color: var(--navy); }
.form-msg.err { color: var(--red); }

/* Contact stamps */
.stamp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 28px 0 40px;
}

.stamp {
  padding: 22px;
  border: 2px solid var(--ink);
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 10px,
    rgba(220, 38, 38, 0.04) 10px,
    rgba(220, 38, 38, 0.04) 11px
  );
}

.stamp dt {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 8px;
}
.stamp dd { font-size: 16px; }
.stamp a:hover { color: var(--red); }

.contact-form {
  max-width: 520px;
  padding-bottom: 24px;
}
.contact-form h3 {
  font-family: var(--display);
  font-size: 1.5rem;
  margin-bottom: 16px;
}

/* Pay dialog */
.pay-mask {
  position: fixed;
  inset: 0;
  z-index: var(--z-pay);
  background: rgba(69, 10, 10, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.pay-mask[hidden] { display: none !important; }
.pay-dialog {
  width: min(400px, 100%);
  padding: 28px 24px;
  background: #fff;
  border: 2px solid var(--ink);
}
.pay-dialog h3 { font-family: var(--display); font-size: 1.5rem; margin-bottom: 10px; }
.pay-summary { font-size: 16px; margin-bottom: 8px; }
.pay-hint { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.pay-actions { display: flex; gap: 10px; justify-content: flex-end; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--dock) + 20px);
  transform: translateX(-50%) translateY(8px);
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  z-index: var(--z-toast);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 800px) {
  .hero,
  .auth-split,
  .stamp-grid,
  .pass {
    grid-template-columns: 1fr;
  }
  .hero-spine {
    writing-mode: horizontal-tb;
    height: auto;
    border-left: 0;
    padding-left: 0;
    letter-spacing: 0.12em;
  }
  .pass-side { text-align: left; }
  .auth-giant { font-size: 4.5rem; }
}

@media (max-width: 520px) {
  .frame { width: calc(100% - 28px); }
  .mast { flex-direction: column; align-items: flex-start; }
  .dock { height: auto; }
  body { padding-bottom: 88px; }
  .dock > div { grid-template-columns: 1fr; }
  .dock a { min-height: 44px; border-right: 0; border-bottom: 1px solid var(--line); }
}
