/* 游戏账号交易站 · 样式（Astro 重构版） */
:root {
  --bg: #f5f6fa;
  --card: #ffffff;
  --ink: #151a28;
  --muted: #6b7280;
  --line: #e6e8f0;
  --brand: #4f5bff;
  --brand-ink: #3a45d8;
  --brand-soft: #eef0ff;
  --ok: #16a34a;
  --warn: #d97706;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .07), 0 1px 2px rgba(16, 24, 40, .04);
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 16px; }

/* ---- 顶栏 ---- */
header.top { background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
header.top .inner { display: flex; align-items: center; gap: 20px; height: 60px; }
.logo { font-weight: 800; font-size: 19px; display: flex; align-items: baseline; gap: 8px; }
.logo b { color: var(--brand); }
.logo-sub { font-size: 11px; font-weight: 500; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px; }
header.top nav { margin-left: auto; display: flex; gap: 18px; font-size: 15px; flex-wrap: wrap; }
header.top nav a { color: #364152; }
header.top nav a:hover { color: var(--brand); }

/* ---- Hero ---- */
.hero { padding: 42px 0 18px; }
.hero h1 { font-size: 30px; margin: 0 0 10px; letter-spacing: .3px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.sub { color: var(--muted); margin: 0 0 14px; font-size: 15px; max-width: 760px; }
.hero .stats { color: var(--brand-ink); font-weight: 700; font-size: 14px; }
.hero .stats b { font-size: 20px; }

/* ---- 游戏卡片 ---- */
.section-title { display: flex; align-items: baseline; gap: 12px; margin: 26px 0 12px; }
.section-title h2 { font-size: 20px; margin: 0; }
.section-title .more { color: var(--muted); font-size: 13px; }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.gcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; display: flex; gap: 12px; align-items: center; transition: transform .08s; }
.gcard:hover { transform: translateY(-2px); }
.gcard img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; background: var(--brand-soft); }
.gcard .gn { font-weight: 700; }
.gcard .gc { color: var(--muted); font-size: 13px; }
.gcard .gc b { color: var(--brand-ink); }

/* ---- chips ---- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.chips a { background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; font-size: 13.5px; color: #3b455c; box-shadow: var(--shadow); }
.chips a:hover { border-color: var(--brand); color: var(--brand); }
.chips a.primary { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---- 卡片网格 ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card.listing { display: block; transition: transform .08s, box-shadow .12s; }
.card.listing:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(16,24,40,.10); }
.thumb { aspect-ratio: 16 / 10; background: #e9ecf5; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.img-fail { display: none; }
.lbody { padding: 12px 14px 14px; }
.lrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gamepill { background: var(--brand-soft); color: var(--brand-ink); font-size: 12px; border-radius: 8px; padding: 2px 8px; }
.price { color: #ff4d4f; font-weight: 800; font-size: 18px; }
.ltitle { margin-top: 8px; font-size: 14px; height: 44px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { font-size: 11.5px; color: #475069; background: #f2f4fa; border-radius: 6px; padding: 1px 7px; }
.lmeta { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-top: 10px; }

/* ---- 面包屑 ---- */
.crumbs { padding: 16px 0 4px; font-size: 13.5px; color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs .sep { margin: 0 6px; color: #c4c9d6; }
.crumbs .cur { color: var(--ink); }

/* ---- 详情 ---- */
.detail { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; margin-top: 8px; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } }
.detail .panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.detail h1 { font-size: 22px; margin: 0 0 10px; }
.detail .bigprice { color: #ff4d4f; font-weight: 800; font-size: 26px; }
.gallery { display: grid; grid-template-columns: 1fr; gap: 10px; }
.gallery img { border-radius: 12px; border: 1px solid var(--line); background: #e9ecf5; }
.attr-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.attr-table td { border-top: 1px solid var(--line); padding: 8px 4px; }
.attr-table td:first-child { color: var(--muted); width: 40%; }
.attr-table tr:first-child td { border-top: 0; }
.notice { background: #fff8e6; border: 1px solid #ffe2a8; color: #7a5a12; border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-top: 12px; }
.buybox { display: flex; flex-direction: column; gap: 10px; }
.btn { display: inline-block; text-align: center; border-radius: 10px; padding: 11px 16px; font-weight: 700; font-size: 15px; border: 0; cursor: pointer; }
.btn.primary { background: var(--brand); color: #fff; }
.btn.ghost { background: #f2f4fa; color: #3b455c; }

/* ---- prose ---- */
.prose { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; margin-top: 18px; }
.prose h2 { font-size: 17px; margin: 16px 0 8px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #3c445a; font-size: 14.5px; }
.prose .muted { color: var(--muted); }

/* ---- 页脚 ---- */
footer.bot { margin-top: 40px; padding: 22px 0 28px; border-top: 1px solid var(--line); background: #fff; }
footer.bot p { margin: 4px 0; font-size: 13px; color: #4b5468; }
footer.bot .muted { color: var(--muted); }

/* ---- 加载/空态 ---- */
.empty { color: var(--muted); text-align: center; padding: 36px 0; }

/* ---- 表单 / 用户中心 ---- */
.field { display: block; margin: 10px 0; }
.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px;
  font-size: 14.5px; font-family: inherit; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.msg { font-size: 13.5px; margin-top: 10px; min-height: 18px; }
.msg.err, .hint.err { color: #cf1322; }
.msg.ok, .hint.ok { color: #237804; }

.auth-wrap { display: flex; justify-content: center; padding: 40px 0; }
.auth-card { width: 100%; max-width: 420px; }
.tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.tabs button { flex: 1; border: 1px solid var(--line); background: #f7f8fc; border-radius: 10px; padding: 9px 0; font-size: 15px; font-weight: 700; color: #556; cursor: pointer; }
.tabs button.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.panel-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.info-strip { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; align-items: center; }

.badge { display: inline-block; font-size: 12px; border-radius: 99px; padding: 2px 10px; font-weight: 600; }
.badge.ok { background: #e8f7e8; color: #237804; }
.badge.pending { background: #fff6e0; color: #ad6800; }
.badge.bad { background: #ffeaea; color: #cf1322; }
.badge.off { background: #f0f1f5; color: #666f80; }

.mylist { width: 100%; border-collapse: collapse; font-size: 14px; }
.mylist th { text-align: left; color: var(--muted); font-weight: 500; font-size: 13px; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.mylist td { padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.mylist tr:last-child td { border-bottom: 0; }
.mylist .t { max-width: 340px; }
.mylist .ops { white-space: nowrap; }
.mylist .ops button { margin-right: 6px; }
.mini { font-size: 12.5px; padding: 5px 10px; border-radius: 8px; }
.hint { font-size: 12.5px; color: var(--muted); }

.upload-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.upload-row input[type=file] { border: 0; padding: 0; width: auto; }
.upload-row img { width: 84px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumbs img { width: 64px; height: 44px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

.contact-box summary { cursor: pointer; list-style: none; }
.contact-box summary::-webkit-details-marker { display: none; }
.contact-box[open] summary { margin-bottom: 10px; }
.captcha-line { display: flex; gap: 8px; align-items: center; margin: 10px 0; }
.captcha-line img { height: 40px; border-radius: 8px; border: 1px solid var(--line); cursor: pointer; background: var(--brand-soft); }
.captcha-line input { width: 110px; }

.btn.faved { background: #ffe4e6; color: #e11d48; }
.btn.ghost.on { background: var(--brand-soft); color: var(--brand-ink); }

.chip-select { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip-select b { font-weight: 500; font-size: 12.5px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 3px 10px; cursor: pointer; color: #475069; }
.chip-select b.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink); }
html[data-skin="lj98"] .chip-select b.on { background: linear-gradient(90deg, #eef1ff, #e8ecff); border-color: #7083fa; color: #5a6ce0; }

/* ---- 翻页 ---- */
.pager { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 20px 0 6px; }
.pg-nums { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pg-nums a { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 4px 10px; font-size: 13px; color: #3b455c; cursor: pointer; }
.pg-nums a:hover { border-color: var(--brand); color: var(--brand); }
.pg-nums a.on { background: var(--brand); border-color: var(--brand); color: #fff; cursor: default; }
.pg-nums a.dis { color: #c4c9d6; cursor: default; }
.pg-nums a.dis:hover { border-color: var(--line); color: #c4c9d6; }
.pager button[disabled] { opacity: .45; cursor: default; }
html[data-skin="lj98"] .pg-nums a.on { background: linear-gradient(90deg, #8b9dfc, #7083fa); border-color: transparent; }

