/* ========== happy快讯 全局样式 v2 ========== */
:root {
  --radius: 20px;
  --radius-sm: 12px;
  --maxw: 1120px;
  --glass-bg: rgba(255, 255, 255, 0.74);
  --glass-border: rgba(255, 255, 255, 0.55);
  --text: #22243a;
  --text-soft: #5b5f7a;
  --shadow: 0 18px 50px rgba(30, 30, 80, 0.14);
  --overlay: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.40) 55%, rgba(0,0,0,0.72) 100%);
}

/* ===== 六个自然时段主题 ===== */
/* 清晨 4-6 */
body.theme-dawn {
  --c1: #f6b17e; --c2: #f7a1c4; --c3: #8ea7e9;
  --grad: linear-gradient(135deg, #f6b17e 0%, #f7a1c4 50%, #8ea7e9 100%);
  --accent: #e0715a;
  --hero-img: url("../images/hero-morning.jpg");
  --overlay: linear-gradient(180deg, rgba(20,25,60,0.25) 0%, rgba(90,60,110,0.35) 60%, rgba(40,30,70,0.62) 100%);
}
/* 上午 6-11 */
body.theme-morning {
  --c1: #ff9a56; --c2: #ff6a88; --c3: #ffb86b;
  --grad: linear-gradient(135deg, #ff9a56 0%, #ff6a88 55%, #a879ff 100%);
  --accent: #ff5e62;
  --hero-img: url("../images/hero-morning.jpg");
  --overlay: linear-gradient(180deg, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0.34) 55%, rgba(0,0,0,0.62) 100%);
}
/* 正午 11-13 */
body.theme-noon {
  --c1: #38bdf8; --c2: #6366f1; --c3: #22d3ee;
  --grad: linear-gradient(135deg, #38bdf8 0%, #6366f1 60%, #22d3ee 100%);
  --accent: #2f7de1;
  --hero-img: url("../images/hero-noon.jpg");
  --overlay: linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.30) 55%, rgba(0,0,0,0.58) 100%);
}
/* 下午 13-17 */
body.theme-afternoon {
  --c1: #60a5fa; --c2: #818cf8; --c3: #4ade80;
  --grad: linear-gradient(135deg, #60a5fa 0%, #818cf8 55%, #4ade80 100%);
  --accent: #4f6df5;
  --hero-img: url("../images/hero-noon.jpg");
  --overlay: linear-gradient(180deg, rgba(0,0,0,0.14) 0%, rgba(0,0,0,0.34) 55%, rgba(0,0,0,0.60) 100%);
}
/* 傍晚 17-19 */
body.theme-dusk {
  --c1: #f97316; --c2: #ec4899; --c3: #a855f7;
  --grad: linear-gradient(135deg, #f97316 0%, #ec4899 55%, #a855f7 100%);
  --accent: #e25b8f;
  --hero-img: url("../images/hero-night.jpg");
  --overlay: linear-gradient(180deg, rgba(20,10,50,0.20) 0%, rgba(80,30,90,0.40) 55%, rgba(30,20,70,0.68) 100%);
}
/* 夜晚 19-4 */
body.theme-night {
  --c1: #7c5cfc; --c2: #c084fc; --c3: #4f46e5;
  --grad: linear-gradient(135deg, #312e81 0%, #7c3aed 55%, #1e3a8a 100%);
  --accent: #8b5cf6;
  --hero-img: url("../images/hero-night.jpg");
  --overlay: linear-gradient(180deg, rgba(5,5,30,0.25) 0%, rgba(30,20,70,0.45) 55%, rgba(10,8,40,0.75) 100%);
}

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

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fdf6f3 0%, #f4f1ff 100%);
  min-height: 100vh;
  line-height: 1.7;
  overflow-x: hidden;
  transition: background 1.2s ease;
}
body.theme-night, body.theme-dusk {
  background: linear-gradient(180deg, #171530 0%, #1e1b3a 100%);
}
body.theme-night .glass, body.theme-dusk .glass { --glass-bg: rgba(255,255,255,0.08); --glass-border: rgba(255,255,255,0.14); --text: #eef0ff; --text-soft: #c4c7e6; }
body.theme-night .chip, body.theme-night .info-item, body.theme-dusk .chip, body.theme-dusk .info-item { color: #eef0ff; }

.bg-hero {
  position: fixed; inset: 0; z-index: -2;
  background-image: var(--hero-img);
  background-size: cover; background-position: center;
  transition: background-image 1.6s ease;
}
.bg-hero::after {
  content: ""; position: absolute; inset: 0;
  background: var(--overlay);
  transition: background 1.6s ease;
}
.bg-blob { position: fixed; z-index: -1; border-radius: 50%; filter: blur(90px); opacity: 0.5; pointer-events: none; }
.blob-1 { width: 420px; height: 420px; top: -120px; right: -100px; background: var(--c1); }
.blob-2 { width: 360px; height: 360px; bottom: -120px; left: -80px; background: var(--c2); }

.glass {
  background: var(--glass-bg, rgba(255,255,255,0.72));
  border: 1px solid var(--glass-border, rgba(255,255,255,0.55));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

/* ===== 顶栏 ===== */
.topbar { max-width: var(--maxw); margin: 0 auto; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 46px; height: 46px; border-radius: 14px; box-shadow: 0 8px 20px rgba(0,0,0,0.18); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-size: 24px; font-weight: 900; color: #fff; letter-spacing: 0.5px; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.brand-name span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-slogan { font-size: 12px; color: rgba(255,255,255,0.85); letter-spacing: 2px; }
.topbar-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; font-size: 13px; color: #fff; font-weight: 500; box-shadow: 0 6px 18px rgba(0,0,0,0.12); }
.weather-chip { cursor: pointer; border: 1px solid rgba(255,255,255,0.25); }
.weather-chip:hover { filter: brightness(1.1); }
.chip-edit { font-size: 12px; opacity: 0.75; }
.chip-emoji { font-size: 15px; }
.chip-sep { opacity: 0.7; }

/* ===== Hero 问候与语录 ===== */
.hero { max-width: var(--maxw); margin: 0 auto; padding: 40px 22px 60px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-eyebrow { display: inline-block; padding: 6px 18px; border-radius: 999px; background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.3); color: #fff; font-size: 14px; letter-spacing: 2px; margin-bottom: 16px; backdrop-filter: blur(6px); }
.hero-title { font-size: clamp(30px, 5vw, 48px); font-weight: 900; color: #fff; text-shadow: 0 4px 24px rgba(0,0,0,0.35); max-width: 800px; line-height: 1.35; }
.hero-sub { margin-top: 12px; color: rgba(255,255,255,0.92); font-size: 16px; text-shadow: 0 2px 12px rgba(0,0,0,0.3); }

.quote-card { position: relative; margin-top: 34px; max-width: 760px; width: 100%; padding: 30px 34px 24px; text-align: left; }
.quote-mark { position: absolute; top: 6px; left: 22px; font-size: 64px; font-weight: 900; line-height: 1; color: var(--accent); opacity: 0.85; font-family: Georgia, serif; }
.quote-text { font-size: clamp(16px, 2.4vw, 20px); font-weight: 600; color: var(--text); line-height: 1.9; padding-left: 34px; }
.quote-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-left: 34px; flex-wrap: wrap; }
.quote-person { display: flex; flex-direction: column; font-weight: 700; color: var(--text); }
.quote-source { font-size: 12px; font-weight: 400; color: var(--text-soft); }
.quote-link { color: var(--accent); font-weight: 600; text-decoration: none; font-size: 14px; }
.quote-link:hover { text-decoration: underline; }

/* ===== 基本信息条 ===== */
.info-strip { max-width: var(--maxw); margin: 0 auto 10px; padding: 0 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.info-item { display: flex; align-items: center; gap: 9px; padding: 13px 16px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.7); box-shadow: 0 6px 18px rgba(30,30,80,0.06); font-size: 14px; font-weight: 600; color: var(--text); }
body.theme-night .info-item, body.theme-dusk .info-item { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.14); }
.info-emoji { font-size: 18px; }

/* ===== 热点区块 ===== */
.topic-section { max-width: var(--maxw); margin: 36px auto 0; padding: 0 22px 40px; }
.section-head { text-align: center; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(24px, 4vw, 34px); font-weight: 900; }
.section-sub { color: var(--text-soft); margin-top: 6px; font-size: 14px; }

.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.topic-card { position: relative; display: flex; flex-direction: column; transition: transform 0.2s ease; justify-content: center; background: var(--grad); border: 1px solid rgba(255,255,255,0.55); }
.topic-card > * { position: relative; z-index: 1; }
.topic-card:hover { transform: translateY(-4px); }
.topic-card.is-top1 { grid-column: 1 / -1; }
.topic-media { position: relative; height: 260px; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: transparent; }
body.theme-night .topic-media, body.theme-dusk .topic-media { background: transparent; }
.topic-card.is-top1 .topic-media { height: 400px; }
.topic-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; opacity: 0; transition: opacity 0.6s ease; }
.topic-media img.loaded { opacity: 1; }
/* 竖版图用 contain 完整显示，不裁切 */
.topic-media.contain img { object-fit: contain; object-position: center center; }

/* 全部配图候选失败时的主题渐变占位 */
.topic-media.media-placeholder {
  background:
    radial-gradient(120% 90% at 15% 10%, rgba(255,255,255,0.16), transparent 55%),
    radial-gradient(110% 100% at 90% 90%, rgba(255,255,255,0.10), transparent 60%),
    linear-gradient(135deg, rgba(90,120,255,0.35), rgba(150,80,255,0.30) 45%, rgba(255,90,150,0.28));
}
body.theme-night .topic-media.media-placeholder,
body.theme-dusk .topic-media.media-placeholder {
  background:
    radial-gradient(120% 90% at 15% 10%, rgba(120,140,255,0.14), transparent 55%),
    radial-gradient(110% 100% at 90% 90%, rgba(255,120,180,0.10), transparent 60%),
    linear-gradient(135deg, #1b2350, #3a2a5e 50%, #552a4a);
}
.rank-badge { position: absolute; top: 14px; left: 14px; color: #fff; font-weight: 900; font-size: 22px; padding: 6px 14px; border-radius: 12px; box-shadow: 0 8px 20px rgba(255,77,79,0.4); background: linear-gradient(135deg, rgba(110,120,160,0.9), rgba(70,80,120,0.9)); }
.rank-badge.r1 { background: linear-gradient(135deg, #ff4d4f, #ff9a3d); }
.rank-badge.r2 { background: linear-gradient(135deg, #ff7a45, #ffc53d); }
.rank-badge.r3 { background: linear-gradient(135deg, #ffa940, #ffe58f); }
.rank-badge.r4 { background: linear-gradient(135deg, #36cfc9, #40a9ff); }
.rank-badge.r5 { background: linear-gradient(135deg, #597ef7, #9254de); }
.hot-badge { position: absolute; top: 14px; right: 14px; background: rgba(0,0,0,0.45); color: #fff; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; backdrop-filter: blur(4px); }

.topic-body { padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; flex: 0 0 auto; position: relative; }

.topic-title { font-size: clamp(18px, 2.2vw, 24px); font-weight: 900; line-height: 1.4; }
.stat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.stat-chip { font-size: 12px; padding: 5px 11px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 700; opacity: 0.95; }
.topic-intro { font-size: 14px; color: var(--text-soft); }

.fun-list { display: flex; flex-direction: column; gap: 10px; }
.fun-item { display: flex; gap: 9px; font-size: 13.5px; line-height: 1.65; color: var(--text); }
.fun-item .fun-emoji { flex: 0 0 auto; font-size: 16px; }
.fun-item .fun-label { font-weight: 800; margin-right: 2px; }
.fun-item .fun-body { color: var(--text-soft); }
.fun-tag { font-size: 11px; color: var(--text-soft); opacity: 0.75; }

.topic-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { border: none; cursor: pointer; font-size: 14px; font-weight: 700; padding: 12px 20px; border-radius: 14px; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(120, 60, 220, 0.3); }
.btn-primary:hover { box-shadow: 0 14px 30px rgba(120, 60, 220, 0.42); }
.btn-ghost { background: rgba(255,255,255,0.6); color: var(--text); border: 1px solid rgba(0,0,0,0.1); }
.btn-ghost:hover { background: rgba(255,255,255,0.85); }

.block-title { margin: 30px 0 16px; font-size: 20px; font-weight: 800; }
.top5 { margin-top: 30px; padding: 24px 28px; }
.top5-list { list-style: none; counter-reset: top5; }
.top5-list li { counter-increment: top5; display: flex; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px dashed rgba(0,0,0,0.1); font-size: 14.5px; }
.top5-list li:last-child { border-bottom: none; }
.top5-list li::before { content: counter(top5); flex: 0 0 26px; text-align: center; font-weight: 900; font-size: 14px; background: var(--grad); color: #fff; border-radius: 8px; padding: 2px 0; }
.top5-list li:nth-child(1)::before { background: linear-gradient(135deg,#ff4d4f,#ff9a3d); }
.top5-list li:nth-child(2)::before { background: linear-gradient(135deg,#ff7a45,#ffb64d); }
.top5-list li:nth-child(3)::before { background: linear-gradient(135deg,#ffa940,#ffd666); }
.top5-title { font-weight: 600; color: var(--text); text-decoration: none; }
.top5-title:hover { text-decoration: underline; }
.top5-hot { margin-left: auto; font-size: 12px; color: var(--text-soft); white-space: nowrap; }

.data-note { margin-top: 20px; text-align: center; font-size: 12px; color: var(--text-soft); opacity: 0.85; }

/* ===== 关于 & 页脚 ===== */
.about-section { max-width: var(--maxw); margin: 0 auto 40px; padding: 34px 38px; text-align: center; }
.about-section h3 { font-size: 22px; font-weight: 800; margin-bottom: 16px; letter-spacing: 4px; }
.about-section p { font-size: 15.5px; color: var(--text-soft); line-height: 2.2; }
.about-by { font-size: 13px; color: var(--accent); font-weight: 700; letter-spacing: 1px; }

.footer { margin-top: 20px; }
.footer-art { width: 100%; height: 200px; object-fit: cover; display: block; }
.footer-note { background: #14122b; color: rgba(255,255,255,0.75); text-align: center; padding: 26px 20px 34px; font-size: 12.5px; line-height: 2.1; }

/* ===== 音乐按钮 ===== */
.music-btn {
  position: fixed; right: 22px; bottom: 24px; z-index: 80;
  width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--grad); color: #fff; font-size: 24px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease;
}
.music-btn:hover { transform: scale(1.08); }
.music-btn.playing .music-icon { animation: spin 6s linear infinite; }
.music-btn .music-icon { font-style: normal; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.music-tip {
  position: absolute; right: 68px; top: 50%; transform: translateY(-50%);
  background: rgba(20,18,43,0.92); color: #fff; font-size: 12.5px;
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.music-btn:hover .music-tip, .music-btn.hint .music-tip { opacity: 1; }
.music-btn.hint { animation: pulse 1.6s ease infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,140,100,0.6);} 50% { box-shadow: 0 0 0 14px rgba(255,140,100,0);} }

/* ===== 城市弹窗 ===== */
.dialog-mask[hidden] { display: none; }
.dialog-mask { position: fixed; inset: 0; z-index: 90; background: rgba(10,8,30,0.55); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.dialog { position: relative; width: 100%; max-width: 380px; padding: 28px 26px 22px; }
.dialog h4 { margin-bottom: 14px; font-size: 18px; }
.dialog input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(0,0,0,0.15); font-size: 15px; outline: none; }
.dialog input:focus { border-color: var(--accent); }
.dialog-actions { display: flex; gap: 10px; margin-top: 14px; }
.dialog-actions .btn { flex: 1; }
.dialog-close { position: absolute; top: 12px; right: 14px; border: none; background: none; font-size: 16px; cursor: pointer; color: var(--text-soft); }

/* ===== Toast ===== */
.toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%) translateY(20px); background: rgba(20,18,43,0.92); color: #fff; padding: 12px 22px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: all 0.25s ease; z-index: 99; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== 动画 ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.hero-inner, .topic-card, .top5, .about-section, .info-strip { animation: fadeUp 0.6s ease both; }
.topic-card:nth-child(1) { animation-delay: 0.05s; }
.topic-card:nth-child(2) { animation-delay: 0.12s; }
.topic-card:nth-child(3) { animation-delay: 0.19s; }

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .topic-grid { grid-template-columns: 1fr; }
  .topic-card.is-top1 { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .topbar-meta { width: 100%; justify-content: flex-start; }
  .quote-card { padding: 24px 20px 20px; }
  .quote-text, .quote-meta { padding-left: 0; }
  .quote-mark { left: 16px; }
  .music-btn { width: 52px; height: 52px; font-size: 21px; right: 16px; bottom: 16px; }
}
/* ===== 历史上的今天 ===== */
.history-section { max-width: var(--maxw); margin: 26px auto 0; padding: 26px 30px; }
.history-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.history-head h3 { font-size: 20px; font-weight: 800; }
.history-date { font-size: 13px; color: var(--text-soft); font-weight: 600; }
.history-grid { display: flex; flex-direction: column; gap: 10px; }
.history-item { display: flex; gap: 10px; font-size: 14px; line-height: 1.7; color: var(--text); }
.history-item .history-emoji { flex: 0 0 auto; font-size: 16px; }
.history-item b { color: var(--accent); font-weight: 800; }
.history-loading { color: var(--text-soft); font-size: 14px; }
.history-note { margin-top: 14px; font-size: 12px; color: var(--text-soft); opacity: 0.8; }
.info-lunar { background: linear-gradient(135deg, rgba(255,214,150,0.55), rgba(255,170,180,0.5)); }
body.theme-night .info-lunar, body.theme-dusk .info-lunar { background: linear-gradient(135deg, rgba(124,92,252,0.28), rgba(192,132,252,0.22)); }

/* ===== B站真实高赞评论 ===== */
.fun-comments { display: flex; flex-direction: column; gap: 8px; }
.comment-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 12px; background: rgba(127,127,160,0.10); }
.comment-avatar { width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto; object-fit: cover; }
.comment-avatar.placeholder { display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.comment-main { flex: 1; min-width: 0; }
.comment-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.comment-name { font-size: 12px; font-weight: 700; color: var(--text-soft); }
.comment-like { font-size: 11.5px; color: #ff7a45; font-weight: 700; white-space: nowrap; }
.comment-msg { font-size: 13.5px; color: var(--text); line-height: 1.6; margin-top: 2px; word-break: break-word; }

/* ===== 微博帖子块（热搜卡片内嵌） ===== */
.weibo-post {
  border-left: 3px solid var(--accent);
  padding: 8px 12px;
  background: rgba(127,127,160,0.09);
  border-radius: 0 12px 12px 0;
}
.post-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.post-author { font-size: 12px; font-weight: 700; color: #fff; background: rgba(15,15,40,0.4); padding: 2px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.4); }
.post-metrics { font-size: 11.5px; color: var(--text-soft); white-space: nowrap; }
.post-text { font-size: 13.5px; color: var(--text); line-height: 1.65; word-break: break-word; }

/* 无配图时的渐变封面：随主题色 */
.topic-media-plain {
  height: 200px;
  background: transparent;
}

/* ===== 页尾真实风景图（必应壁纸轮换） ===== */
.footer-wallpaper {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  background: #14122b;
}
.wallpaper-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.wallpaper-layer.active { opacity: 1; }
.wallpaper-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 46px 22px 14px;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.58));
  color: #fff;
  font-size: 13px;
  text-align: center;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  z-index: 2;
  pointer-events: none;
}
@media (max-width: 760px) {
  .footer-wallpaper { height: 220px; }
}

/* ===== 拾字成景 · 名言花体页 ===== */
body.quote-page { min-height: 100vh; }
.quote-stage {
  position: fixed; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
.quote-stage::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,8,30,0.35) 0%, rgba(10,8,30,0.45) 45%, rgba(5,4,18,0.78) 100%);
}
.quote-page-main { position: relative; z-index: 1; flex: 1; max-width: 860px; width: 100%; margin: 0 auto; padding: 56px 24px 60px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.quote-back { align-self: flex-start; color: rgba(255,255,255,0.95); text-decoration: none; font-size: 14px; font-weight: 600; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.35); padding: 8px 18px; border-radius: 999px; backdrop-filter: blur(8px); transition: all 0.2s ease; }
.quote-back:hover { background: rgba(255,255,255,0.28); }
.quote-stage-card { margin-top: 40px; padding: 52px 46px 40px; border-radius: 24px; background: rgba(12,10,32,0.32); border: 1px solid rgba(255,255,255,0.22); backdrop-filter: blur(14px); box-shadow: 0 30px 80px rgba(0,0,0,0.4); width: 100%; }
.quote-mark { font-family: "STXingkai", "华文行楷", Georgia, serif; font-size: 108px; line-height: 0.5; color: rgba(255,214,150,0.9); text-shadow: 0 4px 34px rgba(255,180,80,0.45); filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4)); }
.quote-full-text {
  font-family: "STXingkai", "华文行楷", "STKaiti", "KaiTi", "楷体", "Noto Serif SC", serif;
  font-size: clamp(22px, 3.6vw, 30px);
  font-weight: 400;
  line-height: 2.15;
  letter-spacing: 2px;
  margin-top: 26px;
  background: linear-gradient(180deg, #fff8e8 0%, #ffe7bd 40%, #f8c98e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5)) drop-shadow(0 0 24px rgba(255,180,90,0.35));
  max-height: 58vh;
  overflow-y: auto;
  padding-right: 8px;
}
.quote-full-text::-webkit-scrollbar { width: 6px; }
.quote-full-text::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 3px; }
.quote-full-meta { display: flex; flex-direction: column; gap: 8px; margin-top: 38px; }
.quote-full-person { font-family: "STXingkai", "华文行楷", "STKaiti", "KaiTi", "楷体", serif; font-size: 18px; font-weight: 400; color: #ffd9a0; letter-spacing: 5px; filter: drop-shadow(0 2px 10px rgba(0,0,0,0.5)); }
.quote-full-source { font-size: 13px; color: rgba(255,255,255,0.75); letter-spacing: 3px; }
.quote-stage-cap { margin-top: 18px; font-size: 12.5px; color: rgba(255,255,255,0.62); letter-spacing: 1px; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.quote-original-link { display: inline-block; margin-top: 26px; color: #ffe3b8; font-size: 14px; text-decoration: none; border-bottom: 1px dashed rgba(255,227,184,0.6); padding-bottom: 3px; letter-spacing: 1px; }
.quote-original-link:hover { color: #fff; }
@media (max-width: 620px) {
  .quote-stage-card { padding: 36px 22px 30px; }
  .quote-full-text { font-size: 20px; letter-spacing: 1px; }
}

/* ===== AI 词条解读 ===== */
.ai-brief {
  border-left: 3px solid var(--accent);
  padding: 10px 14px;
  background: rgba(127,127,160,0.07);
  border-radius: 0 14px 14px 0;
}
.ai-brief-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 5px;
}
.ai-brief-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.75;
}

/* ===== 今日气温曲线 ===== */
.weather-chart-card { max-width: var(--maxw); margin: 24px auto 0; padding: 22px 26px 16px; }
.weather-chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.weather-chart-title { font-size: 17px; font-weight: 800; }
.weather-chart-city { font-size: 13px; color: var(--text-soft); font-weight: 600; }
.weather-chart-body { width: 100%; }
.weather-chart-body svg { width: 100%; height: auto; display: block; }
.weather-chart-note { margin-top: 6px; text-align: center; font-size: 11.5px; color: var(--text-soft); opacity: 0.8; }
@media (max-width: 620px) {
  .weather-chart-card { padding: 18px 14px 12px; }
}

/* ===== 天气预警 & 详情 ===== */
.weather-alert { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.weather-alert-item {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 12px;
  background: rgba(255,120,60,0.12);
  border: 1px solid rgba(255,120,60,0.35);
  color: #b34400; font-size: 13.5px; font-weight: 600;
}
body.theme-night .weather-alert-item { color: #ffc9a3; }
.weather-alert-item .wa-emoji { font-size: 16px; }
.weather-detail-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.weather-detail-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 13px; border-radius: 12px;
  background: rgba(127,127,160,0.10);
  border: 1px solid rgba(127,127,160,0.18);
  font-size: 13px;
}
.weather-detail-chip .wd-emoji { font-size: 16px; }
.weather-detail-chip .wd-label { color: var(--text-soft); font-size: 12px; }
.weather-detail-chip .wd-text { font-weight: 700; color: var(--text); }

/* ===== 当前天气实况 ===== */
.weather-now { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.weather-now .wn-emoji { font-size: 26px; }
.weather-now .wn-temp { font-size: 22px; font-weight: 900; }
.weather-now .wn-item { font-size: 14px; color: var(--text-soft); font-weight: 600; }
.weather-now .wn-sep { color: var(--text-soft); opacity: 0.6; }

.fulltext-link { display: inline-block; margin-top: 4px; font-size: 12px; color: #fff; text-decoration: none; background: rgba(15,15,40,0.45); border: 1px solid rgba(255,255,255,0.5); padding: 4px 12px; border-radius: 999px; align-self: flex-start; backdrop-filter: blur(2px); }
.fulltext-link:hover { background: rgba(15,15,40,0.6); }

/* ===== 拾字成景 · 出处原文 ===== */
.quote-origin { margin-top: 24px; padding: 22px 26px; width: 100%; text-align: left; background: rgba(12,10,32,0.4); border: 1px solid rgba(255,255,255,0.2); }
.quote-origin-head { font-size: 15px; font-weight: 800; color: #ffd9a0; letter-spacing: 3px; margin-bottom: 12px; }
.quote-origin-text { font-size: 14px; line-height: 1.9; color: rgba(255,255,255,0.92); max-height: 320px; overflow-y: auto; word-break: break-word; }
.quote-origin-note { margin-top: 10px; font-size: 11.5px; color: rgba(255,255,255,0.5); letter-spacing: 1px; }
.quote-origin-text::-webkit-scrollbar { width: 6px; }
.quote-origin-text::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.25); border-radius: 3px; }

/* ===== 拾文成景 · 引言 & 原文 ===== */
.quote-epigraph { margin-top: 30px; display: flex; align-items: baseline; gap: 8px; max-width: 760px; text-align: left; color: rgba(255,255,255,0.9); }
.quote-epigraph-mark { font-family: "STXingkai","华文行楷",serif; font-size: 34px; color: #ffd9a0; }
.quote-epigraph-text { font-size: 15px; line-height: 1.7; text-shadow: 0 2px 8px rgba(0,0,0,0.6); }
.quote-epigraph-person { font-size: 13px; color: rgba(255,255,255,0.65); white-space: nowrap; }
.quote-origin-title { font-size: 14px; font-weight: 800; color: #ffd9a0; letter-spacing: 3px; text-align: center; margin-top: 6px; }
