/* ==========================================================================
   和平精英装备商城 · 内页暗色皮肤
   覆盖：order.html / cs.html / order-query.html / pay-success.html
   只改视觉，不改布局与交互
   ========================================================================== */
:root {
  --hp-bg: #07080B;
  --hp-panel: #12151C;
  --hp-panel-2: #181C25;
  --hp-line: #2A303C;
  --hp-gold: #FFC72C;
  --hp-gold-2: #FFE27A;
  --hp-gold-3: #C99612;
  --hp-orange: #FF5C16;
  --hp-t1: #EDF0F5;
  --hp-t2: #A7B0C0;
  --hp-t3: #6E7889;
  --hp-green: #35D07F;
}

html, body {
  background: var(--hp-bg) !important;
  color: var(--hp-t1) !important;
}
body {
  background-image:
    radial-gradient(900px 360px at 50% -8%, rgba(255,199,44,.09), transparent 70%),
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px) !important;
  background-size: auto, 42px 42px, 42px 42px !important;
  background-attachment: fixed !important;
}
body.delivered, body.delivered .page, body.loading { background-color: var(--hp-bg) !important; }

/* ---------- 页面容器 ---------- */
.page { background: transparent !important; }

/* ---------- 卡片 / 行 ---------- */
.card, .row, .row-account, .bottom-block, .oc-body, .order-card, .cs-faq-item,
.cs-product-bar, .csx-gcard, .csx-order, .modal, .cs-modal, .csx-drawer {
  background: var(--hp-panel) !important;
  border: 1px solid var(--hp-line) !important;
  border-radius: 2px !important;
  color: var(--hp-t1) !important;
  box-shadow: none !important;
}
.card, .row-account, .order-card { position: relative; }

/* 卡片斜切角（装饰性，不裁内容） */
.card::before, .order-card::before {
  content: ""; position: absolute; top: -1px; right: -1px;
  width: 14px; height: 14px;
  border-top: 1px solid var(--hp-gold);
  border-right: 1px solid var(--hp-gold);
  opacity: .5; pointer-events: none;
}

/* ---------- 文字 ---------- */
.shop-name, .prod-name, .prod-title, .k, .label, .title, .modal-title,
.cs-modal-title, .deliver-box-title, .oc-name, .oc-amount, .amount, .name {
  color: var(--hp-t1) !important;
}
.sub, .desc, .tip, .oc-time, .oc-spec, .oc-account, .modal-desc, .cs-modal-sub,
.dv-k, .deliver-box-tag, .shop-meta, .cs-shop-meta {
  color: var(--hp-t3) !important;
}
.v, .oc-status, .dv-v { color: var(--hp-t2) !important; }
.price, .num, .oc-pay, .rmb, .ct, .int { color: var(--hp-orange) !important; }

/* ---------- 顶部导航 ---------- */
.nav, .top-bar, .cs-header, .cs-header-top {
  background: rgba(10,12,16,.96) !important;
  border-bottom: 1px solid var(--hp-line) !important;
  color: var(--hp-t1) !important;
  backdrop-filter: blur(12px);
}
.nav .title, .top-bar .title, .cs-shop-name {
  color: var(--hp-gold) !important;
  font-weight: 800 !important;
  letter-spacing: .5px;
}

/* ---------- 徽章 / 标签 ---------- */
.badge {
  background: rgba(255,199,44,.1) !important;
  color: var(--hp-gold-2) !important;
  border: 1px solid rgba(255,199,44,.34) !important;
  border-radius: 2px !important;
}
.thumb-banner { background: linear-gradient(135deg, #C99612, #FFC72C) !important; }
.thumb-banner * { color: #17120A !important; }

/* ---------- 输入 ---------- */
input, textarea, .account-input, .modal-input, .cs-input, .search-box input {
  background: var(--hp-panel-2) !important;
  color: var(--hp-t1) !important;
  border-color: var(--hp-line) !important;
}
input::placeholder, textarea::placeholder { color: var(--hp-t3) !important; }
.account-input { background: transparent !important; }

/* ---------- 支付栏 / 主按钮 ---------- */
.bottom-block, .pay-bar {
  background: rgba(10,12,16,.97) !important;
  border-top: 1px solid var(--hp-line) !important;
  backdrop-filter: blur(14px);
}
.pay-btn, .btn.primary, .dv-btn.primary, .os-btn, .cs-send-btn, .save-address-btn, .copy-btn {
  background: linear-gradient(135deg, #FFE27A, #FFC72C 45%, #C99612) !important;
  color: #17120A !important;
  font-weight: 900 !important;
  border: 0 !important;
  border-radius: 0 !important;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  box-shadow: 0 6px 22px rgba(255,199,44,.22) !important;
}
.dv-btn.ghost, .btn.ghost {
  background: var(--hp-panel-2) !important;
  color: var(--hp-gold-2) !important;
  border: 1px solid rgba(255,199,44,.36) !important;
  border-radius: 0 !important;
}

/* ---------- 状态 / 发货框 ---------- */
.status-banner {
  background: rgba(53,208,127,.08) !important;
  border: 1px solid rgba(53,208,127,.3) !important;
  color: #6BE3A6 !important;
}
.deliver-box {
  background: var(--hp-panel-2) !important;
  border: 1px solid rgba(255,199,44,.32) !important;
  color: var(--hp-t1) !important;
}
.deliver-box pre, .deliver pre { color: var(--hp-gold-2) !important; }
.deliver-box-tag, .deliver-tag {
  background: rgba(255,199,44,.14) !important;
  color: var(--hp-gold-2) !important;
  border-radius: 2px !important;
}
.deliver-copy {
  background: var(--hp-panel) !important;
  color: var(--hp-gold) !important;
  border: 1px solid rgba(255,199,44,.4) !important;
  border-radius: 0 !important;
}

/* ---------- 弹窗 ---------- */
.modal-mask, .cs-modal-mask, .csx-drawer-mask {
  background: rgba(0,0,0,.74) !important;
}
.modal-title, .cs-modal-title { color: var(--hp-t1) !important; }
.modal-btn.ok, .cs-modal .primary {
  background: linear-gradient(135deg, #FFE27A, #FFC72C 45%, #C99612) !important;
  color: #17120A !important;
  border-radius: 0 !important;
  font-weight: 800 !important;
}
.modal-btn.cancel { background: var(--hp-panel-2) !important; color: var(--hp-t2) !important; border-radius: 0 !important; }

/* ---------- 客服页 ---------- */
.cs-app, .cs-messages { background: transparent !important; }
.cs-msg-bubble {
  background: var(--hp-panel-2) !important;
  color: var(--hp-t1) !important;
  border: 1px solid var(--hp-line) !important;
}
.cs-msg.self .cs-msg-bubble {
  background: linear-gradient(135deg, rgba(255,199,44,.16), rgba(255,199,44,.08)) !important;
  border-color: rgba(255,199,44,.34) !important;
  color: var(--hp-gold-2) !important;
}
.cs-msg-name, .cs-msg-time, .cs-status-line { color: var(--hp-t3) !important; }
.cs-input-bar {
  background: rgba(10,12,16,.97) !important;
  border-top: 1px solid var(--hp-line) !important;
}
.cs-input-wrap { background: var(--hp-panel-2) !important; border: 1px solid var(--hp-line) !important; }
.cs-faq, .cs-faq-item { background: var(--hp-panel) !important; }
.cs-faq-title { color: var(--hp-t1) !important; }
.cs-quick-tag {
  background: rgba(255,199,44,.08) !important;
  color: var(--hp-gold-2) !important;
  border: 1px solid rgba(255,199,44,.28) !important;
}
.cs-product-bar { background: var(--hp-panel-2) !important; }
.cs-product-name { color: var(--hp-t1) !important; }
.cs-product-price { color: var(--hp-orange) !important; }
.cs-product-btn {
  background: linear-gradient(135deg, #FFE27A, #FFC72C 45%, #C99612) !important;
  color: #17120A !important; font-weight: 800 !important; border-radius: 0 !important;
}
.csx-drawer, .csx-drawer-body { background: var(--hp-panel) !important; }
.csx-drawer-head { background: var(--hp-panel-2) !important; border-bottom: 1px solid var(--hp-line) !important; }
.csx-empty, .csx-drawer-tip { color: var(--hp-t3) !important; }

/* ---------- 订单查询 ---------- */
.search-box, .search-wrap {
  background: var(--hp-panel) !important;
  border: 1px solid var(--hp-line) !important;
  border-radius: 0 !important;
}
.search-box button, #qBtn {
  background: linear-gradient(135deg, #FFE27A, #FFC72C 45%, #C99612) !important;
  color: #17120A !important;
  font-weight: 800 !important;
  border-radius: 0 !important;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.search-tip { color: var(--hp-t3) !important; }
.search-tip b { color: var(--hp-gold-2) !important; }
.order-card { background: var(--hp-panel) !important; }
.oc-head { border-bottom: 1px solid var(--hp-line) !important; }
.oc-status { color: var(--hp-gold) !important; font-weight: 700 !important; }
.oc-bottom { border-top: 1px solid var(--hp-line) !important; }
.oc-link { color: var(--hp-gold) !important; }
.empty { color: var(--hp-t3) !important; }
.toast {
  background: rgba(18,21,28,.97) !important;
  color: var(--hp-t1) !important;
  border: 1px solid var(--hp-line) !important;
}

/* ---------- 支付成功 ---------- */
.hero { background: linear-gradient(180deg, rgba(255,199,44,.08), transparent) !important; }
.ok-circle { background: var(--hp-green) !important; }
.status, .title { color: var(--hp-t1) !important; }
.row { border-bottom: 1px solid rgba(255,255,255,.05) !important; }
.rows { background: var(--hp-panel) !important; border: 1px solid var(--hp-line) !important; border-radius: 2px !important; }
.deliver { background: var(--hp-panel-2) !important; border: 1px solid rgba(255,199,44,.3) !important; }
.foot { color: var(--hp-t3) !important; }

/* ---------- 杂项 ---------- */
.page a, .load-fail a, .load-fail { color: var(--hp-gold) !important; }
.empty .txt, .empty-txt { color: var(--hp-t3) !important; }
.page-loading .spin { border-color: var(--hp-line) !important; border-top-color: var(--hp-gold) !important; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: #2A303C; }
::-webkit-scrollbar-track { background: transparent; }
