/* ============================================================
 * 926o.com  Modern Clean Commerce Theme  v2 (去拟态重做)
 * 设计语言：干净 · 克制 · 高级（Stripe / Apple / DTC 风）
 * 纯白卡片 + 极轻单向投影 + 强字体层次 + 大留白 + 靛蓝主色 + 琥珀CTA
 * 该文件最后加载，用于覆盖 theme-luxe(黑金) 与 bootstrap 默认
 * ============================================================ */

:root {
  /* 背景与面 */
  --bg: #f6f7fb;
  --card: #ffffff;
  --card-2: #fbfcfe;
  /* 文本 */
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #94a3b8;
  /* 主色（靛蓝：信任+科技） */
  --brand: #4f46e5;
  --brand-2: #6366f1;
  --brand-soft: #eef2ff;
  --brand-ring: rgba(79, 70, 229, .18);
  /* CTA 暖色（唯一暖色焦点） */
  --cta-1: #f59e0b;
  --cta-2: #f97316;
  --cta-d: #ea580c;
  --cta-glow: 0 10px 24px rgba(249, 115, 22, .30);
  /* 语义 */
  --ok: #10b981;
  --ok-soft: #ecfdf5;
  --warn: #f59e0b;
  --info: #0ea5e9;
  --info-soft: #ecfeff;
  /* 线与影 */
  --line: #e6e9f0;
  --line-2: #eef1f6;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .06);
  --shadow: 0 6px 20px rgba(20, 30, 60, .06), 0 2px 6px rgba(20, 30, 60, .04);
  --shadow-lg: 0 16px 40px rgba(20, 30, 60, .10);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --font: 'Inter', 'Plus Jakarta Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* ========== 全局底色/字体：强制覆盖 luxe 深色 ========== */
html, body {
  background: var(--bg) !important;
  color: var(--ink) !important;
  font-family: var(--font) !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body * { border-color: var(--line); }
a { color: var(--brand); }
a:hover { color: var(--brand-2); }
::selection { background: var(--brand-ring); }

/* 文本颜色回正（luxe 里是浅色字） */
body, p, span, div, li, td, th, label, h1, h2, h3, h4, h5, h6, small {
  color: var(--ink);
}
.text-muted, small, .form-text { color: var(--ink-3) !important; }

/* ========== 顶部导航 ========== */
.navbar, .header, header.navbar {
  background: rgba(255, 255, 255, .82) !important;
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line) !important;
  box-shadow: none !important;
}
.navbar a, .navbar .nav-link, .navbar span { color: var(--ink-2) !important; }
.navbar a:hover { color: var(--brand) !important; }

/* ========== 卡片/面板：纯白 + 极轻投影，去拟态 ========== */
.panel, .acg-card, .card, .layui-card {
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
  color: var(--ink) !important;
}
.panel-body, .card-body { color: var(--ink) !important; }
.acg-cover { background: var(--card-2) !important; overflow: hidden; }
.acg-cover .item-cover { border-radius: 12px; }

/* ========== 标题层次 ========== */
h1, h2, h3, h4, h5 { color: var(--ink) !important; font-weight: 700; letter-spacing: -.01em; }
h4 { font-size: 1.5rem; line-height: 1.3; }
.item-detail h1, .item-detail h2, .item-detail h3 { margin-top: 1.4em; }

/* ========== 徽章：无框，浅底 pill ========== */
.badge-soft {
  border: none !important;
  border-radius: 999px !important;
  padding: 4px 12px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  background: #f1f5f9 !important;
  color: var(--ink-2) !important;
}
.badge-soft-success { background: var(--ok-soft) !important; color: #047857 !important; }
.badge-soft-primary { background: var(--brand-soft) !important; color: var(--brand) !important; }
.badge-soft-info { background: var(--info-soft) !important; color: #0369a1 !important; cursor: pointer; }
.item-rating-badge { background: #fff7ed !important; color: var(--cta-d) !important; }

/* ========== 价格：超大、主色 ========== */
.price, .abacus .price {
  color: var(--brand) !important;
  font-weight: 800 !important;
  font-size: 2.4rem !important;
  letter-spacing: -.02em;
  line-height: 1;
}
.abacus { margin: 6px 0 14px !important; }

/* ========== 表单控件：白底描边，去凹陷 ========== */
.form-control, .form-select, .layui-input, textarea, select, input[type=text], input[type=number] {
  background: #fff !important;
  border: 1.5px solid var(--line) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--ink) !important;
  box-shadow: none !important;
  transition: border-color .15s, box-shadow .15s;
  padding: 10px 14px !important;
  height: auto !important;
}
.form-control::placeholder { color: var(--ink-3) !important; }
.form-control:focus, .layui-input:focus, textarea:focus, select:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 4px var(--brand-ring) !important;
  outline: none !important;
}
.form-label { font-weight: 600; color: var(--ink-2) !important; margin-bottom: 6px; font-size: 13.5px; }

/* ========== 数量 -/+ ：胶囊描边，去拟态 ========== */
.input-group.qty-group {
  border: none !important;
  box-shadow: none !important;
  gap: 8px;
  align-items: center;
}
.qty-group .btn, .qty-group .input-group-text, .qty-group button {
  background: #fff !important;
  border: 1.5px solid var(--line) !important;
  border-radius: 10px !important;
  color: var(--ink) !important;
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 600;
  box-shadow: none !important;
  transition: all .15s;
  cursor: pointer;
}
.qty-group .btn:hover, .qty-group button:hover {
  border-color: var(--brand) !important;
  color: var(--brand) !important;
  background: var(--brand-soft) !important;
}
.qty-group .form-control { text-align: center; max-width: 72px; }

/* ========== 验证码 ========== */
.captcha-input { max-width: 60%; }
.captcha-img {
  border-radius: 10px !important;
  border: 1.5px solid var(--line) !important;
  overflow: hidden;
  height: 42px !important;
}

/* ========== SKU 选择 ========== */
.sku, .switch-race, .switch-sku {
  background: #fff !important;
  border: 1.5px solid var(--line) !important;
  border-radius: 10px !important;
  color: var(--ink-2) !important;
  padding: 8px 14px !important;
  font-weight: 600;
  box-shadow: none !important;
  transition: all .15s;
}
.sku:hover { border-color: var(--brand) !important; color: var(--brand) !important; }
.sku.is-primary, .switch-race.is-primary, .switch-sku.is-primary {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  color: #fff !important;
  box-shadow: 0 6px 16px var(--brand-ring) !important;
}

/* ========== 主按钮/付款：琥珀橙，全页唯一暖焦点 ========== */
.btn-primary, .view-card-btn, .cash-pay .btn, .order-query-form .btn-primary {
  background: linear-gradient(135deg, var(--cta-1), var(--cta-2)) !important;
  border: none !important;
  border-radius: 12px !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  letter-spacing: .2px;
  padding: 13px 22px !important;
  box-shadow: var(--cta-glow) !important;
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn-primary:hover, .view-card-btn:hover, .cash-pay .btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 14px 30px rgba(249, 115, 22, .38) !important;
}
.btn-primary:active, .view-card-btn:active { transform: translateY(0); }

/* 次级按钮 */
.btn-default, .btn-secondary, .btn-light {
  background: #fff !important;
  border: 1.5px solid var(--line) !important;
  border-radius: 12px !important;
  color: var(--ink) !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}
.btn-default:hover { border-color: var(--brand) !important; color: var(--brand) !important; }

/* ========== 商品详情正文排版 ========== */
.item-detail, .item-detail p, .item-detail li { color: var(--ink-2) !important; line-height: 1.85; font-size: 15px; }
.item-detail h1, .item-detail h2, .item-detail h3, .item-detail h4 { color: var(--ink) !important; }
.item-detail strong { color: var(--ink) !important; }

/* ========== 支付方式列表 ========== */
.pay-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pay-list > * {
  background: #fff !important;
  border: 1.5px solid var(--line) !important;
  border-radius: 12px !important;
  padding: 10px 16px !important;
  box-shadow: none !important;
  color: var(--ink) !important;
  transition: all .15s;
}
.pay-list > *:hover, .pay-list .active {
  border-color: var(--brand) !important;
  background: var(--brand-soft) !important;
}

/* ============================================================
 * 转化模块（精简重做，与新系统统一）
 * ============================================================ */

/* 信任支付条：白卡 + 细分割 */
.trust-bar {
  margin: 14px 0 6px;
  padding: 14px 16px;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.trust-row {
  display: flex; flex-wrap: wrap; gap: 16px;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.trust-row .trust-item { display: inline-flex; align-items: center; gap: 7px; }
.trust-row i { font-size: 15px; }
.trust-row .trust-item:nth-child(1) i { color: var(--brand); }
.trust-row .trust-item:nth-child(2) i { color: var(--info); }
.trust-row .trust-item:nth-child(3) i { color: var(--ok); }
.trust-pays {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--line);
}
.trust-pays-label { font-size: 12px; color: var(--ink-3); margin-right: 2px; }
.pay-chip {
  font-size: 11px; font-weight: 700; padding: 4px 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink-2) !important;
  box-shadow: var(--shadow-sm);
}

/* 紧迫条：轻量 pill，不喧宾夺主 */
.urgency-bar {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 2px;
  font-size: 12.5px;
}
.urgency-bar span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; font-weight: 600;
}
.urgency-bar .urg-view { background: var(--brand-soft); color: var(--brand); }
.urgency-bar .urg-left { background: #fff7ed; color: var(--cta-d); }
.urgency-bar .urg-left i { animation: flame 1.5s ease-in-out infinite; }
.urgency-bar b { font-weight: 800; }
@keyframes flame { 0%,100% { opacity: 1; } 50% { opacity: .55; } }

/* 近期成交滚动：干净白卡浮层 */
.live-sales {
  position: fixed; left: 16px; bottom: 20px; z-index: 99998;
  max-width: 300px; opacity: 0; transform: translateY(14px);
  transition: opacity .35s ease, transform .35s ease; pointer-events: none;
}
.live-sales.show { opacity: 1; transform: translateY(0); }
.live-sales .ls-inner {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 14px; padding: 11px 15px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.live-sales .ls-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 0 rgba(16,185,129,.5); animation: ping 1.7s infinite; flex: none;
}
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,.45); } 70% { box-shadow: 0 0 0 7px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }
.live-sales .ls-txt { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.live-sales .ls-txt b { color: var(--ink); }

/* 悬浮客服：轻投影统一 */
#cs-float a { box-shadow: var(--shadow-lg) !important; }

/* 页脚合规 */
#compliance-footer {
  background: transparent !important;
  border-top: 1px solid var(--line) !important;
  color: var(--ink-3) !important;
}
#compliance-footer * { color: var(--ink-3) !important; }
#compliance-footer span[style*="border"] { border-color: var(--ink-3) !important; }

/* ========== layer 弹层圆角统一 ========== */
.layui-layer { border-radius: 14px !important; overflow: hidden; box-shadow: var(--shadow-lg) !important; }
.layui-layer-btn .layui-layer-btn0 { background: var(--brand) !important; border-color: var(--brand) !important; }

/* ========== 移动端 ========== */
@media (max-width: 575.98px) {
  .price { font-size: 2rem !important; }
  .live-sales { left: 10px; bottom: 14px; max-width: 74vw; }
  .trust-row { gap: 12px; font-size: 12px; }
  .btn-primary, .view-card-btn { font-size: 15px !important; padding: 12px !important; }
  h4 { font-size: 1.3rem; }
}


/* ============================================================
 * 兜底修复层 v2.1 —— 压制 luxe 残留的「白底白字」与「多余深框」
 * 症状：订单查询/结果等 .panel 区域，旧主题用
 *   .panel-body p { color:浅色 !important }（特异性 0,0,1,1）
 * 盖过了新主题 .panel-body{...}（0,0,1,0）。
 * 对策：用 html body 前缀把特异性顶到 0,0,3,x，并加
 *   -webkit-text-fill-color 防止某些浏览器文字被填充成透明/浅色。
 * 只针对纯文本 & 表单元素，绝不误伤徽章彩字/按钮白字/价格靛蓝。
 * ============================================================ */

/* 1) 面板内纯文本元素：一律深色可读 */
html body .panel-body p,
html body .panel-body label,
html body .panel-body li,
html body .panel-body td,
html body .panel-body th,
html body .panel-body small,
html body .panel-title,
html body .no-results h6,
html body .no-results p {
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink) !important;
}
html body .panel-body a {
  color: var(--brand) !important;
  -webkit-text-fill-color: var(--brand) !important;
}
html body .panel-body .text-muted,
html body .text-muted,
html body .panel-body small.text-muted {
  color: var(--ink-3) !important;
  -webkit-text-fill-color: var(--ink-3) !important;
}

/* 2) 输入框 / 下拉 / 文本域 / option：白底 深字 细描边 */
html body input[type=text],
html body input[type=number],
html body input[type=email],
html body input[type=password],
html body input[type=tel],
html body select,
html body textarea,
html body option,
html body .form-control,
html body .form-select,
html body .order-query-form .form-control,
html body .search-input .form-control {
  background-color: #fff !important;
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink) !important;
  border: 1.5px solid var(--line) !important;
  border-radius: var(--radius-sm) !important;
}
html body input::placeholder,
html body textarea::placeholder {
  color: var(--ink-3) !important;
  -webkit-text-fill-color: var(--ink-3) !important;
}
html body .form-control:focus,
html body select:focus,
html body textarea:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 4px var(--brand-ring) !important;
}

/* 3) 订单查询按钮：暖色实心，杜绝白底白字 */
html body .order-query-form .btn-primary,
html body .btn-search-query {
  background: linear-gradient(135deg, var(--cta-1), var(--cta-2)) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border: none !important;
}

/* 4) 去掉多余/突兀的深色嵌套框，统一为极浅细线或无框 */
html body .panel .panel {
  border: 1px solid var(--line) !important;
  box-shadow: none !important;
}
html body .order-query-form,
html body .search-input {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}
/* luxe 里给 input-group / 各种容器留的深描边，统一收敛 */
html body .panel-body .border,
html body .panel-body [class*="border"] {
  border-color: var(--line) !important;
}


/* ============================================================
 * 清新渐变背景 + 科技粒子层  (append v3)
 * 目标：纯白 -> 清新冷色渐变（低饱和·高明度·不刺眼）
 *      渐变铺满视口并随滚动固定；粒子 canvas 浮于渐变之上、内容之下
 *      卡片保持纯白，粒子只在留白/背景处透出 => 干净又有科技感
 * ============================================================ */

/* 让 body 透出底层渐变；html 给一个接近白的兜底色，杜绝任何白闪 */
html { background-color: #f4f7ff !important; }
html body { background: transparent !important; }

/* 固定视口渐变层：多柔光晕（靛蓝/天青/紫/薄荷）叠斜向线性渐变 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(1100px 760px at 10% -6%,  rgba(99,102,241,.13), transparent 60%),
    radial-gradient(980px 680px at 94% 3%,    rgba(56,189,248,.11), transparent 56%),
    radial-gradient(920px 700px at 84% 105%,  rgba(139,92,246,.10), transparent 56%),
    radial-gradient(780px 640px at 14% 112%,  rgba(45,212,191,.09), transparent 56%),
    linear-gradient(158deg, #eaf1ff 0%, #f4f7ff 34%, #fbfbff 62%, #f1effe 100%);
}

/* 粒子画布：固定视口、位于渐变之上内容之下、不拦截任何交互 */
#bg-particles {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: block;
}

/* 导航/卡片本身是（半）白，会自然盖住粒子，无需额外处理。
   仅确保首页大留白容器不额外铺白，让粒子透出。 */
.layui-container, .container, main, .main, #app { background: transparent !important; }

/* 尊重用户"减少动态效果"的系统偏好：关掉粒子（JS 也会判断） */
@media (prefers-reduced-motion: reduce) {
  #bg-particles { display: none !important; }
}


/* ============================================================
 * 商品详情文案：清新色气泡卡片（append v4）
 * 需求：把 .premium-product-copy 里每个 <section>（小标题+描述）
 *      自动包成一个带清新颜色的大气泡，消除白茫茫一片。
 * 做法：section 变卡片，nth-of-type 轮换 4 种清新色；
 *      h3 做气泡标题（带小圆点强调条）；列表美化。
 * 未来新增 section 会自动套用，无需改文案。
 * ============================================================ */

/* 容器：去掉外层大白框的厚重感，改成透明让气泡自己说话 */
html body .item-detail:has(.premium-product-copy),
html body .panel.item-detail:has(.premium-product-copy) {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.premium-product-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 每个 section = 一个清新气泡卡片 */
.premium-product-copy section {
  position: relative;
  margin: 0 !important;
  padding: 20px 22px 18px 24px;
  border-radius: 18px;
  border: 1px solid rgba(99,102,241,.10);
  box-shadow: 0 6px 20px rgba(20,30,60,.05), 0 2px 6px rgba(20,30,60,.03);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.premium-product-copy section:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(20,30,60,.09), 0 3px 10px rgba(20,30,60,.05);
}
/* 左侧清新强调竖条 */
.premium-product-copy section::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
}

/* 小标题：气泡内醒目标题 + 前置小圆点 */
.premium-product-copy section h3 {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0 0 10px 0 !important;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -.01em;
}
.premium-product-copy section h3::before {
  content: "";
  flex: none;
  width: 9px; height: 9px;
  margin-top: 6px;
  border-radius: 50%;
}

/* 正文/列表 */
.premium-product-copy section p,
.premium-product-copy section li {
  margin: 0 0 8px 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: #334155 !important;
}
.premium-product-copy section p:last-child,
.premium-product-copy section li:last-child { margin-bottom: 0; }
.premium-product-copy section strong { color: #1e293b !important; font-weight: 800; }
.premium-product-copy section ol,
.premium-product-copy section ul {
  margin: 6px 0 0 0;
  padding-left: 20px;
}
.premium-product-copy section li { padding-left: 4px; }
.premium-product-copy section li::marker { color: inherit; font-weight: 700; }

/* ---- 4 种清新配色轮换 ---- */
/* 1) 靛蓝 */
.premium-product-copy section:nth-of-type(4n+1) {
  background: linear-gradient(135deg, #eef2ff 0%, #f6f8ff 100%);
}
.premium-product-copy section:nth-of-type(4n+1)::before { background: #6366f1; }
.premium-product-copy section:nth-of-type(4n+1) h3 { color: #4338ca !important; }
.premium-product-copy section:nth-of-type(4n+1) h3::before { background: #6366f1; }
.premium-product-copy section:nth-of-type(4n+1) li::marker { color: #6366f1; }

/* 2) 天青 */
.premium-product-copy section:nth-of-type(4n+2) {
  background: linear-gradient(135deg, #ecfeff 0%, #f5fdff 100%);
}
.premium-product-copy section:nth-of-type(4n+2)::before { background: #22b8cf; }
.premium-product-copy section:nth-of-type(4n+2) h3 { color: #0e7490 !important; }
.premium-product-copy section:nth-of-type(4n+2) h3::before { background: #22b8cf; }
.premium-product-copy section:nth-of-type(4n+2) li::marker { color: #22b8cf; }

/* 3) 薄荷绿 */
.premium-product-copy section:nth-of-type(4n+3) {
  background: linear-gradient(135deg, #ecfdf5 0%, #f5fffb 100%);
}
.premium-product-copy section:nth-of-type(4n+3)::before { background: #10b981; }
.premium-product-copy section:nth-of-type(4n+3) h3 { color: #047857 !important; }
.premium-product-copy section:nth-of-type(4n+3) h3::before { background: #10b981; }
.premium-product-copy section:nth-of-type(4n+3) li::marker { color: #10b981; }

/* 4) 紫罗兰 */
.premium-product-copy section:nth-of-type(4n+4) {
  background: linear-gradient(135deg, #f5f3ff 0%, #faf9ff 100%);
}
.premium-product-copy section:nth-of-type(4n+4)::before { background: #8b5cf6; }
.premium-product-copy section:nth-of-type(4n+4) h3 { color: #6d28d9 !important; }
.premium-product-copy section:nth-of-type(4n+4) h3::before { background: #8b5cf6; }
.premium-product-copy section:nth-of-type(4n+4) li::marker { color: #8b5cf6; }

/* 移动端：略收内距 */
@media (max-width: 768px) {
  .premium-product-copy { gap: 13px; }
  .premium-product-copy section { padding: 16px 16px 14px 18px; border-radius: 15px; }
  .premium-product-copy section h3 { font-size: 15px; }
  .premium-product-copy section p,
  .premium-product-copy section li { font-size: 14px; }
}

/* === 926 CSS-COVER BEGIN === */
/* =========================================================
 * 926 策略保险 - CSS 自适应主视觉封面
 * 目标：替代固定位图 product-cover.png
 * 特性：纯 CSS 渐变背景 + 真实 DOM 文字 + 容器查询自适应
 *       容器尺寸/比例变化时，文字始终完整、自动缩放换行，绝不裁切
 * ========================================================= */

/* 封面根节点：作为容器查询的锚点 */
.css-cover {
  container-type: inline-size;      /* 开启容器查询，内部可用 cqw 单位 */
  container-name: cover;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: block;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 38%, rgba(233,200,105,.22), rgba(233,200,105,0) 60%),
    linear-gradient(135deg, #123a2e 0%, #0c2c23 52%, #071c16 100%);
  border-radius: inherit;
}

/* 细金描边框（跟随容器缩放，用相对定位内嵌） */
.css-cover::before {
  content: "";
  position: absolute;
  inset: 4cqw;
  border: 0.35cqw solid transparent;
  border-radius: 2.4cqw;
  background: linear-gradient(160deg, #fbf0c4, #eecb73 40%, #cf9f3d 70%, #a2761d) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: .55;
  pointer-events: none;
}

/* 内容容器：flex 垂直居中，内边距用 cqw 自适应 */
.css-cover__inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.4cqw;
  padding: 7cqw 6cqw;
  text-align: center;
  box-sizing: border-box;
}

/* 顶部品牌行 */
.css-cover__brand {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  /* 关键：字号随容器宽度走，clamp 兜底不至于过大或过小 */
  font-size: clamp(9px, 4.6cqw, 40px);
  letter-spacing: 0.4cqw;
  line-height: 1.1;
  background: linear-gradient(180deg, #fbf0c4, #eecb73 45%, #cf9f3d 75%, #a2761d);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  max-width: 100%;
  word-break: break-word;      /* 极窄容器也能换行，不裁切 */
}

/* 品牌下的金色细分隔线 */
.css-cover__rule {
  width: 34cqw;
  max-width: 220px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #cf9f3d, transparent);
  opacity: .6;
}

/* 中央盾牌图标：用 SVG，宽度随容器 */
.css-cover__shield {
  width: clamp(34px, 22cqw, 150px);
  height: auto;
  display: block;
  filter: drop-shadow(0 0.6cqw 1.2cqw rgba(207,159,61,.25));
}

/* 主标题（中文/英文） */
.css-cover__title {
  font-family: 'Microsoft YaHei', 'PingFang SC', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(13px, 7cqw, 60px);
  line-height: 1.2;
  letter-spacing: 0.2cqw;
  background: linear-gradient(180deg, #fbf0c4, #eecb73 45%, #cf9f3d 78%, #a2761d);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  max-width: 100%;
  word-break: break-word;
}

/* 副标题 */
.css-cover__sub {
  font-family: Arial, system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(9px, 3.4cqw, 26px);
  line-height: 1.35;
  letter-spacing: 0.15cqw;
  color: #d8c290;
  opacity: .92;
  max-width: 92%;
  word-break: break-word;
}

/* 底部卖点条 */
.css-cover__tags {
  font-family: Arial, system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(8px, 2.7cqw, 22px);
  letter-spacing: 0.2cqw;
  line-height: 1.4;
  background: linear-gradient(90deg, #eecb73, #cf9f3d);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  max-width: 96%;
  word-break: break-word;
}

/* 左右金币装饰：小容器时隐藏，避免拥挤 */
.css-cover__coin {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 9cqw;
  height: 9cqw;
  max-width: 66px;
  max-height: 66px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f4d581, #bd8b28);
  border: 0.3cqw solid #8a6416;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-weight: 700;
  color: #7c5a13;
  font-size: 3.6cqw;
  box-shadow: 0 0.6cqw 1.6cqw rgba(0,0,0,.3);
}
.css-cover__coin--l { left: 6cqw; }
.css-cover__coin--r { right: 6cqw; }

/* ---------- 不同容器宽度下的元素取舍（渐进增强） ---------- */

/* 很窄的容器（首页卡片 mobile ~ 160px）：只保留标题+副标题，隐藏装饰，避免拥挤 */
@container cover (max-width: 230px) {
  .css-cover__brand { font-size: clamp(9px, 5.4cqw, 15px); }
  .css-cover__rule,
  .css-cover__coin { display: none; }
  .css-cover__shield { width: clamp(28px, 20cqw, 44px); }
  .css-cover__inner { gap: 1.8cqw; padding: 6cqw 5cqw; }
}

/* 中等容器：显示盾牌与分隔线，隐藏金币 */
@container cover (min-width: 231px) and (max-width: 520px) {
  .css-cover__coin { display: none; }
}

/* 宽容器（详情页大图）：全部元素显示 */
@container cover (min-width: 521px) {
  .css-cover__coin { display: flex; }
}

/* 兜底：不支持容器查询的老浏览器，用 vw 近似 + 固定值 */
@supports not (container-type: inline-size) {
  .css-cover__brand { font-size: 18px; }
  .css-cover__title { font-size: 22px; }
  .css-cover__sub   { font-size: 12px; }
  .css-cover__tags  { font-size: 11px; }
  .css-cover__coin  { display: none; }
  .css-cover__shield{ width: 60px; }
}
/* === 926 CSS-COVER END === */

/* COVER-BG-FIX-START —— 详情页头图封面：覆盖 .acg-card/.acg-cover 的 !important 白底 */
.acg-cover.css-cover,
.acg-card.css-cover,
.card.css-cover,
.css-cover {
  background:
    radial-gradient(120% 90% at 50% 38%, rgba(233,200,105,.22), rgba(233,200,105,0) 60%),
    linear-gradient(135deg, #123a2e 0%, #0c2c23 52%, #071c16 100%) !important;
  border: 1px solid rgba(233,200,105,.28) !important;
  box-shadow: 0 10px 30px rgba(7,28,22,.28) !important;
  overflow: hidden !important;
}
/* COVER-BG-FIX-END */
