/* ============================================================
   Steam 账号商城 - 前台样式（仿 Steam 深色风格 / 全端自适应）
   ============================================================ */

:root {
    --bg:          #1b2838;
    --bg-deep:     #171a21;
    --panel:       #16202d;
    --panel-2:     #1f3243;
    --panel-3:     #2a475e;
    --line:        #2a3f5a;
    --text:        #c6d4df;
    --text-strong: #ffffff;
    --muted:       #8f98a0;
    --blue:        #66c0f4;
    --blue-deep:   #1a9fff;
    --green:       #a4d007;
    --green-deep:  #4c6b22;
    --orange:      #f0a500;
    --red:         #e05252;
    --radius:      4px;
    --shadow:      0 6px 20px rgba(0, 0, 0, .45);
    --maxw:        1180px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    background-image: linear-gradient(180deg, #1b2838 0%, #1b2838 320px, #16202d 100%);
    color: var(--text);
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img { max-width: 100%; border: 0; vertical-align: middle; }
a { color: var(--blue); text-decoration: none; transition: color .15s; }
a:hover { color: var(--text-strong); }
h1, h2, h3, h4 { margin: 0 0 12px; color: var(--text-strong); font-weight: 600; line-height: 1.4; }
p { margin: 0 0 12px; }
ul, ol { margin: 0 0 12px; padding-left: 20px; }
input, select, textarea, button { font-family: inherit; font-size: 14px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.site-main { flex: 1 0 auto; padding-bottom: 40px; }

/* ---------------- 按钮 ---------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    transition: background .18s, color .18s, box-shadow .18s, transform .12s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 6px 13px; font-size: 13px; }
.btn-lg { padding: 12px 30px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-green {
    color: #d2e885;
    background: linear-gradient(to bottom, #a4d007 5%, #536904 95%);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, .25);
}
.btn-green:hover { color: #fff; background: linear-gradient(to bottom, #b6e919 5%, #5d7a05 95%); }

.btn-blue {
    color: #fff;
    background: linear-gradient(to bottom, #67c1f5 5%, #417a9b 95%);
}
.btn-blue:hover { color: #fff; background: linear-gradient(to bottom, #8fd3ff 5%, #4a8cb1 95%); }

.btn-ghost {
    color: var(--text);
    background: rgba(103, 193, 245, .12);
    box-shadow: inset 0 0 0 1px rgba(103, 193, 245, .35);
}
.btn-ghost:hover { color: #fff; background: rgba(103, 193, 245, .26); }

.btn-gray { color: var(--text); background: #2a3f5a; }
.btn-gray:hover { color: #fff; background: #35506f; }

.btn-danger { color: #fff; background: #a3392f; }
.btn-danger:hover { color: #fff; background: #c04a3e; }

.btn-disabled, .btn[disabled] {
    opacity: .45; cursor: not-allowed; filter: grayscale(.4);
}

/* ---------------- 顶部导航 ---------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: linear-gradient(to bottom, #171a21 0%, #1b2838 100%);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .5);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 64px;
    flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; color: #fff; }
.brand:hover { color: #fff; }
.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #1a9fff, #0e6ba8);
}
.brand-text { font-size: 17px; font-weight: 700; letter-spacing: .2px; }
.brand-logo { max-height: 40px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 2px; flex: 1 1 auto; flex-wrap: wrap; }
.nav-link {
    display: inline-block;
    padding: 8px 12px;
    color: #b8c6d2;
    font-size: 14px;
    border-radius: var(--radius);
    white-space: nowrap;
}
.nav-link:hover { color: #fff; background: rgba(102, 192, 244, .12); }
.nav-link.active { color: #fff; background: rgba(102, 192, 244, .2); }
.nav-drop { position: relative; }
.nav-drop-title { cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.caret {
    width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent;
    border-top: 5px solid currentColor; display: inline-block;
}
.nav-drop-menu {
    position: absolute;
    top: 100%; left: 0;
    min-width: 158px;
    padding: 6px;
    background: #16202d;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .16s, transform .16s, visibility .16s;
    z-index: 70;
}
.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-drop-menu a, .nav-drop-empty {
    display: block;
    padding: 7px 10px;
    border-radius: 3px;
    color: var(--text);
    font-size: 13px;
}
.nav-drop-menu a:hover { background: rgba(102, 192, 244, .18); color: #fff; }
.nav-mobile-extra { display: none; }

.header-search { position: relative; flex: 0 1 240px; display: flex; }
.header-search input {
    width: 100%;
    padding: 8px 38px 8px 12px;
    background: #316282;
    border: 0;
    border-radius: var(--radius);
    color: #fff;
    outline: none;
}
.header-search input::placeholder { color: #a7c3d6; }
.header-search input:focus { background: #3d7597; box-shadow: 0 0 0 2px rgba(102, 192, 244, .55); }
.header-search button {
    position: absolute; right: 0; top: 0;
    width: 36px; height: 100%;
    background: transparent; border: 0; color: #cfe6f5; cursor: pointer;
}
.header-search button:hover { color: #fff; }

.header-user { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.user-menu { position: relative; }
.user-trigger { display: flex; align-items: center; gap: 8px; color: var(--text); }
.user-trigger img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: #2a475e; }
.user-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.user-drop {
    position: absolute; right: 0; top: calc(100% + 8px);
    min-width: 132px; padding: 6px;
    background: #16202d; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .16s, transform .16s, visibility .16s;
    z-index: 70;
}
.user-menu:hover .user-drop, .user-menu:focus-within .user-drop { opacity: 1; visibility: visible; transform: translateY(0); }
.user-drop a { display: block; padding: 7px 10px; border-radius: 3px; color: var(--text); font-size: 13px; }
.user-drop a:hover { background: rgba(102, 192, 244, .18); color: #fff; }

.nav-toggle {
    display: none;
    width: 40px; height: 36px;
    background: rgba(102, 192, 244, .12);
    border: 0; border-radius: var(--radius);
    cursor: pointer; padding: 9px 10px;
}
.nav-toggle span { display: block; height: 2px; background: #c6d4df; border-radius: 2px; margin: 4px 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.announce-bar { background: rgba(102, 192, 244, .12); border-top: 1px solid rgba(102, 192, 244, .2); font-size: 13px; }
.announce-bar .container { display: flex; align-items: center; gap: 10px; padding: 8px 16px; }
.announce-tag {
    flex: 0 0 auto; padding: 1px 8px; border-radius: 2px;
    background: var(--blue); color: #0d1a26; font-size: 12px; font-weight: 700;
}
.announce-text { color: #cfdae4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------- 通用板块 ---------------- */
.section { margin-top: 28px; }
.section-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 14px; flex-wrap: wrap;
}
.section-head h2 {
    position: relative;
    margin: 0; padding-left: 12px; font-size: 18px;
}
.section-head h2::before {
    content: ""; position: absolute; left: 0; top: 4px; bottom: 4px;
    width: 3px; border-radius: 2px; background: var(--blue);
}
.section-head .more { font-size: 13px; color: var(--muted); }
.section-head .more:hover { color: var(--blue); }

/* ---------------- 首屏 Banner ---------------- */
.hero {
    position: relative;
    margin-top: 20px;
    padding: 34px 28px;
    border-radius: 6px;
    overflow: hidden;
    background-color: #1d3b55;
    background-image:
        radial-gradient(circle at 88% 18%, rgba(102, 192, 244, .28), transparent 55%),
        linear-gradient(120deg, #10202f 0%, #1b3a54 55%, #22516f 100%);
    box-shadow: var(--shadow);
}
.hero::after {
    content: "";
    position: absolute; right: -60px; bottom: -70px;
    width: 240px; height: 240px; border-radius: 50%;
    background: rgba(102, 192, 244, .12);
}
.hero-inner { position: relative; z-index: 1; max-width: 660px; }
.hero h1 { font-size: 27px; margin-bottom: 10px; }
.hero p { color: #a9bfd0; font-size: 14px; margin-bottom: 18px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 26px; margin-top: 22px; flex-wrap: wrap; }
.hero-stat b { display: block; font-size: 21px; color: var(--blue); line-height: 1.3; }
.hero-stat span { font-size: 12px; color: var(--muted); }

/* ---------------- 筛选栏 ---------------- */
.filter-bar {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 14px 16px; margin-top: 20px;
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.filter-bar .filter-label { font-size: 13px; color: var(--muted); }
.chip {
    display: inline-block; padding: 5px 12px; border-radius: 20px;
    background: rgba(102, 192, 244, .1); color: var(--text); font-size: 13px;
    border: 1px solid transparent;
}
.chip:hover { background: rgba(102, 192, 244, .22); color: #fff; }
.chip.active { background: var(--blue); color: #0d1a26; font-weight: 600; border-color: var(--blue); }
.filter-bar select, .filter-bar input[type="text"] {
    padding: 6px 10px; background: #316282; border: 0; border-radius: 3px; color: #fff; outline: none;
}
.filter-spacer { flex: 1 1 auto; }

/* ---------------- 商品卡片 ---------------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(226px, 1fr));
    gap: 16px;
}
.product-card {
    position: relative;
    display: flex; flex-direction: column;
    background: linear-gradient(to bottom, #21384d 0%, #16202d 100%);
    border: 1px solid #24405a;
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(102, 192, 244, .6);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .55);
}
.product-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background: #0e1621;
    overflow: hidden;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.product-card:hover .product-thumb img { transform: scale(1.05); }

.product-badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 5px; flex-wrap: wrap; z-index: 2; }
.badge {
    padding: 2px 9px; border-radius: 2px; font-size: 12px; font-weight: 700;
    color: #fff; letter-spacing: .3px; box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
}
.badge-hot     { background: linear-gradient(to bottom, #f0734a, #c9431f); }
.badge-sold    { background: linear-gradient(to bottom, #6c7a89, #48535d); }
.badge-offline { background: linear-gradient(to bottom, #555f6b, #333a42); }

.product-card.is-sold .product-thumb::after,
.product-card.is-offline .product-thumb::after {
    content: ""; position: absolute; inset: 0; background: rgba(10, 16, 24, .58);
}
.product-card.is-sold .product-thumb::before,
.product-card.is-offline .product-thumb::before {
    content: attr(data-mark);
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-14deg);
    z-index: 3; padding: 4px 18px; border: 2px solid rgba(255, 255, 255, .75);
    color: #fff; font-size: 17px; font-weight: 700; letter-spacing: 3px; border-radius: 4px;
}

.product-body { padding: 11px 13px 13px; display: flex; flex-direction: column; flex: 1 1 auto; }
.product-title {
    display: block; margin-bottom: 8px;
    color: #fff; font-size: 14px; font-weight: 600; line-height: 1.45;
    height: 2.9em; overflow: hidden;
}
.product-title:hover { color: var(--blue); }
.product-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.product-meta span { display: inline-flex; align-items: center; gap: 3px; }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { color: #beee11; font-size: 17px; font-weight: 700; }
.price-old { color: #6d7a86; font-size: 12px; text-decoration: line-through; margin-left: 5px; }
.product-views { font-size: 12px; color: var(--muted); }

/* ---------------- 商品详情 ---------------- */
.breadcrumb { padding: 16px 0 0; font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { margin: 0 6px; }

.detail-wrap { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 22px; margin-top: 16px; }

.gallery { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.gallery-main {
    position: relative; aspect-ratio: 16 / 9; border-radius: 3px; overflow: hidden; background: #0e1621;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs img {
    width: 92px; height: 52px; object-fit: cover; border-radius: 3px; cursor: pointer;
    opacity: .6; border: 2px solid transparent; transition: opacity .15s, border-color .15s; flex: 0 0 auto;
}
.gallery-thumbs img:hover { opacity: .9; }
.gallery-thumbs img.active { opacity: 1; border-color: var(--blue); }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.panel + .panel { margin-top: 18px; }
.panel-title { font-size: 16px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }

.detail-side .price-box { margin-bottom: 14px; }
.detail-side .price { font-size: 30px; }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 9px 0; border-bottom: 1px dashed rgba(143, 152, 160, .22); font-size: 13px;
}
.info-list li:last-child { border-bottom: 0; }
.info-list .k { color: var(--muted); flex: 0 0 auto; }
.info-list .v { color: #e2ebf3; text-align: right; word-break: break-all; }
.copy-btn {
    margin-left: 6px; padding: 1px 7px; font-size: 11px; border-radius: 2px;
    background: rgba(102, 192, 244, .18); color: var(--blue); border: 0; cursor: pointer;
}
.copy-btn:hover { background: rgba(102, 192, 244, .35); color: #fff; }
.masked { color: var(--muted); letter-spacing: 1px; }

.tag-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tag { padding: 2px 10px; border-radius: 2px; font-size: 12px; background: rgba(102, 192, 244, .14); color: var(--blue); }
.tag-hot { background: rgba(240, 115, 74, .2); color: #ff9b78; }
.tag-sold { background: rgba(140, 150, 160, .2); color: #b7c2cc; }
.tag-offline { background: rgba(120, 130, 140, .2); color: #a6b0ba; }

.desc-body { color: #b9c8d6; font-size: 14px; line-height: 1.85; }
.desc-body p { margin: 0 0 10px; }

/* 游戏库 */
.game-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.game-toolbar input {
    flex: 1 1 180px; padding: 7px 11px; background: #316282; border: 0; border-radius: 3px; color: #fff; outline: none;
}
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 10px; }
.game-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; background: rgba(14, 22, 33, .55);
    border: 1px solid rgba(42, 63, 90, .8); border-radius: 3px;
}
.game-item img { width: 32px; height: 32px; border-radius: 2px; background: #0e1621; flex: 0 0 auto; }
.game-info { min-width: 0; flex: 1 1 auto; }
.game-name { display: block; font-size: 13px; color: #dbe6ef; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-time { font-size: 11px; color: var(--muted); }
.game-empty { padding: 26px 0; text-align: center; color: var(--muted); font-size: 13px; }

/* 评价 */
.review-summary { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; }
.review-score { font-size: 32px; color: #beee11; font-weight: 700; line-height: 1; }
.stars i { font-style: normal; color: #4b5a68; font-size: 15px; }
.stars i.on { color: #ffcc33; }
.review-item { padding: 14px 0; border-bottom: 1px solid rgba(42, 63, 90, .7); }
.review-item:last-child { border-bottom: 0; }
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-head img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #2a475e; }
.review-head .who { font-size: 13px; color: #e2ebf3; }
.review-head .when { font-size: 12px; color: var(--muted); margin-left: auto; }
.review-text { color: #b9c8d6; font-size: 13.5px; word-break: break-word; }
.review-reply {
    margin-top: 10px; padding: 9px 12px; border-left: 3px solid var(--blue);
    background: rgba(102, 192, 244, .08); border-radius: 0 3px 3px 0; font-size: 13px; color: #a9c8dd;
}
.review-reply b { color: var(--blue); }

.rate-picker { display: flex; gap: 4px; margin-bottom: 10px; }
.rate-picker i { font-style: normal; font-size: 26px; color: #4b5a68; cursor: pointer; transition: color .12s; }
.rate-picker i.on { color: #ffcc33; }

/* ---------------- 表单 ---------------- */
.form-row { margin-bottom: 15px; }
.form-row label { display: block; margin-bottom: 6px; font-size: 13px; color: #acb8c2; }
.form-row .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.input, input[type="text"].input, input[type="password"].input, input[type="email"].input,
input[type="number"].input, select.input, textarea.input {
    width: 100%; padding: 9px 12px;
    background: #316282; border: 0; border-radius: 3px; color: #fff; outline: none;
}
.input::placeholder { color: #a7c3d6; }
.input:focus { background: #3d7597; box-shadow: 0 0 0 2px rgba(102, 192, 244, .5); }
textarea.input { min-height: 110px; resize: vertical; line-height: 1.7; }
select.input option { background: #16202d; color: #fff; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 16px; }
.form-actions { display: flex; align-items: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

.captcha-row { display: flex; align-items: center; gap: 10px; }
.captcha-q {
    flex: 0 0 auto; padding: 9px 14px; border-radius: 3px;
    background: linear-gradient(135deg, #2a475e, #1b2838);
    color: #beee11; font-size: 15px; letter-spacing: 2px; font-weight: 700;
    border: 1px dashed rgba(102, 192, 244, .4); user-select: none;
}

/* ---------------- 提示 ---------------- */
.alert { padding: 11px 15px; margin: 14px 0; border-radius: var(--radius); font-size: 13.5px; }
.alert-success { background: rgba(164, 208, 7, .12); border: 1px solid rgba(164, 208, 7, .45); color: #c3e35a; }
.alert-error   { background: rgba(224, 82, 82, .14); border: 1px solid rgba(224, 82, 82, .45); color: #ff9d9d; }
.alert-info    { background: rgba(102, 192, 244, .12); border: 1px solid rgba(102, 192, 244, .4); color: #a9d8f5; }

.empty-box { padding: 50px 20px; text-align: center; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.empty-box .big { font-size: 34px; color: #3b566f; display: block; margin-bottom: 10px; }

/* ---------------- 分页 ---------------- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 26px 0 6px; flex-wrap: wrap; }
.page-item {
    display: inline-block; min-width: 36px; padding: 7px 11px; text-align: center;
    background: rgba(102, 192, 244, .1); border-radius: 3px; color: var(--text); font-size: 13px;
}
a.page-item:hover { background: rgba(102, 192, 244, .28); color: #fff; }
.page-item.active { background: var(--blue); color: #0d1a26; font-weight: 700; }
.page-item.disabled { opacity: .38; }
.page-item.dots { background: transparent; }

/* ---------------- 列表 / 表格 ---------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table.data { width: 100%; border-collapse: collapse; min-width: 640px; }
table.data th, table.data td { padding: 10px 12px; text-align: left; font-size: 13px; border-bottom: 1px solid rgba(42, 63, 90, .7); vertical-align: middle; }
table.data th { background: #22344a; color: #dbe6ef; font-weight: 600; white-space: nowrap; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: rgba(102, 192, 244, .06); }
table.data td img.thumb { width: 74px; height: 42px; object-fit: cover; border-radius: 2px; background: #0e1621; }

/* ---------------- 页脚 ---------------- */
.site-footer { flex: 0 0 auto; margin-top: 40px; background: #171a21; border-top: 1px solid #24313f; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 24px; padding: 30px 16px 22px; }
.footer-col h4 { font-size: 14px; margin-bottom: 12px; color: #fff; }
.footer-col a, .footer-col span { display: block; font-size: 13px; color: #8f98a0; margin-bottom: 7px; }
.footer-col a:hover { color: var(--blue); }
.footer-about p { font-size: 13px; color: #8f98a0; line-height: 1.8; margin-top: 10px; }
.footer-brand { display: flex; align-items: center; gap: 9px; color: #fff; font-size: 15px; font-weight: 600; }
.footer-brand .brand-mark { width: 28px; height: 28px; }
.footer-bottom { border-top: 1px solid #24313f; padding: 12px 0; font-size: 12.5px; color: #6f7b86; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------------- 悬浮客服 / 回到顶部 ---------------- */
.side-contact { position: fixed; right: 16px; bottom: 84px; z-index: 55; }
.side-contact-btn {
    width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
    background: linear-gradient(135deg, #67c1f5, #2f6f92); color: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .45); display: flex; align-items: center; justify-content: center;
}
.side-contact-btn:hover { background: linear-gradient(135deg, #8fd3ff, #3b83aa); }
.side-contact-panel {
    position: absolute; right: 56px; bottom: 0; width: 214px; padding: 14px;
    background: #16202d; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateX(8px);
    transition: opacity .18s, transform .18s, visibility .18s;
}
.side-contact.open .side-contact-panel { opacity: 1; visibility: visible; transform: translateX(0); }
.side-contact-panel h4 { font-size: 14px; margin-bottom: 10px; }
.sc-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 5px 0; cursor: pointer; }
.sc-row span { color: var(--muted); }
.sc-row b { color: #e2ebf3; word-break: break-all; text-align: right; }
.sc-row:hover b { color: var(--blue); }
.sc-tip { font-size: 11.5px; color: var(--muted); margin: 8px 0 0; }

.back-top {
    position: fixed; right: 16px; bottom: 26px; z-index: 55;
    width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(102, 192, 244, .22); color: #cfe6f5;
    display: none; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .4);
}
.back-top.show { display: flex; }
.back-top:hover { background: rgba(102, 192, 244, .42); color: #fff; }

/* ---------------- 账号中心 ---------------- */
.account-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; margin-top: 20px; align-items: start; }
.account-side { text-align: center; }
.account-side .avatar-big {
    width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
    border: 3px solid rgba(102, 192, 244, .45); background: #2a475e; margin-bottom: 12px;
}
.account-side .nick { font-size: 16px; color: #fff; font-weight: 600; }
.account-side .uname { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.account-menu { list-style: none; margin: 0; padding: 0; text-align: left; }
.account-menu li { margin-bottom: 4px; }
.account-menu a { display: block; padding: 8px 12px; border-radius: 3px; color: var(--text); font-size: 13.5px; }
.account-menu a:hover { background: rgba(102, 192, 244, .14); color: #fff; }
.account-menu a.active { background: rgba(102, 192, 244, .22); color: #fff; }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat-card { padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.stat-card b { display: block; font-size: 24px; color: var(--blue); line-height: 1.3; }
.stat-card span { font-size: 12.5px; color: var(--muted); }

/* ---------------- 公告 ---------------- */
.notice-list { list-style: none; margin: 0; padding: 0; }
.notice-list li { padding: 14px 0; border-bottom: 1px solid rgba(42, 63, 90, .7); }
.notice-list li:last-child { border-bottom: 0; }
.notice-list .n-title { font-size: 15px; color: #fff; font-weight: 600; }
.notice-list .n-title:hover { color: var(--blue); }
.notice-list .n-date { font-size: 12px; color: var(--muted); margin-left: 8px; }
.notice-list .n-desc { font-size: 13px; color: #9fb0be; margin-top: 5px; }

/* ---------------- 分栏内容页 ---------------- */
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; margin-top: 20px; align-items: start; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
    .detail-wrap { grid-template-columns: 1fr; }
    .page-grid { grid-template-columns: 1fr; }
    .account-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .nav-toggle { display: block; order: 3; margin-left: auto; }
    .header-user { order: 2; margin-left: auto; }
    .main-nav {
        order: 5; flex-basis: 100%; flex-direction: column; align-items: stretch;
        gap: 2px; max-height: 0; overflow: hidden; transition: max-height .25s ease;
    }
    .main-nav.open { max-height: 620px; padding-bottom: 10px; }
    .main-nav .nav-link { padding: 11px 8px; border-radius: 0; border-bottom: 1px solid rgba(42, 63, 90, .55); }
    .nav-drop-menu {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: 0; border-radius: 0; background: rgba(14, 22, 33, .55);
        padding: 0 0 6px 12px; min-width: 0;
    }
    .nav-mobile-extra { display: block; }
    .header-search { order: 4; flex-basis: 100%; margin-bottom: 10px; }
    .hero { padding: 26px 18px; }
    .hero h1 { font-size: 22px; }
}

@media (max-width: 620px) {
    body { font-size: 13.5px; }
    .container { padding: 0 12px; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; }
    .product-title { font-size: 13px; height: 2.9em; }
    .price { font-size: 15px; }
    .brand-text { font-size: 15px; }
    .footer-inner { grid-template-columns: 1fr; gap: 16px; }
    .hero-stats { gap: 18px; }
    .hero-stat b { font-size: 18px; }
    .game-grid { grid-template-columns: 1fr; }
    .detail-side .price { font-size: 25px; }
    .side-contact { right: 12px; bottom: 76px; }
    .back-top { right: 12px; bottom: 20px; }
    .side-contact-panel { right: 0; bottom: 56px; width: min(80vw, 240px); }
}

@media (prefers-reduced-motion: reduce) {
    * { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

@media print {
    .site-header, .site-footer, .side-contact, .back-top, .header-search { display: none !important; }
    body { background: #fff; color: #000; }
}

/* ============================================================
 *  v2 新增样式：Banner 轮播 / 促销倒计时 / 统计 / 分类入口 /
 *  格子广告 / 商品间插入广告 / 勋章脚标 / 年资徽章 / 公告铃铛 /
 *  右下角悬浮 / 注册登录 / 账号中心 / 自定义页面
 * ============================================================ */

/* ---------- 导航补充 ---------- */
.nav-custom { white-space: nowrap; }
.nav-bell { position: relative; display: flex; align-items: center; margin-right: 10px; }
.bell-ico { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 6px; background: rgba(102,192,244,.08); color: #66c0f4; cursor: pointer; transition: .18s; }
.nav-bell:hover .bell-ico, .nav-bell.open .bell-ico { background: rgba(102,192,244,.2); }
.bell-dot { position: absolute; top: 6px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: #e05252; box-shadow: 0 0 0 2px #1b2838; }
.bell-panel { position: absolute; top: 44px; right: 0; width: 306px; max-width: 84vw; background: #16202d; border: 1px solid #2a3f5a; border-radius: 8px; box-shadow: 0 14px 34px rgba(0,0,0,.55); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s; z-index: 120; }
.nav-bell:hover .bell-panel, .nav-bell:focus-within .bell-panel, .nav-bell.open .bell-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.bell-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #8f98a0; padding: 6px 8px 10px; border-bottom: 1px solid #22314a; }
.bell-head a { color: #66c0f4; }
.bell-item { display: block; padding: 9px 8px; border-radius: 5px; }
.bell-item:hover { background: rgba(102,192,244,.1); }
.bell-item b { display: block; font-weight: 400; color: #c6d4df; font-size: 13.5px; line-height: 1.5; }
.bell-item em { font-style: normal; font-size: 12px; color: #6b7885; }
.bell-empty { padding: 16px 8px; color: #6b7885; font-size: 13px; text-align: center; }

/* ---------- 勋章脚标 ---------- */
.ubadge { display: inline-flex; align-items: center; gap: 3px; border-radius: 4px; font-size: 11px; line-height: 1; padding: 3px 6px; margin: 0 3px 3px 0; vertical-align: middle; white-space: nowrap; }
.ubadge img { width: 13px; height: 13px; object-fit: contain; display: block; }
.ubadge i { font-style: normal; }
.ubadge em { font-style: normal; }
.ubadge-xs { font-size: 10px; padding: 2px 5px; }
.ubadge-xs em { display: none; }
.ubadge-md { font-size: 12px; padding: 4px 8px; }
.ubadge-md img { width: 15px; height: 15px; }
.user-badges { display: none; }
@media (min-width: 1200px) { .user-badges { display: inline-flex; align-items: center; } }

/* ---------- 年资徽章 ---------- */
.yearbadge { height: 18px; width: auto; vertical-align: middle; }
.thumb-year { position: absolute; left: 8px; bottom: 8px; height: 20px; width: auto; z-index: 3; }

/* ---------- Banner 轮播 ---------- */
.hero { position: relative; max-width: 1280px; margin: 18px auto 0; padding: 0 16px; }
.hero-track { position: relative; height: 340px; border-radius: 10px; overflow: hidden; background: #16202d; border: 1px solid #2a3f5a; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .6s; display: block; }
.hero-slide.active { opacity: 1; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,20,30,.88) 0%, rgba(11,20,30,.45) 48%, rgba(11,20,30,.12) 100%); }
.hero-copy { position: absolute; left: 40px; bottom: 44px; right: 40px; }
.hero-copy b { display: block; font-size: 30px; color: #fff; line-height: 1.3; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.hero-copy em { display: block; font-style: normal; margin-top: 8px; color: #c6d4df; font-size: 15px; }
.hero-dots { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.hero-dots button { width: 26px; height: 4px; border: 0; border-radius: 2px; background: #2a3f5a; cursor: pointer; padding: 0; }
.hero-dots button.active { background: #66c0f4; }

/* ---------- 促销倒计时 ---------- */
.home-wrap { padding-top: 18px; }
.sale-row { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.sale-strip { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: linear-gradient(90deg, rgba(164,208,7,.14), rgba(102,192,244,.08)); border: 1px solid rgba(164,208,7,.35); border-radius: 8px; padding: 12px 18px; }
.sale-flame { font-size: 20px; }
.sale-main { flex: 1; min-width: 180px; }
.sale-main b { display: block; color: #fff; font-size: 16px; }
.sale-main em { font-style: normal; color: #a4d007; font-size: 13px; }
.sale-clock { font-family: Consolas, Monaco, monospace; font-size: 18px; color: #a4d007; letter-spacing: 1px; }
.sale-link { color: #66c0f4; font-size: 13px; white-space: nowrap; }

/* ---------- 统计 / 分类 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stat-cell { background: #16202d; border: 1px solid #22314a; border-radius: 8px; padding: 16px 10px; text-align: center; }
.stat-cell b { display: block; font-size: 24px; color: #66c0f4; }
.stat-cell span { font-size: 12.5px; color: #8f98a0; }
.cat-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.cat-chip { display: flex; flex-direction: column; gap: 2px; padding: 10px 16px; background: #16202d; border: 1px solid #22314a; border-radius: 8px; min-width: 108px; }
.cat-chip:hover { border-color: #66c0f4; }
.cat-chip b { color: #c6d4df; font-size: 14px; font-weight: 400; }
.cat-chip em { font-style: normal; font-size: 12px; color: #6b7885; }

/* ---------- 区块 ---------- */
.block { margin-bottom: 26px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; border-bottom: 1px solid #22314a; padding-bottom: 10px; }
.block-head h2 { font-size: 19px; color: #fff; margin: 0; }
.hot-tag { display: inline-block; margin-left: 8px; font-size: 11px; color: #1b2838; background: #a4d007; border-radius: 3px; padding: 2px 6px; vertical-align: middle; }
.block-more { color: #66c0f4; font-size: 13px; }
.block-tip { color: #6b7885; font-size: 12.5px; }

/* ---------- 商品卡补充（头像 / 年资 / 等级） ---------- */
.product-thumb .thumb-foot { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; align-items: center; gap: 6px; z-index: 3; }
.product-thumb .thumb-avatar { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; border: 2px solid rgba(11,20,30,.75); background: #0e1621; flex: 0 0 auto; }
.product-thumb .thumb-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-thumb .thumb-level { font-size: 11px; color: #c6d4df; background: rgba(11,20,30,.75); border-radius: 3px; padding: 2px 5px; }
.product-thumb .yearbadge { position: static; height: 18px; }

/* ---------- 格子广告 ---------- */
.grid-ads { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.grid-ad { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 150px; border-radius: 8px; overflow: hidden; border: 1px solid #22314a; background: #16202d; }
.grid-ad img { width: 100%; height: 150px; object-fit: cover; display: block; }
.grid-ad-text { padding: 10px 12px; background: rgba(11,20,30,.86); }
.grid-ad-text b { display: block; color: #c6d4df; font-size: 14px; font-weight: 400; }
.grid-ad-text em { font-style: normal; font-size: 12px; color: #8f98a0; }
.grid-ad:hover { border-color: #66c0f4; }

/* ---------- 商品间插入广告（与商品卡同尺寸） ---------- */
.ad-card { border-color: rgba(102,192,244,.35); }
.ad-thumb { position: relative; display: block; }
.ad-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-flag { position: absolute; top: 8px; right: 8px; font-size: 11px; color: #c6d4df; background: rgba(11,20,30,.8); border-radius: 3px; padding: 2px 6px; }
.ad-empty { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #3d5a80; font-size: 26px; letter-spacing: 2px; }

/* ---------- Steam 特惠 ---------- */
.special-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.special-card { display: block; background: #16202d; border: 1px solid #22314a; border-radius: 8px; overflow: hidden; }
.special-card:hover { border-color: #66c0f4; }
.special-img { position: relative; display: block; }
.special-img img { width: 100%; height: 84px; object-fit: cover; display: block; }
.special-off { position: absolute; left: 0; top: 0; font-style: normal; background: #4c6b22; color: #beee11; font-size: 13px; padding: 3px 7px; border-radius: 0 0 4px 0; }
.special-name { display: block; padding: 8px 10px 4px; font-size: 13px; color: #c6d4df; line-height: 1.5; height: 44px; overflow: hidden; }
.special-price { display: block; padding: 0 10px 10px; font-size: 13px; }
.special-price b { color: #a4d007; font-weight: 400; }
.special-price s { color: #6b7885; margin-left: 6px; font-size: 12px; }

/* ---------- 右下角悬浮按钮组 ---------- */
.float-bar { position: fixed; right: 16px; bottom: 22px; display: flex; flex-direction: column; gap: 10px; z-index: 150; }
.float-item { position: relative; }
.float-btn { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #2a3f5a; background: #16202d; color: #66c0f4; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.4); transition: .18s; padding: 0; }
.float-btn:hover { background: #1b6f9e; color: #fff; border-color: #1b6f9e; }
.float-pop { position: absolute; right: 56px; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; background: #16202d; border: 1px solid #2a3f5a; border-radius: 8px; padding: 8px; box-shadow: 0 12px 30px rgba(0,0,0,.55); opacity: 0; visibility: hidden; transform: translateX(8px); transition: .18s; white-space: nowrap; }
.float-item:hover .float-pop { opacity: 1; visibility: visible; transform: translateX(0); }
.float-pop img { width: 150px; height: 150px; object-fit: contain; display: block; border-radius: 5px; background: #0e1621; }
.float-pop em { font-style: normal; font-size: 12px; color: #8f98a0; }
.float-pop-contact { padding: 12px 14px; }
.float-pop-contact b { display: block; color: #66c0f4; font-size: 13px; margin-bottom: 6px; }
.float-pop-contact em { display: block; text-align: left; color: #c6d4df; font-size: 12.5px; }

/* ---------- 注册 / 登录 ---------- */
.page-auth .site-main { display: block; }
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: 940px; margin: 40px auto; background: #16202d; border: 1px solid #22314a; border-radius: 12px; overflow: hidden; }
.auth-side { padding: 42px 36px; background: linear-gradient(150deg, #1b6f9e 0%, #1b2838 62%); }
.auth-badge { display: inline-block; font-size: 12px; color: #a4d007; border: 1px solid rgba(164,208,7,.5); border-radius: 20px; padding: 3px 12px; }
.auth-side h2 { color: #fff; font-size: 26px; margin: 18px 0 12px; }
.auth-side p { color: #c6d4df; font-size: 14px; line-height: 1.9; }
.auth-points { list-style: none; padding: 0; margin: 22px 0 0; }
.auth-points li { color: #9fb3c8; font-size: 13px; line-height: 2.1; }
.auth-card { padding: 38px 36px; }
.auth-card h1 { font-size: 22px; color: #fff; margin: 0 0 6px; }
.auth-sub { color: #8f98a0; font-size: 13px; margin: 0 0 20px; }
.auth-sub a { color: #66c0f4; }
.auth-foot { margin-top: 18px; text-align: center; }
.auth-foot a { color: #8f98a0; font-size: 13px; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; color: #8f98a0; margin-bottom: 6px; }
.field > span i { font-style: normal; color: #6b7885; font-size: 12px; }
.field input, .field textarea, .field select { width: 100%; box-sizing: border-box; background: #0e1621; border: 1px solid #2a3f5a; color: #c6d4df; border-radius: 5px; padding: 10px 12px; font-size: 14px; font-family: inherit; }
.field input:focus, .field textarea:focus { outline: none; border-color: #66c0f4; }
.field-tip { display: block; font-style: normal; font-size: 12px; color: #6b7885; margin-top: 5px; }
.btn-block { display: block; width: 100%; text-align: center; }
.form-inline { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.form-inline .input { flex: 1; min-width: 200px; }

/* ---------- 账号中心 ---------- */
.account-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 18px; padding-top: 22px; align-items: start; }
.account-card { background: #16202d; border: 1px solid #22314a; border-radius: 10px; padding: 20px; margin-bottom: 16px; text-align: center; }
.account-card h3 { font-size: 15px; color: #c6d4df; margin: 0 0 12px; text-align: left; }
.account-avatar { position: relative; display: inline-block; width: 92px; height: 92px; }
.account-avatar img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 3px solid #1b6f9e; display: block; }
.account-year { position: absolute; right: -4px; bottom: 0; }
.account-year .yearbadge { height: 22px; }
.account-card h2 { font-size: 18px; color: #fff; margin: 12px 0 2px; }
.account-uname { color: #6b7885; font-size: 13px; margin: 0 0 10px; }
.account-tip { color: #6b7885; font-size: 12.5px; }
.group-chip { display: inline-block; font-size: 12px; border: 1px solid; border-radius: 20px; padding: 2px 12px; margin-bottom: 8px; }
.account-badges { margin: 8px 0; }
.account-stats { display: flex; list-style: none; padding: 12px 0; margin: 10px 0; border-top: 1px solid #22314a; border-bottom: 1px solid #22314a; }
.account-stats li { flex: 1; text-align: center; }
.account-stats b { display: block; color: #66c0f4; font-size: 18px; }
.account-stats span { font-size: 12px; color: #8f98a0; }
.panel { background: #16202d; border: 1px solid #22314a; border-radius: 10px; padding: 20px 22px; margin-bottom: 16px; }
.panel-title { font-size: 16px; color: #fff; margin: 0 0 8px; }
.panel-tip { color: #8f98a0; font-size: 13px; line-height: 1.8; margin: 0 0 12px; }
.steam-now { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px; background: #0e1621; border-radius: 8px; }
.steam-now img { width: 46px; height: 46px; border-radius: 6px; object-fit: cover; }
.steam-now b { display: block; color: #c6d4df; font-weight: 400; }
.steam-now em { font-style: normal; font-size: 12.5px; color: #8f98a0; }
.my-reviews { display: flex; flex-direction: column; gap: 12px; }
.my-review { background: #0e1621; border-radius: 8px; padding: 14px 16px; }
.mr-head { display: flex; justify-content: space-between; gap: 10px; }
.mr-head a { color: #66c0f4; font-size: 14px; }
.mr-status { font-size: 12px; color: #8f98a0; white-space: nowrap; }
.mr-body { display: flex; gap: 14px; font-size: 12.5px; color: #6b7885; margin: 6px 0; }
.my-review p { margin: 0; color: #c6d4df; font-size: 13.5px; line-height: 1.8; }

/* ---------- 自定义页面 ---------- */
.article-wrap { display: grid; grid-template-columns: 1fr 240px; gap: 18px; padding-top: 22px; align-items: start; }
.article-card { background: #16202d; border: 1px solid #22314a; border-radius: 10px; padding: 28px 30px; }
.article-title { font-size: 24px; color: #fff; margin: 0 0 8px; }
.article-meta { color: #6b7885; font-size: 13px; padding-bottom: 14px; border-bottom: 1px solid #22314a; margin-bottom: 18px; }
.article-body { color: #c6d4df; font-size: 14.5px; line-height: 2; }
.article-body p { margin: 0 0 14px; }
.article-side { background: #16202d; border: 1px solid #22314a; border-radius: 10px; padding: 18px; }
.article-side h3 { font-size: 14px; color: #c6d4df; margin: 0 0 12px; }
.article-side a { display: block; padding: 7px 0; color: #66c0f4; font-size: 13.5px; border-bottom: 1px solid #1d2a3c; }
.empty-box { background: #16202d; border: 1px dashed #2a3f5a; border-radius: 8px; padding: 40px 20px; text-align: center; color: #6b7885; font-size: 14px; }
.empty-box a { color: #66c0f4; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
    .special-grid { grid-template-columns: repeat(3, 1fr); }
    .grid-ads { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
    .hero-track { height: 220px; }
    .hero-copy { left: 20px; right: 20px; bottom: 22px; }
    .hero-copy b { font-size: 20px; }
    .hero-copy em { font-size: 13px; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .auth-wrap { grid-template-columns: 1fr; margin: 20px 16px; }
    .auth-side { padding: 26px 22px; }
    .auth-card { padding: 26px 22px; }
    .account-wrap { grid-template-columns: 1fr; }
    .article-wrap { grid-template-columns: 1fr; }
    .sale-strip { padding: 10px 14px; gap: 10px; }
    .sale-clock { font-size: 15px; }
}
@media (max-width: 640px) {
    .special-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-ads { grid-template-columns: 1fr; }
    .float-bar { right: 10px; bottom: 14px; gap: 8px; }
    .float-btn { width: 40px; height: 40px; }
    .float-pop img { width: 120px; height: 120px; }
    .hero-track { height: 170px; }
    .hero-copy b { font-size: 17px; }
    .article-card { padding: 20px 18px; }
}

/* ============================================================
 *  v2.1 新增样式：Steam 资料卡 / VAC 徽章 / 后台 API 数据卡 /
 *  多语言国旗切换 / Banner 高度变量
 * ============================================================ */

/* ---------- 商品详情：Steam 资料卡 ---------- */
.steam-card { display: flex; align-items: center; gap: 14px; background: #0e1621; border: 1px solid #22314a; border-radius: 10px; padding: 14px; }
.sc-avatar { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; border: 2px solid #1b6f9e; background: #16202d; }
.sc-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-main { flex: 1; min-width: 0; }
.sc-main b { display: block; color: #ffffff; font-size: 16px; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-main em { display: block; font-style: normal; color: #8f98a0; font-size: 13px; margin-top: 3px; }
.sc-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sc-years { font-style: normal; color: #8f98a0; font-size: 12.5px; }

/* ---------- VAC 反作弊徽章 ---------- */
.vac { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; border-radius: 4px; padding: 3px 8px; white-space: nowrap; }
.vac::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.vac-ok { color: #a4d007; background: rgba(164,208,7,.12); border: 1px solid rgba(164,208,7,.35); }
.vac-bad { color: #ff6b6b; background: rgba(255,107,107,.12); border: 1px solid rgba(255,107,107,.42); }
.vac-warn { color: #f0b429; background: rgba(240,180,41,.12); border: 1px solid rgba(240,180,41,.42); }
.vac-unknown { color: #8f98a0; background: rgba(143,152,160,.1); border: 1px solid #2a3f5a; }

/* ---------- 后台：API 数据卡 ---------- */
.api-grid { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: start; }
.api-cell { background: #0e1621; border: 1px solid #2a3f5a; border-radius: 8px; padding: 16px; text-align: center; }
.api-avatar { display: inline-block; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; background: #16202d; border: 2px solid #1b6f9e; }
.api-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.api-cell b { display: block; color: #c6d4df; font-weight: 400; margin-top: 10px; word-break: break-all; }
.api-cell em { display: block; font-style: normal; font-size: 12px; color: #6b7885; margin-top: 4px; word-break: break-all; }
.api-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 14px; }
.api-list > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #0e1621; border: 1px solid #22314a; border-radius: 6px; padding: 9px 12px; }
.api-list span { color: #8f98a0; font-size: 13px; white-space: nowrap; }
.api-list b { color: #c6d4df; font-weight: 400; font-size: 13px; display: flex; align-items: center; gap: 6px; }

/* ---------- 多语言切换 ---------- */
.lang-switch { position: relative; margin-right: 8px; }
.lang-cur { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 10px; border-radius: 6px; border: 1px solid #2a3f5a; background: rgba(102,192,244,.06); color: #c6d4df; font-size: 13px; cursor: pointer; font-family: inherit; }
.lang-cur:hover { background: rgba(102,192,244,.16); border-color: #66c0f4; }
.lang-cur i { font-style: normal; }
.lang-drop { position: absolute; top: 40px; right: 0; min-width: 152px; background: #16202d; border: 1px solid #2a3f5a; border-radius: 8px; box-shadow: 0 12px 30px rgba(0,0,0,.55); padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .16s; z-index: 130; }
.lang-switch:hover .lang-drop, .lang-switch.open .lang-drop { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-drop a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 5px; color: #c6d4df; font-size: 13.5px; white-space: nowrap; }
.lang-drop a:hover { background: rgba(102,192,244,.12); color: #ffffff; }

/* ---------- 国旗（纯 CSS 绘制，不依赖外部图片） ---------- */
.flag { display: inline-block; width: 20px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.18); vertical-align: middle; position: relative; overflow: hidden; flex: 0 0 auto; }
.flag-cn { background: #de2910; }
.flag-cn::after { content: "★"; position: absolute; left: 1px; top: -2px; color: #ffde00; font-size: 9px; line-height: 14px; }
.flag-tw { background: linear-gradient(135deg, #fe0000 0 55%, #000095 55% 100%); }
.flag-us { background: linear-gradient(#b22234 0 14%, #ffffff 14% 28%, #b22234 28% 42%, #ffffff 42% 56%, #b22234 56% 70%, #ffffff 70% 84%, #b22234 84% 100%); }
.flag-jp { background: #ffffff; }
.flag-jp::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #bc002d; }
.flag-kr { background: #ffffff; }
.flag-kr::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: linear-gradient(#cd2e3a 0 50%, #0047a0 50% 100%); }
.flag-ru { background: linear-gradient(#ffffff 0 33%, #0039a6 33% 66%, #d52b1e 66% 100%); }

/* ---------- Banner 高度（后台可调，覆盖前面的固定高度） ---------- */
.hero-track { height: var(--hero-h, 520px); }
@media (max-width: 860px) { .hero-track { height: var(--hero-hm, 340px); } }

@media (max-width: 860px) {
    .api-grid { grid-template-columns: 1fr; }
    .api-list { grid-template-columns: 1fr; }
    .lang-cur i { display: none; }
    .lang-switch { margin-right: 4px; }
}

/* ============================================================
 *  v2.1.1 修正
 * ============================================================ */

/* 返回顶部按钮：原来它自带 position:fixed + right/bottom，
   和悬浮栏（二维码）落在同一个坐标上，导致两个按钮重叠。
   现在让它老老实实待在悬浮栏里，按列排布。 */
.float-bar .back-top { position: static; right: auto; bottom: auto; left: auto; top: auto; display: none; }
.float-bar .back-top.show { display: flex; }

/* 商品列表缩略图：头像与服役年限统一 22×22 正方形，不再被拉长 */
.product-thumb .thumb-avatar { width: 22px; height: 22px; }
.product-thumb .yearbadge { position: static; width: 22px; height: 22px; object-fit: cover; border-radius: 3px; flex: 0 0 auto; }
.product-thumb .thumb-level { height: 22px; padding: 0 6px; font-size: 11px; display: inline-flex; align-items: center; line-height: 1; }

/* 账号中心：服役年限从头像上摘下来，放到勋章那一行（只表示服役，不是勋章） */
.account-year { display: none; }
.year-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 5px; border-radius: 999px; background: rgba(102,192,244,.08); border: 1px solid #2a3f5a; }
.year-chip .yearbadge { width: 22px; height: 22px; object-fit: cover; border-radius: 3px; }
.year-chip em { font-style: normal; font-size: 12px; color: #8f98a0; }

/* 勋章图标：统一图片尺寸 */
.ubadge img { width: 16px; height: 16px; object-fit: contain; display: block; }
.ubadge-md img { width: 22px; height: 22px; }

/* 首页统计 / 分类已移到「全部账号」页，这里保证在内容页里排布正常 */
.stat-grid { margin: 0 0 14px; }
.cat-row { margin: 0 0 16px; }

/* ============================================================
 *  v2.2 修订
 * ============================================================ */

/* ---------- 1. 服役年限图标统一放大到 33×33 ---------- */
.yearbadge { width: 33px; height: 33px; object-fit: cover; border-radius: 4px; vertical-align: middle; }
.product-thumb .thumb-avatar { width: 33px; height: 33px; }
.product-thumb .yearbadge { position: static; width: 33px; height: 33px; object-fit: cover; border-radius: 4px; flex: 0 0 auto; }
.product-thumb .thumb-level { height: 33px; padding: 0 8px; font-size: 12px; display: inline-flex; align-items: center; line-height: 1; }
.year-chip .yearbadge { width: 33px; height: 33px; object-fit: cover; border-radius: 4px; }
.year-chip { padding: 4px 12px 4px 6px; }

/* ---------- 2. 全站统一内容宽度：以 .site-main 作为唯一容器 ----------
   之前只有部分页面自己包了 .container，其它页面直接顶到浏览器两边。
   现在统一由 .site-main 控制宽度，页面内部的 .container 不再二次收窄。 */
.site-main { flex: 1 0 auto; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px 40px; }
.site-main .container { max-width: none; padding-left: 0; padding-right: 0; }

/* ---------- 3. 自定义页面：没有右侧内容时不留空栏 ---------- */
.article-wrap.article-full { grid-template-columns: 1fr; }
.article-wrap.article-full .article-side { display: none; }

/* ---------- 4. 评价区：Steam 昵称 / 服役年限 / 勋章 / 星星（移到时间前面） ---------- */
.review-head .when { margin-left: 0; }
.review-head .review-stars { margin-left: auto; display: inline-flex; align-items: center; }
.review-head .review-year { display: inline-flex; align-items: center; }
.review-head .review-year .yearbadge { width: 26px; height: 26px; object-fit: cover; border-radius: 4px; }
.review-head .review-badges { display: inline-flex; align-items: center; gap: 4px; }
.review-head .review-badges .ubadge img { width: 22px; height: 22px; }
.review-head .who { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 5. 页尾：改为「关于 + 自定义页尾链接」两栏 ---------- */
.footer-inner { grid-template-columns: 1.6fr 1fr; }
.footer-inner.footer-single { grid-template-columns: 1fr; }

/* ---------- 6. 桌面端导航不换行，登录后不再错位 ---------- */
@media (min-width: 861px) {
    .header-inner { flex-wrap: nowrap; }
    .main-nav { flex-wrap: nowrap; min-width: 0; overflow: hidden; }
}

@media (max-width: 620px) {
    .site-main { padding-left: 12px; padding-right: 12px; }
}

/* ============================================================
 *  v2.3 视觉翻新（纯本地样式，不依赖任何 CDN / 框架）
 *  玻璃拟态 + 霓虹描边 + 水晶按钮 + 扁平化配色
 * ============================================================ */

:root {
    --glass:        rgba(21, 31, 44, .58);
    --glass-soft:   rgba(30, 44, 62, .40);
    --glass-line:   rgba(122, 190, 255, .16);
    --neon:         #4fc3ff;
    --neon-2:       #8b5cff;
    --glow:         0 0 0 1px rgba(79,195,255,.20), 0 0 20px rgba(79,195,255,.14);
    --glow-strong:  0 0 0 1px rgba(79,195,255,.48), 0 0 30px rgba(79,195,255,.30);
    --blur:         blur(16px) saturate(150%);
    --radius:       9px;
}

/* ---------- 背景：淡光晕，避免整屏死板 ---------- */
body {
    background-color: #121a24;
    background-image:
        radial-gradient(1200px 520px at 10% -8%, rgba(79,195,255,.12), transparent 62%),
        radial-gradient(900px 480px at 92% 2%, rgba(139,92,255,.11), transparent 60%),
        linear-gradient(180deg, #16202c 0%, #131b25 46%, #0f1620 100%);
    background-attachment: fixed;
}

/* ---------- 玻璃面板 ---------- */
.panel, .card, .article-card, .account-card, .side-block, .auth-card,
.review-summary, .empty-box, .float-pop, .bell-panel, .user-drop, .lang-drop,
.nav-drop-menu, .special-card, .sale-strip, .gallery-main, .side-contact-panel {
    background: var(--glass) !important;
    border: 1px solid var(--glass-line) !important;
    border-radius: 16px !important;
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    box-shadow: 0 10px 34px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .05);
}

/* 面板标题：左侧一条霓虹细线 */
.panel-title, .card-title, .article-title {
    position: relative;
    padding-left: 13px;
}
.panel-title::before, .card-title::before, .article-title::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 1em;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--neon), var(--neon-2));
    box-shadow: 0 0 10px rgba(79, 195, 255, .75);
}

/* ---------- 水晶按钮 ---------- */
.btn {
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, .16) !important;
    background-image: linear-gradient(180deg, rgba(255,255,255,.24), rgba(255,255,255,.05) 46%, rgba(0,0,0,.18)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.36), inset 0 -1px 0 rgba(0,0,0,.30), 0 6px 16px rgba(0,0,0,.34) !important;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .38);
    transition: transform .14s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.48), 0 10px 24px rgba(0,0,0,.42), 0 0 20px rgba(79,195,255,.26) !important;
}
.btn:active { transform: translateY(0); filter: brightness(.98); }
.btn-green { background-color: #79ab09 !important; }
.btn-blue  { background-color: #1a9fff !important; }
.btn-ghost { background-color: rgba(255,255,255,.07) !important; }
.btn-gray  { background-color: #55606c !important; }
.btn-danger { background-color: #c0412f !important; }

/* ---------- 输入框：内凹 + 聚焦霓虹 ---------- */
.input, input[type="text"], input[type="password"], input[type="search"],
input[type="number"], input[type="email"], select, textarea {
    background: rgba(9, 15, 22, .62) !important;
    border: 1px solid var(--glass-line) !important;
    border-radius: 9px !important;
    transition: border-color .18s, box-shadow .18s, background .18s;
}
.input:focus, input:focus, select:focus, textarea:focus {
    border-color: rgba(79, 195, 255, .65) !important;
    box-shadow: 0 0 0 3px rgba(79, 195, 255, .14), 0 0 20px rgba(79, 195, 255, .22) !important;
    background: rgba(9, 15, 22, .78) !important;
}

/* ---------- 顶部导航：玻璃 + 底部霓虹线 ---------- */
.site-header {
    background: rgba(13, 20, 29, .72) !important;
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    box-shadow: 0 1px 0 rgba(122, 190, 255, .16), 0 10px 30px rgba(0, 0, 0, .42) !important;
}
.site-header::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(79,195,255,.55), rgba(139,92,255,.5), transparent);
    pointer-events: none;
}
.nav-link { border-radius: 9px; transition: background .16s, color .16s, box-shadow .16s; }
.nav-link:hover { box-shadow: inset 0 0 0 1px rgba(79,195,255,.3), 0 0 16px rgba(79,195,255,.16); }
.nav-link.active { box-shadow: inset 0 0 0 1px rgba(79,195,255,.45), 0 0 18px rgba(79,195,255,.22); }

/* ---------- 商品卡片：悬浮霓虹 ---------- */
.product-card {
    background: var(--glass-soft) !important;
    border: 1px solid var(--glass-line) !important;
    border-radius: 16px !important;
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    transition: transform .2s ease, box-shadow .24s ease, border-color .24s ease;
}
.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(79, 195, 255, .45) !important;
    box-shadow: 0 16px 40px rgba(0,0,0,.5), 0 0 26px rgba(79,195,255,.24) !important;
}

/* ---------- 筛选胶囊 ---------- */
.chip, .cat-chip, .group-chip, .tag-row .chip {
    background: rgba(255, 255, 255, .05) !important;
    border: 1px solid var(--glass-line) !important;
    border-radius: 999px !important;
    transition: background .16s, box-shadow .16s, color .16s;
}
.chip:hover, .cat-chip:hover {
    background: rgba(79, 195, 255, .14) !important;
    box-shadow: 0 0 16px rgba(79, 195, 255, .22);
}
.chip.active, .cat-chip.active {
    background: rgba(79, 195, 255, .2) !important;
    border-color: rgba(79, 195, 255, .55) !important;
    box-shadow: 0 0 18px rgba(79, 195, 255, .3);
}

/* ---------- 统计 / 分类条 ---------- */
.stat-grid { background: var(--glass-soft) !important; border: 1px solid var(--glass-line) !important; border-radius: 16px !important; backdrop-filter: var(--blur); }
.stat-cell b { text-shadow: 0 0 18px rgba(79, 195, 255, .35); }

/* ---------- 勋章：不要背景色，纯图片 ---------- */
.ubadge {
    background: none !important;
    border: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.ubadge img { object-fit: contain; display: block; }
.ubadge-xs img { width: 24px; height: 24px; }
.ubadge-sm img { width: 26px; height: 26px; }
.ubadge-md img { width: 33px; height: 33px; }
.ubadge-ico { font-style: normal; }

/* ---------- 服役年限图标统一尺寸 ---------- */
.yearbadge { width: 33px; height: 33px; object-fit: cover; border-radius: 6px; vertical-align: middle; }
.year-chip .yearbadge { width: 33px; height: 33px; border-radius: 6px; }
.product-thumb .yearbadge { width: 33px; height: 33px; }
.product-thumb .thumb-avatar { width: 33px; height: 33px; }

/* 账号中心：勋章与服役年限同尺寸 */
.account-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.account-badges .ubadge-md img { width: 33px; height: 33px; }
.account-badges .year-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 6px; border-radius: 999px; background: rgba(79,195,255,.07); border: 1px solid var(--glass-line); }

/* 评价区：勋章与服役年限同尺寸 */
.review-head .review-year .yearbadge { width: 28px; height: 28px; border-radius: 6px; }
.review-head .review-badges .ubadge img { width: 28px; height: 28px; }

/* ---------- 用户下拉：勋章显示在链接上方 ---------- */
.user-drop-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 10px 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--glass-line);
}
.user-drop-badges .ubadge img { width: 26px; height: 26px; }

/* ---------- 商品详情：Steam 资料卡与上方留点间距 ---------- */
.steam-card { margin-top: 15px; background: var(--glass-soft) !important; border: 1px solid var(--glass-line) !important; border-radius: 16px !important; backdrop-filter: var(--blur); }

/* ---------- 信息列表 / 游戏格：分隔线更轻 ---------- */
.info-list li { border-bottom: 1px solid rgba(122, 190, 255, .09); }
.game-item { background: var(--glass-soft) !important; border: 1px solid var(--glass-line) !important; border-radius: 11px !important; transition: box-shadow .18s, transform .18s; }
.game-item:hover { transform: translateY(-2px); box-shadow: 0 0 18px rgba(79, 195, 255, .2); }

/* ---------- 评价：删除按钮 ---------- */
.review-del { margin-left: 8px; }
.review-del button {
    background: rgba(224, 82, 82, .12);
    border: 1px solid rgba(224, 82, 82, .4);
    color: #ff8a8a;
    font-size: 12px;
    padding: 3px 9px;
    border-radius: 999px;
    cursor: pointer;
    transition: background .16s, box-shadow .16s;
}
.review-del button:hover { background: rgba(224, 82, 82, .24); box-shadow: 0 0 14px rgba(224, 82, 82, .3); }

/* ---------- 卖家中心：我的商品 ---------- */
.my-goods { display: flex; flex-direction: column; gap: 12px; }
.my-good {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: var(--glass-soft);
    border: 1px solid var(--glass-line);
    border-radius: 14px;
    backdrop-filter: var(--blur);
    transition: box-shadow .18s, transform .18s;
}
.my-good:hover { transform: translateY(-2px); box-shadow: 0 0 20px rgba(79, 195, 255, .18); }
.my-good > img { width: 76px; height: 48px; object-fit: cover; border-radius: 9px; flex: 0 0 auto; background: #0e1621; }
.mg-info { flex: 1; min-width: 0; }
.mg-title { display: block; color: #fff; font-size: 14.5px; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mg-title:hover { color: var(--neon); }
.mg-meta { font-size: 12.5px; color: #8f98a0; }
.mg-ok { font-style: normal; color: #a4d007; }
.mg-off { font-style: normal; color: #8f98a0; }
.mg-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

/* 表单栅格（前台卖家表单用） */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.sell-form .panel { margin-bottom: 16px; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: #c6d4df; }

/* ---------- 页尾 ---------- */
.site-footer { background: rgba(11, 17, 25, .6) !important; border-top: 1px solid var(--glass-line) !important; backdrop-filter: var(--blur); }

/* ---------- 悬浮按钮：霓虹描边 ---------- */
.float-btn { background: rgba(21, 31, 44, .78) !important; border: 1px solid var(--glass-line) !important; backdrop-filter: var(--blur); }
.float-btn:hover { border-color: rgba(79, 195, 255, .55) !important; box-shadow: 0 0 20px rgba(79, 195, 255, .3) !important; }

@media (max-width: 620px) {
    .my-good { flex-wrap: wrap; }
    .mg-actions { width: 100%; justify-content: flex-end; }
}

/* ============================================================
 *  v2.4 修订
 * ============================================================ */

/* ---------- 1. 移动端导航：不再错位 ----------
   之前移动端把「铃铛 + 国旗 + 登录/注册（或头像昵称）」全塞在一行，
   宽度一超就折行错位。现在：
   · 一行内只放 品牌 + 搜索框 + 国旗 + 菜单按钮
   · 铃铛、登录/注册、账号昵称收进汉堡菜单（菜单里本来就有）
   · 搜索框由「独占整行」改为与菜单按钮同行的自适应宽度 */
@media (max-width: 860px) {
    .header-inner { flex-wrap: wrap; row-gap: 8px; column-gap: 8px; }
    .brand { order: 1; flex: 0 1 auto; min-width: 0; }
    .brand-text { max-width: 32vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .header-search { order: 2; flex: 1 1 auto; min-width: 84px; margin-bottom: 0; }
    .header-user { order: 3; margin-left: 0; gap: 4px; flex: 0 0 auto; }
    .nav-toggle { order: 4; margin-left: 0; flex: 0 0 auto; }
    .main-nav { order: 5; flex-basis: 100%; }

    .header-user .nav-bell { display: none; }
    .header-user > .btn { display: none; }
    .user-menu .user-name { display: none; }

    .header-search input { font-size: 13px; padding-left: 10px; }
    .header-search button { width: 32px; }
}

@media (max-width: 480px) {
    .brand-text { display: none; }
    .header-search { min-width: 70px; }
}

/* ---------- 2. 商品详情：区块之间留出间距 ----------
   Steam 资料卡移到「账号说明」上方后，原来靠 .panel + .panel 的间距
   对「资料卡 → 面板」不生效，这里统一用相邻兄弟选择器兜住。 */
.detail-main > * + * { margin-top: 18px; }
.panel + .panel { margin-top: 18px; }
.detail-main .steam-card { margin-top: 18px; }
.detail-main .steam-card .sc-avatar { width: 72px; height: 72px; }

/* ---------- 3. 卖家联系方式（仅认证卖家发布的商品） ---------- */
.seller-box {
    background: rgba(79, 195, 255, .07);
    border: 1px solid rgba(79, 195, 255, .28);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
.seller-box h3 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: #cfe6f7;
    display: flex;
    align-items: center;
    gap: 7px;
}
.seller-box h3::before {
    content: "";
    width: 3px; height: 14px;
    border-radius: 2px;
    background: linear-gradient(180deg, #4fc3ff, #8b5cff);
    box-shadow: 0 0 10px rgba(79, 195, 255, .7);
}
.seller-locked { margin: 0; font-size: 13.5px; line-height: 1.9; color: #9fb3c6; }
.seller-locked a { color: #4fc3ff; }
.seller-contact {
    margin: 0;
    font-size: 15px;
    color: #fff;
    word-break: break-all;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ---------- 4. 商品属性里的「有 / 无」 ---------- */
.info-list .v .ok, .info-list .v .off { font-style: normal; font-weight: 600; }
.info-list .v .ok { color: #a4d007; }
.info-list .v .off { color: #8f98a0; }

/* ---------- 5. 卖家中心：无封面时的占位 ---------- */
.my-good > img { background: #0e1621; }

/* ============================================================
 *  v2.5 修订
 * ============================================================ */

/* ---------- 1. 首页 Banner 通栏（去掉左右 16px 间隙） ----------
   .hero 是 .site-main 的直接子元素，会继承 .site-main 的左右 16px 内边距。
   这里用负外边距把它撑到视口宽度，左右就不再留缝。
   overflow-x: clip 只做裁切、不产生滚动容器，所以不影响 position: sticky。 */
html, body { overflow-x: clip; }
.page-home .site-main > .hero {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
}

/* ---------- 2. 服役年资：跟勋章一样只显示图片 ---------- */
.year-chip {
    background: none !important;
    border: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: inline-flex;
    align-items: center;
}
.year-chip em { display: none; }
.sc-years { display: none; }

/* ---------- 3. 「无」用红色强调，「有」保持绿色 ---------- */
.info-list .v .off { color: #ff6b6b; }
.info-list .v .ok  { color: #a4d007; }

/* ---------- 4. 商品详情：移动端把评价放到侧栏之后 ----------
   桌面：主内容(r1c1) / 侧栏(r1-2 c2) / 评价(r2c1)
   移动：单列，按源码顺序 = 主内容 → 侧栏 → 评价 */
.detail-reviews > .panel { margin-bottom: 0; }
@media (min-width: 861px) {
    .detail-wrap {
        grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    }
    .detail-main    { grid-column: 1; grid-row: 1; }
    .detail-side    { grid-column: 2; grid-row: 1 / span 2; }
    .detail-reviews { grid-column: 1; grid-row: 2; }
}

/* 卖家联系方式：电脑端在右侧栏，手机端挪到「账号说明」下面，不用拉到最底 */
.seller-box-inline { display: none; }
@media (max-width: 860px) {
    .seller-box-side { display: none; }
    .seller-box-inline { display: block; margin-top: 18px; }
}

/* ---------- 5. 账号中心：电脑端小导航 ---------- */
.account-nav { display: none; }
@media (min-width: 861px) {
    .account-side { position: sticky; top: 84px; align-self: start; }
    .account-nav { display: block; }
}
.account-nav a {
    display: block;
    padding: 9px 14px;
    border-radius: 10px;
    color: #c6d4df;
    font-size: 13.5px;
    border: 1px solid transparent;
    transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}
.account-nav a:hover {
    background: rgba(79, 195, 255, .1);
    color: #fff;
    border-color: rgba(79, 195, 255, .3);
    box-shadow: 0 0 14px rgba(79, 195, 255, .18);
}
.account-main > .panel { scroll-margin-top: 92px; }
html { scroll-behavior: smooth; }

/* ============================================================
 *  v2.6 修订
 * ============================================================ */

/* ---------- 1. 首页 Banner 真正通栏 ----------
   .hero 自身带 padding:0 16px + max-width:1280px + 渐变背景 + 圆角 + 装饰圆，
   这才是「手机端左右还有 16 边」和「电脑端背景怪异」的根因，这里全部清掉。 */
.page-home .site-main > .hero {
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0;
    border-radius: 0;
    background: none;
    background-image: none;
    box-shadow: none;
}
.page-home .site-main > .hero::after { display: none; }
.page-home .site-main > .hero .hero-track {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
}
/* 宽屏时让文案跟页面内容对齐，不要贴到屏幕最左边 */
.page-home .site-main > .hero .hero-copy {
    left: max(24px, calc(50vw - 590px));
    right: max(24px, calc(50vw - 590px));
}

/* ---------- Banner 视频（webm / mp4 / ogv） ---------- */
.hero-slide-video { background: #0b141e; }
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---------- 2. 商品详情：电脑端评价紧跟游戏库，不再被侧栏撑出空档 ---------- */
@media (min-width: 861px) {
    .detail-wrap {
        display: grid;
        grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
        gap: 22px;
        align-items: start;
    }
    .detail-main    { grid-column: auto; grid-row: auto; }
    .detail-side    { grid-column: auto; grid-row: auto; }
    .detail-reviews { margin-top: 18px; }
}

/* 手机端：把主内容拆开，让评价排到侧栏之后（价格/购买按钮不用拉到底） */
@media (max-width: 860px) {
    .detail-wrap { display: flex; flex-direction: column; gap: 18px; }
    .detail-main { display: contents; }
    .detail-main > * + * { margin-top: 0; }
    .detail-side { order: 1; }
    .detail-reviews { order: 2; }
}

/* ---------- 3. 账号中心：勋章居中 ---------- */
.account-badges { justify-content: center; }

/* ============================================================
 *  v2.7 修订
 * ============================================================ */

/* ---------- 1. Banner 紧贴导航（去掉上方空隙） ---------- */
.page-home .site-main > .hero { margin-top: 0; }

/* ---------- 2. Banner 按比例自适应，不再被压扁/拉长 ----------
   之前高度写死（电脑 520 / 手机 340），宽度却变成整个屏幕，
   图片就被 cover 挤进一个比例不对的框里，看着像拉伸变形。
   改成用 aspect-ratio 让高度跟着宽度走，后台设置的高度作为上限。 */
.page-home .site-main > .hero .hero-track {
    height: auto;
    aspect-ratio: 1920 / 520;
    max-height: var(--hero-h, 520px);
    min-height: 160px;
}
@media (max-width: 860px) {
    .page-home .site-main > .hero .hero-track {
        aspect-ratio: 16 / 9;
        max-height: var(--hero-hm, 340px);
        min-height: 140px;
    }
}

/* ---------- 3. 账号中心的小导航加外框（跟上面的用户信息卡片同一种风格） ---------- */
@media (min-width: 861px) {
    .account-nav {
        padding: 10px;
        border: 1px solid #22314a;
        border-radius: 10px;
        background: #16202d;
    }
}

/* ============================================================
 *  v2.11 修订：右下角悬浮二维码被压成细条
 * ------------------------------------------------------------
 *  原因：全局 img 规则里有 max-width:100%，而 .float-pop 是绝对定位，
 *        宽度走 shrink-to-fit（由内容决定）。图片宽度依赖父容器宽度、
 *        父容器宽度又依赖图片宽度，互相依赖后浏览器把宽度压扁，
 *        但 height 是写死的没被影响 —— 于是变成又窄又高的一条（21×120）。
 *  修法：给弹出层一个明确的宽度，并解除图片的 max-width 限制、禁止 flex 收缩。
 * ============================================================ */
.float-pop {
    width: max-content;
    max-width: 86vw;
}
.float-pop img {
    width: 150px;
    height: 150px;
    max-width: none;
    flex: 0 0 auto;
    object-fit: contain;
    display: block;
    border-radius: 5px;
    background: #0e1621;
}
@media (max-width: 640px) {
    .float-pop img {
        width: 120px;
        height: 120px;
    }
}
