/* ===========================================================
   云东科技 · 酷科技主题 v1（2026-10-17 张总定：A 深色科技风 + C 动效）
   ── 用法：在 style.css 之后引入本文件即可；删掉引入行 = 一键回滚 ──
   ── 原则：只覆盖变量 + 补硬编码处，❌ 不动 HTML 结构 ──
   =========================================================== */

/* ---------- ① 变量覆盖：深色 + 霓虹 ---------- */
:root{
  --bg:#070b14;
  --bg-alt:#0b111e;
  --card:rgba(17,25,43,.72);
  --border:rgba(110,160,255,.16);

  --blue:#3b82f6;
  --blue-hover:#60a5fa;
  --blue-light:rgba(59,130,246,.15);
  --accent:#22d3ee;
  --accent-light:rgba(34,211,238,.14);

  --green:#34d399;   --green-light:rgba(52,211,153,.14);
  --red:#f87171;     --red-light:rgba(248,113,113,.14);
  --amber:#fbbf24;   --amber-light:rgba(251,191,36,.14);
  --purple:#a78bfa;  --purple-light:rgba(167,139,250,.14);
  --coral:#fb7185;   --coral-light:rgba(251,113,133,.14);
  --teal:#2dd4bf;    --teal-light:rgba(45,212,191,.14);

  --text:#e9effc;
  --text-secondary:#a2b2ce;
  --text-tertiary:#6d80a0;

  --slate-50:#0e1524;  --slate-100:#131c2e; --slate-200:#1b2740;
  --slate-300:#2a3a58; --slate-400:#5b7096; --slate-500:#8798b8;
  --slate-700:#c3cee4; --slate-800:#dde5f5; --slate-900:#eef3ff;

  --shadow-sm:0 1px 2px rgba(0,0,0,.5);
  --shadow:0 2px 18px rgba(0,0,0,.45);
  --shadow-md:0 10px 40px rgba(0,0,0,.55);
  --shadow-blue:0 6px 28px rgba(59,130,246,.35);
}

/* ---------- ② 背景：深空渐变 + 两团光晕 ---------- */
html{background:var(--bg)}
body{
  background:var(--bg);
  color:var(--text);
  position:relative;
}
body::after{
  content:'';position:fixed;inset:0;pointer-events:none;z-index:-2;
  background:
    radial-gradient(900px 520px at 12% -6%,  rgba(59,130,246,.20), transparent 62%),
    radial-gradient(760px 460px at 92% 4%,   rgba(34,211,238,.14), transparent 60%),
    radial-gradient(680px 520px at 50% 108%, rgba(124,58,237,.14), transparent 62%);
}
body::before{opacity:.035}   /* 保留原颗粒质感，加深一点 */

/* ---------- ③ 顶栏：毛玻璃 + 发光线 ---------- */
.topbar{
  background:rgba(7,11,20,.72);
  border-bottom:1px solid rgba(110,160,255,.14);
  box-shadow:0 1px 0 rgba(110,160,255,.06), 0 8px 30px rgba(0,0,0,.35);
}
.logo{color:var(--text)}
.topnav-link{
  color:var(--text-secondary);
  border-radius:9px;
  transition:color .18s, background .18s, box-shadow .18s;
}
.topnav-link:hover{color:#fff;background:rgba(59,130,246,.14)}
.topnav-link.active{
  color:#fff;
  background:linear-gradient(135deg,rgba(59,130,246,.30),rgba(34,211,238,.18));
  box-shadow:0 0 0 1px rgba(96,165,250,.35), 0 4px 18px rgba(59,130,246,.30);
}

/* ---------- ④ Hero：放大冲击 + 光晕 + 渐变字 ---------- */
.hero{
  background:transparent !important;
  border-bottom:1px solid rgba(110,160,255,.10);
  position:relative;
}
.hero::before{
  content:'';position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(620px 300px at 50% 0%, rgba(59,130,246,.22), transparent 70%);
}
.hero h1{
  background:linear-gradient(120deg,#ffffff 8%,#9ec5ff 46%,#5eead4 92%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
  text-shadow:0 0 46px rgba(59,130,246,.35);
  letter-spacing:-1.2px;
}

/* ---------- ⑤ 卡片：毛玻璃 + 发光边 + hover 上浮 ---------- */
.tool,.card,.prog-col,.sec .card{
  background:var(--card) !important;
  backdrop-filter:blur(14px) saturate(150%);
  -webkit-backdrop-filter:blur(14px) saturate(150%);
  border:1px solid rgba(110,160,255,.16) !important;
  box-shadow:0 2px 18px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.05);
  transition:transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .22s, border-color .22s;
}
a.tool:hover,.card:hover,.prog-col:hover{
  transform:translateY(-5px);
  border-color:rgba(96,165,250,.46) !important;
  box-shadow:0 16px 44px rgba(59,130,246,.28), inset 0 1px 0 rgba(255,255,255,.08);
}
.tool-h3,.tool h3{color:#fff;letter-spacing:-.2px}

/* 数字条：数字发光 */
.hero-stat b,[class*="stat"] b{
  background:linear-gradient(135deg,#7dd3fc,#a78bfa);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}

/* 徽章 / 小标签：改用霓虹色 */
.badge,.tag{backdrop-filter:blur(6px)}

/* 章节标题：左侧光条 */
.sec-title{color:#fff}
.sec-title::before{
  content:'';display:inline-block;width:4px;height:.9em;margin-right:10px;
  border-radius:3px;vertical-align:-.08em;
  background:linear-gradient(180deg,#3b82f6,#22d3ee);
  box-shadow:0 0 14px rgba(59,130,246,.7);
}
.sec-sub{color:var(--text-secondary)}

/* 页脚 */
.footer,footer{
  background:rgba(7,11,20,.6) !important;
  border-top:1px solid rgba(110,160,255,.12);
  color:var(--text-tertiary) !important;
}

/* “其他功能”小胶囊 */
.more-tools a{
  background:rgba(17,25,43,.7) !important;
  border:1px solid rgba(110,160,255,.20) !important;
  color:var(--text-secondary) !important;
  transition:all .18s;
}
.more-tools a:hover{
  border-color:rgba(96,165,250,.55) !important;
  color:#fff !important;
  box-shadow:0 4px 16px rgba(59,130,246,.28);
}

/* 鲜食柜实拍区：深色下的图框 */
[class*="ff-"] img{border-radius:10px;border:1px solid rgba(110,160,255,.18)}

/* ---------- ⑥ 动效（C）---------- */
@keyframes ydFadeUp{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@keyframes ydGlow{0%,100%{box-shadow:0 0 0 rgba(59,130,246,0)}50%{box-shadow:0 0 26px rgba(59,130,246,.34)}}

/* 进场动画：默认隐藏，由 JS 加上 .yd-in 后播放（❌ 无 JS 时内容照常显示） */
.yd-anim{opacity:0}
.yd-anim.yd-in{animation:ydFadeUp .58s cubic-bezier(.2,.7,.3,1) both}

/* 顶部标王轻微呼吸光 */
.hero-panel,.feature-panel{animation:ydGlow 4.5s ease-in-out infinite}

/* 尊重系统"减少动态"设置 */
@media (prefers-reduced-motion:reduce){
  .yd-anim,.yd-anim.yd-in{opacity:1;animation:none}
  .hero-panel,.feature-panel{animation:none}
  .tool,.card,.prog-col{transition:none}
}

/* ---------- ⑦ 修正 v1.1：对比度不足的三处 ---------- */
/* ① hero 主标题：以白为主，避免深色底上"发灰" */
.hero h1{
  background:linear-gradient(122deg,#ffffff 26%,#dbeaff 62%,#a8d8ff 100%) !important;
  -webkit-background-clip:text !important;background-clip:text !important;
  color:transparent !important;
  text-shadow:0 0 60px rgba(96,165,250,.45) !important;
  font-weight:800;
}
/* ② 数字卡：白底 → 深色玻璃卡 + 发光数字 */
.hero-stat{
  background:rgba(17,25,43,.70) !important;
  border:1px solid rgba(110,160,255,.22) !important;
  border-radius:14px !important;
  padding:14px 24px !important;
  backdrop-filter:blur(12px) saturate(150%);
  -webkit-backdrop-filter:blur(12px) saturate(150%);
  box-shadow:0 4px 22px rgba(0,0,0,.40), inset 0 1px 0 rgba(255,255,255,.06);
}
.hero-stat .hs-num{
  background:linear-gradient(135deg,#7dd3fc,#a78bfa) !important;
  -webkit-background-clip:text !important;background-clip:text !important;
  color:transparent !important;font-weight:800;
}
.hero-stat .hs-lbl{color:#a9bada !important}
/* ③ 副标题提亮 */
.hero-slogan{color:#d3e2f8 !important;font-weight:500}
.hero-sub{color:#93a7c8 !important}
.hero-badge{
  background:rgba(17,25,43,.75) !important;
  border:1px solid rgba(110,160,255,.30) !important;
  color:#cfe0f8 !important;
  box-shadow:0 0 22px rgba(59,130,246,.22);
}
/* ④ 兜底：hero 区任何白底块一并透明化 */
.hero .stat-card,.hero [class*="card"]{background:rgba(17,25,43,.70) !important;border-color:rgba(110,160,255,.20) !important}

/* ---------- ⑧ 下半部去白（2026-10-17 修：上深下浅不搭）---------- */
/* 4 个数字条 */
.stat-card{
  background:rgba(17,25,43,.72) !important;
  border:1px solid rgba(110,160,255,.20) !important;
  border-radius:14px !important;
  backdrop-filter:blur(12px) saturate(150%);
  -webkit-backdrop-filter:blur(12px) saturate(150%);
  box-shadow:0 4px 22px rgba(0,0,0,.40), inset 0 1px 0 rgba(255,255,255,.05);
}
.stat-num{
  background:linear-gradient(135deg,#7dd3fc,#a78bfa) !important;
  -webkit-background-clip:text !important;background-clip:text !important;
  color:transparent !important;font-weight:800;
}
.stat-label{color:#a9bada !important}
/* 底部链接胶囊 */
.biz-cta a{
  background:rgba(17,25,43,.75) !important;
  border:1px solid rgba(110,160,255,.26) !important;
  color:#d3e2f8 !important;
  transition:all .18s;
}
.biz-cta a:hover{
  border-color:rgba(96,165,250,.60) !important;
  box-shadow:0 4px 18px rgba(59,130,246,.30);
}
/* 兜底：页面里任何浅色内联背景一律压掉 */
section[style*="linear-gradient(180deg,#fbfcff"],
div[style*="linear-gradient(180deg,#fbfcff"]{
  background:transparent !important;
}
[style*="background:#fff"]:not(.tool):not(.hero-stat){
  background:rgba(17,25,43,.70) !important;
  border-color:rgba(110,160,255,.20) !important;
}

/* ---------- ⑨ 真实类名修正：数字条 + 底部通道胶囊 ---------- */
.numstrip .ns{
  background:rgba(17,25,43,.72) !important;
  border:1px solid rgba(110,160,255,.20) !important;
  border-radius:14px !important;
  backdrop-filter:blur(12px) saturate(150%);
  -webkit-backdrop-filter:blur(12px) saturate(150%);
  box-shadow:0 4px 22px rgba(0,0,0,.40), inset 0 1px 0 rgba(255,255,255,.05);
}
.numstrip .ns b{
  background:linear-gradient(135deg,#7dd3fc,#a78bfa) !important;
  -webkit-background-clip:text !important;background-clip:text !important;
  color:transparent !important;font-weight:800;
}
.numstrip .ns span{color:#a9bada !important}

.channels .ch{
  background:rgba(17,25,43,.75) !important;
  border:1px solid rgba(110,160,255,.26) !important;
  color:#d3e2f8 !important;
  transition:all .18s;
}
.channels .ch:hover{
  border-color:rgba(96,165,250,.62) !important;
  color:#fff !important;
  box-shadow:0 4px 18px rgba(59,130,246,.32);
}
/* 页脚小字提亮 */
.footer,.footer *{color:#8fa3c4}
.footer a:hover{color:#fff}

/* ---------- ⑩ 🔴 紧急修正：进场动画不再隐藏内容 ----------
   2026-10-17 张总发现「只显示一半文字」
   根因：.yd-anim{opacity:0} 遇到未触发的元素 ⇒ 永久不可见 ⚠️
   修法：彻底取消隐藏（宁可少点动效，不能少内容）---------- */
.yd-anim,
.yd-anim.yd-in{
  opacity:1 !important;
  transform:none !important;
  animation:none !important;
  visibility:visible !important;
}

/* ---------- ⑪ 终极覆盖：数字条 + 通道胶囊（用 html body 提特异性）---------- */
html body .numstrip > .ns,
html body .numstrip .ns{
  background:rgba(17,25,43,.72) !important;
  border:1px solid rgba(110,160,255,.22) !important;
  border-radius:14px !important;
  backdrop-filter:blur(12px) saturate(150%) !important;
  -webkit-backdrop-filter:blur(12px) saturate(150%) !important;
  box-shadow:0 4px 22px rgba(0,0,0,.40) !important;
}
html body .numstrip .ns b{
  color:#8fd3ff !important;
  -webkit-text-fill-color:#8fd3ff !important;
  background:none !important;
}
html body .numstrip .ns span{
  color:#a9bada !important;
  -webkit-text-fill-color:#a9bada !important;
}
html body .channels > .ch,
html body .channels .ch,
html body a.ch{
  background:rgba(17,25,43,.78) !important;
  border:1px solid rgba(110,160,255,.28) !important;
  color:#d3e2f8 !important;
  -webkit-text-fill-color:#d3e2f8 !important;
}
html body a.ch:hover{
  border-color:rgba(96,165,250,.62) !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  box-shadow:0 4px 18px rgba(59,130,246,.32) !important;
}
html body a.ch.lock{
  border-color:rgba(251,191,36,.42) !important;
  background:rgba(251,191,36,.10) !important;
}
/* 页脚小字 */
html body .quote,html body .quote *{color:#8fa3c4 !important}
html body .quote b{color:#e9effc !important}
