:root {
  --bg: #f6f7f9;
  --card: #fff;
  --text: #1c2024;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --ok: #059669;
  --warn: #d97706;
  --danger: #dc2626;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .92em; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.main { padding: 24px 16px 48px; }
.narrow { max-width: 440px; margin: 0 auto; }
.center-box { text-align: center; padding: 32px 0; }

/* ---------- header ---------- */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 60px; flex-wrap: wrap; }
.logo { font-size: 19px; font-weight: 700; color: var(--text); }
.logo:hover { text-decoration: none; color: var(--brand); }

.search { display: flex; flex: 1; max-width: 420px; }
.search input {
  flex: 1; height: 36px; padding: 0 12px;
  border: 1px solid var(--line); border-right: 0;
  border-radius: 6px 0 0 6px; font-size: 14px; background: var(--bg);
}
.search input:focus { outline: 2px solid var(--brand); outline-offset: -2px; }
.search button {
  height: 36px; padding: 0 16px; border: 0; cursor: pointer;
  background: var(--brand); color: #fff; border-radius: 0 6px 6px 0; font-size: 14px;
}
.search button:hover { background: var(--brand-dark); }

.nav { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.nav a { color: var(--text); font-size: 14px; }
.nav a.active { color: var(--brand); font-weight: 600; }
.nav .me { font-size: 14px; color: var(--muted); }
.badge-vip {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff; font-size: 11px; font-style: normal;
  padding: 1px 6px; border-radius: 4px; margin-left: 4px; font-weight: 700;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 9px 20px; border: 0; cursor: pointer;
  background: var(--brand); color: #fff; border-radius: 6px;
  font-size: 14px; font-family: inherit; text-align: center;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; color: #fff; }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-block { display: block; width: 100%; margin-bottom: 10px; }
.btn-ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.btn-ghost:hover { background: rgba(37, 99, 235, .06); color: var(--brand-dark); }
.link-btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--brand); font-size: 13px; font-family: inherit;
}
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: var(--danger); }
.inline { display: inline; }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #fff; border-radius: var(--radius);
  padding: 44px 32px; margin-bottom: 24px;
}
.hero h1 { margin: 0 0 8px; font-size: 28px; }
.hero p { margin: 0 0 20px; opacity: .9; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn { background: #fff; color: var(--brand); font-weight: 600; }
.hero .btn:hover { background: #f1f5f9; }
.hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.12); }

.cat-bar {
  display: flex; gap: 8px; flex-wrap: wrap;
  background: var(--card); padding: 12px 16px;
  border-radius: var(--radius); margin-bottom: 24px; box-shadow: var(--shadow);
}
.cat-bar a { font-size: 14px; padding: 4px 12px; border-radius: 999px; background: var(--bg); color: var(--text); }
.cat-bar a:hover { background: var(--brand); color: #fff; text-decoration: none; }

/* ---------- blocks & grid ---------- */
.block { margin-bottom: 36px; }
.block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 12px; }
.block-head h2 { margin: 0; font-size: 18px; }
.page-title { font-size: 22px; margin: 0 0 18px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }

.card {
  background: var(--card); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.1); }
.card-cover {
  display: block; position: relative; aspect-ratio: 16 / 10;
  background: #eef1f5; overflow: hidden;
}
.card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #94a3b8; font: 700 26px ui-monospace, monospace;
}
.tag-free {
  position: absolute; top: 8px; left: 8px;
  background: var(--ok); color: #fff; font-size: 11px; font-style: normal;
  padding: 2px 8px; border-radius: 4px;
}
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin: 0 0 6px; font-size: 15px; line-height: 1.4; }
.card-body h3 a { color: var(--text); }
.card-body .summary {
  margin: 0 0 10px; font-size: 13px; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot { display: flex; align-items: baseline; justify-content: space-between; margin-top: auto; }
.price strong { color: var(--danger); font-size: 17px; }
.price strong.free { color: var(--ok); }
.price del { color: var(--muted); font-size: 12px; margin-left: 6px; }
.sales { font-size: 12px; color: var(--muted); }

/* ---------- filters ---------- */
.filters { background: var(--card); padding: 14px 16px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; }
.filter-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.filter-row:last-child { margin-bottom: 0; }
.filter-label { font-size: 13px; color: var(--muted); min-width: 32px; }
.chip { font-size: 13px; padding: 3px 12px; border-radius: 999px; background: var(--bg); color: var(--text); }
.chip:hover { background: #e2e8f0; text-decoration: none; }
.chip.on { background: var(--brand); color: #fff; }
.result-count { font-size: 13px; color: var(--muted); margin: 0 0 14px; }

/* ---------- detail ---------- */
.detail { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.detail-main { background: var(--card); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.detail-main h1 { margin: 0 0 10px; font-size: 22px; }
.detail-main .meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.detail-cover { width: 100%; border-radius: 8px; margin-bottom: 18px; }
.lead { font-size: 15px; color: #374151; background: var(--bg); padding: 12px 14px; border-radius: 8px; }
.rich { line-height: 1.8; overflow-wrap: break-word; }
.rich img { display: block; max-width: 100%; height: auto; margin: 12px auto; border-radius: 6px; }
.rich img { cursor: zoom-in; }
.rich.gallery-collapsed img:nth-of-type(n+7) { display: none; }
.gallery-toggle { margin: 16px auto 0; display: block; }
.product-specs { display: grid; grid-template-columns: repeat(auto-fit,minmax(130px,1fr)); gap: 8px; margin: 14px 0 20px; }
.product-specs div { background: var(--bg); padding: 9px 11px; border-radius: 7px; }
.product-specs span,.product-specs strong { display: block; font-size: 12px; }
.product-specs span { color: var(--muted); }.product-specs strong { font-size: 14px; }
.content-toc { background: #eff6ff; border: 1px solid #bfdbfe; padding: 12px 18px; border-radius: 8px; margin-bottom: 16px; }
.content-toc ol { margin: 6px 0 0; padding-left: 20px; }
.coupon-field { font-size: 12px; color: var(--muted); }.coupon-field input { width: 100%; padding: 7px; margin: 5px 0 10px; border:1px solid var(--line); border-radius:5px; }
.delivery-notice { background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;padding:10px 12px;border-radius:7px;margin-bottom:12px;font-size:13px; }
.image-lightbox { position:fixed; inset:0; z-index:100; background:rgba(0,0,0,.9); display:grid; place-items:center; padding:40px; }.image-lightbox[hidden]{display:none}.image-lightbox img{max-width:95vw;max-height:90vh}.image-lightbox button{position:absolute;right:22px;top:12px;background:none;border:0;color:#fff;font-size:36px;cursor:pointer}
.mobile-buy-bar { display:none; }
.version-block,.reviews-block,.report-box { background:var(--card);padding:20px 24px;border-radius:var(--radius);box-shadow:var(--shadow);margin-top:24px; }
.review-form { box-shadow:none;padding:12px 0; }.review-item { border-top:1px solid var(--line);padding:14px 0; }.review-item time{float:right;color:var(--muted);font-size:12px}.review-item blockquote{background:var(--bg);padding:8px 12px;margin:8px 0}.report-box form{display:grid;gap:8px;margin-top:12px}.report-box select,.report-box textarea{padding:8px;border:1px solid var(--line);border-radius:5px}
.editor-toolbar { display:flex;gap:6px;margin-top:6px;padding:8px;background:var(--bg);border:1px solid var(--line);border-bottom:0;border-radius:6px 6px 0 0}.editor-toolbar button{padding:5px 10px;border:1px solid var(--line);background:#fff;border-radius:4px;cursor:pointer}.rich-editor{min-height:280px;padding:14px;border:1px solid var(--line);border-radius:0 0 6px 6px;background:#fff;overflow:auto}.rich-editor img{display:block;max-width:100%;margin:8px auto;cursor:move}.content-cover-picker{display:flex;gap:8px;overflow:auto;margin-bottom:18px}.content-cover-picker>strong{min-width:100px}.cover-choice{position:relative;min-width:100px}.cover-choice img{width:100px;height:65px;object-fit:cover;border-radius:5px}.cover-choice input{position:absolute;z-index:2}.form-section{border:1px solid var(--line);border-radius:8px;padding:14px;margin-bottom:18px}.form-section legend{font-weight:700;padding:0 6px}
.notice-item{background:var(--card);padding:16px;border-radius:8px;box-shadow:var(--shadow);margin-bottom:10px}.notice-item.unread{border-left:4px solid var(--brand)}
.payment-status-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin-bottom:20px}.payment-status-grid .stat-num{font-size:18px}
.usdt-payment{max-width:860px;margin:20px auto;background:var(--card);padding:28px;border-radius:var(--radius);box-shadow:var(--shadow);text-align:center}.usdt-payment label,.usdt-payment code{display:block;margin:10px 0;overflow-wrap:anywhere}.usdt-payment strong{font-size:22px;color:var(--danger)}.usdt-steps{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin:15px 0}.usdt-steps span{background:#ecfdf5;color:#065f46;padding:5px 10px;border-radius:999px}.usdt-grid{display:grid;grid-template-columns:300px 1fr;gap:28px;align-items:center;text-align:left}.usdt-qr{width:280px;max-width:100%}.usdt-info code{font-size:18px;background:var(--bg);padding:10px;border-radius:6px}.usdt-info button[data-copy]{border:0;background:none;color:var(--brand);cursor:pointer}.decimal-warning{background:#fff7ed;border:2px solid #fb923c;padding:12px 16px;border-radius:8px;margin:18px 0;text-align:left}.decimal-warning strong{font-size:16px;color:#9a3412}@media(max-width:700px){.usdt-grid{grid-template-columns:1fr;text-align:center}.usdt-qr{margin:auto}}
.usdt-brand{display:flex;justify-content:center;align-items:center;gap:12px}.usdt-brand>span{display:grid;place-items:center;width:54px;height:54px;border-radius:50%;background:#26a17b;color:#fff;font-size:34px;font-weight:700}.usdt-brand h1,.usdt-brand p{margin:0;text-align:left}.safe-pay-note{display:inline-block;background:#ecfdf5;color:#047857;border:1px solid #a7f3d0;padding:8px 14px;border-radius:8px;margin:16px 0}.qr-card{text-align:center;background:var(--bg);padding:14px;border-radius:10px}.qr-card strong,.qr-card small{display:block;color:var(--text)}.qr-card small{font-size:12px;color:var(--muted);margin-top:6px}.network-warning{display:flex;flex-direction:column;background:#fef2f2;color:#991b1b;border:1px solid #fecaca;padding:12px;border-radius:8px;margin:12px 0}.chain-status{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:16px}.chain-status i{width:10px;height:10px;border-radius:50%;background:#f59e0b;box-shadow:0 0 0 5px #fef3c7}.expire-time{color:var(--muted)}
.crypto-checkout{min-height:100vh;background:radial-gradient(circle at 15% 10%,#153c38 0,transparent 32%),linear-gradient(145deg,#071411,#0c2521);color:#e7f8f3}.crypto-top{max-width:1100px;margin:auto;padding:24px;display:flex;justify-content:space-between;align-items:center}.crypto-logo{display:flex;gap:10px;align-items:center;color:#fff}.crypto-logo b{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#26a17b;font-size:28px}.crypto-logo span,.crypto-logo small{display:block}.crypto-logo small{color:#8ab7aa;font-size:10px}.crypto-secure,.network-chip{background:#123c34;color:#70e1bd;padding:7px 12px;border-radius:999px}.crypto-shell{max-width:1050px;margin:auto;padding:10px 22px 40px}.crypto-hero{display:flex;justify-content:space-between;gap:24px;align-items:end;margin:28px 0}.crypto-hero h1{font-size:36px;margin:15px 0 5px}.crypto-hero p{color:#9bc1b7}.order-mini{max-width:330px;background:#102d28;padding:14px 18px;border:1px solid #1c5147;border-radius:12px}.order-mini small,.order-mini strong,.order-mini span{display:block}.order-mini span{color:#86aca2;font-size:11px;margin-top:5px}.crypto-card{display:grid;grid-template-columns:360px 1fr;background:#fff;color:#172522;border-radius:22px;overflow:hidden;box-shadow:0 28px 80px rgba(0,0,0,.35)}.crypto-qr-panel{background:#f0faf7;padding:38px;text-align:center}.qr-frame{background:#fff;padding:16px;border-radius:18px;box-shadow:0 10px 30px rgba(15,118,92,.14)}.qr-frame img{width:100%;display:block}.trust-row{display:flex;justify-content:center;gap:8px}.trust-row span{font-size:11px;background:#dff7ef;color:#087658;padding:5px 8px;border-radius:999px}.crypto-details{padding:34px}.countdown-head{display:flex;justify-content:space-between}.countdown-head strong{color:#ef4444;font-size:22px}.countdown-track{height:5px;background:#e5e7eb;border-radius:9px;margin:8px 0 24px}.countdown-track i{display:block;height:100%;background:#26a17b;border-radius:9px}.amount-box,.address-box{position:relative;background:#f7faf9;border:1px solid #dce9e5;padding:14px;border-radius:11px;margin:12px 0}.amount-box small,.address-box small{display:block;color:#6b7f79}.amount-box strong{display:block;font-size:28px;color:#087658;margin-top:5px}.amount-box em{font-size:13px;margin-left:7px}.amount-box button,.address-box button{position:absolute;right:12px;top:12px;border:0;background:#daf5ec;color:#087658;padding:5px 9px;border-radius:6px}.precision-alert,.network-alert{padding:11px 14px;border-radius:9px;margin:12px 0}.precision-alert{background:#fff7ed;border:1px solid #fdba74}.network-alert{display:flex;flex-direction:column;background:#fef2f2;color:#991b1b}.payment-wait{display:flex;align-items:center;gap:12px;margin-top:18px}.payment-wait>span{width:12px;height:12px;border-radius:50%;background:#f59e0b;box-shadow:0 0 0 6px #fef3c7}.payment-wait b,.payment-wait small{display:block}.payment-wait small{color:#6b7f79}.crypto-footer{text-align:center;color:#8ab7aa;padding:22px}.crypto-footer a{color:#8ee6c9}.crypto-footer p{font-size:11px}@media(max-width:760px){.crypto-hero{display:block}.order-mini{margin-top:15px}.crypto-card{grid-template-columns:1fr}.crypto-qr-panel{padding:25px}.crypto-details{padding:22px}.crypto-hero h1{font-size:28px}}
.rich pre { background: #1e293b; color: #e2e8f0; padding: 14px; border-radius: 8px; overflow-x: auto; }
.rich table { border-collapse: collapse; width: 100%; }
.rich td, .rich th { border: 1px solid var(--line); padding: 6px 10px; }

.detail-side { position: sticky; top: 76px; }
.buy-box { background: var(--card); padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); }
.buy-price { margin-bottom: 16px; }
.buy-price strong { font-size: 28px; color: var(--danger); }
.buy-price strong.free { color: var(--ok); }
.buy-price del { color: var(--muted); font-size: 14px; margin-left: 8px; }
.price-reason { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.pay-types { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; margin-bottom: 12px; }
.pay-types label { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.buy-facts { margin: 16px 0 0; padding-left: 18px; font-size: 13px; color: var(--muted); }
.tip { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

/* ---------- plans ---------- */
.member-intro { background: var(--card); padding: 20px 24px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 24px; }
.member-intro h2 { margin: 0 0 10px; font-size: 17px; }
.member-intro ul { margin: 0; padding-left: 20px; color: #374151; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.plan-card {
  background: var(--card); border-radius: var(--radius); padding: 22px 20px;
  text-align: center; box-shadow: var(--shadow); border: 1px solid transparent;
}
.plan-card:hover { border-color: var(--brand); }
.plan-card h3 { margin: 0 0 10px; font-size: 16px; }
.plan-price { font-size: 26px; font-weight: 700; color: var(--danger); margin: 0 0 4px; }
.plan-meta { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.plan-discount { font-size: 14px; color: var(--warn); font-weight: 600; margin: 0 0 8px; }
.plan-intro { font-size: 12px; color: var(--muted); margin: 0 0 14px; min-height: 32px; }
.plan-grid.big .plan-card { padding: 28px 22px; }
.plan-card .pay-types { justify-content: center; }

/* ---------- forms ---------- */
.form { background: var(--card); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); }
.form.wide { max-width: none; }
.form label { display: block; margin-bottom: 16px; font-size: 14px; }
.form label.check { display: flex; align-items: center; gap: 8px; }
.form input[type=text], .form input[type=email], .form input[type=password],
.form input[type=number], .form input[type=url], .form select, .form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 6px;
  font-size: 14px; font-family: inherit; background: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--brand); outline-offset: -1px; border-color: var(--brand); }
.form textarea { resize: vertical; }
.form small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 16px; }
.form-actions { display: flex; gap: 12px; margin-top: 8px; }
.form-foot { text-align: center; font-size: 14px; margin-top: 16px; }
.search-inline { display: flex; gap: 8px; margin-bottom: 16px; }
.search-inline input { padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; }

/* ---------- collector ---------- */
.collector-title { margin-bottom: 2px; }
.muted-line { color: var(--muted); margin: 0; font-size: 14px; }
.collector-form fieldset { border: 0; padding: 0; margin: 0 0 24px; }
.collector-form legend { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.collector-mode { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.collector-mode .choice-card {
  display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 14px;
  border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
}
.collector-mode .choice-card:has(input:checked) { border-color: var(--brand); background: #eff6ff; }
.batch-options[hidden] { display: none; }
.choice-card input { margin-top: 5px; }
.choice-card span, .choice-card strong { display: block; }
.choice-card small { margin: 2px 0 0; }
.collector-rules { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px 0; margin-bottom: 24px; }
.collector-rules summary { cursor: pointer; color: var(--brand); font-weight: 600; margin-bottom: 14px; }
.collector-checks { display: flex; gap: 24px; flex-wrap: wrap; }
.collector-preview, .collector-results { background: var(--card); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); margin-top: 24px; }
.collector-preview h2, .collector-results h2 { margin: 0 0 14px; font-size: 18px; }
.preview-meta { display: grid; grid-template-columns: 70px minmax(0, 1fr); margin: 0 0 18px; font-size: 14px; }
.preview-meta dt, .preview-meta dd { padding: 6px 0; margin: 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.preview-meta dt { color: var(--muted); }
.preview-body { max-height: 600px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.result-url { display: block; max-width: 620px; overflow-wrap: anywhere; color: var(--muted); margin-top: 2px; }
.bulk-bar, .csv-import { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--card); padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; box-shadow: var(--shadow); }
.bulk-bar select, .bulk-bar input, .csv-import input { padding: 6px 8px; border: 1px solid var(--line); border-radius: 5px; }
.bulk-price-fields{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:5px 7px;border-radius:7px;background:#eff6ff;border:1px solid #bfdbfe}.bulk-price-fields[hidden],.bulk-category-fields[hidden]{display:none}.bulk-price-fields select{background:#fff}.bulk-price-fields input{width:115px}.bulk-money-prefix{font-weight:800;color:var(--brand)}.bulk-price-fields small{color:#52647a;font-size:10px;max-width:240px}.bulk-category-fields input{width:105px}
.progress { width: 150px; max-width: 100%; height: 8px; background: #e5e7eb; border-radius: 999px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--brand); }
.mini-cover { width: 72px; height: 48px; object-fit: cover; border-radius: 5px; }
.err-text { display: block; color: var(--danger); max-width: 320px; overflow-wrap: anywhere; }
.admin-two-col { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-bottom: 24px; }
.admin-two-col h2, .form h2 { margin-top: 0; font-size: 18px; }
.danger-bg { background: var(--danger); }
.danger-bg:hover { background: #b91c1c; }
.file-list { max-height: 300px; overflow: auto; }
.totp-qr { display: block; width: 220px; height: 220px; margin: 12px 0; }
.secret-code { display: block; overflow-wrap: anywhere; padding: 8px; background: var(--bg); margin-bottom: 12px; }

/* ---------- alerts ---------- */
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; font-size: 14px; }
.alert.ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert.err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.ok-title { color: var(--ok); }
.empty { color: var(--muted); background: var(--card); padding: 32px; border-radius: var(--radius); text-align: center; }

/* ---------- tables ---------- */
.table {
  width: 100%; border-collapse: collapse; background: var(--card);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: 14px;
}
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.table th { background: #f9fafb; font-weight: 600; font-size: 13px; color: var(--muted); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table .ops { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.plan-price-edit { display: flex; align-items: center; gap: 6px; min-width: 220px; }
.plan-price-edit span { color: var(--muted); font-weight: 700; }
.plan-price-edit input {
  width: 92px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px;
  font: inherit; color: var(--text); background: #fff;
}
.plan-price-edit input:focus { outline: 2px solid var(--brand); outline-offset: -1px; border-color: var(--brand); }
.st { font-size: 12px; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.st.ok { background: #ecfdf5; color: var(--ok); }
.st.wait { background: #fffbeb; color: var(--warn); }
.st.off { background: #f3f4f6; color: var(--muted); }

/* ---------- nav bars ---------- */
.sub-nav, .admin-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.sub-nav a, .admin-nav a {
  font-size: 14px; padding: 6px 14px; border-radius: 6px;
  background: var(--card); color: var(--text); box-shadow: var(--shadow);
}
.sub-nav a:hover, .admin-nav a:hover { background: var(--brand); color: #fff; text-decoration: none; }
.sub-nav a.on, .admin-nav a.on { background: var(--brand); color: #fff; }

.user-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--card); padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; }
.stat-num { display: block; font-size: 24px; font-weight: 700; color: var(--brand); }
.stat-label { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }

.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; font-size: 14px; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--card); border-top: 1px solid var(--line);
  padding: 24px 0; text-align: center; font-size: 13px; color: var(--muted);
}
.site-footer p { margin: 4px 0; }
.site-footer .links { display: flex; gap: 16px; justify-content: center; }

/* ---------- pay redirect page ---------- */
.pay-redirect { display: grid; place-items: center; min-height: 100vh; }
.pay-redirect .center-box { background: var(--card); padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow); max-width: 420px; }
.pay-redirect h1 { font-size: 19px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .detail { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .header-inner { height: auto; padding: 10px 0; }
  .search { order: 3; max-width: none; width: 100%; }
  .nav { margin-left: 0; font-size: 13px; }
  .table { display: block; overflow-x: auto; }
  .collector-mode { grid-template-columns: 1fr; }
  .admin-two-col { grid-template-columns: 1fr; }
  .mobile-buy-bar { display:flex; position:fixed; left:0;right:0;bottom:0;z-index:40;align-items:center;justify-content:space-between;background:#fff;padding:10px 16px;border-top:1px solid var(--line);box-shadow:0 -3px 12px rgba(0,0,0,.08) }
  .mobile-buy-bar span{font-size:20px;font-weight:700;color:var(--danger)}.mobile-buy-bar a{background:var(--brand);color:#fff;padding:8px 18px;border-radius:6px}.site-footer{padding-bottom:75px}
}

/* ---------- unified checkout ---------- */
.checkout-tip { margin: 2px 0 12px; color: var(--muted); font-size: 12px; text-align: center; }
.unified-checkout {
  min-height: 100vh; margin: 0; color: #182230;
  background: radial-gradient(circle at 12% 0, #eaf2ff 0, transparent 30%), #f4f7fb;
}
.checkout-topbar {
  height: 76px; padding: 0 max(24px, calc((100vw - 1120px)/2)); display: flex;
  align-items: center; justify-content: space-between; background: rgba(255,255,255,.94);
  border-bottom: 1px solid #e5eaf1; backdrop-filter: blur(12px);
}
.checkout-brand { display: flex; align-items: center; gap: 11px; color: #172033; text-decoration: none; }
.checkout-brand>b { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #fff; background: linear-gradient(145deg,#2563eb,#163fba); box-shadow: 0 8px 20px rgba(37,99,235,.24); font-size: 19px; }
.checkout-brand span,.checkout-brand small { display: block; }.checkout-brand span { font-weight: 800; line-height: 1.1; }.checkout-brand small { margin-top: 4px; font-size: 9px; letter-spacing: 1.5px; color: #8b97a8; }
.checkout-secure { color: #17784a; background: #edf9f3; border: 1px solid #c9ead9; border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 700; }
.checkout-secure span { color: #19a866; font-size: 10px; }
.checkout-wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 26px 0 44px; }
.checkout-steps { max-width: 590px; margin: 0 auto 28px; display: flex; align-items: center; justify-content: center; gap: 10px; color: #a0a9b7; font-size: 11px; font-weight: 700; }
.checkout-steps i { width: 54px; height: 1px; background: #d6dce5; }.checkout-steps .done { color: #269566; }.checkout-steps .active { color: #2563eb; }
.checkout-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 22px; }
.checkout-heading small { color: #2563eb; font-size: 10px; font-weight: 800; letter-spacing: 2px; }.checkout-heading h1 { margin: 4px 0 6px; font-size: 29px; letter-spacing: -.6px; }.checkout-heading p { margin: 0; color: #738095; font-size: 14px; }
.checkout-lock { color: #657287; font-size: 12px; }
.checkout-layout { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(340px,.65fr); gap: 22px; align-items: start; }
.checkout-payment-panel,.checkout-summary { background: #fff; border: 1px solid #e4e9f0; border-radius: 18px; box-shadow: 0 18px 50px rgba(35,53,84,.08); }
.checkout-payment-panel { padding: 27px; }.checkout-summary { padding: 25px; position: sticky; top: 20px; }
.checkout-section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.checkout-section-title h2 { margin: 0; font-size: 17px; }.checkout-section-title>span { color: #8a95a6; font-size: 11px; background: #f3f6fa; padding: 5px 9px; border-radius: 999px; }
.gateway-grid { display: grid; gap: 10px; }
.gateway-card { position: relative; display: grid; grid-template-columns: 48px minmax(0,1fr) 16px; align-items: center; gap: 13px; padding: 14px; border: 1.5px solid #e1e6ed; border-radius: 12px; cursor: pointer; transition: border .18s,box-shadow .18s,transform .18s; }
.gateway-card:hover { transform: translateY(-1px); border-color: #9bb7f5; box-shadow: 0 8px 22px rgba(37,99,235,.08); }.gateway-card.selected { border-color: #2563eb; background: #f7faff; box-shadow: 0 0 0 3px rgba(37,99,235,.08); }
.gateway-card input { position: absolute; opacity: 0; pointer-events: none; }
.gateway-mark { display: grid; place-items: center; width: 48px; height: 38px; border-radius: 9px; background: #f1f5fb; color: #23416d; font-size: 12px; font-weight: 900; font-style: normal; }
.paypal-card .gateway-mark { color: #0969b8; background: #edf6ff; }.alipay-card .gateway-mark { color: #fff; background: #1677ff; font-size: 21px; }.usdt-card .gateway-mark { color: #fff; background: #26a17b; border-radius: 50%; width: 40px; height: 40px; margin-left: 4px; font-size: 25px; }.more-card .gateway-mark { color: #637084; font-size: 17px; }
.gateway-copy b,.gateway-copy small { display: block; }.gateway-copy b { margin-bottom: 4px; font-size: 14px; }.gateway-copy small { color: #8994a5; font-size: 11px; }.gateway-card>i { color: #a7b0be; font-size: 22px; font-style: normal; }
.checkout-submit { width: 100%; margin-top: 18px; display: flex; justify-content: center; gap: 10px; border: 0; border-radius: 11px; padding: 14px 18px; background: linear-gradient(135deg,#2d6bef,#174bc4); color: #fff; font: inherit; cursor: pointer; box-shadow: 0 10px 24px rgba(37,99,235,.23); }.checkout-submit:hover { filter: brightness(1.05); }.checkout-submit:disabled { opacity: .5; cursor: not-allowed; }.checkout-submit strong { padding-left: 10px; border-left: 1px solid rgba(255,255,255,.3); }
.checkout-redirect-note { margin: 11px 0 0; color: #8b96a7; text-align: center; font-size: 11px; }
.checkout-product { display: grid; grid-template-columns: 50px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 14px 0 20px; border-bottom: 1px solid #edf0f4; }.checkout-product-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 12px; color: #245dce; background: #edf3ff; font-weight: 900; font-size: 12px; }.checkout-product div b,.checkout-product div small { display: block; }.checkout-product div b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }.checkout-product div small { color: #8a96a6; margin-top: 5px; font-size: 11px; }.checkout-product>strong { font-size: 14px; }
.checkout-discount { display: flex; justify-content: space-between; padding: 14px 0 0; color: #17875a; font-size: 12px; }
.checkout-total { display: flex; justify-content: space-between; align-items: center; padding: 21px 0; border-bottom: 1px solid #edf0f4; }.checkout-total span,.checkout-total small { display: block; }.checkout-total span { font-size: 13px; font-weight: 700; }.checkout-total small { margin-top: 4px; color: #98a2b1; font-size: 10px; font-weight: 400; }.checkout-total strong { color: #174bc4; font-size: 27px; letter-spacing: -.6px; }
.checkout-meta { margin: 16px 0; }.checkout-meta div { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0; font-size: 11px; }.checkout-meta dt { color: #909aaa; }.checkout-meta dd { margin: 0; color: #536073; overflow-wrap: anywhere; text-align: right; }.checkout-meta dd span { color: #b36b08; background: #fff7e7; padding: 3px 7px; border-radius: 999px; }
.checkout-protection { padding: 13px; border-radius: 10px; color: #226145; background: #f0faf5; border: 1px solid #d2eee0; }.checkout-protection b { font-size: 11px; }.checkout-protection p { margin: 5px 0 0; color: #65907c; font-size: 10px; line-height: 1.6; }
.checkout-footer { display: flex; justify-content: space-between; margin-top: 20px; color: #8b96a7; font-size: 11px; }.checkout-footer a { color: #5c6a7e; }
@media (max-width: 780px) {
  .checkout-topbar { height: 66px; padding: 0 16px; }.checkout-secure { font-size: 0; }.checkout-secure:after { content: '安全付款'; font-size: 11px; }
  .checkout-wrap { width: min(100% - 24px,1120px); padding-top: 18px; }.checkout-steps { margin-bottom: 18px; gap: 6px; }.checkout-steps i { width: 22px; }.checkout-heading { align-items: flex-start; }.checkout-heading h1 { font-size: 24px; }.checkout-heading p,.checkout-lock { display: none; }
  .checkout-layout { grid-template-columns: 1fr; }.checkout-summary { grid-row: 1; position: static; }.checkout-payment-panel,.checkout-summary { padding: 18px; border-radius: 14px; }.checkout-product { padding-top: 4px; }.checkout-footer { display: block; text-align: center; }.checkout-footer span { display: block; margin-top: 8px; }
}
@media (max-width: 420px) { .checkout-steps { font-size: 9px; }.checkout-steps i { width: 10px; }.gateway-card { grid-template-columns: 42px minmax(0,1fr) 10px; padding: 12px 10px; }.gateway-mark { width: 42px; }.gateway-copy small { line-height: 1.4; } }

/* ---------- after-sales tickets ---------- */
.ticket-page-head,.ticket-detail-head{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:20px}.ticket-page-head .page-title{margin-bottom:4px}.ticket-page-head p,.ticket-detail-head p{margin:0;color:var(--muted);font-size:13px}.ticket-list{display:grid;gap:10px}.ticket-list-item{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 19px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);color:var(--text)}.ticket-list-item:hover{border-color:var(--brand);text-decoration:none}.ticket-list-main strong,.ticket-list-main small{display:block}.ticket-list-main strong{margin:7px 0 4px}.ticket-list-main small,.ticket-list-meta{color:var(--muted);font-size:12px}.ticket-list-meta{text-align:right}.ticket-list-meta span,.ticket-list-meta time,.ticket-list-meta code{display:block;margin:3px 0}.ticket-form-shell{display:grid;grid-template-columns:minmax(260px,.7fr) minmax(0,1.3fr);gap:24px;align-items:start}.ticket-form-copy{padding:32px;border-radius:14px;background:linear-gradient(145deg,#172554,#1d4ed8);color:#fff;box-shadow:0 18px 40px rgba(29,78,216,.2)}.ticket-form-copy>span{font-size:10px;letter-spacing:2px;color:#bfdbfe}.ticket-form-copy h1{font-size:28px;margin:9px 0}.ticket-form-copy p{color:#dbeafe;line-height:1.7}.ticket-form-copy ul{padding-left:20px;line-height:2}.ticket-form h2{margin-top:0}.ticket-detail-head h1{margin:7px 0;font-size:24px}.ticket-order-card{min-width:300px;padding:14px 16px;border-radius:10px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow)}.ticket-order-card small,.ticket-order-card b,.ticket-order-card span{display:block}.ticket-order-card small,.ticket-order-card span{color:var(--muted);font-size:11px}.ticket-order-card b{margin:5px 0;font-size:13px}.ticket-thread{display:grid;gap:15px;margin-bottom:20px}.ticket-message{max-width:82%;padding:16px 18px;border-radius:14px;background:#fff;border:1px solid var(--line);box-shadow:0 5px 18px rgba(15,23,42,.05)}.ticket-message.from-admin{justify-self:end;background:#eff6ff;border-color:#bfdbfe}.ticket-message header{display:flex;justify-content:space-between;gap:24px;margin-bottom:9px}.ticket-message header b{font-size:13px}.ticket-message header time{color:var(--muted);font-size:11px}.ticket-message-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.7}.ticket-attachments{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.ticket-attachments>a{display:grid;grid-template-columns:44px minmax(80px,1fr);grid-template-rows:auto auto;gap:1px 8px;align-items:center;max-width:230px;padding:7px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--text)}.ticket-attachments>a:hover{text-decoration:none;border-color:var(--brand)}.ticket-attachments img,.ticket-attachments>a>span{grid-row:1/3;width:44px;height:44px;border-radius:6px;object-fit:cover;display:grid;place-items:center;background:var(--bg)}.ticket-attachments b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.ticket-attachments small{color:var(--muted);font-size:10px}.ticket-reply-box{padding:21px;background:#fff;border-radius:12px;box-shadow:var(--shadow)}.ticket-reply-box h2{margin:0 0 13px;font-size:17px}.ticket-reply-box textarea,.ticket-reply-box select,.ticket-reply-box input[type=file]{width:100%;padding:10px;border:1px solid var(--line);border-radius:7px;font:inherit}.ticket-reply-box label{display:block;margin-bottom:13px;font-size:13px}.ticket-file-button{display:inline-flex!important;width:auto;align-items:center;gap:8px;padding:8px 12px;border:1px dashed #9ca3af;border-radius:7px;color:var(--muted);cursor:pointer}.ticket-file-button input{max-width:240px;padding:0!important;border:0!important}.ticket-stats{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:10px;margin-bottom:14px}.ticket-stats a{padding:15px;background:#fff;border-radius:9px;box-shadow:var(--shadow);text-align:center;color:var(--text)}.ticket-stats strong,.ticket-stats span{display:block}.ticket-stats strong{font-size:22px;color:var(--brand)}.ticket-stats span{margin-top:4px;font-size:11px;color:var(--muted)}.ticket-priority{padding:3px 8px;border-radius:999px;background:#f3f4f6;font-size:11px}.ticket-priority.high,.ticket-priority.urgent{background:#fef2f2;color:#b91c1c}.ticket-priority.low{color:var(--muted)}.ticket-admin-table small{color:var(--muted)}
@media(max-width:760px){.ticket-page-head,.ticket-detail-head{align-items:flex-start;flex-direction:column}.ticket-list-item{align-items:flex-start}.ticket-list-meta{min-width:110px}.ticket-form-shell{grid-template-columns:1fr}.ticket-form-copy{padding:22px}.ticket-order-card{min-width:0;width:100%}.ticket-message{max-width:95%}.ticket-stats{grid-template-columns:repeat(2,1fr)}}

/* ---------- payment configuration ---------- */
.payment-config-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.payment-config-head .page-title{margin-bottom:4px}.payment-config-head p{margin:0;color:var(--muted);font-size:13px}.secure-config-badge{padding:8px 12px;border-radius:999px;background:#ecfdf5;border:1px solid #a7f3d0;color:#047857;font-size:12px;font-weight:700;white-space:nowrap}.payment-config-form{display:grid;gap:14px}.payment-config-card{padding:21px 23px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow)}.payment-config-card>header{display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:12px;margin-bottom:15px}.payment-config-card h2,.payment-config-card header p{margin:0}.payment-config-card h2{font-size:17px}.payment-config-card header p{margin-top:3px;color:var(--muted);font-size:11px}.channel-brand{display:grid;place-items:center;width:44px;height:44px;border-radius:11px;color:#fff;background:#334155;font-weight:900;font-size:18px}.channel-brand.stripe{background:#635bff}.channel-brand.paypal{background:#0969b8}.channel-brand.payssion{background:#1677ff}.channel-brand.epay{background:#f59e0b}.channel-brand.tron{background:#26a17b;border-radius:50%;font-size:27px}.switch{display:flex;align-items:center;gap:7px;font-size:12px;cursor:pointer}.switch input{position:absolute;opacity:0}.switch span{position:relative;width:38px;height:22px;border-radius:999px;background:#cbd5e1;transition:.2s}.switch span:after{content:'';position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:50%;background:#fff;transition:.2s;box-shadow:0 1px 3px rgba(0,0,0,.2)}.switch input:checked+span{background:#2563eb}.switch input:checked+span:after{transform:translateX(16px)}.channel-status{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.mode-check{font-size:12px;color:var(--muted)}.payment-config-card label:not(.switch):not(.mode-check){display:block;margin-bottom:12px;font-size:13px}.payment-config-card input[type=text],.payment-config-card input[type=password],.payment-config-card input[type=url],.payment-config-card input[type=number]{display:block;width:100%;margin-top:6px;padding:9px 11px;border:1px solid var(--line);border-radius:7px;font:inherit}.payment-config-card input:focus{outline:2px solid var(--brand);outline-offset:-1px}.payment-config-card small{display:block;margin-top:4px;color:var(--muted);font-size:10px}.callback-line{margin:2px 0 0;color:var(--muted);font-size:11px}.callback-line code{overflow-wrap:anywhere}.payment-save-bar{position:sticky;bottom:12px;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 18px;background:rgba(15,23,42,.96);color:#fff;border-radius:11px;box-shadow:0 12px 30px rgba(15,23,42,.3);backdrop-filter:blur(8px)}.payment-save-bar b,.payment-save-bar span{display:block}.payment-save-bar span{margin-top:3px;color:#94a3b8;font-size:10px}.channel-brand.ftp{background:linear-gradient(145deg,#0891b2,#0e7490);font-size:12px}.storage-mode-note{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;margin-bottom:16px;border-radius:8px;background:#f0f9ff;border:1px solid #bae6fd;color:#075985}.storage-mode-note b{font-size:13px}.storage-mode-note span{font-size:11px}.storage-secure{align-self:center;padding-top:17px}.storage-scope{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.storage-scope span{padding:6px 9px;border-radius:999px;background:#ecfdf5;color:#047857;font-size:11px}.storage-test-btn{background:#fff;color:#2563eb}.payment-save-bar .form-actions{margin:0}.payment-save-bar .form-actions .btn{white-space:nowrap}@media(max-width:700px){.payment-config-head{align-items:flex-start;flex-direction:column}.payment-config-card{padding:17px}.payment-config-card>header{grid-template-columns:42px minmax(0,1fr)}.payment-config-card .switch{grid-column:1/3;justify-self:end;margin-top:-38px}.payment-save-bar{bottom:6px}.payment-save-bar>div:first-child{display:none}.storage-mode-note{align-items:flex-start;flex-direction:column}.payment-save-bar .form-actions{display:flex;width:100%}.payment-save-bar .form-actions .btn{flex:1;padding-left:8px;padding-right:8px}}
