:root {
  --bg: #12141a; --card: #1a1d25; --border: #262b36; --text: #e8eaf0;
  --muted: #8f97a8; --accent: #4c8dff; --green: #3ecf8e; --red: #ff7b7b; --orange: #e8b44c;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Microsoft YaHei UI", "Segoe UI", sans-serif; font-size: 15px; line-height: 1.7; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.site-header { border-bottom: 1px solid var(--border); background: #16181f; position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { font-size: 20px; font-weight: 700; color: var(--text); }
nav { display: flex; gap: 18px; }
nav a { color: var(--muted); font-size: 14px; }
main { padding-top: 28px; padding-bottom: 40px; }
.hero { padding: 20px 0 26px; }
.hero h1 { margin: 0 0 6px; font-size: 32px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 24px; margin-bottom: 20px; }
.card h2 { margin-top: 0; font-size: 20px; }
.card.narrow { max-width: 420px; margin: 40px auto; }
.price { font-size: 34px; font-weight: 700; color: var(--accent); margin: 8px 0 12px; }
.features { padding-left: 20px; margin: 0 0 18px; color: #c8cdda; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #c8cdda; }
input, textarea { background: #20242e; color: var(--text); border: 1px solid #2c3240; border-radius: 8px; padding: 10px 12px; font: inherit; width: 100%; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { resize: vertical; }
button, .button { display: inline-block; background: #262c38; color: #dfe3ec; border: none; border-radius: 8px; padding: 10px 18px; font: inherit; cursor: pointer; text-align: center; }
button:hover, .button:hover { background: #303848; text-decoration: none; }
button.primary { background: var(--accent); color: #fff; font-weight: 600; }
button.primary:hover { background: #63a0ff; }
button.small-btn { padding: 6px 12px; font-size: 13px; }
.notice { background: #1c2a24; border: 1px solid #2d5545; color: #9fe3c2; padding: 12px 14px; border-radius: 10px; margin-bottom: 18px; }
.warning { background: #2a1e1e; border: 1px solid #5a3030; color: #ffb3b3; padding: 12px 14px; border-radius: 10px; margin: 12px 0; }
.warning, .notice, .card, td { overflow-wrap: anywhere; word-break: break-word; }
.contact { font-size: 18px; font-weight: 600; color: var(--green); word-break: break-all; }
.qr { display: block; width: 240px; max-width: 100%; margin: 16px auto; border-radius: 12px; border: 1px solid var(--border); background: #fff; padding: 8px; }
.keybox { font-family: Consolas, monospace; font-size: 18px; padding: 14px; text-align: center; letter-spacing: 1px; background: #16221c; border-color: #2d5545; color: var(--green); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.status-pending { background: #2a2f3a; color: #aab1c0; }
.status-claimed { background: #332a18; color: var(--orange); }
.status-paid { background: #163226; color: var(--green); }
.status-cancelled, .status-refunded { background: #331e1e; color: var(--red); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.row-claimed { background: #221d12 !important; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #232833; vertical-align: middle; }
th { color: var(--muted); font-weight: 600; white-space: nowrap; }
.ellipsis { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kv th { width: 110px; color: var(--muted); font-weight: 500; }
.kv input { font-family: Consolas, monospace; font-size: 13px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 8px; }
.faq p { margin: 8px 0; color: #c8cdda; }
.footer { color: #5c6272; font-size: 12px; border-top: 1px solid var(--border); padding-top: 18px; padding-bottom: 30px; }
footer p { margin: 0; }
@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
  .card { padding: 18px; }
  .price { font-size: 28px; }
}

.pre { white-space: pre-wrap; }
.stack h2 { font-size: 17px; margin: 18px 0 2px; }
.stack label.check { flex-direction: row; align-items: center; gap: 8px; }
.stack label.check input { width: auto; }
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .68); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 50; }
.modal.hidden { display: none; }
.modal-box { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 24px; max-width: 480px; width: 100%; max-height: 85vh; overflow-y: auto; }
.modal-text { white-space: pre-wrap; color: #c8cdda; margin: 12px 0 18px; }
.modal-close { margin-top: 12px; width: 100%; }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-bottom: 20px; }
.product-card { display: flex; flex-direction: column; margin-bottom: 0; }
.product-card .button, .product-card button { margin-top: auto; display: block; }
.product-card .features { flex: 0 0 auto; }
select { background: #20242e; color: var(--text); border: 1px solid #2c3240; border-radius: 8px; padding: 10px 12px; font: inherit; width: 100%; }
select:focus { outline: none; border-color: var(--accent); }
button:disabled, .button:disabled { opacity: .55; cursor: not-allowed; }
