/*
  ★ 生肖每日运势 · 样式表 v2.1
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  风格：占星宇宙风 · 神秘感
  卡片：干净极简，等插图填满
  背景：深空星场 + 占星符号 + 渐变光晕
*/

/* ════════════════════════════════════
   1. 字体 & 变量
   ════════════════════════════════════ */

:root {
  --font-serif: 'Noto Serif SC', 'Songti SC', Georgia, serif;
  --font-en: 'Cormorant Garamond', Georgia, serif;
  --zodiac-gold: #D4AF37;
  --zodiac-gold-light: #F0D060;
  --zodiac-text: #E8E4DC;
  --zodiac-text-dim: rgba(232, 228, 220, 0.45);
  --zodiac-bg: #05070d;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--zodiac-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

.page-wrapper {
  font-family: var(--font-serif);
  color: var(--zodiac-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 80px; /* 卡片与 footer 间距 */
}

/* 去掉标题背后的"道"字装饰 */
.page-header::before {
  content: none !important;
}

/* ════════════════════════════════════
   2. 宇宙大背景（神秘感核心）
   ════════════════════════════════════ */

.cosmos-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%,   rgba(30,50,90,0.55) 0%, transparent 65%),
    radial-gradient(ellipse 90% 60% at 80% 80%,    rgba(50,30,80,0.35) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 70%,    rgba(20,60,80,0.3) 0%, transparent 50%),
    linear-gradient(180deg, #06080f 0%, #0a0d1a 40%, #080a14 100%);
}

/* 占星环（十二宫位刻度线） */
.zodiac-wheel {
  position: absolute;
  width: min(92vw, 680px);
  height: min(92vw, 680px);
  left: 50%; top: 50%;
  transform: translate(-50%, -48%);
  border-radius: 50%;
  opacity: 0.06;
  animation: wheelSlow 120s linear infinite;
}
@keyframes wheelSlow {
  from { transform: translate(-50%,-48%) rotate(0deg); }
  to   { transform: translate(-50%,-48%) rotate(360deg); }
}

/* 外圈刻度 */
.wheel-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.5);
}
.wheel-ring-2 {
  position: absolute; inset: 6%;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.25);
}
.wheel-ring-3 {
  position: absolute; inset: 12%;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.12);
}

/* 内圈装饰 */
.wheel-deco {
  position: absolute; inset: 20%;
  border-radius: 50%;
  border: 1px dashed rgba(212,175,55,0.12);
}

/* 大星点装饰 */
.cosmos-star {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  animation: starTwinkle var(--d) ease-in-out infinite alternate;
}
@keyframes starTwinkle {
  0%   { opacity: var(--lo); transform: scale(var(--s1)); }
  100% { opacity: var(--hi); transform: scale(var(--s2)); }
}

/* 装饰性占星符号 */
.zodiac-symbol {
  position: absolute;
  font-family: var(--font-en);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: rgba(212,175,55,0.15);
  user-select: none;
}

/* 顶部光芒 */
.cosmos-glow-top {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 50%;
  background: radial-gradient(ellipse, rgba(30,60,120,0.4) 0%, transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

/* 底部光芒 */
.cosmos-glow-bottom {
  position: absolute;
  bottom: -10%;
  right: -5%;
  width: 50%;
  height: 40%;
  background: radial-gradient(ellipse, rgba(60,20,100,0.3) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

/* ════════════════════════════════════
   3. 星空粒子层
   ════════════════════════════════════ */

.starfield {
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none; overflow: hidden;
}
.star {
  position: absolute; border-radius: 50%;
  background: white;
  animation: twinkle var(--dur) ease-in-out infinite alternate;
}
@keyframes twinkle {
  0%   { opacity: var(--lo); }
  100% { opacity: var(--hi); }
}

/* ════════════════════════════════════
   4. 页面容器
   ════════════════════════════════════ */

.page-wrapper {
  position: relative; z-index: 2;
  max-width: 960px; margin: 0 auto;
  padding-top: 100px; /* 预留固定 header 高度 */
}

/* ════════════════════════════════════
   5. 顶部标题区
   ════════════════════════════════════ */

.page-header {
  text-align: center;
  padding-bottom: 36px;
  position: relative;
}
.page-header__title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.4em;
  background: linear-gradient(135deg, #FFD54F 0%, #FFF8E1 40%, #D4AF37 70%, #FFAB40 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 24px rgba(255,213,79,0.25));
  line-height: 1.3;
}

.header-date {
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  letter-spacing: 0.3em;
  color: rgba(212,175,55,0.7);
  margin-top: 14px;
  font-weight: 500;
}

/* ════════════════════════════════════
   6. 12 宫格 — 极简干净卡片
   ════════════════════════════════════ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 760px)  { .card-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; } }
@media (max-width: 480px)  { .card-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }
@media (max-width: 320px)  { .card-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; } }

/* ════════════════════════════════════
   7. 单张卡片 — 干净占位，等图填满
   ════════════════════════════════════ */

.zodiac-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3 / 4.0;

  /* 干净背景，不抢插图风头 */
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);

  padding: 0;

  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease,
    border-color 0.3s ease;
}
.zodiac-card:hover {
  transform: translateY(-5px) scale(1.025);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 24px rgba(212,175,55,0.08);
  border-color: rgba(212,175,55,0.18);
  background: rgba(255,255,255,0.04);
}
.zodiac-card:active {
  transform: scale(0.97);
  transition-duration: 0.1s;
}

/* 今日徽章 */
.zodiac-badge {
  position: absolute; top: 10px; left: 50%;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.5rem; letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #FFF8E1;
  background: linear-gradient(135deg, rgba(255,193,7,0.2), rgba(255,152,0,0.12));
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: 20px; padding: 3px 10px;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  animation: badgeGlow 2.5s ease-in-out infinite;
  z-index: 3;
}
@keyframes badgeGlow {
  0%,100% { box-shadow: 0 0 8px rgba(255,215,0,0.15); }
  50%     { box-shadow: 0 0 18px rgba(255,215,0,0.3); }
}

/* 插图占位区（等你的图） */
.card-image-area {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 0;
}

/* 真实插图（用户提供后） */
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* 占位块：深色玻璃态，等图填满后删 */
.card-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(2.8rem, 6vw, 4rem);
  color: rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.2);
}

/* 卡片底部信息层 */
.card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  background: linear-gradient(transparent 0%, rgba(0,0,0,0.35) 15%, rgba(0,0,0,0.85) 100%);
  padding: 36px 8px 12px;
  border-radius: 0 0 16px 16px;
  text-align: center;
  pointer-events: none;
}

.card-name {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: #fff;
  margin-bottom: 6px;
}
.card-meta {
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  font-size: 0.62rem;
  color: rgba(255,255,255,0.55);
}
.card-stars { color: var(--zodiac-gold); letter-spacing: 0; font-size: 0.6rem; }
.card-color-dot {
  width: 12px; height: 12px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
}
.card-score {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
}

/* 底部装饰线 */
.card-line {
  width: 24px; height: 1px;
  margin: 8px auto 0;
  background: rgba(212,175,55,0.25);
  border-radius: 1px;
}

/* ════════════════════════════════════
   8. 详情页样式
   ════════════════════════════════════ */

.detail-bg {
  position: fixed; inset: 0; z-index: 0;
  transition: background 1s ease;
}

.detail-page {
  min-height: 100vh;
  position: relative; z-index: 2;
}
.detail-content {
  position: relative; z-index: 1;
  max-width: 520px; margin: 0 auto;
  padding: 32px 20px 64px;
}

.detail-back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.35); font-size: 0.72rem;
  text-decoration: none; letter-spacing: 0.1em;
  transition: color 0.2s; margin-bottom: 24px;
}
.detail-back-link:hover { color: var(--zodiac-gold); }

.detail-topbar { text-align: center; margin-bottom: 28px; }
.detail-topbar__icon {
  font-size: 2rem; margin-bottom: 8px;
  filter: drop-shadow(0 0 12px var(--detail-accent, rgba(212,175,55,0.4)));
}
.detail-topbar__name {
  font-size: 1.7rem; font-weight: 700; letter-spacing: 0.4em;
  color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.detail-topbar__name-en {
  font-family: var(--font-en); font-size: 0.65rem;
  letter-spacing: 0.35em; text-transform: uppercase;
  opacity: 0.4; color: #fff;
}
.detail-topbar__date {
  font-size: 0.72rem; color: rgba(255,255,255,0.35);
  letter-spacing: 0.2em; margin-top: 6px;
}

.detail-score-ring {
  display: flex; flex-direction: column; align-items: center;
  margin-bottom: 28px;
}
.detail-score-label {
  font-family: var(--font-en); font-size: 0.58rem;
  letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--detail-accent, #D4AF37); opacity: 0.55; margin-bottom: 12px;
}
.detail-score-svg { width: 130px; height: 130px; }

.detail-dims {
  display: grid; gap: 14px; margin-bottom: 24px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px; padding: 18px 20px;
  backdrop-filter: blur(12px);
}
.dim-row {
  display: grid; grid-template-columns: 48px 1fr 36px;
  align-items: center; gap: 10px;
}
.dim-row__label { font-size: 0.72rem; color: rgba(255,255,255,0.45); letter-spacing: 0.1em; }
.dim-row__track {
  height: 5px; background: rgba(255,255,255,0.07);
  border-radius: 3px; overflow: hidden;
}
.dim-row__fill {
  height: 100%; border-radius: 3px; width: 0;
  transition: width 1.1s cubic-bezier(0.22,1,0.36,1);
}
.dim-row__val { font-size: 0.76rem; text-align: right; font-variant-numeric: tabular-nums; }

.detail-lucky-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px;
}
@media (max-width: 380px) { .detail-lucky-grid { grid-template-columns: 1fr; } }
.lucky-box {
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px; padding: 14px;
  backdrop-filter: blur(12px);
  display: flex; flex-direction: column; gap: 6px;
}
.lucky-box__lbl {
  font-family: var(--font-en); font-size: 0.55rem;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--detail-accent, #D4AF37); opacity: 0.5;
}
.lucky-box__val {
  font-size: 0.9rem; color: #fff;
  display: flex; align-items: center; gap: 8px;
}
.lucky-dot {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15); flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}

.detail-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px;
}
.action-col {
  background: rgba(0,0,0,0.22);
  border-radius: 12px; padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
}
.action-col__hdr {
  font-family: var(--font-en); font-size: 0.55rem;
  letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 8px;
}
.action-col--good .action-col__hdr { color: #69F0AE; }
.action-col--bad  .action-col__hdr { color: #EF5350; }
.act-tag {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 0.68rem; margin: 0 3px 5px 0;
}
.action-col--good .act-tag {
  background: rgba(105,240,174,0.1);
  border: 1px solid rgba(105,240,174,0.18);
  color: #81C784;
}
.action-col--bad .act-tag {
  background: rgba(239,83,80,0.1);
  border: 1px solid rgba(239,83,80,0.18);
  color: #E57373;
}

.detail-quote { text-align: center; margin-bottom: 28px; padding: 0 8px; }
.detail-quote__text {
  font-size: 0.95rem; font-style: italic; color: rgba(255,255,255,0.8);
  line-height: 2; padding: 22px 18px;
  border-left: 2px solid var(--detail-accent, #D4AF37);
  background: rgba(255,255,255,0.015);
  border-radius: 0 12px 12px 0;
  letter-spacing: 0.04em;
}

.detail-pair { text-align: center; margin-bottom: 32px; }
.detail-pair__lbl {
  font-family: var(--font-en); font-size: 0.55rem;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); margin-bottom: 8px;
}
.detail-pair__box {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 40px; padding: 10px 22px;
  color: #fff; font-size: 0.88rem;
  backdrop-filter: blur(10px);
}
.detail-pair__emoji { font-size: 1.4rem; }

.share-btn-wrap { text-align: center; padding: 0 20px 48px; }
.btn-share-action {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--detail-accent,#D4AF37), #FFAB40);
  color: #000; border: none; border-radius: 30px;
  padding: 13px 30px; font-size: 0.82rem;
  font-family: var(--font-serif); letter-spacing: 0.15em;
  cursor: pointer; font-weight: 600;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 20px rgba(212,175,55,0.2);
}
.btn-share-action:hover {
  opacity: 0.88; transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212,175,55,0.3);
}

/* ══════════════════════════════════════
   9. 详情页 v5 — 卡片+SEO文本
   ══════════════════════════════════════ */

body.detail-page-body { overflow-x: hidden; }

/* ─── 顶栏 ─── */
.detail-nav {
  position: relative; z-index: 5;
  padding: 16px 20px 10px;
  max-width: 720px; margin: 0 auto;
}
.detail-nav__back {
  font-size: 0.8rem; color: rgba(255,255,255,0.5);
  text-decoration: none; transition: color 0.2s;
  letter-spacing: 0.05em;
}
.detail-nav__back:hover { color: #fff; }

/* ─── 内容容器 ─── */
.detail-content-v5 {
  position: relative; z-index: 2;
  max-width: 720px; margin: 0 auto;
  padding: 0 20px 48px;
}

/* 日期徽章 */
.detail-date-badge {
  text-align: center; font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.15em; margin-bottom: 14px;
}

/* ─── 主卡片 ─── */
.detail-card-main {
  position: relative;
  border-radius: 20px; overflow: hidden;
  aspect-ratio: 3 / 4;
  margin-bottom: 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.detail-card-main__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.detail-card-main__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0) 30%,
    rgba(0,0,0,0.3) 60%,
    rgba(0,0,0,0.85) 85%,
    rgba(0,0,0,0.95) 100%
  );
}
.detail-card-main__info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 40px 20px 22px;
  text-align: center;
}
.detail-card-main__emoji {
  font-size: 2rem; display: block;
  margin-bottom: 4px;
}
.detail-card-main__name {
  font-size: 2.2rem; font-weight: 700; color: #fff;
  margin: 0 0 8px; font-family: var(--font-sc);
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}
.detail-card-main__score {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 40px;
  padding: 6px 18px;
}
.detail-card-main__score-num {
  font-size: 1.6rem; font-weight: 300; color: #fff;
}
.detail-card-main__stars {
  font-size: 0.85rem; color: #FFD54F;
  letter-spacing: 0.1em;
}

/* ─── 关键信息行 ─── */
.detail-info-row {
  display: flex; gap: 8px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 20px;
}
.info-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 30px; padding: 7px 14px;
  backdrop-filter: blur(10px);
}
.info-pill__dot { width: 8px; height: 8px; border-radius: 50%; }
.info-pill__lbl { font-size: 0.58rem; color: rgba(255,255,255,0.3); }
.info-pill__val { font-size: 0.78rem; color: #fff; font-weight: 500; }

/* ─── 宜忌 ─── */
.detail-yiji {
  display: flex; gap: 10px;
  margin-bottom: 22px;
}
.yiji-block {
  flex: 1;
  border-radius: 14px; padding: 12px 14px;
  background: rgba(0,0,0,0.18);
  backdrop-filter: blur(10px);
}
.yiji-block--good { border: 1px solid rgba(105,240,174,0.12); }
.yiji-block--bad  { border: 1px solid rgba(239,83,80,0.12); }
.yiji-block__hdr {
  font-size: 0.65rem; letter-spacing: 0.25em;
  text-transform: uppercase; margin-bottom: 8px; opacity: 0.5;
  font-weight: 600;
}
.yiji-block--good .yiji-block__hdr { color: #69F0AE; }
.yiji-block--bad .yiji-block__hdr  { color: #EF5350; }
.yiji-block__tags { display: flex; flex-wrap: wrap; gap: 5px; }
.y-tag {
  font-size: 0.72rem; padding: 4px 10px; border-radius: 16px;
}
.y-tag--good {
  background: rgba(105,240,174,0.1);
  border: 1px solid rgba(105,240,174,0.18);
  color: #81C784;
}
.y-tag--bad {
  background: rgba(239,83,80,0.08);
  border: 1px solid rgba(239,83,80,0.15);
  color: #E57373;
}

/* ─── 金句 ─── */
.detail-quote {
  margin: 0 0 26px; padding: 16px 20px;
  border-left: 2px solid rgba(212,175,55,0.35);
  background: rgba(255,255,255,0.015);
  border-radius: 0 12px 12px 0;
}
.detail-quote p {
  margin: 0;
  font-size: 0.88rem; color: rgba(255,255,255,0.75);
  line-height: 1.8; font-style: italic;
}

/* ─── 分割线 ─── */
.seo-divider {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.seo-divider__line {
  flex: 1; height: 1px;
  background: rgba(255,255,255,0.06);
}
.seo-divider__text {
  font-size: 0.6rem; letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  white-space: nowrap;
}

/* ─── SEO 内容区 ─── */
.seo-content { margin-bottom: 32px; }
.seo-content h2 {
  font-size: 1.1rem; color: #fff; font-weight: 600;
  margin: 0 0 12px; font-family: var(--font-sc);
}
.seo-content p {
  font-size: 0.85rem; color: rgba(255,255,255,0.6);
  line-height: 1.8; margin: 0;
}

/* ══════════════════════════════════════
   10. 详情页 v6 — 左右分栏布局
   ══════════════════════════════════════ */

/* ─── 左右容器 ─── */
.detail-layout {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 22px;
}

/* 移动端堆叠 */
@media (max-width: 560px) {
  .detail-layout {
    flex-direction: column;
    gap: 0;
  }
}

/* ─── 左侧：插图 ─── */
.detail-layout__left {
  flex: 0 0 58%;
  max-width: 460px;
}
@media (max-width: 600px) {
  .detail-layout__left {
    flex: none;
    max-width: 100%;
  }
}

.detail-card-left {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.detail-card-left__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* 右侧光晕 */
.detail-card-left__glow {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 50%,
    rgba(0,0,0,0.5) 100%
  );
  pointer-events: none;
}

/* ─── 右侧：信息 ─── */
.detail-layout__right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 0;
}

/* ─── 标题区 ─── */
.detail-header {
  margin-bottom: 22px;
}
.detail-header__name {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
  letter-spacing: 0.2em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.detail-header__score {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 40px;
  padding: 5px 16px;
}
.detail-header__score-num {
  font-size: 1.4rem;
  font-weight: 300;
  color: #fff;
}
.detail-header__stars {
  font-size: 0.8rem;
  color: #FFD54F;
  letter-spacing: 0.1em;
}

/* ─── 信息胶囊行（v6 修正版） ─── */
.detail-info-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  align-items: center;
  flex-wrap: nowrap;
}
.info-chip {
  display: inline-flex; align-items: center;
  gap: 5px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 40px;
  padding: 5px 12px;
  font-size: 0.72rem;
  color: #bbb;
  white-space: nowrap;
}
.info-chip .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #D4AF37;
  flex-shrink: 0;
}
.info-chip strong { color: #fff; margin-left: 2px; font-weight: 500; }

/* ═══ FAQ 模块 ═══ */
.faq-section {
  max-width: 780px;
  margin: 48px auto 0;
  padding: 0 24px;
}
.faq-section__header {
  text-align: center;
  margin-bottom: 32px;
}
.faq-section__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #D4AF37;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.faq-section__subtitle {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: 12px;
  overflow: hidden;
}
.faq-item__q {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.88);
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}
.faq-item__q:hover { color: #D4AF37; }
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::after {
  content: '＋';
  font-size: 1.1rem;
  color: #D4AF37;
  transition: transform 0.3s;
}
.faq-item[open] .faq-item__q::after { transform: rotate(45deg); }
.faq-item__a {
  padding: 0 20px 16px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

/* ═══ 博客导流模块 ═══ */
.blog-links-section {
  max-width: 780px;
  margin: 48px auto 64px;
  padding: 0 24px;
  display: none;
}
.blog-links-section__header {
  text-align: center;
  margin-bottom: 28px;
}
.blog-links-section__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #D4AF37;
  margin-bottom: 6px;
}
.blog-links-section__subtitle {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}
.blog-links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.blog-link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(212,175,55,0.12);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s ease;
}
.blog-link-card:hover {
  background: rgba(212,175,55,0.08);
  border-color: rgba(212,175,55,0.3);
  transform: translateX(4px);
}
.blog-link-card__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.blog-link-card__content {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.blog-link-card__title {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.82);
}
.blog-link-card__arrow {
  font-size: 1rem;
  color: #D4AF37;
  flex-shrink: 0;
}

/* ═══ 工具卡片轮换区 ═══ */
.tools-section {
  max-width: 780px;
  margin: 0 auto 80px;
  padding: 0 24px;
}
.tools-section__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.tools-section__label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #D4AF37;
  white-space: nowrap;
}
.tools-section__divider {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(212,175,55,0.25), transparent);
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.tool-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s ease;
}
.tool-card:hover {
  background: rgba(212,175,55,0.08);
  border-color: rgba(212,175,55,0.35);
  transform: translateY(-2px);
}
.tool-card__icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  line-height: 1;
}
.tool-card__info {
  flex: 1;
  min-width: 0;
}
.tool-card__name {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tool-card__desc {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tool-card__arrow {
  font-size: 0.9rem;
  color: rgba(212,175,55,0.6);
  flex-shrink: 0;
  transition: color 0.2s;
}
.tool-card:hover .tool-card__arrow { color: #D4AF37; }

@media (max-width: 600px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══ Site Header & Footer overrides for dark page ═══ */

/*
  main.min.js 强制给非首页 header 加 .scrolled（浅色背景）。
  本页是深色背景，需要覆盖为：初始透明+白字，真正滚动后才出现背景。
  通过 .zodiac-dark-page 限定作用域。
*/

/* 1. 覆盖 main.min.js 强制的 .scrolled → 恢复透明+白字 */
.zodiac-dark-page .header.scrolled {
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
.zodiac-dark-page .header.scrolled .nav-link,
.zodiac-dark-page .header.scrolled .nav-dropdown-trigger {
  color: var(--bg-primary) !important;
}
.zodiac-dark-page .header.scrolled .logo-en {
  color: rgba(245, 240, 230, 0.7) !important;
}
.zodiac-dark-page .header.scrolled .nav-link::after,
.zodiac-dark-page .header.scrolled .nav-dropdown-trigger::after {
  background: var(--bg-primary) !important;
}
.zodiac-dark-page .header.scrolled .nav-link:hover,
.zodiac-dark-page .header.scrolled .nav-link.active,
.zodiac-dark-page .header.scrolled .nav-dropdown:hover > .nav-dropdown-trigger {
  color: var(--accent-color) !important;
}
.zodiac-dark-page .header.scrolled .nav-link:hover::after,
.zodiac-dark-page .header.scrolled .nav-link.active::after,
.zodiac-dark-page .header.scrolled .nav-dropdown:hover > .nav-dropdown-trigger::after {
  background: var(--accent-color) !important;
}
.zodiac-dark-page .header.scrolled .mobile-menu-btn span {
  background: var(--bg-primary) !important;
}
.zodiac-dark-page .header.scrolled .nav-dropdown-arrow {
  border-top-color: var(--bg-primary) !important;
}

/* 2. 真正滚动后 (>50px) 才出现浅色背景+深色文字 */
.zodiac-dark-page .header.really-scrolled {
  background: rgba(245, 240, 230, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}
.zodiac-dark-page .header.really-scrolled .nav-link,
.zodiac-dark-page .header.really-scrolled .nav-dropdown-trigger {
  color: var(--text-primary) !important;
}
.zodiac-dark-page .header.really-scrolled .logo-en {
  color: var(--text-secondary) !important;
}
.zodiac-dark-page .header.really-scrolled .nav-link::after,
.zodiac-dark-page .header.really-scrolled .nav-dropdown-trigger::after {
  background: var(--accent-color) !important;
}
.zodiac-dark-page .header.really-scrolled .nav-link:hover,
.zodiac-dark-page .header.really-scrolled .nav-link.active,
.zodiac-dark-page .header.really-scrolled .nav-dropdown:hover > .nav-dropdown-trigger {
  color: var(--accent-color) !important;
}
.zodiac-dark-page .header.really-scrolled .nav-link:hover::after,
.zodiac-dark-page .header.really-scrolled .nav-link.active::after,
.zodiac-dark-page .header.really-scrolled .nav-dropdown:hover > .nav-dropdown-trigger::after {
  background: var(--accent-color) !important;
}
.zodiac-dark-page .header.really-scrolled .mobile-menu-btn span {
  background: var(--text-primary) !important;
}
.zodiac-dark-page .header.really-scrolled .nav-dropdown-arrow {
  border-top-color: var(--text-primary) !important;
}

/* Footer visibility on dark background */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
}
.footer .footer-title {
  color: #D4AF37 !important;
}
.footer a,
.footer p,
.footer span,
.footer .logo-en {
  color: rgba(232, 228, 220, 0.8) !important;
}
.footer-bottom {
  color: rgba(232, 228, 220, 0.5) !important;
}
