/* ==========================================================================
 * 完美世界官方商城 · 前台视觉增强层  shop-polish.css  ?v=polish1
 * --------------------------------------------------------------------------
 * 加载方式：在 shop.html 的 </head> 之前新增唯一一行
 *   <link rel="stylesheet" href="/static/shop-polish.css?v=polish1">
 * 本文件位于原内嵌 <style> 与详情弹窗 <style> 之后，同特异性下自动胜出。
 *
 * 安全约定（务必保持）：
 *   1) 不改动任何 HTML 结构 / id / class / data-* / 事件 / 内联 onclick；
 *   2) 不设置商品名 .item .name 的 color，品级色完全由模板第 603 行内联
 *      style="color:..."（qc(it.name, it.color, it.stars) 返回）决定；
 *   3) 不改动 #detailModal 的深色卡片配色（其规则为 ID 特异性，位于原内嵌
 *      style 中），仅添加不影响配色的入场动画；
 *   4) 响应式断点原样保留：.wrap 手机 480px / 桌面(>=721px) 860px。
 *   5) 出错回滚：删除那一行 <link> 即可，无需改动其它任何内容。
 * ========================================================================== */


/* --------------------------------------------------------------------------
 * 0. 字体渲染与滚动条
 * ------------------------------------------------------------------------ */
html { -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
html, body { scrollbar-width: thin; scrollbar-color: rgba(184,137,43,.35) transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(184,137,43,.24);
  border: 2px solid transparent;
  background-clip: padding-box;
  border-radius: 9px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(184,137,43,.42);
  background-clip: padding-box;
}
::-webkit-scrollbar-corner { background: transparent; }


/* --------------------------------------------------------------------------
 * 1. 页面背景 · 柔和光晕 + 极淡网格 + 温润渐变（纯 CSS，不影响可读性）
 * ------------------------------------------------------------------------ */
body {
  background-color: #f6f8fc;
  background-image:
    radial-gradient(920px 460px at 6% -12%, rgba(184,137,43,.10), transparent 62%),
    radial-gradient(780px 430px at 100% 2%, rgba(184,137,43,.065), transparent 60%),
    linear-gradient(180deg, rgba(184,137,43,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,137,43,.035) 1px, transparent 1px),
    linear-gradient(180deg, #fcfdff 0%, #f4f6fb 50%, #eef1f8 100%);
  background-size: auto, auto, 30px 30px, 30px 30px, auto;
  background-attachment: fixed;
}


/* --------------------------------------------------------------------------
 * 2. 顶部品牌栏 header · 细腻金线 + 柔和阴影 + 徽标微光
 * ------------------------------------------------------------------------ */
header {
  position: relative;
  padding: 16px 18px;
  margin-bottom: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fffdf9 100%);
  border: 1px solid rgba(184,137,43,.22);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(28,34,56,.04), 0 12px 30px -18px rgba(120,86,20,.30);
}
header::before {
  content: "";
  position: absolute;
  left: 18px; right: 18px; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,137,43,.75), transparent);
}
.brand-logo {
  filter: drop-shadow(0 2px 6px rgba(160,116,31,.35));
}
.brand-text b {
  color: #2b2a28;
  font-weight: 800;
  letter-spacing: 2px;
}
.brand-text em {
  letter-spacing: 5px;
  text-shadow: 0 1px 0 rgba(255,255,255,.9);
}
.brand-menu {
  border-radius: 10px;
  transition: .18s ease;
}
.brand-menu:hover {
  background: rgba(184,137,43,.08);
  box-shadow: 0 0 0 3px rgba(184,137,43,.10);
}
.brand-sub {
  letter-spacing: .6px;
  color: #8b8296;
}


/* --------------------------------------------------------------------------
 * 3. 通用卡片 · 更柔和大圆角与金色系阴影
 * ------------------------------------------------------------------------ */
.card {
  border-color: rgba(28,34,56,.075);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(28,34,56,.035), 0 14px 34px -22px rgba(120,86,20,.28);
}
.me-card {
  background-image: linear-gradient(180deg, rgba(184,137,43,.045), rgba(255,255,255,0) 140px);
}


/* --------------------------------------------------------------------------
 * 4. 账号卡 · 头像 / UID 徽章 / 余额 / 按钮层次
 * ------------------------------------------------------------------------ */
.me-avatar {
  border-radius: 14px;
  background: linear-gradient(135deg, #d9b25a 0%, #a2751f 58%, #8c6214 100%);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 3px 12px rgba(160,116,31,.30), inset 0 1px 0 rgba(255,255,255,.45);
  letter-spacing: 1px;
}
.me-uid {
  border-radius: 999px;
  padding: 2px 10px;
  letter-spacing: .5px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.me-balance {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.me-hint { line-height: 1.55; }

/* 按钮：统一过渡、hover 抬升、按压反馈 */
.btn {
  border-radius: 10px;
  letter-spacing: .02em;
  transition: transform .14s ease, box-shadow .18s ease,
              background-color .18s ease, background-image .18s ease,
              border-color .18s ease, color .18s ease;
}
.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px -8px rgba(28,34,56,.38);
}
.btn:active:not(:disabled) {
  transform: translateY(0) scale(.97);
  box-shadow: none;
}
/* 主按钮：充值更突出 */
.btn.gold {
  background-image: linear-gradient(135deg, #c99a34 0%, #a2751f 55%, #8c6214 100%);
  border-color: transparent;
  letter-spacing: .06em;
  box-shadow: 0 3px 10px -3px rgba(160,116,31,.55), inset 0 1px 0 rgba(255,255,255,.28);
}
.btn.gold:hover:not(:disabled) {
  background-image: linear-gradient(135deg, #d6a63e 0%, #ad7d22 100%);
  box-shadow: 0 7px 18px -5px rgba(160,116,31,.60);
}
/* 次级按钮：更柔和，hover 带金意 */
.btn.ghost { border-color: rgba(28,34,56,.14); }
.btn.ghost:hover:not(:disabled) {
  background: rgba(184,137,43,.07);
  border-color: rgba(184,137,43,.45);
  color: var(--gold-2);
}
.btn.btn-icon:hover:not(:disabled) {
  border-color: rgba(184,137,43,.45);
  color: var(--gold-2);
}

/* 收货角色内嵌子卡 */
.me-role {
  border-radius: 12px;
  background: linear-gradient(180deg, #f9fafc, #f5f6fa);
  border-color: rgba(28,34,56,.08);
}
.me-role-sel select,
.me-role-sel select:focus {
  border-radius: 10px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.me-role-sel select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.me-mini {
  border-radius: 10px;
}
.me-mini:hover {
  border-color: rgba(184,137,43,.45);
  color: var(--gold-2);
}
.me-mini.on {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}


/* --------------------------------------------------------------------------
 * 5. 标签栏 · 选中态生长式金色下划线（不动 HTML / id / 内联提示块）
 * ------------------------------------------------------------------------ */
.shop-tabs {
  border-bottom-color: rgba(28,34,56,.08);
}
.stab {
  position: relative;
  border-bottom: 0;
  padding: 10px 2px 14px;
  transition: color .18s ease;
}
.stab::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 7px;
  width: 0; height: 3px;
  transform: translateX(-50%);
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold-2), #d9b25a);
  transition: width .22s ease;
}
.stab.on::after { width: 62%; }
.stab.on {
  font-weight: 700;
  text-shadow: 0 0 12px rgba(184,137,43,.18);
}


/* --------------------------------------------------------------------------
 * 6. 商品卡片 · 圆角 / 金色描边 / 轻微抬升 / 顶部高光
 *    注意：这里绝不设置 .name 的 color（品级色由内联样式决定）。
 * ------------------------------------------------------------------------ */
.item {
  position: relative;
  border-radius: 16px;
  border-color: rgba(28,34,56,.08);
  background-image: linear-gradient(180deg, rgba(184,137,43,.055) 0%, rgba(255,255,255,0) 46%);
  box-shadow: 0 1px 2px rgba(28,34,56,.035), 0 10px 26px -18px rgba(120,86,20,.26);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.item:hover {
  transform: translateY(-2px);
  border-color: rgba(184,137,43,.55);
  box-shadow: 0 6px 18px -6px rgba(120,86,20,.20), 0 0 0 1px rgba(184,137,43,.10);
}
.item .icon {
  border-radius: 12px;
  border-color: rgba(28,34,56,.09);
  box-shadow: 0 2px 8px rgba(28,34,56,.08);
}
.item .icon .ph {
  background: linear-gradient(135deg, #d4ab52, #9a7430 70%, #7d5c22);
}
/* 仅字体/字重/行高/字距 —— 不设 color，保留品级着色 */
.item .name {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .2px;
}
.item .info {
  font-size: 12px;
  color: #9097a8;
  margin-top: 4px;
}
.item .price {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: .2px;
}
/* 购买按钮：淡金描边，hover 变主按钮 */
.item .buy {
  background-image: linear-gradient(180deg, #fffdf8, #fff8ec);
  border-color: rgba(184,137,43,.45);
  color: var(--gold-2);
  font-weight: 700;
}
.item .buy:hover:not(:disabled) {
  background-image: linear-gradient(135deg, #c99a34, #a2751f);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 14px -6px rgba(160,116,31,.6);
}


/* --------------------------------------------------------------------------
 * 7. 签到规则卡 · 金色圆点细节
 * ------------------------------------------------------------------------ */
#checkinRules {
  background-image: linear-gradient(180deg, rgba(184,137,43,.05), rgba(255,255,255,0) 90px);
}
.cr-title { letter-spacing: .3px; }
.cr-tag {
  border-radius: 999px;
  padding: 3px 11px;
  letter-spacing: .5px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.cr-list li::before {
  box-shadow: 0 0 0 3px rgba(184,137,43,.12), 0 0 8px rgba(184,137,43,.4);
}
.cr-list b { font-weight: 800; }


/* --------------------------------------------------------------------------
 * 8. 登录卡片 · 金色顶线 + 聚焦光晕 + 主按钮微光
 * ------------------------------------------------------------------------ */
.login-wrap {
  background-color: #f6f8fc;
  background-image:
    radial-gradient(760px 420px at 50% -10%, rgba(184,137,43,.12), transparent 62%),
    linear-gradient(180deg, #fcfdff 0%, #f2f5fb 100%);
  background-attachment: fixed;
}
.login-card {
  position: relative;
  border-radius: 20px;
  padding: 34px 28px;
  border-color: rgba(184,137,43,.22);
  box-shadow: 0 2px 4px rgba(28,34,56,.04), 0 24px 60px -30px rgba(120,86,20,.35);
}
.login-card::before {
  content: "";
  position: absolute;
  left: 28px; right: 28px; top: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), #d9b25a, transparent);
}
.login-title {
  letter-spacing: 1px;
}
.login-card input {
  border-radius: 10px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.login-card input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft), 0 6px 16px -10px rgba(160,116,31,.5);
}
.login-btn {
  border-radius: 10px;
  letter-spacing: .12em;
  background-image: linear-gradient(135deg, #c99a34 0%, #a2751f 55%, #8c6214 100%);
  box-shadow: 0 6px 16px -6px rgba(160,116,31,.55), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .14s ease, box-shadow .18s ease, filter .18s ease;
}
.login-btn:hover { filter: brightness(1.06); box-shadow: 0 9px 22px -8px rgba(160,116,31,.62); }
.login-btn:active { transform: translateY(1px) scale(.99); box-shadow: none; }


/* --------------------------------------------------------------------------
 * 9. 签到成功弹窗 / Toast · 细节打磨
 * ------------------------------------------------------------------------ */
.ck-box {
  border-radius: 20px;
  border-color: rgba(184,137,43,.25);
  box-shadow: 0 2px 6px rgba(28,34,56,.06), 0 24px 64px -28px rgba(120,86,20,.40);
  animation: ckPop .22s cubic-bezier(.2,.9,.3,1.2);
}
.ck-ring {
  box-shadow: inset 0 0 0 1px rgba(184,137,43,.25), 0 0 0 6px rgba(184,137,43,.06);
}
.ck-amount { font-variant-numeric: tabular-nums; }
.ck-box .btn { border-radius: 10px; }
@keyframes ckPop {
  from { opacity: 0; transform: translateY(10px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.toast {
  border-radius: 999px;
  box-shadow: 0 8px 26px -10px rgba(0,0,0,.4);
  letter-spacing: .3px;
}


/* --------------------------------------------------------------------------
 * 10. 详情弹窗 · 仅添加入场动画，不触碰 #detailModal 的深色卡片配色
 * ------------------------------------------------------------------------ */
.modal-box { animation: dtPop .18s ease-out; }
@keyframes dtPop {
  from { opacity: 0; transform: translateY(6px) scale(.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}


/* --------------------------------------------------------------------------
 * 11. 页脚 · 细金线收口
 * ------------------------------------------------------------------------ */
.shop-foot {
  border-top-color: rgba(184,137,43,.18);
  letter-spacing: 3px;
}
