/* ============================================================
   每日财经早报 · 样式
   设计语言：Cyber Aurora —— 深空底 + 青紫品红幻彩渐变 + 霓虹玻璃拟态
   原则：幻彩只用于氛围与强调，正文保持高对比，长时间阅读不刺眼
   ============================================================ */

@property --ang {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

:root {
  /* 幻彩主色 */
  --cy: #00E5FF;   /* 青 */
  --bl: #4F7CFF;   /* 蓝 */
  --pu: #A855F7;   /* 紫 */
  --mg: #FF2E97;   /* 品红 */

  --grad: linear-gradient(115deg, #00E5FF 0%, #4F7CFF 34%, #A855F7 66%, #FF2E97 100%);
  --grad-soft: linear-gradient(115deg, rgba(0,229,255,.18) 0%, rgba(79,124,255,.18) 34%, rgba(168,85,247,.18) 66%, rgba(255,46,151,.18) 100%);

  /* 层次 */
  --bg: #05060E;
  --bg-2: #0A0E1C;
  --card: rgba(255, 255, 255, .045);
  --card-2: rgba(255, 255, 255, .07);
  --card-solid: #0C1120;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .055);

  /* 文字 */
  --text: #EAF0FF;
  --text-2: #A6B2D2;
  --text-3: #6E7A99;

  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 2px 12px rgba(0, 0, 0, .3);
  --glow-cy: 0 0 24px rgba(0, 229, 255, .32);
  --glow-pu: 0 0 28px rgba(168, 85, 247, .3);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --player-h: 78px;
}

* { box-sizing: border-box; }

/* 抽屉打开时锁住背景滚动 */
body.sheet-open { overflow: hidden; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC",
               "MiSans", "Noto Sans CJK SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--player-h) + var(--safe-b) + 24px);
  position: relative;
  overflow-x: hidden;
}

/* ---------- 背景层：光晕 + 网格 + 扫描线 ---------- */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* 网格 */
.bg-fx::before {
  content: "";
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 78%);
}

/* 扫描线（CRT 质感，极淡） */
.bg-fx::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg,
    rgba(255, 255, 255, .016) 0 1px, transparent 1px 3px);
  opacity: .55;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
  will-change: transform;
}

.blob-1 {
  width: 320px; height: 320px;
  top: -110px; left: -90px;
  background: radial-gradient(circle, rgba(0, 229, 255, .55), transparent 68%);
  animation: float1 18s ease-in-out infinite;
}

.blob-2 {
  width: 340px; height: 340px;
  top: 90px; right: -130px;
  background: radial-gradient(circle, rgba(168, 85, 247, .5), transparent 68%);
  animation: float2 22s ease-in-out infinite;
}

.blob-3 {
  width: 300px; height: 300px;
  top: 420px; left: -60px;
  background: radial-gradient(circle, rgba(255, 46, 151, .34), transparent 70%);
  animation: float1 26s ease-in-out infinite reverse;
}

.blob-4 {
  width: 280px; height: 280px;
  top: 700px; right: -80px;
  background: radial-gradient(circle, rgba(79, 124, 255, .38), transparent 70%);
  animation: float2 30s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(38px, 46px) scale(1.12); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-44px, 34px) scale(1.08); }
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 18px;
  position: relative;
  z-index: 1;
}

main.wrap, header.site-header { z-index: 1; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 6, 14, .72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}

/* 顶部一道幻彩细线 */
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cy), var(--pu), var(--mg), transparent);
  opacity: .55;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
}

.brand { display: flex; align-items: center; gap: 8px; }

.brand-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 10px rgba(0, 229, 255, .8), 0 0 20px rgba(168, 85, 247, .45);
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .55; transform: scale(.82); }
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .3px;
  background: linear-gradient(92deg, #FFFFFF 10%, #B9E9FF 45%, #D4B8FF 78%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tag {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: .5px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  white-space: nowrap;
}

@media (max-width: 360px) {
  .brand-tag { display: none; }
}

.btn-ghost {
  border: 1px solid rgba(0, 229, 255, .38);
  background: rgba(0, 229, 255, .07);
  color: #7FEBFF;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: all .18s ease;
}

.btn-ghost:active { background: rgba(0, 229, 255, .18); box-shadow: var(--glow-cy); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .022));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 20px;
  margin: 18px 0;
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .07);
}

/* 旋转幻彩描边 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--ang),
    transparent 0deg, var(--cy) 55deg, var(--bl) 110deg,
    var(--pu) 175deg, var(--mg) 225deg, transparent 300deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: spin 7s linear infinite;
  opacity: .9;
}

@keyframes spin { to { --ang: 360deg; } }

/* 内部柔光 */
.hero::after {
  content: "";
  position: absolute;
  top: -60%; right: -30%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(168, 85, 247, .22), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

.hero > * { position: relative; z-index: 1; }

.hero-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }

.date-badge {
  background: var(--grad-soft);
  color: #9FF0FF;
  border: 1px solid rgba(0, 229, 255, .3);
  font-size: 13px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.hero-sub { font-size: 13px; color: var(--text-3); }

.hero-title {
  margin: 0 0 10px;
  font-size: 25px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -.2px;
  background: linear-gradient(96deg, #FFFFFF 0%, #CBF3FF 38%, #C9B4FF 72%, #FFB3D6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-summary {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.78;
}

/* 加载失败时：原因码 + 重新加载按钮 */
.err-code {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--text-3, #8b93ad);
  word-break: break-all;
}
.btn-retry {
  display: inline-block;
  margin-top: 14px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: linear-gradient(120deg, var(--c1, #7c5cff), var(--c2, #22d3ee));
  box-shadow: 0 6px 18px rgba(124, 92, 255, .28);
}
.btn-retry:active { transform: scale(.97); }
.btn-retry[disabled] { opacity: .6; cursor: default; }

/* ---------- 声波装饰 ---------- */
.wave {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
  margin: 16px 0 0;
  opacity: .5;
  transition: opacity .3s ease;
}

.wave span {
  flex: 0 0 3px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cy), var(--pu));
  height: 6px;
  animation: wv 1.4s ease-in-out infinite;
}

body.is-playing .wave { opacity: 1; }
body.is-playing .wave span { animation-duration: .78s; }

@keyframes wv {
  0%, 100% { height: 6px; }
  50%      { height: 22px; }
}

.hero-actions {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- 主按钮：渐变 + 扫光 ---------- */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 13px 28px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(168, 85, 247, .38), 0 0 0 1px rgba(255, 255, 255, .14) inset;
  transition: transform .12s ease, box-shadow .2s ease;
}

/* 扫光 */
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 40%;
  left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
  animation: sweep 3.4s ease-in-out infinite;
}

@keyframes sweep {
  0%        { left: -60%; }
  55%, 100% { left: 130%; }
}

.btn-primary:active { transform: scale(.97); }
.btn-primary[disabled] {
  background: rgba(255, 255, 255, .09);
  color: var(--text-3);
  box-shadow: none;
  cursor: not-allowed;
}
.btn-primary[disabled]::after { display: none; }
.btn-primary .ico { width: 20px; height: 20px; position: relative; z-index: 1; }
.btn-primary span { position: relative; z-index: 1; }

.hero-stat { font-size: 13px; color: var(--text-3); }
.dot-sep { margin: 0 6px; opacity: .5; }

/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 14px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tab {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--text-2);
  font-size: 14px;
  font-family: inherit;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.tab.is-active {
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(168, 85, 247, .35);
}

/* ---------- 二级栏目（早报内部） ---------- */
.subtabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0 12px;
  scrollbar-width: none;
}
.subtabs::-webkit-scrollbar { display: none; }

.subtab {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--text-3);
  font-size: 13px;
  font-family: inherit;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all .18s ease;
  position: relative;
}

.subtab.is-active {
  color: var(--text-1);
  font-weight: 600;
  background: rgba(255, 255, 255, .05);
}

.subtab.is-active::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 1px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

/* ---------- 扩展频道占位 / 列表 ---------- */
.channel-head { margin: 4px 0 18px; }
.channel-title {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text-1);
}
.channel-desc {
  font-size: 13px;
  color: var(--text-3);
  margin: 0;
  line-height: 1.6;
}

.empty-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 46px 20px 42px;
  border: 1px dashed var(--line);
  border-radius: var(--r-lg, 18px);
  background: rgba(255, 255, 255, .02);
}
.empty-ring {
  width: 54px; height: 54px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--grad);
  -webkit-mask: radial-gradient(circle, transparent 55%, #000 57%);
          mask: radial-gradient(circle, transparent 55%, #000 57%);
  opacity: .85;
  animation: ringPulse 2.6s ease-in-out infinite;
}
@keyframes ringPulse {
  0%, 100% { transform: scale(1);   opacity: .85; }
  50%      { transform: scale(1.12); opacity: 1; }
}
.empty-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
  margin: 0 0 6px;
}
.empty-sub {
  font-size: 12.5px;
  color: var(--text-3);
  margin: 0;
  line-height: 1.7;
}

@media (prefers-reduced-motion: reduce) {
  .empty-ring { animation: none; }
}

/* ---------- Section / Item ---------- */
.panel { padding-bottom: 8px; }

.section { margin-bottom: 20px; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 4px 12px;
}

.section-name {
  font-size: 17px;
  font-weight: 700;
  position: relative;
  padding-left: 12px;
}

/* 板块标题左侧霓虹条 */
.section-name::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 15px;
  border-radius: 2px;
  background: var(--grad);
  box-shadow: 0 0 8px rgba(0, 229, 255, .55);
}

.section-desc { font-size: 12px; color: var(--text-3); }

.list {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .28);
}

.item {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-2);
  transition: background .18s ease;
}

.item:last-child { border-bottom: none; }

.item.is-playing { background: rgba(0, 229, 255, .07); }

/* 播放中左侧霓虹条 */
.item.is-playing::before {
  content: "";
  position: absolute;
  left: 0; top: 10px; bottom: 10px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(0, 229, 255, .7);
}

.item-idx {
  flex: 0 0 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  color: var(--text-3);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
  transition: all .18s ease;
}

.item.is-playing .item-idx {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 14px rgba(0, 229, 255, .45);
}

.item-body { flex: 1 1 auto; min-width: 0; }

.item-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 5px;
  cursor: pointer;
  color: var(--text);
}

.item-meta {
  font-size: 12px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.item-text {
  margin: 10px 0 0;
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.85;
  display: none;
  white-space: pre-wrap;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.item.is-open .item-text { display: block; }

.item-open {
  border: none;
  background: none;
  color: #7FEBFF;
  font-size: 13px;
  font-family: inherit;
  padding: 6px 0 0;
  cursor: pointer;
}

.item-play {
  flex: 0 0 auto;
  align-self: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 255, .32);
  background: rgba(0, 229, 255, .08);
  color: #7FEBFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .18s ease;
}

.item-play svg { width: 20px; height: 20px; }

.item.is-playing .item-play {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 16px rgba(0, 229, 255, .5);
}

/* ---------- Archive ---------- */
.archive-list {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .28);
}

.archive-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line-2);
  cursor: pointer;
  transition: background .18s ease;
}

.archive-item:last-child { border-bottom: none; }
.archive-item:active { background: rgba(255, 255, 255, .04); }
.archive-date { font-size: 15px; font-weight: 600; }
.archive-sum { font-size: 13px; color: var(--text-3); margin-top: 3px; }
.archive-go { color: #7FEBFF; font-size: 13px; flex: 0 0 auto; }

/* ---------- Player ---------- */
.player {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 100;
  background: rgba(8, 10, 20, .82);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  border-top: 1px solid var(--line);
  padding-bottom: var(--safe-b);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, .5);
}

.player-inner {
  height: var(--player-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.player-info { flex: 1 1 auto; min-width: 0; }

.player-title {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-time {
  font-size: 12px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.player-ctrls { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }

.ctrl {
  width: 38px; height: 38px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s ease;
}

.ctrl svg { width: 22px; height: 22px; }
.ctrl:active { background: rgba(255, 255, 255, .08); }

.ctrl-main {
  width: 46px; height: 46px;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 16px rgba(168, 85, 247, .42);
  transition: transform .12s ease;
}

.ctrl-main:active { transform: scale(.93); }
.ctrl-main svg { width: 24px; height: 24px; }

.rate {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05);
  border-radius: 999px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-2);
  padding: 6px 10px;
  min-width: 50px;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}

.progress { height: 3px; background: rgba(255, 255, 255, .08); }

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--grad);
  box-shadow: 0 0 10px rgba(0, 229, 255, .7);
  transition: width .2s linear;
}

/* ---------- Footer ---------- */
.site-footer { padding: 24px 4px 32px; }

.disclaimer {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.75;
  margin: 0 0 8px;
}

.disclaimer strong { color: #FFB3D6; font-weight: 600; }

.copyright { font-size: 12px; color: var(--text-3); margin: 0; }

/* ---------- 页脚联系入口 ---------- */
.footer-contact {
  display: block;
  text-align: center;
  font-size: 13px;
  color: #7FEBFF;
  text-decoration: none;
  padding: 10px 0 0;
}

/* ---------- 悬浮联系按钮（低调版：半透明小圆图标，不抢视觉） ---------- */
.fab {
  position: fixed;
  right: 14px;
  bottom: calc(14px + var(--safe-b));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 50%;
  background: rgba(16, 20, 34, .72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(186, 222, 255, .8);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .34);
  opacity: .6;                      /* 默认半隐，点到/悬停才变亮 */
  transition: opacity .2s ease, transform .12s ease, bottom .2s ease;
}

.fab:hover, .fab:focus-visible { opacity: 1; }
.fab svg { width: 19px; height: 19px; }
.fab:active { transform: scale(.94); }
/* 需要显眼时（contact.json 的 fab_text_visible=true）JS 会加这个类，变回胶囊按钮 */
.fab-pill {
  width: auto;
  height: auto;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  opacity: 1;
  box-shadow: 0 8px 24px rgba(168, 85, 247, .42);
}
/* 播放器出现时上移，避免遮挡 */
body.has-player .fab { bottom: calc(var(--player-h) + var(--safe-b) + 14px); }

/* ---------- 遮罩与抽屉 ---------- */
.mask {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(2, 3, 8, .68);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .22s ease;
}

.mask.is-open { opacity: 1; }

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  max-width: 720px;
  margin: 0 auto;
  background: linear-gradient(180deg, #10152A 0%, #080A14 100%);
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 24px 24px 0 0;
  padding: 10px 22px calc(24px + var(--safe-b));
  box-shadow: 0 -10px 44px rgba(0, 0, 0, .6), 0 -1px 0 rgba(255, 255, 255, .06) inset;
  transform: translateY(102%);
  transition: transform .26s cubic-bezier(.32, .72, 0, 1);
  max-height: 86vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* 抽屉顶部霓虹线 */
.sheet::before {
  content: "";
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cy), var(--pu), var(--mg), transparent);
  opacity: .8;
}

.sheet.is-open { transform: translateY(0); }

.sheet-grip {
  width: 38px;
  height: 4px;
  border-radius: 2px;
  background: var(--grad);
  opacity: .6;
  margin: 0 auto 14px;
}

.sheet-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .05);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sheet-close svg { width: 18px; height: 18px; }
.sheet-close:active { background: rgba(255, 255, 255, .12); }

.sheet-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(96deg, #FFFFFF, #B9E9FF 45%, #D4B8FF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sheet-desc {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.75;
}

.sheet-services { margin-bottom: 18px; }

.svc {
  position: relative;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
}

.svc::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--grad);
  opacity: .8;
}

.svc-name { font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.svc-detail { font-size: 13px; color: var(--text-2); line-height: 1.65; }

.sheet-contacts { margin-bottom: 14px; }

.ctc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .035);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.ctc-label { font-size: 13px; color: var(--text-3); flex: 0 0 auto; }
.ctc-val { flex: 1 1 auto; font-size: 15px; font-weight: 600; word-break: break-all; }

.ctc-copy {
  flex: 0 0 auto;
  border: 1px solid rgba(0, 229, 255, .35);
  background: rgba(0, 229, 255, .1);
  color: #7FEBFF;
  font-size: 13px;
  font-family: inherit;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.ctc-copy:active { background: rgba(0, 229, 255, .22); }

/* 微信二维码 */
.sheet-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 0 18px;
}

.sheet-qr img {
  width: 168px;
  height: 168px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  object-fit: cover;
  background: #fff;
}

.sheet-qr-cap { font-size: 12px; color: var(--text-3); }

/* 一键动作按钮（打电话 / 发邮件） */
.sheet-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.act {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 229, 255, .4);
  background: rgba(0, 229, 255, .08);
  color: #7FEBFF;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
}

.act:active { background: rgba(0, 229, 255, .2); }

/* 留资表单 */
.lead-form {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 16px 14px;
  margin-bottom: 16px;
}

.lead-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.lead-row { display: flex; gap: 8px; }

/* 留言表单：手机号 / 称呼 / 留言 三行 */
.lead-fields { display: flex; flex-direction: column; gap: 9px; }

.lead-textarea {
  height: auto;
  min-height: 76px;
  padding: 11px 12px;
  line-height: 1.62;
  resize: vertical;
}

.lead-input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  font-size: 15px;
  font-family: inherit;
  background: rgba(0, 0, 0, .28);
  color: var(--text);
}

.lead-input::placeholder { color: var(--text-3); }
.lead-input:focus { outline: none; border-color: rgba(0, 229, 255, .55); box-shadow: 0 0 0 3px rgba(0, 229, 255, .12); }

.lead-submit {
  display: block;
  width: 100%;
  height: 44px;
  margin-top: 11px;
  padding: 0 18px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--grad);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(168, 85, 247, .32);
}

.lead-submit:active { transform: scale(.97); }
.lead-submit[disabled] { background: rgba(255, 255, 255, .1); color: var(--text-3); box-shadow: none; cursor: not-allowed; }

.lead-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.6;
  min-height: 16px;
}

/* 隐私说明：收集手机号必须给一句交代，既是合规也是提高留资率 */
.lead-privacy {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.7;
  opacity: .85;
}

.sheet-note {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.75;
  margin: 0;
}

/* ---------- 实时快讯 ---------- */
/* 快讯页「开始播报」兜底按钮：浏览器拦截自动播放时出现 */
.live-start {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin: 14px 0 4px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  background: linear-gradient(120deg, var(--c1, #7c5cff), var(--c2, #22d3ee));
  box-shadow: 0 8px 22px rgba(124, 92, 255, .3);
  animation: liveStartPulse 2.4s ease-in-out infinite;
}
.live-start svg { width: 20px; height: 20px; }
.live-start[hidden] { display: none; }
.live-start:active { transform: scale(.98); }
@keyframes liveStartPulse {
  0%, 100% { box-shadow: 0 8px 22px rgba(124, 92, 255, .3); }
  50%      { box-shadow: 0 8px 30px rgba(124, 92, 255, .55); }
}

.live-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.live-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mg);
  box-shadow: 0 0 10px rgba(255, 46, 151, .9);
  animation: pulse 1.8s ease-in-out infinite;
}

/* iOS 风格开关 */
.switch {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex: 0 0 auto;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}

.switch-track {
  position: relative;
  width: 44px; height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid var(--line);
  transition: background .22s ease, box-shadow .22s ease;
}

.switch-knob {
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform .22s cubic-bezier(.32, .72, 0, 1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}

.switch input:checked + .switch-track {
  background: var(--grad);
  border-color: transparent;
  box-shadow: 0 0 14px rgba(0, 229, 255, .4);
}

.switch input:checked + .switch-track .switch-knob {
  transform: translateX(18px);
}

.switch-label {
  font-size: 13px;
  color: var(--text-2);
}

.live-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color .2s ease;
}

.live-item.is-new {
  animation: liveIn .5s ease both;
  border-color: rgba(255, 46, 151, .4);
}

@keyframes liveIn {
  from { opacity: 0; transform: translateY(-8px); box-shadow: 0 0 20px rgba(255, 46, 151, .25); }
}

.live-body { flex: 1 1 auto; min-width: 0; }

.live-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.live-time {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  color: #9FF0FF;
  font-variant-numeric: tabular-nums;
}

.live-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.live-text {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--text-3);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

/* 正文太长时先折 4 行，点条目展开看全文 */
.live-item.has-more .live-text {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.live-item.has-more.open .live-text {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.live-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 11.5px;
}

.live-src {
  color: var(--text-3);
  opacity: .75;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.live-item.has-more .live-more {
  color: #7FEBFF;
  cursor: pointer;
  user-select: none;
}

.live-item.has-more { cursor: pointer; }

.live-play {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 255, .32);
  background: rgba(0, 229, 255, .08);
  color: #7FEBFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.live-play svg { width: 18px; height: 18px; }
.live-play:active { background: rgba(0, 229, 255, .22); }

.live-item.is-playing {
  border-color: rgba(0, 229, 255, .55);
  box-shadow: 0 0 18px rgba(0, 229, 255, .12);
}

.live-item.is-playing .live-play {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 14px rgba(0, 229, 255, .45);
}

/* ---------- 公众号引流卡片 ---------- */
.promo {
  position: relative;
  margin: 6px 0 18px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .02));
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .28);
}

/* 顶部一道幻彩线 */
.promo::before {
  content: "";
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cy), var(--pu), var(--mg), transparent);
  opacity: .7;
}

.promo-head { display: flex; align-items: center; gap: 14px; }

.promo-qr {
  flex: 0 0 auto;
  width: 64px; height: 64px;
  border-radius: 10px;
  background: #fff;
  object-fit: cover;
  border: 1px solid var(--line);
}

.promo-info { flex: 1 1 auto; min-width: 0; }

.promo-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 4px;
  background: linear-gradient(96deg, #FFFFFF, #B9E9FF 50%, #D4B8FF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.promo-desc {
  margin: 0 0 8px;
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.6;
}

.promo-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  word-break: break-all;
}

.promo-copy {
  margin-top: 8px;
  border: 1px solid rgba(0, 229, 255, .38);
  background: rgba(0, 229, 255, .1);
  color: #7FEBFF;
  font-size: 13px;
  font-family: inherit;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.promo-copy:active { background: rgba(0, 229, 255, .22); }

.promo-note {
  margin: 12px 0 0;
  font-size: 11.5px;
  color: var(--text-3);
  text-align: center;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--player-h) + var(--safe-b) + 24px);
  transform: translateX(-50%);
  background: rgba(16, 20, 38, .95);
  border: 1px solid rgba(0, 229, 255, .3);
  color: var(--text);
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  z-index: 200;
  max-width: 86vw;
  text-align: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .5), 0 0 18px rgba(0, 229, 255, .16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ---------- 状态 ---------- */
.empty, .skeleton {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  color: var(--text-3);
  font-size: 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.skeleton {
  position: relative;
  overflow: hidden;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .07) 50%, transparent 80%);
  animation: sweep 1.6s linear infinite;
}

/* ---------- 桌面端 ---------- */
@media (min-width: 760px) {
  body { font-size: 16.5px; }
  .hero { padding: 34px 28px; }
  .hero-title { font-size: 29px; }
  .item { padding: 18px 22px; }
  .item:hover { background: rgba(255, 255, 255, .045); }
  .item.is-playing:hover { background: rgba(0, 229, 255, .09); }
  .blob { opacity: .6; }
}

/* ---------- 无障碍：保留焦点样式 ---------- */
:focus-visible {
  outline: 2px solid var(--cy);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- 降低动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
