:root {
  --ink: #17211f;
  --muted: #65706c;
  --paper: #f4f0e8;
  --cream: #fffdf8;
  --green: #0f3d38;
  --green-2: #17655a;
  --gold: #d6a94d;
  --orange: #e96e3d;
  --line: rgba(23, 33, 31, 0.12);
  --shadow: 0 22px 60px rgba(22, 51, 46, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.hidden { display: none !important; }
.section-wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.eyebrow { margin: 0 0 10px; color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .16em; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 74px; padding: 10px max(24px, calc((100% - 1180px) / 2));
  color: white; background: rgba(15, 61, 56, .93); backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.brand { display: flex; gap: 11px; align-items: center; }
.brand img { width: 43px; height: 43px; border-radius: 13px; }
.brand span { display: grid; gap: 2px; }
.brand b { font-size: 16px; }
.brand small { color: rgba(255,255,255,.65); font-size: 11px; }
.topbar nav { display: flex; gap: 23px; align-items: center; font-size: 14px; }
.install-button { border: 1px solid rgba(255,255,255,.4); background: white; color: var(--green); padding: 9px 15px; border-radius: 999px; font-weight: 750; cursor: pointer; }

.hero { display: grid; grid-template-columns: 1.12fr .88fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 50px; }
.status-row { display: flex; align-items: center; gap: 9px; margin-bottom: 30px; color: var(--green-2); font-weight: 750; font-size: 14px; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #31b978; box-shadow: 0 0 0 7px rgba(49,185,120,.12); animation: pulse 1.9s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 12px rgba(49,185,120,0); } }
.hero h1 { margin: 0; max-width: 660px; font-family: Georgia, "Songti SC", serif; font-size: clamp(44px, 6vw, 78px); line-height: 1.02; letter-spacing: -.045em; }
.hero-subtitle { max-width: 620px; margin: 24px 0; color: var(--muted); font-size: 18px; line-height: 1.8; }
.next-action { display: inline-flex; align-items: center; gap: 12px; padding: 13px 18px; border-radius: 16px; background: #e4efe9; color: var(--green); font-weight: 750; }
.next-action span { color: var(--orange); }

.train-ticket { position: relative; overflow: hidden; min-height: 365px; padding: 30px; color: white; border-radius: 32px; background: var(--green); box-shadow: var(--shadow); }
.train-ticket::after { content: ""; position: absolute; width: 260px; height: 260px; right: -100px; bottom: -120px; border: 58px solid rgba(214,169,77,.20); border-radius: 50%; }
.ticket-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 24px; border-bottom: 1px dashed rgba(255,255,255,.3); }
.ticket-head strong { font-size: 27px; }
.ticket-head span { padding: 7px 11px; border-radius: 10px; background: rgba(255,255,255,.12); font-size: 12px; }
.ticket-route { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin: 36px 0; }
.ticket-route div:last-child { text-align: right; }
.ticket-route b { display: block; font-size: 39px; letter-spacing: -.04em; }
.ticket-route small { color: rgba(255,255,255,.65); }
.ticket-route i { width: 72px; height: 1px; background: rgba(255,255,255,.4); position: relative; }
.ticket-route i::after { content: "›"; position: absolute; right: -3px; top: -11px; font-style: normal; }
.ticket-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ticket-meta div { padding: 14px; border-radius: 14px; background: rgba(255,255,255,.08); }
.ticket-meta span { display: block; margin-bottom: 4px; color: rgba(255,255,255,.55); font-size: 11px; }
.ticket-meta b { font-size: 14px; }
.skeleton { opacity: .35; }

.pulse-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 88px; }
.pulse-grid article { padding: 22px; border-radius: 20px; background: rgba(255,255,255,.62); border: 1px solid rgba(255,255,255,.75); }
.pulse-grid span, .pulse-grid small { display: block; color: var(--muted); font-size: 12px; }
.pulse-grid strong { display: block; margin: 8px 0 7px; font-size: 20px; }
.pulse-grid .hard-line { color: white; background: var(--orange); }
.pulse-grid .hard-line span, .pulse-grid .hard-line small { color: rgba(255,255,255,.78); }

.split-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 54px; padding-bottom: 100px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 30px; }
.section-heading h2 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(30px, 4vw, 45px); }
.soft-badge { padding: 8px 12px; border-radius: 999px; color: var(--muted); background: #e9e3d8; font-size: 12px; white-space: nowrap; }
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 44px; top: 25px; bottom: 30px; width: 1px; background: var(--line); }
.timeline-item { position: relative; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 22px; padding-bottom: 24px; }
.timeline-time { position: relative; padding-top: 21px; font-weight: 800; font-size: 14px; }
.timeline-time::after { content: ""; position: absolute; right: 33px; top: 26px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); border: 4px solid var(--paper); }
.timeline-card { overflow: hidden; display: grid; grid-template-columns: minmax(0,1fr) 150px; min-height: 142px; background: var(--cream); border: 1px solid var(--line); border-radius: 20px; transition: transform .2s, box-shadow .2s; }
.timeline-card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(30,56,50,.10); }
.timeline-copy { padding: 21px; }
.timeline-copy .kind { display: inline-block; margin-bottom: 10px; color: var(--green-2); font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.timeline-copy h3 { margin: 0 0 8px; font-size: 19px; }
.timeline-copy .place { margin: 0 0 8px; color: var(--green-2); font-weight: 650; font-size: 13px; }
.timeline-copy .note { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.timeline-card img { width: 100%; height: 100%; object-fit: cover; }
.timeline-action { display: inline-flex; margin-top: 13px; color: var(--orange); font-size: 13px; font-weight: 750; }
.timeline-item.active .timeline-card { outline: 2px solid var(--gold); box-shadow: 0 14px 45px rgba(214,169,77,.20); }
.timeline-item.active .timeline-time::after { background: #31b978; box-shadow: 0 0 0 6px rgba(49,185,120,.15); }

aside { display: grid; align-content: start; gap: 18px; padding-top: 74px; position: sticky; top: 92px; height: fit-content; }
.aside-card { padding: 25px; border-radius: 24px; background: white; border: 1px solid var(--line); }
.aside-card h3 { margin: 0 0 18px; font-size: 21px; }
.urgent-card { color: white; background: var(--green); box-shadow: var(--shadow); }
.reserve-item { padding: 16px 0; border-top: 1px solid rgba(255,255,255,.13); }
.reserve-item:first-child { border-top: 0; padding-top: 0; }
.reserve-item b { display: block; margin-bottom: 6px; font-size: 14px; }
.reserve-item p { margin: 0 0 10px; color: rgba(255,255,255,.68); font-size: 12px; line-height: 1.6; }
.reserve-item a { display: inline-flex; padding: 8px 11px; color: var(--green); background: white; border-radius: 9px; font-size: 12px; font-weight: 800; }
.link-stack { display: grid; gap: 9px; }
.link-stack a { display: flex; justify-content: space-between; gap: 10px; padding: 13px; border-radius: 12px; background: #f6f2ea; font-size: 13px; font-weight: 650; }
.link-stack a::after { content: "↗"; color: var(--orange); }

.archive-band { padding: 90px 0; color: white; background: #102b27; }
.light-heading span { color: rgba(255,255,255,.55); font-size: 13px; }
.history-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.history-card { min-height: 230px; padding: 26px; border-radius: 24px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.history-card .date { color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.history-card h3 { margin: 46px 0 9px; font-family: Georgia, "Songti SC", serif; font-size: 31px; }
.history-card p { margin: 0; color: rgba(255,255,255,.62); line-height: 1.7; font-size: 13px; }
.history-card .stamp { display: inline-flex; margin-top: 18px; padding: 6px 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; font-size: 11px; }
.cycle-note { margin-top: 18px; color: rgba(255,255,255,.48); font-size: 12px; }

.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 70% 20%, #287266 0, transparent 32%), var(--green); }
.login-card { width: min(430px, 100%); padding: 40px; border-radius: 30px; background: var(--cream); box-shadow: 0 30px 80px rgba(0,0,0,.28); }
.login-card img { width: 70px; height: 70px; border-radius: 20px; margin-bottom: 25px; }
.login-card h1 { margin: 0 0 12px; font-family: Georgia, "Songti SC", serif; font-size: 36px; }
.login-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.7; }
.login-card form { display: grid; gap: 12px; margin-top: 24px; }
.login-card input { width: 100%; padding: 15px 16px; border: 1px solid var(--line); border-radius: 13px; background: white; outline: none; }
.login-card input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(214,169,77,.16); }
.login-card button { padding: 15px; border: 0; border-radius: 13px; color: white; background: var(--green); font-weight: 800; cursor: pointer; }
#login-error { min-height: 18px; color: #bd3f2c; font-size: 12px; }

.install-sheet { position: fixed; z-index: 90; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(480px, calc(100% - 28px)); padding: 30px; border-radius: 28px; background: white; box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.install-sheet img { width: 58px; height: 58px; border-radius: 16px; }
.install-sheet h2 { margin: 17px 0; }
.install-sheet ol { padding-left: 22px; color: var(--muted); line-height: 2; }
.install-sheet > p { color: var(--green-2); font-size: 13px; }
.close-button { position: absolute; right: 18px; top: 15px; border: 0; background: transparent; font-size: 30px; color: var(--muted); cursor: pointer; }
.sheet-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(9,24,21,.58); backdrop-filter: blur(5px); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; }
  .hero h1 { font-size: 58px; }
  .train-ticket { min-height: 330px; }
  .pulse-grid { grid-template-columns: 1fr 1fr; }
  .split-layout { grid-template-columns: 1fr; }
  aside { position: static; padding-top: 0; grid-template-columns: 1fr 1fr; }
  .history-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .section-wrap { width: min(100% - 24px, 1180px); }
  .topbar { min-height: 64px; padding: 8px 13px; }
  .brand img { width: 39px; height: 39px; }
  .brand small, .topbar nav > a { display: none; }
  .topbar nav { gap: 0; }
  .install-button { padding: 8px 12px; font-size: 12px; }
  .hero { padding-top: 34px; padding-bottom: 30px; }
  .status-row { margin-bottom: 24px; }
  .hero h1 { font-size: clamp(43px, 13vw, 58px); }
  .hero-subtitle { margin: 18px 0; font-size: 15px; }
  .next-action { width: 100%; justify-content: center; font-size: 13px; }
  .train-ticket { min-height: 310px; padding: 23px; border-radius: 25px; }
  .ticket-head strong { font-size: 23px; }
  .ticket-route b { font-size: 34px; }
  .pulse-grid { gap: 9px; margin-bottom: 67px; }
  .pulse-grid article { padding: 16px; border-radius: 16px; }
  .pulse-grid strong { font-size: 16px; }
  .section-heading { align-items: start; flex-direction: column; margin-bottom: 22px; }
  .soft-badge { white-space: normal; }
  .split-layout { gap: 40px; padding-bottom: 70px; }
  .timeline::before { left: 32px; }
  .timeline-item { grid-template-columns: 65px minmax(0,1fr); gap: 8px; }
  .timeline-time { font-size: 12px; }
  .timeline-time::after { right: 27px; }
  .timeline-card { grid-template-columns: 1fr; }
  .timeline-card img { height: 170px; order: -1; }
  .timeline-copy { padding: 18px; }
  aside { grid-template-columns: 1fr; }
  .archive-band { padding: 65px 0; }
  .history-grid { grid-template-columns: 1fr; }
  .light-heading span { display: none; }
  .login-card { padding: 30px 24px; }
}
