/* ===== 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: row;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  user-select: none;
  margin-right: auto;
  padding-right: 24px;
}
/* 2026-10-19：品牌区换成英文站那张 Aito 2026 手绘 LOGO，右侧跟一行小字 */
.nav-brand-logo {
  height: 30px;
  width: auto;
  display: block;
}
.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;
}
/* 左上角 slogan。2026-10-22 从站名「AI时光胶囊」换成整句
   「在 AI 学会回望之前　写下你的态度」—— 17 个字，比原来的 5 个字长得多，
   所以字距从 0.25em 收到 0.06em（0.25em 是给 5 字短标题设计的，
   17 个字照搬会横向撑到 230px+，把右侧导航挤出去）。 */
.nav-brand-subtitle {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-top: 0;
  white-space: nowrap;
}
/* 窄屏放不下整句，直接藏掉 —— 与其挤成两行或压住导航，不如只留 LOGO。 */
@media (max-width: 700px) {
  nav .nav-brand-subtitle { display: none; }
}
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; }

/* ---------- 主视觉（静态图 + 右下角文案） ---------- */
.home-film {
  /* 顶部留白：原「投名状」文案区已移除，这里要自己让开固定导航（72px）+ 呼吸空间 */
  padding: 104px 24px 32px;
  background: var(--bg-deep);
}
.home-film-frame {
  position: relative;
  /* 2026-10-20：整图缩到原尺寸 80%（900 → 720），高度随比例走。
     金色细边框去掉 —— 原来那圈 1px 金线和外面的金色外发光叠在一起，
     看起来像给图片加了个相框，把画面压小了。只留内阴影做暗角。 */
  max-width: 720px;
  margin: 0 auto;
  border: none;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.5);
  background: #05030a;
  line-height: 0;
  overflow: hidden;
}
.home-film-img {
  display: block;
  width: 100%;
  height: auto;
}
/* 叠在图片右下角空白区的文案。字号随视口缩放：
   桌面约 24px，手机约 13px —— 始终可读，且能被搜索引擎抓到。 */
.home-film-words {
  position: absolute;
  right: 5%;
  /* 2026-10-20：原 bottom:19% 视觉重心偏高，下移「一行半」。
     1.5 × line-height 1.9 = 2.85em，用 em 计量才能跟着字号等比走，
     写死 68px 的话换台机器字号一变就不是一行半了。
     再套一层 max()：水印占右下角 7.5% 高，窗口变窄时图片等比缩小、
     而字号被 clamp 锁在 24px，纯 em 会把最后一行推进水印的暗角里。
     8% 是水印上沿 + 一点缝，两个值取大，保证到哪儿都停在水印之上。 */
  bottom: max(8%, calc(19% - 2.85em));
  z-index: 2;
  max-width: 64%;
  margin: 0;
  text-align: right;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  font-size: clamp(13px, calc(1.6vw + 8px), 24px);
  line-height: 1.9;
  letter-spacing: 0.08em;
  color: rgba(206, 182, 136, 0.8);
  text-shadow: 0 0 22px rgba(251, 191, 36, 0.22), 0 1px 2px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
.home-film-words p {
  margin: 0;
  line-height: inherit;
}
.home-film-words .fw-lead,
.home-film-words .fw-last {
  color: rgba(242, 222, 175, 0.96);
  text-shadow: 0 0 26px rgba(251, 191, 36, 0.34), 0 1px 2px rgba(0, 0, 0, 0.6);
}
/* CTA：2026-10-19 从图片内文字块挪到图片下方独立居中。
   原来压在图上，手机上会挤掉最后一句；放在图外不受图片缩放影响，手指也好点。 */
.home-film-ctawrap {
  max-width: 720px;
  margin: 0 auto;
  padding-top: 28px;
  text-align: center;
}
.home-film-cta {
  display: inline-block;
  min-width: 208px;
  padding: 13px 40px;
  font-family: inherit;
  font-size: 15px;
  letter-spacing: 0.14em;
  line-height: 1.4;
}
/* ---------- AI 觉醒指数 ---------- */
.home-idx {
  padding: 8px 24px 48px;
  background: var(--bg-deep);
}
.home-idx-inner {
  max-width: 900px;
  margin: 0 auto;
}
.home-idx-title {
  margin: 0 0 20px;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  color: var(--gold);
  font-family: "Source Han Serif SC", "思源宋体", "Noto Serif SC", serif;
}
.home-idx .idx-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 16px;
}
.home-idx .idx-now {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--text-primary);
}
.home-idx .idx-day {
  font-size: 12px;
  color: rgba(232, 232, 240, 0.38);
  margin-top: 4px;
}
.home-idx .idx-chg {
  font-size: 16px;
  white-space: nowrap;
}
/* 涨红跌绿，A 股习惯 */
.home-idx .idx-chg.up { color: #e5484d; }
.home-idx .idx-chg.down { color: #46b17d; }
.home-idx .idx-chart {
  position: relative;
  height: 260px;
  padding: 14px;
  border: 1px solid rgba(251, 191, 36, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}
/* 指数口径备注：与上方「14 日滚动值 · 截至 …」完全同字号同色，
   两者是同一层级的元信息，不该有一行更亮一行更暗。 */
.home-idx-source {
  margin: 10px 2px 0;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(232, 232, 240, 0.38);
  font-family: inherit;
  letter-spacing: normal;
}
.home-idx-source b {
  font-weight: 500;
  color: inherit;
}
/* ---------- 「AI觉醒」大栏目内的两个子块 ----------
   上面世界地图（空间分布）、下面时间曲线（时间趋势）。
   子块间距刻意比栏目间距小：它们属于同一件事，要有「一组」的观感。 */
.idx-block + .idx-block {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid rgba(251, 191, 36, 0.12);
}
/* ---------- 指数区下排：左 Top10 榜单 / 右 AI觉醒指数曲线 ----------
   2026-10-22 用户要求：这两个原来各占一整行 900px，在大屏上显得空旷，
   改成左右并排，**两列合计宽度 = 上面地图的宽度**（同为 .home-idx-inner 的 900px）。
   min-width:0 是子项的必需项 —— 默认值 auto 会让长国名/榜单把列撑破、挤掉另一列。

   ⚠️ 这里从 grid 改成 flex，是有原因的，别改回去：
     用 grid + align-items:start 时，每列的**网格行高只由该列自身内容决定**，
     较短的一列（榜单 321px）不会被拉长到和右列（431px）一样高，
     于是 flex:1 的撑高链路拿不到高度，space-between 也就分不出空隙。
     flex 的 align-items:stretch 是"同一行内所有子项等高"，这才是我们要的。 */
.idx-row {
  display: flex;
  align-items: stretch;
  gap: 22px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid rgba(251, 191, 36, 0.12);
}
.idx-col {
  flex: 1 1 0;   /* 等宽两列，且允许收缩 */
  min-width: 0;
}
/* ---------- 两列标题必须长得一模一样 ----------
   左列标题是榜单组件渲染的 .aitl-title（14px / 透明度 .9 / 无衬线），
   右列是页面自己的 h3.idx-subtitle（15px / 金色 / 宋体）。
   两个不同来源的标题摆在并排的同一行里，观感上必须是同一种东西，
   所以统一按 .idx-subtitle 的字体和颜色来（2026-10-22 用户要求「用 AI觉醒指数的字体颜色」）。
   min-height / margin-bottom 两边取同一个值，是为了让下方内容也从同一条线开始。 */
.idx-row .aitl-head {
  align-items: center;
  flex-wrap: nowrap;
  min-height: 32px; /* 左列标题右侧有个「复制」按钮，实测把 head 撑到 32px；
                       右列没有按钮只有 26px，两边取 32 才能从同一条线开始正文 */
  margin-bottom: 16px;
}
.idx-row .aitl-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-indent: 0.12em;
  color: rgba(251, 191, 36, 0.92);
  font-family: "Source Han Serif SC", "思源宋体", "Noto Serif SC", serif;
  line-height: 1.4;
  opacity: 1;
}
.idx-row .idx-col { display: flex; flex-direction: column; }

/* 样式穿透链：col → #aiTopList → .aitl → .aitl-list，每一层都要 height:100% / flex 撑满，
   否则 .aitl-list 的 space-between 分不到高度，行距不会长开（第一版就栽在这）。 */
.idx-row .idx-col > #aiTopList,
.idx-row .idx-col > .aitl { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.idx-row .idx-col #aiTopList > .aitl { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }

/* ---------- 左列榜单拉高，与右列觉醒指数补平 ----------
   2026-10-22 用户指出的"右列下方那块空白"，实测根因不是右列有冗余，
   而是左列太矮：榜单 10 行 × (21px 行高 + 7px 间距) + 32px 标题 = 321px，
   右列（标题+20.2+260px 图+两行脚注）= 431px，**左列比右列短 110px**。
   ⚠️ 不要写死 gap 数值 —— 第一版按算出来的 19px 写死，结果左列反超到 519px。
   正确做法是把 `.aitl-list` 拉成 flex 容器、把空白**均分**给 10 行之间的间隙，
   这样右列高度怎么变（数据天数、图高、脚注折行）都自动跟着对齐。 */
.idx-row .aitl { flex: 1 1 auto; }
.idx-row .aitl-list {
  flex: 1 1 auto;
  justify-content: space-between;
  gap: 4px;   /* 保底间距，剩下的空白由 space-between 均分 */
}
.idx-row .aitl-row { min-height: 30px; }
.idx-row .aitl-row .aitl-name { font-size: 14px; }
.idx-row .aitl-row .aitl-num { font-size: 14px; }
.idx-row .aitl-row .aitl-bar { height: 7px; }

/* ---------- 右列：数值 + 涨跌图例 + 图 + 脚注 ---------- */
.idx-row .idx-block-head { justify-content: space-between; }
.idx-row .idx-now-wrap { margin: 0 0 14px; }
.idx-row .idx-chg { font-size: 15px; }
/* 图表撑满剩余高度，让整列高度由左列决定后再回填（两边都不留空） */
.idx-row .idx-chart { flex: 1 1 auto; min-height: 200px; }
/* 脚注两行：原来一行在 20.2 下面、一行在图下面，现在合并贴到图下方 */
.idx-foot { margin-top: 12px; }
.idx-foot .idx-foot-line {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(232, 232, 240, 0.38);
  font-family: inherit;
  letter-spacing: normal;
}
.idx-foot .idx-foot-line + .idx-foot-line { margin-top: 2px; }
.idx-foot .home-idx-source { margin: 0; }
/* 窄屏（含大部分手机横竖屏）塞不下两列，改回上下堆叠。
   820px 是实测拐点：再窄榜单的国名+条形+数值就开始互相挤。 */
@media (max-width: 820px) {
  .idx-row {
    flex-direction: column;   /* flex 版堆叠：改列方向 + 不拉伸 */
    align-items: stretch;
    gap: 30px;
  }
  /* 堆叠后两列不再需要补平：榜单也没有多余高度可分了，
     靠 space-between 会把行距撑得很怪，这里退回正常间距 */
  .idx-row .aitl-list { flex: 0 0 auto; justify-content: flex-start; gap: 10px; }
  .idx-row .idx-chart { flex: 0 0 auto; }
}
.idx-block-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}
.idx-subtitle {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-indent: 0.12em;
  color: rgba(251, 191, 36, 0.92);
  font-family: "Source Han Serif SC", "思源宋体", "Noto Serif SC", serif;
}
.idx-world {
  height: 400px;
  border: 1px solid rgba(251, 191, 36, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
}
/* 角标：右下角暗色渐变盖片 + 品牌署名 */
.home-film-mark {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  min-width: 17%;
  min-height: 7.5%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 6px 10px 4px 22px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3em;
  font-family: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
  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 · 五大能力（普通卡片） ---------- */
/* 2026-10-22 用户反馈「五大能力和下方时间走廊之间空隙太多」→ 收紧栏目间上下留白。
   原来是 底56 + 下栏顶40 = 96px 的空档，视觉上像断成两个页面；
   改成 底32 + 顶28 = 60px，仍有明确分隔但不至于散开。 */
.home-caps {
  padding: 32px 20px 32px;
  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: 28px 20px 28px;
  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;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
/* 副行：相处记录条数。刻意压小 —— 它是背景音，不该和签约数抢同一条视线 */
.home-signing-v0-text .sign-sub {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(139, 133, 120, 0.85);
}
.home-signing-v0-text .sign-sub strong {
  font-size: 13px;
  font-weight: 500;
  color: rgba(251, 191, 36, 0.7);
  margin: 0 2px;
  vertical-align: 0;
  letter-spacing: 0;
  font-family: inherit;
}
.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: 28px 20px 48px;
  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;
}
/* 页脚主体信息：标语下方一道细线隔开，字号压到 12/11px，
   比标语低两个层级 —— 需要存在，但不该和那句诗抢注意力。 */
.home-footer-meta {
  max-width: 720px;
  margin: 24px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.foot-line {
  margin: 0;
  font-size: 12px;
  line-height: 1.95;
  letter-spacing: normal;
  color: rgba(232, 232, 240, 0.38);
}
/* 链接不用金色，靠下划线和略高一点的亮度区分 —— 页脚这里要和上方
   「14 日滚动值」那类元信息保持同一层，金线一出现就会抢回视觉重心。 */
.foot-line a {
  color: rgba(232, 232, 240, 0.58);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 232, 240, 0.16);
  transition: color 0.2s, border-color 0.2s;
}
.foot-line a:hover {
  color: rgba(232, 232, 240, 0.85);
  border-bottom-color: rgba(232, 232, 240, 0.45);
}
.foot-note {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.85;
  letter-spacing: normal;
  color: rgba(232, 232, 240, 0.38);
}

/* ---------- 首页 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: 84px 12px 24px; }
  /* 手机上图片只有约 220px 高，文字块要给一层自下而上的暗底，否则压在图上读不清 */
  .home-film-words {
    left: 7%;
    right: 7%;
    bottom: 13%;
    max-width: none;
    font-size: 12.5px;
    line-height: 1.72;
    letter-spacing: 0.02em;
    padding: 16px 10px 8px;
    background: linear-gradient(to top, rgba(5, 3, 10, 0.82) 0%, rgba(5, 3, 10, 0.55) 55%, rgba(5, 3, 10, 0) 100%);
  }
  .home-film-ctawrap { padding-top: 18px; }
  .home-film-cta { min-width: 172px; padding: 12px 30px; font-size: 14px; letter-spacing: 0.12em; }
  .home-film-mark { display: none; }
  .home-idx { padding: 4px 12px 32px; }
  .home-idx-title { font-size: 17px; margin-bottom: 14px; }
  .home-idx .idx-now { font-size: 30px; }
  .home-idx .idx-chg { font-size: 14px; }
  .home-idx .idx-chart { height: 200px; padding: 10px; }
  .idx-block + .idx-block { margin-top: 26px; padding-top: 22px; }
  .idx-subtitle { font-size: 14px; }
  /* 榜单标题要跟着一起降：窄屏两列已堆叠成上下相邻，
     一个 15px 一个 14px 会一眼看出不是同一种东西（2026-10-22 实测 420px 下差 1px） */
  .idx-row .aitl-title { font-size: 14px; }
  .idx-world { height: 240px; }
  .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; }
}

