/* 改枪码方案页 */
.wrap{max-width:1280px;margin:0 auto;padding:12px 14px 30px}
.gsearch{height:30px;width:180px;max-width:34vw;padding:0 10px;border-radius:8px;
  border:1px solid #263140;background:rgba(15,23,32,.9);color:#e8eef5;font-size:13px;outline:none;font-family:inherit}
.gsearch:focus{border-color:#ffb020}

.tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.gtab{padding:7px 14px;border-radius:9px;border:1px solid #263140;background:#141c26;
  color:#9db0c4;font-size:13px;font-weight:700;cursor:pointer;font-family:inherit}
.gtab em{margin-left:6px;font-style:normal;font-size:11px;opacity:.7}
.gtab.on{background:#3a2a08;border-color:rgba(255,176,32,.55);color:#ffd98a}
.gnote{font-size:12px;color:#7d8fa4;margin-bottom:10px}

.gsec{margin-bottom:16px}
.gh{display:flex;align-items:center;gap:8px;margin:0 0 7px;font-size:14px;font-weight:800;color:#e8eef5}
.gh::before{content:'';width:4px;height:15px;border-radius:2px;background:#ffb020;display:block}
.gh em{font-style:normal;font-size:11px;font-weight:700;color:#7d8fa4}
.ggrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(268px,1fr));gap:8px}

.gc{padding:9px 10px;border-radius:10px;border:1px solid #26313f;background:#111925;cursor:pointer;
  transition:border-color .12s,background .12s}
.gc:hover{border-color:rgba(255,176,32,.5);background:#151f2b}
.gc.fav{border-color:rgba(255,176,32,.7);background:#1d1808}
.gn{display:flex;align-items:center;gap:6px;margin-bottom:3px}
.gn b{font-size:14px;font-weight:800;color:#e8eef5}
.rk{font-style:normal;font-size:10px;font-weight:800;padding:1px 5px;border-radius:4px;
  background:#233042;color:#9db0c4}
.gm{display:flex;gap:6px;margin-bottom:5px;min-height:16px}
.pr{font-size:11px;font-weight:800;color:#5ce08a}
.tg{font-size:11px;color:#ffd98a}
.gc2{font-size:11px;font-family:ui-monospace,Consolas,Menlo,monospace;color:#8fa3b8;
  background:#0c1219;border:1px solid #1d2733;border-radius:6px;padding:5px 6px;
  word-break:break-all;line-height:1.35}
.gact{display:flex;justify-content:space-between;margin-top:5px;font-size:11px;color:#7d8fa4}
.gc:hover .cp{color:#ffb020;font-weight:800}
.fv{font-size:11px}

.empty{padding:24px;text-align:center;color:#7d8fa4;font-size:13px}
.ft{margin-top:18px;padding-top:10px;border-top:1px solid #1b2532;font-size:11px;color:#5f7185;line-height:1.6}

.toast{position:fixed;left:50%;bottom:26px;transform:translateX(-50%);z-index:999;
  padding:9px 16px;border-radius:10px;background:rgba(20,28,38,.97);border:1px solid #2c3a4a;
  color:#e8eef5;font-size:13px;max-width:86vw;word-break:break-all;box-shadow:0 8px 28px rgba(0,0,0,.5)}
.toast[hidden]{display:none}

@media(max-width:820px){
  .ggrid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:7px}
  .gsearch{width:120px}
}
@media(max-width:560px){
  .ggrid{grid-template-columns:1fr}
}

/* ===== 第71轮：一枪一卡（枪名 + 枪图 + 下面列所有改枪码）===== */
.gcards{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:10px}
.gcard{position:relative;border:1px solid #26313f;background:linear-gradient(180deg,#131c26,#0e1620);border-radius:12px;
  overflow:hidden;display:flex;flex-direction:column}
/* 【第78轮】图区改亮底：原来全站统一暗色，枪身深色的（AK/AR 系）几乎看不清；
   现在按小涛查的「1 级普通」灰白做渐变底，枪的轮廓和涂装都能看出来。 */
.gcard .cimg{height:104px;display:flex;align-items:center;justify-content:center;padding:8px 10px 6px;
  background:linear-gradient(170deg,#fbfdfe 0%,#e9eff4 55%,#dde5ec 100%);
  border-bottom:1px solid rgba(255,255,255,.10)}
.gcard .cimg img{max-width:100%;max-height:96px;width:auto;object-fit:contain;
  filter:contrast(1.06) saturate(1.05) drop-shadow(0 2px 4px rgba(0,0,0,.22))}
.gcard .cimg .noimg{font-size:12px;color:#5b6d81;font-weight:700}
/* 枪械等级描边（枪械本体基本都是 1 级灰白，0 级为未分级） */
.gcard[data-g]{--gs:#cdd5d5}
.gcard[data-g="0"]{--gs:#9aa6b2}
.gcard[data-g="1"]{--gs:#cdd5d5}
.gcard[data-g="2"]{--gs:#188d14}
.gcard[data-g="3"]{--gs:#658bce}
.gcard[data-g="4"]{--gs:#9b61c8}
.gcard[data-g="5"]{--gs:#e8a64e}
.gcard[data-g="6"]{--gs:#cb464a}
.gcard[data-g]{border-top:3px solid var(--gs)}
.gcard[data-g]::after{content:'';position:absolute;inset:0;border-radius:12px;pointer-events:none;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.05)}
.gcard .cname{display:flex;align-items:baseline;gap:7px;padding:2px 11px 8px}
.gcard .cname b{font-size:16px;font-weight:900;color:#e8eef5;letter-spacing:.3px}
.gcard .cname i{font-style:normal;font-size:10px;color:#7d8fa4;font-weight:700;
  background:#1a2431;border-radius:4px;padding:1px 5px}
.crows{border-top:1px solid #1d2733;margin-top:auto}
.crow{display:flex;align-items:center;gap:7px;padding:6px 11px;cursor:pointer;
  border-bottom:1px solid #16202b;transition:background .12s}
.crow:last-child{border-bottom:none}
.crow:hover{background:#17222f}
.crow .kt{flex:none;font-size:10px;font-weight:900;padding:1px 6px;border-radius:4px;line-height:15px;
  border:1px solid transparent}
.kt.full{background:rgba(59,130,246,.16);color:#93c5fd;border-color:rgba(59,130,246,.35)}
.kt.half{background:rgba(34,197,94,.15);color:#6ee7a0;border-color:rgba(34,197,94,.32)}
.kt.gai{background:rgba(148,163,184,.14);color:#a9bacc;border-color:rgba(148,163,184,.3)}
.kt.yao{background:rgba(249,115,22,.16);color:#fdba74;border-color:rgba(249,115,22,.35)}
.kt.scope{background:rgba(168,85,247,.16);color:#d8b4fe;border-color:rgba(168,85,247,.35)}
.kt.other{background:rgba(148,163,184,.12);color:#8b9cb0;border-color:rgba(148,163,184,.24)}
.crow .ct{flex:1;min-width:0;font-size:11px;color:#9db0c4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.crow .cp{flex:none;font-size:11.5px;font-weight:800;color:#5ce08a;font-variant-numeric:tabular-nums}
.crow .cc{flex:none;font-size:10px;color:#7d8fa4;border:1px solid #26313f;border-radius:5px;padding:1px 6px}
.crow:hover .cc{color:#ffd98a;border-color:rgba(255,176,32,.5)}

/* ===== 第72轮：视图切换 / 收藏 / 最优惠推荐 / 上传 ===== */
.vmode{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.vm{padding:8px 14px;border-radius:10px;border:1px solid #263140;background:#141c26;
  color:#9db0c4;font-size:13px;font-weight:800;cursor:pointer;font-family:inherit;
  transition:border-color .14s,background .14s,color .14s}
.vm em{margin-left:5px;font-style:normal;font-size:10.5px;padding:1px 5px;border-radius:5px;
  background:#223041;color:#9db0c4}
.vm:hover{border-color:#3f5470;color:#cfe0f0}
.vm.on{background:linear-gradient(180deg,#ffc650,#f0a015);border-color:transparent;color:#1a1206}
.vm.on em{background:rgba(26,18,6,.18);color:#2a1d06}
.vm.add{margin-left:auto;border-style:dashed;color:#8fa3b8}
.vm.add:hover{color:#ffd98a;border-color:rgba(255,176,32,.6)}

.crow .fav{flex:none;background:none;border:none;cursor:pointer;padding:0 2px;font-size:14px;
  line-height:1;color:#4d5f73;font-family:inherit;transition:color .12s,transform .12s}
.crow .fav:hover,.brow .fav:hover{color:#ffd98a;transform:scale(1.15)}
.crow .fav.on,.brow .fav.on{color:#ffb020;text-shadow:0 0 10px rgba(255,176,32,.5)}

.besthead{padding:10px 14px;margin-bottom:10px;border-radius:11px;border:1px solid #26313f;
  background:linear-gradient(180deg,#141d28,#0e151e);font-size:12.5px;color:#9db0c4}
.besthead b{color:#5ce08a;font-size:15px;font-family:ui-monospace,Consolas,monospace}
.bestlist{display:flex;flex-direction:column;gap:6px}
.brow{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:11px;cursor:pointer;
  border:1px solid #1f2b39;background:#111925;transition:border-color .14s,background .14s,transform .14s}
.brow:hover{border-color:rgba(255,176,32,.4);background:#16202c;transform:translateX(2px)}
.brow.mine{border-color:rgba(92,224,138,.22)}
.bi{flex:none;width:22px;text-align:center;font-size:11px;font-weight:900;color:#5b6d81;
  font-family:ui-monospace,Consolas,monospace}
/* 【第78轮】列表里的小枪图同样改亮底 */
.bimg{flex:none;width:60px;height:40px;display:flex;align-items:center;justify-content:center;
  border-radius:8px;background:linear-gradient(160deg,#fafcfe,#e3eaf1);border:1px solid rgba(255,255,255,.14);padding:2px}
.bimg img{max-width:100%;max-height:100%;object-fit:contain;
  filter:contrast(1.05) drop-shadow(0 1px 2px rgba(0,0,0,.2))}
.bn{flex:1;min-width:0}
.bn b{display:block;font-size:13.5px;font-weight:800;color:#e8eef5;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bn i{font-style:normal;font-size:10.5px;color:#7d8fa4}
.bp{flex:none;font-size:14px;font-weight:900;color:#5ce08a;font-variant-numeric:tabular-nums;
  font-family:ui-monospace,Consolas,monospace}
.brow .cc{flex:none;font-size:10px;color:#7d8fa4;border:1px solid #26313f;border-radius:5px;padding:1px 6px}
.brow:hover .cc{color:#ffd98a;border-color:rgba(255,176,32,.5)}

.upform{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.upform label{display:block;font-size:11.5px;color:#8fa3b8;font-weight:700}
.upform label.full{grid-column:1/-1}
.upform input,.upform select,.upform textarea{display:block;width:100%;margin-top:4px;
  background:#0d151d;border:1px solid #26313f;color:#dbe6f2;border-radius:7px;padding:7px 9px;
  font-size:13px;font-family:inherit;outline:none;box-sizing:border-box;resize:vertical}
.upform input:focus,.upform select:focus,.upform textarea:focus{border-color:#3f5470;background:#101a24}
.upform textarea{font-family:ui-monospace,Consolas,monospace;font-size:12px;word-break:break-all}

@media(max-width:560px){
  .vm{padding:6px 10px;font-size:12px}
  .vm.add{margin-left:0;width:100%;text-align:center}
  .bimg{width:44px;height:30px}
  .bp{font-size:13px}
  .upform{grid-template-columns:1fr}
}

/* 第72轮：顶栏加了账号条之后（搜索框 + 状态 + 账号）在窄屏会挤成一条，给它可收缩的基准宽度 */
.top{gap:8px}
.top .brand{flex:none}
.top .gsearch{flex:0 1 180px;min-width:104px}
.top .stat{flex:0 1 auto;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.top .sy{flex:0 1 auto;min-width:0}
.top .sy .sy-in{min-width:74px}
@media(max-width:1200px){
  .top{flex-wrap:wrap}
  .top .gsearch{order:5;flex:1 1 100%;max-width:none}
  .top .stat{order:6;width:100%}
}

/* ===== 第75轮：模式大选框 + 枪种二级选择 ===== */
.mtabs{display:flex;gap:9px;flex-wrap:wrap;margin:2px 0 12px}
.mtabs .mt{flex:1 1 140px;min-height:46px;padding:8px 14px;border-radius:11px;cursor:pointer;
  border:1px solid #2a3a4c;background:linear-gradient(180deg,#161f2a,#111a24);color:#b6c8da;
  font-size:16px;font-weight:900;letter-spacing:.6px;font-family:inherit;
  display:flex;align-items:center;justify-content:center;gap:6px;
  transition:border-color .14s,background .14s,color .14s,transform .1s}
.mtabs .mt:hover{border-color:#3f5470;color:#e8eef5;transform:translateY(-1px)}
.mtabs .mt.on{background:linear-gradient(180deg,#ffc650,#f0a015);border-color:transparent;color:#1a1206;
  box-shadow:0 6px 18px rgba(255,176,32,.22)}
.mtabs .mt.like{font-size:14px;font-weight:800;letter-spacing:.3px;flex:0 1 auto;min-width:132px;
  border-style:dashed;color:#9db0c4}
.mtabs .mt.like.on{background:linear-gradient(180deg,#1d2a3a,#16202c);border-style:solid;
  border-color:rgba(92,224,138,.55);color:#b9f3d0;box-shadow:none}
.mtabs .mt.best{color:#ffd98a;border-color:rgba(255,176,32,.42)}
.mtabs .mt em{font-style:normal;font-size:10.5px;font-weight:800;padding:1px 6px;border-radius:5px;
  background:rgba(255,255,255,.08);color:#9db0c4}
.mtabs .mt.on em{background:rgba(26,18,6,.2);color:#2a1d06}

.cats{display:none;gap:7px;flex-wrap:wrap;margin:0 0 10px}
.cats .ct{padding:7px 13px;border-radius:9px;border:1px solid #263140;background:#131c26;cursor:pointer;
  color:#9db0c4;font-size:13.5px;font-weight:800;font-family:inherit;
  transition:border-color .12s,background .12s,color .12s}
.cats .ct em{margin-left:6px;font-style:normal;font-size:10.5px;color:#6b7d92;font-weight:700}
.cats .ct:hover{border-color:#3f5470;color:#dbe6f2}
.cats .ct.on{background:#233042;border-color:rgba(255,176,32,.65);color:#ffd98a}
.cats .ct.on em{color:#c9a45e}

.gbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 10px}
.gbar:empty{display:none}
.gbar .ghint{font-size:11.5px;color:#8a6a2a}
.crow .ct2{flex:1;min-width:0;font-size:11px;color:#9db0c4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

@media(max-width:700px){
  .mtabs .mt{flex:1 1 46%;min-height:42px;font-size:15px}
  .mtabs .mt.like{flex:1 1 46%;min-width:0;font-size:13px}
  .cats .ct{font-size:12.5px;padding:6px 10px}
}
