/* ============================================================
 * 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;
}
