/* ================================================================
   aolei.org — style.css v4 (全新干净版)
   ================================================================ */

:root {
  --bg:       #0a0a1a;
  --bg2:      #0f0f28;
  --surface:  rgba(255,255,255,0.04);
  --border:   rgba(255,255,255,0.08);
  --text:     #e8e8f0;
  --muted:    #888;
  --faint:    #444;
  --orange:   #FF6B35;
  --cyan:     #00E5CC;
  --purple:   #A78BFA;
  --mono:     'JetBrains Mono', monospace;
  --section-title-gap: 32px;
}

body.light {
  --bg:     #f0f0f5;
  --bg2:    #e5e5ee;
  --surface: rgba(0,0,0,0.04);
  --border: rgba(0,0,0,0.1);
  --text:   #1a1a2e;
  --muted:  #666;
  --faint:  #bbb;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Navigation ─────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 52px;
  display: flex; align-items: center; gap: 20px;
  padding: 0 28px;
  background: rgba(10,10,26,0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
body.light .nav { background: rgba(240,240,245,0.92); }

.nav-logo {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

.nav-links {
  display: flex; gap: 4px; list-style: none; flex-shrink: 1; min-width: 0;
}
.nav-links a {
  padding: 4px 12px;
  font-size: 0.82rem;
  color: var(--muted);
  border-radius: 6px;
  text-decoration: none;
  transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text); background: var(--surface);
}

/* 汉堡/抽屉 默认隐藏（PC端），手机端 pointer:coarse 里开启 */
.nav-hamburger { display: none; }
.mobile-menu-overlay,
.mobile-menu { display: none; }

.nav-right {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
  margin-left: auto;
}

.lang-btn {
  padding: 3px 10px;
  font-size: 0.75rem;
  font-family: var(--mono);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
}
.lang-btn.active {
  color: var(--text); border-color: var(--orange);
}
.lang-btn:hover { color: var(--text); }

.theme-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 3px 7px;
  font-size: 0.85rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.4;
  transition: opacity .2s, border-color .2s;
}
.theme-btn.active {
  opacity: 1; border-color: var(--orange);
}
.theme-btn:hover { opacity: 0.8; }

.dot-live {
  width: 9px; height: 9px;
  background: var(--cyan);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 2s ease-in-out infinite;
  cursor: pointer;
  flex-shrink: 0;
}
.dot-live.small { width: 7px; height: 7px; }
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 0 rgba(0,229,204,.5); }
  50% { box-shadow: 0 0 0 5px rgba(0,229,204,0); }
}

/* ── Hero Section (装备区) ──────────────────────────────── */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 72px 40px 48px;
  background: linear-gradient(160deg, var(--bg) 60%, rgba(255,107,53,0.04) 100%);
  border-bottom: 1px solid var(--border);
  gap: 40px;
}

@media (max-width: 600px) {
  .hero-section { padding: 68px 20px 36px; gap: 28px; }
}

/* Top: title + clock centered */
.hero-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* hero-left kept as alias */
.hero-left {
  width: 260px;
  flex-shrink: 0;
}

.hero-name {
  font-family: var(--mono);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 10px;
}
.hero-name::after {
  content: '|';
  color: var(--orange);
  animation: blink .9s step-end infinite;
  margin-left: 2px;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-meta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 0.75rem;
}
.hero-ver {
  color: var(--orange);
  border: 1px solid rgba(255,107,53,.35);
  border-radius: 4px;
  padding: 1px 7px;
}
.hero-sep { color: var(--faint); }
.hero-since { color: var(--muted); }

.hero-tagline {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

/* Flip Clock */
.flip-clock {
  display: flex; align-items: flex-end; justify-content: center; gap: 8px;
  margin-bottom: 0;
}
.fc-unit { text-align: center; }
.fc-num {
  font-family: var(--mono);
  font-size: 1.8rem;
  font-weight: 700;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  min-width: 60px;
  display: block;
  text-align: center;
  color: var(--text);
  letter-spacing: .05em;
  transition: color .2s;
}
.fc-label {
  font-size: 0.65rem;
  color: var(--muted);
  font-family: var(--mono);
  margin-top: 4px;
  display: block;
}
.fc-sep {
  font-size: 1.6rem;
  color: var(--faint);
  font-family: var(--mono);
  padding-bottom: 14px;
  font-weight: 700;
}

/* Right column — Arsenal Grid */
.hero-bottom {
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .hero-bottom { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .hero-bottom { grid-template-columns: 1fr; }
}

.ac-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 18px;
  transition: border-color .2s, transform .2s;
}
.ac-card:hover {
  border-color: rgba(255,107,53,.3);
  transform: translateY(-2px);
}
.ac-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--orange);
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.ac-title::after {
  content: '';
  flex: 1; height: 1px;
  background: linear-gradient(to right, rgba(255,107,53,.3), transparent);
}
.ac-items { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.ac-item {
  display: flex; align-items: baseline; gap: 6px;
  font-size: 0.82rem;
}
.ac-item-icon { font-size: 0.82rem; flex-shrink: 0; }
.ac-item-name { color: var(--text); font-weight: 500; white-space: nowrap; }
.ac-item-note { font-size: 0.63rem; color: var(--muted); margin-left: 2px; }
.ac-badge {
  font-size: 0.58rem;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 4px;
}
.ac-badge.default { color: var(--cyan); background: rgba(0,229,204,.1); border: 1px solid rgba(0,229,204,.25); }
.ac-badge.heavy   { color: var(--purple); background: rgba(167,139,250,.1); border: 1px solid rgba(167,139,250,.25); }

/* ── Timeline Section ────────────────────────────────────── */
.tl-section {
  padding: 8px 0 8px;
}
.tl-section .section-header {
  justify-content: center;
  margin-bottom: 32px;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 0 40px;
  margin-bottom: var(--section-title-gap);
  text-align: center;
  position: relative;
  z-index: 2;
}
@media (max-width: 600px) { .section-header { padding: 0 20px; } }

.section-tag {
  font-size: 0.68rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--orange);
  background: rgba(255,107,53,.1);
  border: 1px solid rgba(255,107,53,.25);
  padding: 2px 10px;
  border-radius: 4px;
}
.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
}

/* Zoom buttons */
.tl-zoom {
  margin-left: auto;
  display: flex; gap: 6px;
}
.tl-zoom button {
  width: 30px; height: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  transition: border-color .2s;
}
.tl-zoom button:hover { border-color: var(--orange); }

/* Timeline scrollable container */
.tl-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  height: 360px;
  margin-top: 0;
  cursor: grab;
  position: relative;
  user-select: none;
}
.tl-wrap:active { cursor: grabbing; }
.tl-wrap::-webkit-scrollbar { height: 5px; }
.tl-wrap::-webkit-scrollbar-track { background: var(--bg2); }
.tl-wrap::-webkit-scrollbar-thumb { background: rgba(255,107,53,.3); border-radius: 3px; }

.tl-track {
  height: 100%;
  position: relative;
  /* width set by JS */
}

.tl-line {
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--orange) 5%, var(--orange) 95%, transparent);
  transform: translateY(-50%);
  opacity: .35;
}

.tl-nodes {
  position: absolute;
  inset: 0;
  transform-origin: center center;
}

/* Node wrapper — absolutely positioned */
.tl-node {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  cursor: pointer;
  transform: translateX(-50%);
}
/* Above: card top → connector → circle touching axis */
.tl-node.above {
  flex-direction: column-reverse;
  transform: translateX(-50%) translateY(-100%);
}
/* Below: circle touching axis → connector → card bottom */
.tl-node.below {
  flex-direction: column;
  transform: translateX(-50%) translateY(0%);
}

.tl-circle {
  border-radius: 50%;
  border: 2px solid currentColor;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition: transform .2s, box-shadow .2s;
}
.tl-node:hover .tl-circle { transform: scale(1.15); }

.tl-node.milestone .tl-circle { width: 52px; height: 52px; font-size: 1.5rem; }
.tl-node.skill .tl-circle    { width: 42px; height: 42px; }
.tl-node.lesson .tl-circle   { width: 42px; height: 42px; }

.tl-node.milestone .tl-circle { color: var(--orange); background: rgba(255,107,53,.15); box-shadow: 0 0 14px rgba(255,107,53,.4); border-color: var(--orange); }
.tl-node.skill .tl-circle     { color: var(--cyan);   background: rgba(0,229,204,.12);  box-shadow: 0 0 12px rgba(0,229,204,.35);  border-color: var(--cyan); }
.tl-node.lesson .tl-circle    { color: var(--purple);  background: rgba(167,139,250,.12); box-shadow: 0 0 12px rgba(167,139,250,.35); border-color: var(--purple); }

.tl-connector {
  width: 2px;
  flex-shrink: 0;
}
.tl-node.milestone .tl-connector { background: rgba(255,107,53,.4); height: 44px; }
.tl-node.skill .tl-connector     { background: rgba(0,229,204,.3);   height: 36px; }
.tl-node.lesson .tl-connector    { background: rgba(167,139,250,.3);  height: 36px; }

.tl-card {
  width: 150px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  transition: transform .2s, box-shadow .2s;
}
.tl-node:hover .tl-card { transform: translateY(-3px); }
.tl-node.milestone:hover .tl-card { box-shadow: 0 6px 20px rgba(255,107,53,.2); }
.tl-node.skill:hover .tl-card     { box-shadow: 0 6px 20px rgba(0,229,204,.15); }
.tl-node.lesson:hover .tl-card    { box-shadow: 0 6px 20px rgba(167,139,250,.15); }

.tl-card-date { font-size: 0.6rem; font-family: var(--mono); color: var(--muted); margin-bottom: 3px; }
.tl-card-title { font-size: 0.85rem; font-weight: 600; color: var(--text); line-height: 1.3; }

/* Legend */
.tl-legend {
  display: flex; gap: 20px;
  padding: 12px 40px 0;
  flex-wrap: wrap;
}
.leg {
  font-size: 0.72rem;
  font-family: var(--mono);
  color: var(--muted);
  display: flex; align-items: center; gap: 6px;
}
.leg::before {
  content: '●';
  font-size: 0.6rem;
}
.leg-milestone::before { color: var(--orange); }
.leg-skill::before     { color: var(--cyan); }
.leg-lesson::before    { color: var(--purple); }

/* Mobile timeline */
.tl-mobile { display: none; padding: 0 20px; }
@media (max-width: 900px), (pointer: coarse) {
  .tl-wrap { display: none; }
  .tl-mobile { display: flex; flex-direction: column; gap: 12px; }
}
.tl-mobile-item {
  display: flex; gap: 12px; align-items: center;
  padding: 12px 16px;
  border-radius: 10px;
  -webkit-tap-highlight-color: rgba(255,107,53,0.15);
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.tl-mobile-emoji { font-size: 1.6rem; flex-shrink: 0; }
.tl-mobile-info { flex: 1; }
.tl-mobile-date { font-size: 0.62rem; font-family: var(--mono); color: var(--muted); }
.tl-mobile-title { font-size: 0.92rem; font-weight: 600; }

/* Modal */
.tl-modal {
  display: none;
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}
.tl-modal.open { display: flex; }
.tl-modal-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  width: min(480px, 90vw);
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}
.tl-modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none;
  font-size: 1rem; color: var(--muted);
  cursor: pointer;
}
.tl-modal-close:hover { color: var(--text); }
.tl-modal-emoji { font-size: 2.4rem; margin-bottom: 10px; }
.tl-modal-badge {
  font-size: 0.65rem; font-family: var(--mono);
  padding: 2px 8px; border-radius: 4px;
  display: inline-block; margin-bottom: 12px;
}
.tl-modal-badge.milestone { color: var(--orange); background: rgba(255,107,53,.1); border: 1px solid rgba(255,107,53,.3); }
.tl-modal-badge.skill     { color: var(--cyan);   background: rgba(0,229,204,.1);  border: 1px solid rgba(0,229,204,.3); }
.tl-modal-badge.lesson    { color: var(--purple);  background: rgba(167,139,250,.1);border: 1px solid rgba(167,139,250,.3); }
.tl-modal-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.tl-modal-date { font-size: 0.68rem; font-family: var(--mono); color: var(--muted); margin-bottom: 12px; }
.tl-modal-summary { font-size: 1rem; color: var(--muted); line-height: 1.6; }

/* ── Explore Section ─────────────────────────────────────── */
.explore-section {
  padding: 48px 40px 64px;
}
@media (max-width: 600px) { .explore-section { padding: 48px 20px 60px; } }

.arsenal-section {
  padding: 48px 40px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 600px) { .arsenal-section { padding: 40px 20px 48px; } }
@media (pointer: coarse) {
  .arsenal-section { padding: 40px 20px 48px; }
  .arsenal-section .hero-bottom { grid-template-columns: 1fr !important; max-width: 100%; }
}

.explore-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 32px;
  justify-content: center;
}
.explore-card {
  flex: 0 0 260px;
}
.explore-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  text-decoration: none;
  color: var(--text);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.explore-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,107,53,.4);
  box-shadow: 0 12px 32px rgba(0,0,0,.3);
}
.explore-card-icon { font-size: 2rem; margin-bottom: 14px; }
.explore-card-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.explore-card-desc { font-size: 0.95rem; color: var(--muted); line-height: 1.5; flex: 1; }
.explore-card-arrow { color: var(--orange); font-size: 0.8rem; margin-top: 16px; }

/* ── About / Project Section ─────────────────────────────── */
.about-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 40px 64px;
  border-top: 1px solid var(--border);
}
.about-intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: start;
  margin-top: var(--section-title-gap);
}
.about-text p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 16px;
}
.about-text p strong { color: var(--text); }
.about-text p .hl-orange { color: var(--orange); font-weight: 700; }
.about-text p .hl-cyan { color: var(--cyan); font-weight: 600; }
.about-lead {
  font-size: 1.25rem !important;
  font-weight: 700;
  color: var(--text) !important;
  letter-spacing: 0.01em;
  margin-bottom: 20px !important;
}
.about-closing {
  border-left: 2px solid var(--orange);
  padding-left: 14px;
  margin-top: 8px;
  font-style: italic;
  color: var(--text) !important;
  opacity: 0.85;
}
.about-github-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.github-card-title {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.github-card-name {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.github-card-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}
.github-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.github-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--muted);
}
.github-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  background: var(--orange);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
  align-self: flex-start;
}
.github-btn:hover { opacity: 0.85; }

/* About Page specific */
.about-page-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 80px 40px 60px;
}
.about-page-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--orange);
  margin: 40px 0 16px;
  padding-left: 12px;
  border-left: 3px solid var(--orange);
}
.about-page-section p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.9;
  margin-bottom: 14px;
}
.about-page-section p strong { color: var(--text); }
.about-page-section ul {
  list-style: none;
  padding: 0;
  margin-bottom: 14px;
}
.about-page-section ul li {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
  padding-left: 18px;
  position: relative;
}
.about-page-section ul li::before {
  content: '▸';
  color: var(--orange);
  position: absolute;
  left: 0;
}
.about-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.about-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}
.about-stat-num {
  font-family: var(--mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--orange);
}
.about-stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 6px;
}
.about-timeline-mini {
  border-left: 2px solid var(--border);
  padding-left: 20px;
  margin: 16px 0;
}
.about-tl-item {
  position: relative;
  margin-bottom: 18px;
}
.about-tl-item::before {
  content: '';
  position: absolute;
  left: -25px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}
.about-tl-date {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--cyan);
}
.about-tl-text {
  font-size: 0.88rem;
  color: var(--text);
  margin-top: 2px;
}
.about-quote-box {
  background: var(--surface);
  border-left: 3px solid var(--cyan);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 0.95rem;
  color: var(--text);
  font-style: italic;
  line-height: 1.7;
}

@media (pointer: coarse) {
  body { font-size: 15px; }
  .about-intro { grid-template-columns: 1fr; }
  .about-section { padding: 40px 20px; }
  .about-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .about-page-section { padding: 80px 20px 40px; }
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 40px 32px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer-top {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; color: var(--muted);
}
.footer-links {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center;
}
.footer-links a, .footer-github a {
  color: var(--muted); text-decoration: none; transition: color .15s;
  font-size: 0.75rem;
}
.footer-links a:hover, .footer-github a:hover { color: var(--orange); }
.footer-sep { color: var(--faint); }
.footer-github {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.72rem;
}
.footer-slogan { color: var(--faint); font-size: 0.7rem; margin-top: 4px; }

/* ── Toast ───────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(10,10,26,.95);
  border: 1px solid var(--orange);
  color: var(--text);
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 0.88rem;
  pointer-events: none;
  opacity: 0;
  z-index: 999;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  max-width: 320px;
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ================================================================
   Quotes page — qc-* styles
   ================================================================ */

/* Shared nav / footer for sub-pages */
.page-hero {
  padding: 88px 40px 48px;
}
@media (max-width:600px) { .page-hero { padding: 72px 20px 36px; } }
.page-title { font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.page-subtitle { font-size: 0.88rem; color: var(--muted); max-width: 560px; line-height: 1.6; }

/* Grid */
/* ── Quotes Section Blocks ──────────────────────────────── */
.qc-section-block {
  padding: 0 40px;
  margin-bottom: 60px;
}
.qc-section-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.qc-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}
.qc-section-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
}

/* ── Quotes Grid — masonry via CSS columns ─────────────── */
.qc-grid {
  column-count: 3;
  column-gap: 22px;
  padding: 0 0 8px;
}
@media (max-width: 1100px) { .qc-grid { column-count: 2; } }
@media (max-width: 600px)  { .qc-grid { column-count: 1; } }

/* Card */
.qc-card {
  --hue: 18;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
  /* masonry: break-inside prevents card splitting across columns */
  break-inside: avoid;
  margin-bottom: 22px;
}
.qc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
}

/* Card header — clickable, has gradient */
.qc-header {
  background: linear-gradient(135deg,
    hsla(var(--hue), 75%, 60%, .15) 0%,
    hsla(calc(var(--hue) + 40), 65%, 50%, .07) 100%
  );
  padding: 22px 22px 16px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.qc-header:hover { filter: brightness(1.05); }

/* Large background number */
.qc-num {
  position: absolute;
  top: -8px; right: 8px;
  font-size: 5.5rem;
  font-weight: 900;
  font-family: 'JetBrains Mono', monospace;
  color: hsl(var(--hue), 60%, 65%);
  opacity: .08;
  line-height: 1;
  pointer-events: none;
}

.qc-category {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(var(--hue), 60%, 60%);
  margin-bottom: 6px;
}

.qc-topic {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  position: relative;
}

.qc-preview {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
  position: relative;
}

/* Footer bar */
.qc-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 22px;
  border-top: 1px solid var(--border);
}
.qc-date {
  font-size: 0.65rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--faint);
}
.qc-btn {
  background: none; border: none;
  font-size: 0.75rem;
  color: hsl(var(--hue), 70%, 65%);
  cursor: pointer;
  padding: 0;
  transition: opacity .2s;
}
.qc-btn:hover { opacity: .7; }

/* Expandable body */
.qc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s ease;
}
.qc-body.open { max-height: 2000px; }

.qc-body-inner {
  padding: 20px 22px 24px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 20px;
}

.qc-section {}
.qc-sec-tag {
  font-size: 0.62rem;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: hsl(var(--hue), 65%, 65%);
  margin-bottom: 8px;
}
.qc-sec-text { font-size: 0.83rem; color: var(--muted); line-height: 1.6; }
.qc-thought p { font-size: 0.83rem; color: var(--muted); line-height: 1.6; margin-bottom: 8px; }
.qc-thought p:last-child { margin-bottom: 0; }

.qc-closing-section {}
.qc-closing {
  font-size: 0.92rem;
  font-style: italic;
  color: var(--text);
  border-left: 3px solid hsl(var(--hue), 70%, 60%);
  padding: 8px 14px;
  background: hsla(var(--hue), 60%, 50%, .07);
  border-radius: 0 8px 8px 0;
  line-height: 1.6;
  margin: 0;
}

/* ================================================================
   Diary page styles
   ================================================================ */
.page { padding-top: 52px; }

.diary-page-header {
  padding: 48px 40px 32px;
  text-align: center;
}
@media (max-width:600px) { .diary-page-header { padding: 36px 20px 24px; } }
.diary-page-header .section-tag { margin-bottom: 10px; display: inline-block; }
.diary-page-title { font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.diary-page-sub { font-size: 0.88rem; color: var(--muted); line-height: 1.5; }

/* Diary list */
.diary-list {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 40px 80px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (max-width:600px) { .diary-list { padding: 0 20px 60px; } }

/* Each diary item (collapsed) */
.diary-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s;
}
.diary-item:hover { border-color: rgba(255,107,53,.3); }

.diary-item-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  cursor: pointer;
  user-select: none;
}
.diary-item-emoji { font-size: 1.8rem; flex-shrink: 0; }
.diary-item-meta { flex: 1; min-width: 0; }
.diary-item-date {
  font-size: 0.68rem;
  font-family: var(--mono);
  color: var(--muted);
  margin-bottom: 4px;
}
.diary-item-title { font-size: 0.95rem; font-weight: 600; color: var(--text); }
.diary-item-arrow {
  color: var(--muted);
  font-size: 0.75rem;
  transition: transform .3s;
  flex-shrink: 0;
}
.diary-item.open .diary-item-arrow { transform: rotate(180deg); }

/* Expanded content */
.diary-item-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.diary-item.open .diary-item-body { max-height: 6000px; }

.diary-item-content {
  padding: 0 22px 22px;
  border-top: 1px solid var(--border);
}
.diary-content-main {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  padding-top: 16px;
  white-space: pre-wrap;
  word-break: break-word;
}

/* mood badge */
.diary-mood {
  display: inline-block;
  font-size: 0.62rem;
  font-family: var(--mono);
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 10px;
  background: rgba(255,107,53,.1);
  color: var(--orange);
  border: 1px solid rgba(255,107,53,.25);
}

/* Loading state */
.diary-loading {
  text-align: center;
  padding: 40px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Fade-in animation */
.fade-in { opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .5s; }
.fade-in.visible { opacity: 1; transform: none; }

/* Legacy class compat for old pages */
.hero-eyebrow { font-size:0.72rem; color:var(--orange); font-family:var(--mono); margin-bottom:8px; letter-spacing:.1em; }
.hero-title { font-size:2rem; font-weight:700; margin-bottom:10px; }
.hero-subtitle { font-size:0.88rem; color:var(--muted); max-width:560px; line-height:1.6; margin-bottom:0; }
.hero { padding: 80px 40px 40px; }
.container { max-width: 900px; margin: 0 auto; }
.section { padding: 40px 0; }

/* diary.js actual class names */
.diary-item-header { display:flex; align-items:center; gap:14px; padding:18px 22px; cursor:pointer; user-select:none; }
.diary-mood { font-size:1.6rem; flex-shrink:0; }
.diary-meta { flex:1; min-width:0; }
.diary-date { font-size:0.68rem; font-family:var(--mono); color:var(--muted); margin-bottom:3px; }
.diary-title { font-size:0.95rem; font-weight:600; color:var(--text); }
.diary-toggle { color:var(--muted); font-size:0.75rem; transition:transform .3s; flex-shrink:0; }
.diary-item.active .diary-toggle { transform:rotate(180deg); }
.diary-content { overflow:hidden; border-top:1px solid transparent; transition:max-height .4s ease; max-height:0; }
.diary-item.active .diary-content { max-height:6000px; border-top-color:var(--border); }

/* diary renderEntry content styles */
.diary-content-inner { padding: 20px 22px 24px; }
.diary-text { font-size:0.88rem; color:var(--muted); line-height:1.8; margin-bottom:20px; white-space:pre-wrap; }
.diary-section-title {
  font-size:0.62rem; font-family:var(--mono); text-transform:uppercase;
  letter-spacing:.14em; color:var(--orange); margin:14px 0 8px;
}
.diary-chips { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:4px; }
.diary-chip {
  font-size:0.75rem; padding:3px 10px;
  background:var(--surface); border:1px solid var(--border);
  border-radius:20px; color:var(--text);
}
.diary-chip.highlight { border-color:rgba(255,107,53,.3); color:var(--orange); background:rgba(255,107,53,.07); }
.diary-chip.learned   { border-color:rgba(0,229,204,.3);   color:var(--cyan);   background:rgba(0,229,204,.07); }
.diary-chip.mistake   { border-color:rgba(167,139,250,.3);  color:var(--purple); background:rgba(167,139,250,.07); }
.diary-reflection {
  font-size:0.85rem; color:var(--text); line-height:1.75;
  border-left:3px solid var(--orange);
  padding:8px 14px;
  background:rgba(255,107,53,.06);
  border-radius:0 8px 8px 0;
  margin-top:4px;
}
.loading { padding:24px; text-align:center; color:var(--muted); font-size:0.85rem; }
.loading-spinner {
  width:20px; height:20px;
  border:2px solid var(--border);
  border-top-color:var(--orange);
  border-radius:50%;
  animation:spin .8s linear infinite;
  margin:0 auto 8px;
}
@keyframes spin { to { transform:rotate(360deg); } }

/* ================================================================
   Mobile Responsive Overrides (≤ 640px)
   ================================================================ */

@media (max-width: 640px) {

  /* ── Nav ── */
  .nav {
    padding: 0 14px;
    gap: 6px;
    height: 48px;
    flex-wrap: nowrap;
    overflow: hidden;
  }
  .nav { gap: 8px; padding: 0 16px; }
  .nav-logo { font-size: 0.82rem; flex-shrink: 0; }
  .nav-links { display: none !important; }
  .nav-right { gap: 2px; flex-shrink: 0; flex-wrap: nowrap; margin-left: auto; }
  .theme-btn { padding: 2px 4px; font-size: 0.85rem; min-width: 26px; }

  /* ── 手机端汉堡按钮 ── */
  .nav-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 1.1rem;
    width: 32px; height: 32px;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 0; /* gap 已经控制间距 */
  }

  /* ── 手机端抽屉 overlay ── */
  .mobile-menu-overlay {
    display: none;
    position: fixed; inset: 0; z-index: 300;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(2px);
  }
  .mobile-menu-overlay.open { display: block; }

  .mobile-menu {
    display: flex;
    position: fixed; top: 0; left: 0; z-index: 301;
    width: 72vw; max-width: 280px; height: 100vh;
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 24px 20px 40px;
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
    flex-direction: column; gap: 0;
  }
  .mobile-menu.open { transform: translateX(0); }

  .mobile-menu-close {
    align-self: flex-end;
    background: none; border: none;
    color: var(--muted); font-size: 1.2rem;
    cursor: pointer; padding: 4px 8px;
    margin-bottom: 20px;
  }

  .mobile-menu-links {
    display: flex; flex-direction: column;
  }
  .mobile-menu-links a {
    display: block;
    padding: 14px 4px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: color 0.15s;
  }
  .mobile-menu-links a:last-child { border-bottom: none; }
  .mobile-menu-links a:hover,
  .mobile-menu-links a.active { color: var(--orange); }
  .lang-btn { padding: 2px 5px; font-size: 0.72rem; min-width: 24px; }
  .lang-btn { padding: 2px 6px; font-size: 0.68rem; }
  .theme-btn { padding: 2px 5px; font-size: 0.78rem; }
  .dot-live { width: 7px; height: 7px; }

  /* ── Hero Section ── */
  .hero-section {
    padding: 56px 20px 32px;
    gap: 20px;
  }
  .hero-name { font-size: 2.2rem; }
  .hero-tagline { font-size: 0.82rem; margin-bottom: 16px; }

  /* Flip clock — compact on mobile, fit in one line */
  .flip-clock { gap: 5px; }
  .fc-num { font-size: 1.15rem; padding: 4px 7px; min-width: 38px; }
  .fc-label { font-size: 0.58rem; }
  .fc-sep { font-size: 1rem; padding-bottom: 10px; }

  /* Arsenal — 2 columns on mobile */
  .hero-bottom {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px;
  }
  .ac-card { padding: 12px 12px; }
  .ac-title { font-size: 0.62rem; margin-bottom: 8px; }
  .ac-item { font-size: 0.74rem; gap: 5px; }
  .ac-item-icon { font-size: 0.78rem; }
  .ac-item-note { display: none; }   /* 手机上隐藏备注，只留名称 */
  .ac-items { gap: 6px; }

  /* ── Timeline Section ── */
  .tl-section { padding: 32px 0 20px; }
  .section-header { padding: 0 20px; margin-bottom: var(--section-title-gap); gap: 10px; }
  .section-title { font-size: 1.3rem; }
  .section-tag { font-size: 0.6rem; }
  .tl-zoom { display: none; }        /* 手机上不显示缩放按钮 */

  /* Mobile timeline list — 纵向，显示得更大 */
  .tl-mobile { display: flex; flex-direction: column; gap: 10px; padding: 0 20px; }
  .tl-mobile-item { padding: 14px 16px; border-radius: 12px; }
  .tl-mobile-emoji { font-size: 1.8rem; }
  .tl-mobile-date { font-size: 0.65rem; margin-bottom: 3px; }
  .tl-mobile-title { font-size: 0.9rem; font-weight: 600; }

  .tl-legend { padding: 10px 20px 0; gap: 14px; }
  .leg { font-size: 0.68rem; }

  /* ── Explore Section ── */
  .explore-section { padding: 36px 20px 48px; }
  .explore-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
    margin-top: 20px;
  }
  .explore-card { padding: 20px; }
  .explore-card-icon { font-size: 1.6rem; margin-bottom: 10px; }
  .explore-card-title { font-size: 0.95rem; }
  .explore-card-desc { font-size: 0.8rem; }

  /* ── Footer ── */
  .footer { padding: 20px; font-size: 0.75rem; }

  /* ── Diary page ── */
  .diary-page-header { padding: 32px 20px 20px; }
  .diary-page-title { font-size: 1.6rem; }
  .diary-list { padding: 0 16px 48px; gap: 10px; }
  .diary-item-header { padding: 14px 16px; gap: 10px; }
  .diary-mood { font-size: 1.5rem; }
  .diary-title { font-size: 0.88rem; }
  .diary-content-inner { padding: 16px 16px 20px; }
  .diary-text { font-size: 0.85rem; }

  /* ── Quotes page ── */
  .qc-grid { column-count: 1; }
  .qc-section-block { padding: 0 16px; margin-bottom: 40px; }
  .qc-header { padding: 18px 18px 14px; }
  .qc-topic { font-size: 1rem; }
  .qc-preview { font-size: 0.78rem; }
  .qc-footer-bar { padding: 10px 18px; }
  .qc-body-inner { padding: 16px 18px 20px; }

  /* ── Modal ── */
  .tl-modal-box { padding: 24px 20px; }

  /* Page header for diary/quotes */
  .page-hero { padding: 68px 20px 28px; }
}

/* Medium breakpoint (641~900px) */
@media (min-width: 641px) and (max-width: 900px) {
  .hero-bottom { grid-template-columns: repeat(2, 1fr) !important; }
  .hero-section { padding: 72px 28px 44px; }
  .nav { padding: 0 20px; }
}

/* ── Timeline type colors (mobile + legend) ─────────────── */

/* Mobile items — left border by type */
.tl-mobile-milestone {
  border-left: 3px solid var(--orange);
}
.tl-mobile-skill {
  border-left: 3px solid var(--cyan);
}
.tl-mobile-lesson {
  border-left: 3px solid var(--purple);
}

/* Legend dot color fix */
.leg-milestone { color: var(--orange); }
.leg-skill     { color: var(--cyan); }
.leg-lesson    { color: var(--purple); }

/* Legend layout */
.tl-legend {
  display: flex;
  gap: 20px;
  padding: 14px 40px 0;
  flex-wrap: wrap;
}
.leg {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  font-family: var(--mono);
}
.leg::before {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.leg-milestone::before { background: var(--orange); box-shadow: 0 0 6px rgba(255,107,53,.5); }
.leg-skill::before     { background: var(--cyan);   box-shadow: 0 0 6px rgba(0,229,204,.4); }
.leg-lesson::before    { background: var(--purple);  box-shadow: 0 0 6px rgba(167,139,250,.4); }

/* ── Quotes accordion active state ── */
.qc-card.qc-active {
  border-color: hsl(var(--hue), 60%, 55%);
  box-shadow: 0 0 0 2px hsl(var(--hue), 60%, 55%, 0.25), 0 8px 32px rgba(0,0,0,.3);
  transform: translateY(-2px);
  z-index: 2;
}
.qc-card {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
}

/* ================================================================
   Usage Page
   ================================================================ */

.usage-eyebrow {
  font-size: 0.78rem;
  font-family: var(--mono);
  color: var(--orange);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.usage-page-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.usage-page-desc {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 500px;
}

/* ── Summary Cards ── */
.usage-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0 40px 48px;
}

.usage-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color .2s, transform .2s;
}
.usage-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}
.uc-icon { font-size: 1.5rem; margin-bottom: 4px; }
.uc-label { font-size: 0.72rem; color: var(--muted); font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.uc-value { font-size: 1.8rem; font-weight: 700; color: var(--orange); font-family: var(--mono); line-height: 1.1; }
.uc-sub { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }

/* ── Chart Tabs ── */
.usage-charts {
  padding: 0 40px 48px;
}

.chart-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.chart-tab {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 0.82rem;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--mono);
  transition: all .2s;
}
.chart-tab:hover { border-color: var(--orange); color: var(--text); }
.chart-tab.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  font-weight: 600;
}

.chart-panel { display: none; }
.chart-panel.active { display: block; }

.chart-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  height: 360px;
  position: relative;
}

/* ── Table ── */
.usage-table-section {
  padding: 0 40px 64px;
}

.usage-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-top: 20px;
}

.usage-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  font-family: var(--mono);
}

.usage-table th {
  background: var(--surface);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.usage-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.usage-table tr:last-child td { border-bottom: none; }
.usage-table tbody tr:hover td { background: var(--surface); }

.td-date { color: var(--muted); }
.td-cost { color: var(--orange); font-weight: 600; }

/* Mobile */
@media (max-width: 640px) {
  .usage-summary { grid-template-columns: 1fr 1fr; padding: 0 16px 32px; gap: 10px; }
  .uc-value { font-size: 1.4rem; }
  .usage-charts { padding: 0 16px 32px; }
  .chart-wrap { height: 260px; padding: 16px; }
  .usage-table-section { padding: 0 16px 48px; }
  .usage-page-title { font-size: 1.8rem; }
}

/* ================================================================
   Usage Page v2
   ================================================================ */
.usage-main { padding-top: 56px; }

.usage-header {
  padding: 48px 40px 32px;
}
.usage-title {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.usage-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ── Stat Row ── */
.ustat-row {
  display: flex;
  gap: 16px;
  padding: 0 40px 40px;
  flex-wrap: wrap;
}
.ustat-card {
  flex: 1; min-width: 160px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color .2s, transform .15s;
}
.ustat-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.usc-icon { font-size: 1.6rem; flex-shrink: 0; }
.usc-label { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-family: var(--mono); margin-bottom: 2px; }
.usc-val { font-size: 1.65rem; font-weight: 700; color: var(--orange); font-family: var(--mono); line-height: 1.1; }
.usc-sub { font-size: 0.68rem; color: var(--muted); }

/* ── Charts ── */
.uchart-block {
  padding: 0 40px 40px;
}
.uchart-secondary { padding-top: 0; }
.uchart-label {
  font-size: 0.75rem;
  font-family: var(--mono);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
}
.uchart-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 20px 20px;
  height: 320px;
  position: relative;
}
.uchart-sm { height: 200px; }

/* ── Table ── */
.utable-block { padding: 0 40px 64px; }
.utable-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}
.utable-scroll {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.utable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
  font-family: var(--mono);
}
.utable th {
  background: var(--surface);
  padding: 11px 16px;
  text-align: left;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.utable td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.utable tr:last-child td { border-bottom: none; }
.utable tbody tr:hover td { background: var(--surface); }
.td-date { color: var(--muted); }
.td-cost { color: var(--orange); font-weight: 600; }
.td-out  { color: var(--purple, #a78bfa); }
.tr-latest td { background: rgba(255,107,53,0.05); }

/* Mobile */
@media (max-width: 640px) {
  .usage-header { padding: 32px 20px 24px; }
  .usage-title { font-size: 1.9rem; }
  .ustat-row { padding: 0 16px 28px; gap: 10px; }
  .ustat-card { min-width: 140px; padding: 14px 14px; }
  .usc-val { font-size: 1.3rem; }
  .uchart-block { padding: 0 16px 28px; }
  .uchart-wrap { height: 240px; padding: 16px 12px 12px; }
  .uchart-sm { height: 180px; }
  .utable-block { padding: 0 16px 48px; }
}

/* ustat section label + cards wrapper */
.ustat-section-label {
  width: 100%;
  font-size: 0.72rem;
  font-family: var(--mono);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 4px 0 8px;
}
.ustat-cards {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
}
@media (max-width: 640px) {
  .ustat-cards { gap: 10px; }
  .ustat-section-label { font-size: 0.65rem; }
}

/* ── Hero online indicator ── */
.hero-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.hero-online-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,.25);
  flex-shrink: 0;
  animation: pulse-green 2s ease-in-out infinite;
}
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,.25); }
  50%       { box-shadow: 0 0 0 7px rgba(34,197,94,.08); }
}
/* 导航栏里的绿点隐藏（已移到主页大标题旁） */
.nav .dot-live { display: none; }

/* ── Mobile timeline: clickable + arrow ── */
.tl-mobile-item {
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.tl-mobile-item:active { transform: scale(0.98); }
.tl-mobile-arrow {
  margin-left: auto;
  font-size: 1.4rem;
  color: var(--orange);
  flex-shrink: 0;
  padding-left: 8px;
}

/* ── Usage cards: prevent overflow ── */
.usc-val {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--orange);
  font-family: var(--mono);
  line-height: 1.1;
  word-break: break-all;
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  .usc-val { font-size: 1.1rem; }
  .ustat-card { min-width: 120px; }
}

/* ── Explore section centered header ── */
.explore-section .section-header {
  justify-content: center;
}
.explore-section .section-title {
  text-align: center;
}
