/* ============================================================
 * OMNE · PREMIUM_SKIN_V2 · DARK GLASS（/assets/css/premium-dark.css）
 * ------------------------------------------------------------
 * 定位：仅暗色主题页引入（park / park_live / astro_all / predict /
 *       fortune / ai_mobile）。浅色页（park_center）严禁引入。
 * 内容：暗色玻璃卡片、底部弹层玻璃幕帘、输入件玻璃化、暗色 autofill。
 * 硬约束（沿用 premium.css）：不动盒模型尺寸；动效遵守 reduced-motion。
 * 回滚：删掉页面里这行 <link> 即完全恢复。
 * ============================================================ */

/* ---------- 1. 玻璃卡片 ---------- */
/* 半透明渐变底 + 磨砂；排除自带渐变叙事的横幅/英雄卡 */
[class*="card"]:not(canvas):not(img):not(.lbn):not(.fact):not([class*="hero"]):not([class*="Hero"]):not([class*="banner"]):not([class*="Banner"]):not([class*="slide"]):not([class*="Slide"]),
[class*="panel"]:not(canvas):not([class*="hero"]):not([class*="Hero"]),
.sheet .panel {
  background: linear-gradient(165deg, rgba(34, 29, 42, .78), rgba(24, 20, 31, .58)) !important;
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-color: rgba(255, 255, 255, .09);
  box-shadow:
    0 18px 44px -18px rgba(0, 0, 0, .55),
    inset 0 1px 0 rgba(255, 255, 255, .12),
    inset 0 -1px 0 rgba(0, 0, 0, .18);
}

/* ---------- 2. 底部弹层：玻璃幕帘 ---------- */
.sheet .mask {
  background: rgba(8, 5, 14, .58) !important;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* ---------- 3. 输入件玻璃化 ---------- */
input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
  background: rgba(255, 255, 255, .055);
  border-color: rgba(255, 255, 255, .10);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

input:focus,
textarea:focus,
select:focus {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(196, 107, 255, .55);
  box-shadow: 0 0 0 3px rgba(150, 16, 255, .22);
}

/* 深色底上的自动填充不要变白底 */
input:-webkit-autofill,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: currentColor;
  -webkit-box-shadow: 0 0 0 1000px rgba(20, 15, 34, .9) inset;
}

/* ---------- 4. 磨砂性能守卫：低端机 / 省电偏好时退化为半透明实底 ---------- */
@media (prefers-reduced-transparency: reduce) {
  [class*="card"],
  [class*="panel"],
  .sheet .panel {
    background: rgba(27, 24, 34, .92) !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
