/* ============================================================================
   S80「石墨远航 Graphite Voyage」· 主题包
   ----------------------------------------------------------------------------
   常驻加载（index.html <link>），全部规则挂 html.gr 前缀 —— 开关就是
   <html> 上的 .gr 类（MV3_EG.applyMode 维护），主题关着时零影响。
   规矩同暮色金：一行布局都不动 —— 只动令牌（html.gr 一层，全部 !important
   以压过 applySkin() 写在 <html> 上的内联派生色）与少量纯装饰。
   配色：石墨蓝灰上亮下深 × 荧光黄绿克制点睛 × 暖金摄影调。
   ============================================================================ */
/* ---------- 1. 令牌层：石墨蓝灰 × 黄绿点睛 ---------- */
html.gr{
  --bg:#3A404D !important;
  --bg2:#262B36 !important;
  --ink:#FFFFFF !important;
  --dim:#B9C0CC !important;
  --dim2:#A9B3C4 !important;   /* S97：石墨底(#3A404D)上 #7E8695 只有 2.8，提亮到 4.9 */
  --line:rgba(255,255,255,.16) !important;
  --w:255,255,255 !important;
  --k:0,0,0 !important;
  --panel:rgba(46,52,64,.82) !important;
  --panel2:rgba(38,43,54,.92) !important;

  --lit1:#D9F65A !important;
  --lit2:#BCDB42 !important;
  --lit3:#B9AEFF !important;
  --warm:#EFC07A !important;

  --ok-fg:#D9F65A !important;
  --warm-fg:#EFC07A !important;
  --tk1:#D9F65A !important;  --tk2:#CCEB4E !important;  --tk3:#BCDB42 !important;
  --tk4:#EFC07A !important;  --tk5:#E0A45B !important;  --tk6:#D98E5C !important;
  --add-fg:#D9F65A !important;
  --on1:#1F242E !important; --on2:#1F242E !important; --on3:#1F242E !important;

  /* S141-SKINCOLOR：主题自带的状态色另存一份（--eg-*）。

     为什么：applySkin 会把 skin 的色内联写到 <html> 上（无 important），

     样式表的普通声明赢不过它 → 主题默认色会被内联压掉（换主题没反应）。

     这份带 !important 留在 CSS 里当锚；JS（MV3_EG.skinOver）只在**用户

     改过该档**时把用户色按 important 盖到 --c-* 上，没改过就由这份说话。

     —— 两个诉求同时成立：主题外观不变，且用户的改色一定赢。 */

  --eg-visited:#D9F65A !important;

  --eg-plan:#EFC07A !important;

  --eg-wish:#AEB8C8 !important;

  --eg-none:#343A46 !important;


  --c-visited:#D9F65A; --c-visited-lt:#E8FBA8; --c-visited-st:#F3FDCF; --c-visited-dk:#4A5210;
  --c-visited-a16:rgba(217,246,90,.16); --c-visited-a42:rgba(217,246,90,.42);
  --c-visited-glow:rgba(217,246,90,.30);
  --c-plan:#EFC07A; --c-plan-lt:#F8DDB2; --c-plan-st:#FBE3BD; --c-plan-dk:#7A5620;
  --c-plan-a16:rgba(239,192,122,.16); --c-plan-a42:rgba(239,192,122,.44);
  --c-wish:#AEB8C8; --c-wish-lt:#D6DDE8; --c-wish-soft:#3A4150;
  --c-wish-a16:rgba(174,184,200,.16); --c-wish-a42:rgba(174,184,200,.44);
  --c-none:#343A46; --c-none-pt:#3C434F; --c-none-lt:#6A7382;
  --c-none-a16:rgba(255,255,255,.05); --c-none-a42:rgba(174,184,200,.26);
  --c-rplan:#EFC07A !important; --c-rplan-lt:#F8DDB2 !important; --c-rplan-dk:#7A5620 !important;
  --c-rplan-a16:rgba(239,192,122,.16) !important; --c-rplan-a42:rgba(239,192,122,.44) !important;
  --c-rplan-a72:rgba(239,192,122,.72) !important; --c-rplan-a95:rgba(239,192,122,.95) !important;
  --c-rdone:#F2E2B8 !important; --c-rdone-lt:#FAF0D6 !important; --c-rdone-dk:#7A6A44 !important;
  --c-rdone-a16:rgba(242,226,184,.16) !important; --c-rdone-a42:rgba(242,226,184,.42) !important;
  --hi-core:#F2E2B8 !important; --hi-halo:217,246,90 !important;
}

/* ---------- 1.5 整页渐变底（上亮下深） ----------
   顶部取 #6E7889 而非 demo 的 #9AA6B8：页头白字全程可读（≥4.5:1），
   「上亮下深」的梯度保留、幅度收半档 —— 可用性优先。 */
html.gr body{background:linear-gradient(180deg,#6E7889 0%,#3A404D 42%,#262B36 100%) !important}

/* ---------- 1.6 地图渐变与足迹小图 ---------- */
html.gr #litGrad stop:nth-child(1){stop-color:#4A5210}
html.gr #litGrad stop:nth-child(2){stop-color:#BCDB42}
html.gr #litGrad stop:nth-child(3){stop-color:#F2E2B8}
html.gr #planGrad stop:nth-child(1){stop-color:#B07E3C;stop-opacity:.85}
html.gr #planGrad stop:nth-child(2){stop-color:#EFC07A;stop-opacity:.75}
html.gr #routeGrad stop:nth-child(1){stop-color:#B07E3C;stop-opacity:.72}
html.gr #routeGrad stop:nth-child(2){stop-color:#F2E2B8;stop-opacity:1}
html.gr #routeGrad stop:nth-child(3){stop-color:#B07E3C;stop-opacity:.72}
html.gr :is(#mV3,#costView,#fxView) .mapbox{--ft-v:var(--c-visited,#D9F65A);--ft-p:var(--c-plan,#EFC07A);--ft-w:var(--c-info-gris,#AEB8C8)}

/* ---------- 2. 装饰层：玻璃卡片 / 头图深帘 / 黄绿发丝线 ---------- */
html.gr :is(#mV3) .ta-hero{border-radius:22px !important;box-shadow:0 18px 44px rgba(0,0,0,.42) !important}
html.gr :is(#mV3) .ta-hero .ta-veil{background:linear-gradient(180deg,rgba(30,34,42,.22) 0%,rgba(30,34,42,.08) 40%,rgba(30,34,42,.82) 100%) !important}
html.gr :is(#mV3) .ta-hero .ta-h{color:#FFFFFF !important;text-shadow:0 1px 10px rgba(0,0,0,.5) !important}
html.gr :is(#mV3) .ta-hero .ta-grad,
html.gr :is(#mV3) .bpgrad{background:linear-gradient(150deg,#5A6478,#2C303B) !important}

html.gr :is(#mV3) .rc{background:linear-gradient(140deg,#4A5262,#2E3440) !important;border:1px solid rgba(255,255,255,.18) !important}

html.gr :is(#mV3,#costView,#fxView,#gsPanel,#gsScrim) .card{
  background:rgba(255,255,255,.09) !important;
  border-color:rgba(255,255,255,.2) !important;
  border-radius:17px !important;
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
}

html.gr :is(#mV3) .tabbar{border-top:1px solid rgba(217,246,90,.14) !important;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}

/* ---------- 3. 硬编码杂色收编 ---------- */
html.gr :is(#mV3) .hist-chip,:is(#mV3) .tl-day,:is(#mV3) .tl-dayc,:is(#mV3) .tl-time{--ac:#8FA3B8 !important}
html.gr :is(#mV3) .hist-chip.on b,:is(#mV3) .hist-chip i{color:#1F242E !important}
html.gr :is(#mV3) .hist-chip.on i{background:rgba(31,36,46,.22) !important}
html.gr :is(#mV3) .hist-done{background:#7C899C !important}

html.gr :is(#mV3) .ta-hero img{filter:brightness(1.22) saturate(1.05) !important}
