:root {
  --blue: #2563eb; --blue-d: #1d4ed8; --ink: #0f172a; --mut: #64748b;
  --bg: #f8fafc; --line: #e2e8f0; --ok: #16a34a; --warn: #d97706;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
a { color: var(--blue); text-decoration: none; }

/* header */
.hd { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.hd-in { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.logo { font-size: 17px; }
.logo b { color: var(--blue); }
.nav a { color: var(--ink); margin-left: 22px; font-size: 14px; }
.nav a:hover { color: var(--blue); }

/* hero */
.hero { background: linear-gradient(135deg, #0b1733 0%, #1e3a8a 100%); color: #fff; padding: 56px 0 48px; text-align: center; }
.hero h1 { font-size: 34px; font-weight: 800; letter-spacing: 1px; }
.hero .sub { margin: 12px auto 20px; opacity: .85; max-width: 640px; }
.hero-pts { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; font-size: 14px; }
.hero-pts span { background: rgba(255,255,255,.1); padding: 6px 14px; border-radius: 999px; }

/* catalog */
.bar { display: flex; align-items: baseline; justify-content: space-between; margin: 34px 0 14px; }
.bar h2 { font-size: 22px; }
.stat { color: var(--mut); font-size: 13px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.filters input[type=search], .filters select {
  height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 14px; color: var(--ink);
}
.filters input[type=search] { flex: 1 1 200px; min-width: 180px; }
.chk { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--mut); background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 0 12px; height: 38px; cursor: pointer; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 8px; }
.card:hover { box-shadow: 0 6px 22px rgba(15,23,42,.07); }
.c-top { display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.c-domain { font-weight: 700; font-size: 16px; word-break: break-all; }
.c-country { color: var(--mut); font-size: 12px; white-space: nowrap; }
.c-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: #eff6ff; color: var(--blue-d); font-weight: 600; }
.badge.g { background: #f0fdf4; color: var(--ok); }
.badge.o { background: #fffbeb; color: var(--warn); }
.c-cats { color: var(--mut); font-size: 12px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.c-meta { color: var(--mut); font-size: 12px; display: flex; gap: 14px; flex-wrap: wrap; }
.c-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; padding-top: 10px; border-top: 1px dashed var(--line); }
.c-price { font-size: 20px; font-weight: 800; color: var(--ink); }
.c-price small { font-size: 12px; color: var(--mut); font-weight: 400; display: block; }
.btn { background: var(--blue); color: #fff; border: 0; border-radius: 9px; padding: 9px 18px; font-size: 14px; font-weight: 600; cursor: pointer; }
.btn:hover { background: var(--blue-d); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 8px 16px; font-size: 14px; cursor: pointer; color: var(--ink); }
.btn-ghost:disabled { opacity: .4; cursor: not-allowed; }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 24px 0 40px; color: var(--mut); font-size: 14px; }
.empty { grid-column: 1/-1; text-align: center; color: var(--mut); padding: 50px 0; }

/* track + faq */
.track { background: #fff; border-top: 1px solid var(--line); padding: 40px 0; }
.track h2, .faq h2 { font-size: 22px; margin-bottom: 16px; }
.track-form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 640px; }
.track-form input { flex: 1 1 180px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; }
.t-card { margin-top: 18px; max-width: 640px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 16px; font-size: 14px; }
.t-card .st { font-weight: 700; font-size: 16px; }
.t-bad { margin-top: 14px; color: #dc2626; font-size: 14px; }
.faq { padding: 40px 0 50px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 15px; }
.faq p { color: var(--mut); font-size: 14px; margin-top: 8px; }

/* footer */
.ft { border-top: 1px solid var(--line); padding: 22px 0; color: var(--mut); font-size: 13px; text-align: center; background: #fff; }

/* modal */
.modal { position: fixed; inset: 0; background: rgba(15,23,42,.55); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow: auto; }
.modal[hidden] { display: none; }
.modal-box { background: #fff; border-radius: 16px; max-width: 720px; width: 100%; padding: 28px 30px; position: relative; }
.modal-x { position: absolute; top: 12px; right: 14px; border: 0; background: none; font-size: 26px; color: var(--mut); cursor: pointer; line-height: 1; }
.m-h { font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.m-sub { color: var(--mut); font-size: 13px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.m-form { display: flex; flex-direction: column; gap: 14px; }
.m-form label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.m-form label.chk { display: flex; font-weight: 400; color: var(--ink); margin-bottom: 0; cursor: pointer; }
.m-form label.chk input { width: auto; accent-color: var(--blue); }
.m-form label small { font-weight: 400; color: var(--mut); }
.m-form input, .m-form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px;
  font-size: 14px; font-family: inherit; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.m-form input:focus, .m-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.m-form textarea { min-height: 240px; resize: vertical; line-height: 1.7; }
.m-field { margin: 0; }
.m-row { display: flex; gap: 12px; }
.m-row > * { flex: 1; min-width: 0; }
@media (max-width: 560px) { .m-row { flex-direction: column; } }
.m-total { display: flex; justify-content: space-between; align-items: center; background: var(--bg); border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.m-total b { font-size: 20px; }
.m-err { color: #dc2626; font-size: 13px; min-height: 18px; }
.pay { text-align: center; padding: 8px 0; }
.pay-qr { display: flex; justify-content: center; margin: 16px 0; }
.pay-tip { color: var(--mut); font-size: 13px; }
.pay-st { margin-top: 12px; font-size: 14px; color: var(--warn); }
.pay-ok { font-size: 15px; color: var(--ok); line-height: 1.9; }

@media (max-width: 640px) {
  .hero h1 { font-size: 25px; }
  .bar { flex-direction: column; align-items: flex-start; gap: 4px; }
}
