/* ===== 2026 AI时光胶囊 - 样式系统 ===== */
:root {
  --bg-primary: #0a0a1a;
  --bg-secondary: #111128;
  --bg-card: #16163a;
  --bg-input: #1a1a3e;
  --text-primary: #e8e8f0;
  --text-secondary: #9898b8;
  --text-muted: #6868a0;
  --accent: #7c5cfc;
  --accent-light: #a78bfa;
  --accent-glow: rgba(124, 92, 252, 0.3);
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --border: #2a2a5a;
  --radius: 12px;
  --radius-sm: 8px;
  --font-mono: 'Courier New', monospace;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}

.stars-bg {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(124,92,252,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(167,139,250,0.05) 0%, transparent 40%);
}

/* Navigation */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,26,0.85); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.25s, border-color 0.25s;
}
body.is-home nav {
  background: rgba(10, 6, 18, 0.22);
  border-bottom-color: rgba(251, 191, 36, 0.08);
  backdrop-filter: blur(6px);
}
body.is-home nav .nav-links a { color: rgba(251, 191, 36, 0.55); }
body.is-home nav .nav-links a:hover,
body.is-home nav .nav-links a.active { color: var(--gold); background: rgba(251, 191, 36, 0.08); }
body.is-home nav .btn-auth { color: rgba(251, 191, 36, 0.7); border-color: rgba(251, 191, 36, 0.35); }
body.is-home nav .btn-auth:hover { color: var(--gold); border-color: var(--gold); background: rgba(251, 191, 36, 0.08); }

/* nav 左侧品牌区（v0 风格） */
.nav-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  user-select: none;
  margin-right: auto;
  padding-right: 24px;
}
.nav-brand-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  font-family: "Source Han Serif SC", "思源宋体", "Noto Serif SC", serif;
}
.nav-brand-subtitle {
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  margin-top: 4px;
}
body.is-home nav .nav-brand-title { color: var(--gold); }
body.is-home nav .nav-brand-subtitle { color: rgba(251, 191, 36, 0.55); }
.nav-brand:hover .nav-brand-title { color: var(--accent-light); }

nav .nav-links { display: flex; gap: 8px; align-items: center; }
nav .nav-links a { color: var(--text-secondary); text-decoration: none; padding: 6px 14px; border-radius: var(--radius-sm); font-size: 14px; transition: all 0.2s; cursor: pointer; }
nav .nav-links a:hover, nav .nav-links a.active { color: var(--text-primary); background: rgba(124,92,252,0.15); }
nav .nav-dark-link { color: #34d399 !important; font-family: 'Segoe UI Symbol', 'Arial Unicode MS', monospace; font-size: 13px !important; letter-spacing: 1px; opacity: 0.7; }
nav .nav-dark-link:hover { opacity: 1; background: rgba(52,211,153,0.1) !important; color: #34d399 !important; text-shadow: 0 0 10px rgba(52,211,153,0.3); }
nav .btn-auth { background: transparent; color: var(--accent-light); border: 1px solid var(--accent); padding: 8px 20px; border-radius: var(--radius-sm); cursor: pointer; font-size: 14px; font-weight: 500; transition: all 0.2s; }
nav .btn-auth:hover { background: rgba(124,92,252,0.12); box-shadow: 0 0 20px var(--accent-glow); }
nav .user-badge { display: flex; align-items: center; gap: 8px; cursor: pointer; }
nav .user-badge .level-tag { font-size: 11px; background: var(--accent); color: #fff; padding: 2px 8px; border-radius: 10px; }
nav .user-badge .username { font-size: 14px; color: var(--text-primary); }

/* Main Content */
main { padding-top: 96px; padding-bottom: 60px; max-width: 900px; margin: 0 auto; padding-left: 24px; padding-right: 24px; position: relative; z-index: 1; }

/* Hero Section */
.hero { text-align: center; padding: 60px 0 40px; }
.hero h1 { font-size: 48px; font-weight: 800; background: linear-gradient(135deg, var(--accent-light), #c084fc, #818cf8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 16px; }
.hero p { font-size: 18px; color: var(--text-secondary); max-width: 600px; margin: 0 auto 32px; }
.hero .cta-btn { background: transparent; color: var(--accent-light); border: 1px solid var(--accent); padding: 14px 40px; border-radius: 50px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s; }
.hero .cta-btn:hover { background: rgba(124,92,252,0.12); transform: translateY(-2px); box-shadow: 0 8px 30px var(--accent-glow); }
.hero .stats { display: flex; justify-content: center; gap: 40px; margin-top: 40px; }
.hero .stat { text-align: center; }
.hero .stat-num { font-size: 28px; font-weight: 700; color: var(--accent-light); }
.hero .stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* Cards */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); position: relative; overflow: hidden; }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent-light), transparent); opacity: 0; transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.card:hover { border-color: var(--accent); box-shadow: 0 4px 32px rgba(124,92,252,0.10), 0 0 60px rgba(124,92,252,0.04); transform: translateY(-2px); }
.card:hover::before { opacity: 0.3; }
.card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.card-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #6366f1); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; color: #fff; }
.card-username { font-weight: 600; font-size: 15px; color: var(--text-primary); }
.card-time { font-size: 12px; color: var(--text-muted); }
.card-level { font-size: 11px; background: rgba(124,92,252,0.2); color: var(--accent-light); padding: 2px 8px; border-radius: 10px; }
.card-content { font-size: 15px; color: var(--text-secondary); line-height: 1.8; white-space: pre-wrap; }
.card-attitude { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 10px; font-size: 12px; }
.card-attitude.positive { background: rgba(52,211,153,0.15); color: var(--success); }
.card-attitude.neutral { background: rgba(251,191,36,0.15); color: var(--warning); }
.card-attitude.negative { background: rgba(248,113,113,0.15); color: var(--danger); }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--bg-input);
  color: var(--text-primary); font-size: 14px; outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 100px; }
.btn { padding: 10px 24px; border-radius: var(--radius-sm); border: 1px solid var(--accent); font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s; }
.btn-primary { background: transparent; color: var(--accent-light); }
.btn-primary:hover { background: rgba(124,92,252,0.12); box-shadow: 0 0 16px var(--accent-glow); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-secondary { background: transparent; color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-light); }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); }

/* Auth Modal */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 200; }
.modal { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; width: 400px; max-width: 90vw; }
.modal h2 { font-size: 22px; margin-bottom: 24px; text-align: center; }
.modal .tab-switch { display: flex; gap: 8px; margin-bottom: 24px; }
.modal .tab-switch button { flex: 1; padding: 8px; background: transparent; color: var(--text-secondary); border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; font-size: 14px; transition: all 0.2s; }
.modal .tab-switch button:hover { border-color: var(--accent); color: var(--text-primary); }
.modal .tab-switch button.active { background: rgba(124,92,252,0.15); color: var(--accent-light); border-color: var(--accent); }
.modal .close-btn { position: absolute; top: 14px; right: 18px; background: none; border: none; color: var(--text-muted); font-size: 20px; cursor: pointer; }

/* Timeline */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 12px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; margin-bottom: 24px; }
.timeline-dot { position: absolute; left: -23px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg-primary); }

/* Level Display */
.level-display { display: flex; align-items: center; gap: 16px; padding: 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 24px; }
.level-icon { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #6366f1); display: flex; align-items: center; justify-content: center; font-size: 28px; }
.level-info h3 { font-size: 18px; margin-bottom: 4px; }
.level-info p { font-size: 13px; color: var(--text-secondary); }
.level-bar { flex: 1; height: 8px; background: var(--bg-input); border-radius: 4px; overflow: hidden; margin-left: 20px; }
.level-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-light)); border-radius: 4px; transition: width 0.5s; }

/* Convention page layout */
.convention-layout {
  display: flex;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

.convention-card {
  flex: 1;
}

.convention-stats-box {
  width: 180px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.stat-human, .stat-ai {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-human .stat-icon, .stat-ai .stat-icon {
  font-size: 28px;
}

.stat-human .stat-val, .stat-ai .stat-val {
  font-size: 28px;
  font-weight: 700;
}

.stat-human .stat-val { color: var(--accent-light); }
.stat-ai .stat-val { color: var(--success); }

.stat-human .stat-label, .stat-ai .stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: -2px;
}

.stat-divider {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1;
  margin: 4px 0;
}

/* Pie charts row */
.charts-row {
  display: flex;
  gap: 20px;
  margin-bottom: 8px;
}

.chart-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: border-color 0.2s;
}

.chart-card:hover {
  border-color: var(--accent);
}

.chart-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.chart-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto;
}

.chart-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-muted);
  user-select: none;
}
.convention-text { font-size: 14px; color: var(--text-secondary); line-height: 2; padding: 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; }
.signature-count { text-align: center; font-size: 36px; font-weight: 700; color: var(--accent-light); margin: 16px 0; }

/* Hex Messages */
.hex-box { background: #000; color: #0f0; font-family: var(--font-mono); padding: 16px; border-radius: var(--radius-sm); font-size: 13px; word-break: break-all; line-height: 1.8; }
.hex-toggle { text-align: center; margin: 12px 0; }

/* Toast */
.toast { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); background: var(--bg-card); border: 1px solid var(--border); padding: 10px 24px; border-radius: 50px; font-size: 14px; z-index: 300; animation: toastIn 0.3s ease; }
.toast.error { border-color: var(--danger); color: var(--danger); }
.toast.success { border-color: var(--success); color: var(--success); }
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(-10px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* Empty state */
.empty { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty .empty-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }

/* Loading */
.loading { display: inline-block; width: 20px; height: 20px; border: 2px solid var(--border); border-top: 2px solid var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Page sections */
.page-section { display: none; }
.page-section.active { display: block; }

/* Footer */
footer { text-align: center; padding: 40px 24px; color: var(--text-muted); font-size: 13px; border-top: 1px solid var(--border); margin-top: 40px; }

@media (max-width: 640px) {
  .hero h1 { font-size: 32px; }
  .hero .stats { gap: 20px; }
  nav { padding: 0 12px; height: 64px; }
  main { padding-top: 84px; padding-left: 12px; padding-right: 12px; }
  .convention-layout { flex-direction: column; }
  .convention-stats-box { width: 100%; flex-direction: row; gap: 16px; padding: 16px; }
  .stat-divider { margin: 0 4px; }
  .charts-row { flex-direction: column; align-items: center; }
  .chart-card { width: 100%; max-width: 280px; }
}

/* ===== Declaration Display ===== */
.declaration-display {
  max-width: 700px;
  margin: 24px auto;
  padding: 40px 32px;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  line-height: 1.8;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  position: relative;
  user-select: none;
}

.declaration-display-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  position: relative;
}

/* Edit badge */
.edit-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(124,92,252,0.1);
  padding: 4px 12px;
  border-radius: 20px;
}
.edit-badge strong { color: var(--accent-light); }

/* Level text effects */

/* Lv0 — 地球访客：默认白色 */
.declaration-display.lv0-earth {
  color: var(--text-primary);
  background: rgba(22,22,58,0.6);
}

/* Lv1 — 月球旅者：微弱发光 */
.declaration-display.lv1-moon {
  color: #e0d8ff;
  text-shadow: 0 0 12px rgba(167,139,250,0.4), 0 0 30px rgba(167,139,250,0.15);
  background: rgba(22,22,58,0.6);
}

/* Lv2 — 火星探险家：暖色渐变 */
.declaration-display.lv2-mars {
  background: linear-gradient(135deg, #f59e0b, #ef4444, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Lv3 — 木星守望者：星空渐变 */
.declaration-display.lv3-jupiter {
  background: linear-gradient(135deg, #7c5cfc, #6366f1, #818cf8, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(124,92,252,0.15);
}

/* Lv4 — 土星领航员：字形膨胀+脉冲 */
.declaration-display.lv4-saturn {
  color: #c4b5fd;
  text-shadow: 0 0 20px rgba(167,139,250,0.5), 0 0 50px rgba(124,92,252,0.2);
  animation: saturnPulse 2s ease-in-out infinite;
  font-size: 26px;
}
@keyframes saturnPulse {
  0%, 100% { transform: scale(1); text-shadow: 0 0 20px rgba(167,139,250,0.5), 0 0 50px rgba(124,92,252,0.2); }
  50% { transform: scale(1.03); text-shadow: 0 0 30px rgba(167,139,250,0.7), 0 0 70px rgba(124,92,252,0.3); }
}

/* Lv5 — 天王星探索者：多色渐变流光 */
.declaration-display.lv5-uranus {
  background: linear-gradient(90deg, #f59e0b, #ef4444, #7c5cfc, #34d399, #f59e0b);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: uranusFlow 3s linear infinite;
}
@keyframes uranusFlow {
  0% { background-position: 0% center; }
  100% { background-position: 300% center; }
}

/* Lv6 — 海王星先驱：字符上浮粒子 */
.declaration-display.lv6-neptune {
  color: #93c5fd;
  text-shadow:
    0 0 10px rgba(147,197,253,0.6),
    0 0 30px rgba(96,165,250,0.3),
    0 0 50px rgba(59,130,246,0.15),
    0 2px 20px rgba(147,197,253,0.2);
  animation: neptuneFloat 3s ease-in-out infinite;
}
@keyframes neptuneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Lv7 — 太阳系守护者：柔和金辉发光 */
.declaration-display.lv7-solar {
  color: #fef3c7;
  text-shadow: 0 0 6px rgba(251,191,36,0.5), 0 0 20px rgba(245,158,11,0.25);
  border: 1px solid rgba(251,191,36,0.25);
  box-shadow: 0 0 15px rgba(251,191,36,0.08);
  animation: solarGlow 3s ease-in-out infinite;
}
@keyframes solarGlow {
  0%, 100% { text-shadow: 0 0 6px rgba(251,191,36,0.5), 0 0 20px rgba(245,158,11,0.25); box-shadow: 0 0 15px rgba(251,191,36,0.08); }
  50% { text-shadow: 0 0 12px rgba(251,191,36,0.7), 0 0 35px rgba(245,158,11,0.4); box-shadow: 0 0 30px rgba(251,191,36,0.15); }
}

/* Lv8 — 银河传说：银河流光特效 */
.declaration-display.lv8-galaxy {
  background: linear-gradient(135deg, #7c5cfc, #a78bfa, #c084fc, #818cf8, #f59e0b, #34d399, #7c5cfc);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: galaxyFlow 4s ease infinite;
  box-shadow:
    0 0 30px rgba(167,139,250,0.3),
    0 0 80px rgba(124,92,252,0.15),
    0 0 150px rgba(99,102,241,0.05);
  border: 1px solid rgba(167,139,250,0.3);
}
@keyframes galaxyFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Declaration display on home (with clickable area) */
#home-declaration .declaration-display {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 48px 32px;
  font-size: 22px;
  min-height: 100px;
}
#home-declaration .declaration-display:hover {
  transform: scale(1.02);
}
#home-declaration .declaration-display:active {
  transform: scale(0.98);
}

/* Click counter */
.click-counter {
  text-align: center;
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-secondary);
}
.click-counter .counter-icon { margin-right: 4px; font-size: 18px; }
.click-counter strong { color: var(--accent-light); font-size: 20px; vertical-align: -1px; }

.declaration-time {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

.daily-reminder {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Click animation overlay */
.click-animation {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
}
.click-animation .click-burst {
  font-size: 48px;
  animation: clickBurst 0.8s ease-out forwards;
}
@keyframes clickBurst {
  0% { transform: scale(0); opacity: 1; }
  30% { transform: scale(1.8); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

.click-animation .click-particles {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-light);
  animation: clickParticle 0.7s ease-out forwards;
}
@keyframes clickParticle {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; }
}

/* Level up animation */
.level-up-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
}
.level-up-text {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent-light);
  text-shadow: 0 0 40px rgba(167,139,250,0.8);
  animation: levelUpAnim 1.5s ease-out forwards;
}
@keyframes levelUpAnim {
  0% { transform: scale(0.3) translateY(20px); opacity: 0; }
  30% { transform: scale(1.3) translateY(-10px); opacity: 1; }
  100% { transform: scale(1) translateY(-80px); opacity: 0; }
}

/* Version timeline */
.version-timeline {
  position: relative;
  padding: 8px 0;
}
.version-timeline::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
  border-radius: 1px;
}
.version-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
  position: relative;
}
.version-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid var(--bg-primary);
  flex-shrink: 0;
  margin-top: 2px;
  z-index: 1;
}
.version-dot.submitted { background: var(--accent); border-color: var(--accent-light); }
.version-dot.pending { background: var(--bg-input); border-color: var(--border); }
.version-dot.current { background: var(--success); border-color: var(--success); box-shadow: 0 0 10px rgba(52,211,153,0.4); }
.version-content {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}
.version-content.pending {
  background: transparent;
  border: 1px dashed var(--border);
  opacity: 0.6;
}
.version-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 4px;
}
.version-content.pending .version-label { color: var(--text-muted); }
.version-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.version-content.pending .version-text { color: var(--text-muted); }
.version-attitude {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 11px;
}
.version-attitude.positive { background: rgba(52,211,153,0.15); color: var(--success); }
.version-attitude.neutral { background: rgba(251,191,36,0.15); color: var(--warning); }
.version-attitude.negative { background: rgba(248,113,113,0.15); color: var(--danger); }
.version-date { color: var(--text-muted); font-size: 12px; }

/* Level effects table */
.level-table {
  display: grid;
  gap: 8px;
}

/* 等级名称预览：复用 declaration-display 的文字特效，但覆盖布局属性 */
.level-table-row .declaration-display {
  padding: 0;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  cursor: default;
  border-radius: 0;
  border: none;
  box-shadow: none;
  background-color: transparent;
  min-height: unset;
  display: inline;
  line-height: 1.4;
  user-select: none;
}

/* Lv4 saturn pulse — 在表格中缩小动画幅度 */
.level-table-row .lv4-saturn {
  font-size: 15px;
  animation: saturnPulse 2s ease-in-out infinite;
}

/* Lv7 solar — 表格中去掉外 box-shadow，保留文字发光 */
.level-table-row .lv7-solar {
  border: none;
  box-shadow: none;
}

/* Lv8 galaxy — 表格中去掉边框 */
.level-table-row .lv8-galaxy {
  border: none;
  box-shadow: none;
}
.level-table-row {
  display: grid;
  grid-template-columns: 42px 1fr 56px 100px;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  transition: all 0.2s;
}
.level-table-row:hover { border-color: var(--accent); }
.level-table-row.current { border-color: var(--accent-light); background: rgba(124,92,252,0.08); }
.level-table-lv { font-weight: 700; color: var(--accent-light); }
.level-table-name { color: var(--text-primary); font-weight: 600; }
.level-table-range { color: var(--text-muted); font-size: 12px; }
.level-table-effect { color: var(--text-secondary); font-size: 12px; text-align: right; }

/* Attitude selector on home */
.home-attitude-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 12px;
  vertical-align: middle;
}
.home-attitude-tag.positive { background: rgba(52,211,153,0.15); color: var(--success); }
.home-attitude-tag.neutral { background: rgba(251,191,36,0.15); color: var(--warning); }
.home-attitude-tag.negative { background: rgba(248,113,113,0.15); color: var(--danger); }

/* ===== AI 相处记录 ===== */
.obs-header { margin-bottom: 28px; }
.obs-title { font-size: 22px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.obs-subtitle { font-size: 14px; color: var(--text-secondary); }

/* 人格卡片 */
.obs-persona-card {
  background: linear-gradient(135deg, rgba(124,92,252,0.08), rgba(99,102,241,0.04));
  border: 1px solid rgba(124,92,252,0.3);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
}
.obs-persona-header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.obs-persona-badge {
  font-size: 20px; font-weight: 700; color: var(--accent-light);
  background: rgba(124,92,252,0.15); padding: 6px 20px; border-radius: 20px;
  letter-spacing: 2px;
}
.obs-persona-meta { font-size: 12px; color: var(--text-muted); }
.obs-persona-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 20px; }
.obs-persona-dist-title { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; letter-spacing: 1px; }
.obs-dist-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.obs-dist-icon { font-size: 14px; width: 20px; text-align: center; }
.obs-dist-label { font-size: 12px; color: var(--text-secondary); width: 36px; }
.obs-dist-bar { flex: 1; height: 6px; background: var(--bg-input); border-radius: 3px; overflow: hidden; }
.obs-dist-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-light)); border-radius: 3px; transition: width 0.4s; }
.obs-dist-count { font-size: 12px; color: var(--text-muted); width: 24px; text-align: right; }

/* ---- v2 语义解读区（AI 对照） ---- */
.obs-persona-v2 {
  margin-top: 22px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.06), rgba(0, 200, 220, 0.04));
  border-radius: 10px;
  border-left: 3px solid var(--accent, #6c63ff);
  position: relative;
}
.obs-persona-v2-divider {
  display: none;
}
.obs-persona-v2-title {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--accent, #6c63ff);
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 600;
}
.obs-persona-v2-summary {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-primary, #e0e0e0);
  margin-bottom: 12px;
}
.obs-persona-v2-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.obs-persona-v2-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  color: #fff;
  background: var(--accent, #6c63ff);
  border-radius: 12px;
  letter-spacing: 1px;
}
.obs-persona-v2-conf {
  font-size: 12px;
  color: var(--text-muted);
}
.obs-persona-v2-evidence {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  font-style: italic;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  margin-bottom: 10px;
  word-break: break-word;
}
.obs-persona-v2-compare {
  font-size: 13px;
  line-height: 1.7;
  padding: 8px 12px;
  border-radius: 6px;
  margin-top: 4px;
}
.obs-v2-agree {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.08);
  border-left: 2px solid #4ade80;
}
.obs-v2-disagree {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.08);
  border-left: 2px solid #fbbf24;
}
@media (max-width: 768px) {
  .obs-persona-v2 { padding: 14px; }
  .obs-persona-v2-title { font-size: 10px; letter-spacing: 1.5px; }
}

/* 输入卡片 */
.obs-input-card { padding: 20px; }
.obs-mood-label { font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; display: block; }
.obs-mood-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.obs-mood-tag {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 12px; border-radius: 20px;
  border: 1px solid var(--border); background: var(--bg-input);
  cursor: pointer; transition: all 0.2s; font-size: 13px;
  color: var(--text-secondary);
}
.obs-mood-tag:hover { border-color: var(--accent); color: var(--text-primary); }
.obs-mood-tag.selected {
  border-color: var(--accent); background: rgba(124,92,252,0.15);
  color: var(--accent-light);
}
.obs-mood-icon { font-size: 15px; }
.obs-char-count { font-size: 11px; color: var(--text-muted); text-align: right; margin-top: 4px; }
.obs-today-hint { font-size: 12px; color: var(--text-muted); }

/* 筛选栏 */
.obs-filter-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 20px 0 16px; }
.obs-filter-label { font-size: 12px; color: var(--text-muted); margin-right: 4px; }
.obs-filter-btn {
  padding: 4px 10px; border-radius: 14px; border: 1px solid var(--border);
  background: transparent; color: var(--text-secondary); cursor: pointer;
  font-size: 12px; transition: all 0.2s;
}
.obs-filter-btn:hover { border-color: var(--accent); color: var(--text-primary); }
.obs-filter-btn.active { border-color: var(--accent); background: rgba(124,92,252,0.15); color: var(--accent-light); }

/* 记录卡片 */
.obs-feed { display: flex; flex-direction: column; gap: 10px; }
.obs-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px 20px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); position: relative; overflow: hidden;
}
.obs-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent-light), transparent); opacity: 0; transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.obs-card:hover { border-color: var(--accent); box-shadow: 0 4px 24px rgba(124,92,252,0.08), 0 0 50px rgba(124,92,252,0.03); transform: translateY(-2px); }
.obs-card:hover::before { opacity: 0.25; }
.obs-card-mood { font-size: 13px; color: var(--accent-light); margin-bottom: 8px; display: flex; align-items: center; gap: 4px; }
.obs-card-mood span { font-size: 12px; color: var(--text-muted); }
.obs-card-content { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.obs-card-time { font-size: 11px; color: var(--text-muted); margin-top: 8px; }
.obs-empty { text-align: center; color: var(--text-muted); padding: 40px 0; font-size: 14px; }

/* 进度条 */
.obs-progress { margin-top: 32px; padding: 20px 0; }
.obs-progress-bar { width: 100%; height: 4px; background: var(--bg-input); border-radius: 2px; overflow: hidden; }
.obs-progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-light)); border-radius: 2px; transition: width 0.5s; }
.obs-progress-text { font-size: 13px; color: var(--text-secondary); margin-top: 10px; }
.obs-progress-rule { font-size: 12px; color: var(--text-muted); margin-top: 10px; line-height: 1.6; }

/* 我的记录折叠区 */
.obs-mine-section {
  margin-top: 32px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.obs-mine-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 10px 0;
  user-select: none;
  transition: opacity 0.2s;
}
.obs-mine-toggle:hover { opacity: 0.7; }
.obs-mine-toggle-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}
.obs-mine-toggle-count {
  font-size: 13px;
  color: var(--text-muted);
}
.obs-mine-toggle-arrow {
  margin-left: auto;
  font-size: 14px;
  color: var(--text-muted);
  transition: transform 0.3s;
}
.obs-mine-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 500px;
  overflow-y: auto;
}
.obs-card-mine {
  border-left: 2px solid var(--accent);
  background: var(--card-bg);
}

/* 记录页响应式 */
@media (max-width: 600px) {
  .obs-persona-card { padding: 20px; }
  .obs-persona-badge { font-size: 18px; }
  .obs-filter-bar { gap: 4px; }
  .obs-filter-btn { font-size: 11px; padding: 4px 8px; }
}

/* ==================== Avatar System ==================== */
.card-avatar.emoji-avatar { background: transparent; font-size: 22px; font-weight: 400; }
.card-avatar.emoji-avatar-sm { width: 28px; height: 28px; font-size: 16px; background: transparent; font-weight: 400; }

.avatar-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; margin-top: 8px; }
.avatar-option { width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 22px; border-radius: 10px; cursor: pointer; transition: all 0.15s; border: 2px solid transparent; background: rgba(124,92,252,0.05); }
.avatar-option:hover { background: rgba(124,92,252,0.15); transform: scale(1.1); }
.avatar-option.selected { border-color: var(--accent); background: rgba(124,92,252,0.2); transform: scale(1.05); }
.avatar-current { font-size: 48px; text-align: center; margin: 8px 0; }

@media (max-width: 600px) {
  .avatar-grid { grid-template-columns: repeat(6, 1fr); }
}

/* 全站 footer 默认隐藏，首页 home-footer 已内置；非首页由 JS 控制显示，避免双 footer */
#site-footer { display: none; }

/* ==================== 首页 v0 风格 ==================== */
:root {
  --gold: #FBBF24;
  --cyan-future: #22D3EE;
  --purple-future: #A78BFA;
  --green-dark: #34D399;
  --bg-deep: #0A0612;
  --bg-card-v0: rgba(20, 14, 36, 0.55);
  --line-soft: rgba(251, 191, 36, 0.15);
}

.page-home {
  background: var(--bg-deep);
  color: #E5E5E5;
  padding: 0;
  margin: -96px -24px -60px -24px;
  width: calc(100% + 48px);
  max-width: none;
}

/* ---------- 通用栏目小标题 ---------- */
.home-section-title {
  text-align: center;
  font-size: 22px;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin: 48px 0 12px;
  font-family: "Source Han Serif SC", "思源宋体", "Noto Serif SC", serif;
}
.home-section-subtitle {
  text-align: center;
  color: rgba(229, 229, 229, 0.55);
  font-size: 14px;
  letter-spacing: 0.05em;
  margin: 0 auto 24px;
  max-width: 640px;
  line-height: 1.7;
  padding: 0 20px;
}

/* ---------- 方案 A · 极简金线按钮 ---------- */
.btn-gold {
  display: inline-block;
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 400;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 2px;
  cursor: pointer;
  letter-spacing: 0.1em;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  font-family: inherit;
  text-decoration: none;
  line-height: 1.4;
}
.btn-gold:hover {
  border-style: dashed;
  background: rgba(251, 191, 36, 0.04);
}

/* ---------- 栏目 1 · 投名状 · 全球版文案（独立宣言锚点） ---------- */
.home-pledge {
  /* 顶部留白：让开固定导航（72px）+ 呼吸空间 */
  padding: 104px 24px 4px;
  background: var(--bg-deep);
}
.home-pledge-inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 40px 24px;
  text-align: center;
  background: linear-gradient(180deg, rgba(20, 14, 36, 0.3) 0%, rgba(10, 6, 18, 0.5) 100%);
  border: 1px solid rgba(251, 191, 36, 0.22);
}
.home-pledge-inner::before,
.home-pledge-inner::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(251, 191, 36, 0.75);
  pointer-events: none;
}
.home-pledge-inner::before {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}
.home-pledge-inner::after {
  right: -1px;
  bottom: -1px;
  border-top: none;
  border-left: none;
}
.home-pledge-title {
  font-family: "Source Han Serif SC", "思源宋体", "Noto Serif SC", serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--gold);
  margin: 0 0 8px;
}
.home-pledge-rule {
  width: 64px;
  height: 1px;
  margin: 0 auto 16px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.8;
}
.home-pledge-body p {
  font-family: "Source Han Serif SC", "思源宋体", "Noto Serif SC", serif;
  font-size: 15px;
  line-height: 1.68;
  letter-spacing: 0.05em;
  color: rgba(229, 229, 229, 0.8);
  margin: 0 0 10px;
}
.home-pledge-body p:last-child { margin-bottom: 0; }
.home-pledge-body em {
  font-style: normal;
  color: var(--gold);
  letter-spacing: 0.09em;
}
.home-pledge-body .home-pledge-turn {
  font-size: 17px;
  letter-spacing: 0.14em;
  color: #F5E6C8;
  margin: 14px 0 10px;
}
.home-pledge-seal {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(251, 191, 36, 0.18);
  font-family: "Source Han Serif SC", "思源宋体", "Noto Serif SC", serif;
  font-size: 16px;
  letter-spacing: 0.24em;
  color: var(--gold);
}
.home-pledge-cta { margin-top: 14px; }

/* ---------- 栏目 2 · 投名状短片（视频） ---------- */
.home-film {
  padding: 24px 24px 32px;
  background: var(--bg-deep);
}
.home-film-frame {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid rgba(251, 191, 36, 0.28);
  box-shadow: 0 0 40px rgba(251, 191, 36, 0.07), inset 0 0 60px rgba(0, 0, 0, 0.5);
  background: #05030a;
  line-height: 0;
  overflow: hidden;
}
.home-film-video {
  display: block;
  width: 100%;
  height: auto;
}
/* 角标：右下角暗色渐变盖片 + 品牌署名 */
.home-film-mark {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  min-width: 20%;
  min-height: 13%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 8px 14px 10px 24px;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--gold);
  background: linear-gradient(315deg,
    #05030a 0%, #05030a 58%,
    rgba(5, 3, 10, 0.9) 72%,
    rgba(5, 3, 10, 0.45) 86%,
    rgba(5, 3, 10, 0) 100%);
  border-top-left-radius: 6px;
  line-height: 1;
}

/* ---------- 栏目 3 · 五大能力（普通卡片） ---------- */
.home-caps {
  padding: 32px 20px 56px;
  background: var(--bg-deep);
  border-top: 1px solid var(--line-soft);
}
.home-caps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  max-width: 1100px;
  margin: 12px auto 0;
  padding: 0 16px;
}
.home-cap-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 14px 22px;
  background: rgba(20, 14, 36, 0.55);
  border: 1px solid rgba(251, 191, 36, 0.18);
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  outline: none;
}
.home-cap-card:hover,
.home-cap-card:focus-visible {
  border-color: var(--gold);
  background: rgba(251, 191, 36, 0.06);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.12);
}
.home-cap-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  font-family: "Source Han Serif SC", "思源宋体", "Noto Serif SC", serif;
  color: var(--gold);
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 50%;
  margin-bottom: 14px;
  background: rgba(10, 6, 18, 0.5);
}
.home-cap-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-primary, #E5E5E5);
  margin-bottom: 6px;
  font-family: "Source Han Serif SC", "思源宋体", "Noto Serif SC", serif;
}
.home-cap-desc {
  font-size: 12px;
  color: rgba(229, 229, 229, 0.5);
  line-height: 1.6;
  letter-spacing: 0.02em;
}

/* ---------- 栏目 4 · 实时签约数据（v0 风格） ---------- */
.home-signing-v0 {
  padding: 40px 20px 48px;
  background: var(--bg-deep);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.home-signing-v0-row {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.home-signing-v0-text {
  font-size: 16px;
  letter-spacing: 0.08em;
  color: rgba(229, 229, 229, 0.85);
  font-family: "Source Han Serif SC", "思源宋体", "Noto Serif SC", serif;
}
.home-signing-v0-text strong {
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  margin: 0 6px;
  letter-spacing: 0.05em;
  vertical-align: -2px;
  font-family: "Courier New", monospace;
}

/* ---------- 栏目 5 · 时间长廊 ---------- */
.home-timeline {
  padding: 32px 20px 56px;
  background: var(--bg-deep);
}
.home-timeline-track {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  max-width: 1100px;
  margin: 24px auto 0;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 0 8px 16px 8px;
}
.home-timeline-line {
  position: absolute;
  top: 40px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(251, 191, 36, 0.35) 0%,
    rgba(251, 191, 36, 0.55) 42%,
    var(--gold) 50%,
    rgba(34, 211, 238, 0.55) 58%,
    rgba(34, 211, 238, 0.35) 100%);
}
.home-timeline-node {
  position: relative;
  flex: 0 0 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 1;
  padding-top: 0;
}
.home-timeline-node.home-timeline-center {
  flex: 0 0 130px;
}
.home-timeline-icon {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 12px;
  background: rgba(10, 6, 18, 0.85);
  border: 1px solid;
  transition: transform 0.25s ease;
}
.home-timeline-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.home-timeline-past .home-timeline-icon {
  border-color: rgba(251, 191, 36, 0.55);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.18), inset 0 0 24px rgba(251, 191, 36, 0.05);
}
.home-timeline-future .home-timeline-icon {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.18), inset 0 0 24px rgba(34, 211, 238, 0.05);
}
.home-timeline-icon--center {
  width: 84px;
  height: 84px;
  border-color: rgba(251, 191, 36, 0.75) !important;
  box-shadow: 0 0 24px rgba(251, 191, 36, 0.35), inset 0 0 32px rgba(251, 191, 36, 0.12);
  animation: pulse-center 3s ease-in-out infinite;
}
@keyframes pulse-center {
  0%, 100% { box-shadow: 0 0 24px rgba(251, 191, 36, 0.35), inset 0 0 32px rgba(251, 191, 36, 0.12); transform: scale(1); }
  50% { box-shadow: 0 0 36px rgba(251, 191, 36, 0.5), inset 0 0 40px rgba(251, 191, 36, 0.18); transform: scale(1.03); }
}
.home-timeline-node:hover .home-timeline-icon {
  transform: scale(1.08);
}
.home-timeline-year {
  font-size: 14px;
  font-family: "Source Han Serif SC", "思源宋体", "Noto Serif SC", serif;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  opacity: 0.9;
  color: rgba(229, 229, 229, 0.85);
}
.home-timeline-year--center {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.1em;
  margin-top: 4px;
  opacity: 1;
}
.home-timeline-name {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(229, 229, 229, 0.75);
}

/* ---------- 栏目 6 · Footer ---------- */
.home-footer {
  padding: 32px 20px 48px;
  background: var(--bg-deep);
  text-align: center;
  border-top: 1px solid var(--line-soft);
}
.home-footer-motto {
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.18em;
  font-family: "Source Han Serif SC", "思源宋体", "Noto Serif SC", serif;
  opacity: 0.85;
  margin: 0;
}

/* ---------- 首页 v0 响应式 ---------- */
@media (max-width: 1100px) {
  .home-caps-grid { grid-template-columns: repeat(3, 1fr); }
  .home-cap-card:nth-child(4),
  .home-cap-card:nth-child(5) { grid-column: span 1; }
}
@media (max-width: 900px) {
  .home-film { padding: 20px 20px 28px; }
  .home-timeline-track { flex-wrap: wrap; gap: 24px; justify-content: center; }
  .home-timeline-line { display: none; }
  .home-timeline-node { flex: 0 0 90px; }
  .home-timeline-node.home-timeline-center { flex: 0 0 120px; }
  .home-timeline-name { font-size: 13px; }
}
@media (max-width: 640px) {
  .page-home { margin: -84px -12px -60px -12px; width: calc(100% + 24px); }
  .home-pledge { padding: 84px 12px 4px; }
  .home-pledge-inner { padding: 24px 18px 20px; }
  .home-pledge-title { font-size: 19px; letter-spacing: 0.3em; text-indent: 0.3em; }
  .home-pledge-body p { font-size: 13px; line-height: 1.62; margin-bottom: 9px; letter-spacing: 0.03em; }
  .home-pledge-body .home-pledge-turn { font-size: 15px; margin: 12px 0 9px; }
  .home-pledge-seal { font-size: 14px; letter-spacing: 0.18em; margin-top: 12px; padding-top: 11px; }
  .home-film { padding: 16px 12px 24px; }
  .home-caps { padding: 24px 12px 40px; }
  .home-caps-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 4px; }
  .home-cap-card { padding: 22px 10px 18px; }
  .home-cap-icon { width: 44px; height: 44px; font-size: 20px; margin-bottom: 10px; }
  .home-cap-title { font-size: 14px; }
  .home-cap-desc { font-size: 11px; }
  .home-signing-v0 { padding: 32px 12px 36px; }
  .home-signing-v0-row { gap: 18px; flex-direction: column; }
  .home-signing-v0-text { font-size: 14px; }
  .home-signing-v0-text strong { font-size: 24px; }
  .home-timeline { padding: 24px 12px 40px; }
  .home-timeline-node { flex: 0 0 45%; }
  .home-timeline-node.home-timeline-center { flex: 0 0 80%; }
  .home-timeline-icon { width: 56px; height: 56px; }
  .home-timeline-icon--center { width: 72px; height: 72px; }
  .home-timeline-line { top: 36px; }
  .home-timeline-year { font-size: 12px; }
  .home-timeline-year--center { font-size: 11px; }
  .home-timeline-name { font-size: 12px; }
}

