:root {
  --bg-canvas: #E8EEF4;
  --bg-surface: #F7FAFC;
  --bg-elevated: #FFFFFF;
  --bg-ink: #0B1420;
  --bg-ink-soft: #142033;
  --accent-teal: #0F766E;
  --accent-teal-soft: #CCFBF1;
  --accent-amber: #B45309;
  --text-primary: #0B1420;
  --text-secondary: #5B6B7C;
  --text-muted: #8A9AAB;
  --border: #D5DEE8;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(11, 20, 32, 0.06);
  --font-display: "Sora", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "Sora", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-canvas);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.container {
  width: min(1312px, calc(100% - 32px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(247, 250, 252, 0.92);
  border-bottom: 1px solid transparent;
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-teal);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
}
.nav {
  display: flex;
  gap: 28px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}
.nav a:hover { color: var(--accent-teal); }
.header-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.auth-box { max-width: 440px; margin: 0 auto; }
.buy-auth-tip {
  background: var(--accent-teal-soft);
  color: var(--accent-teal);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 16px;
}
.buy-auth-tip a { color: var(--accent-teal); font-weight: 700; text-decoration: underline; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 12px;
  padding: 12px 22px;
  font-weight: 500;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent-teal); color: #fff; }
.btn-ink { background: var(--bg-ink); color: #F7FAFC; }
.btn-ghost {
  background: transparent;
  color: #F7FAFC;
  border: 1px solid rgba(255,255,255,.35);
}
.btn-outline {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-primary);
}
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; border-radius: 10px; font-size: 13px; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #0B1420 0%, #142033 100%);
  color: #F7FAFC;
  text-align: center;
  padding: 72px 20px 64px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% auto auto 50%;
  width: 520px;
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(15,118,110,.35), transparent 65%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 700;
  letter-spacing: -2px;
  margin: 0 0 12px;
  animation: rise .7s ease both;
}
.hero h2 {
  margin: 0 0 12px;
  font-size: clamp(20px, 3vw, 28px);
  color: var(--accent-teal-soft);
  animation: rise .7s ease .08s both;
}
.hero p {
  margin: 0 0 28px;
  color: #a8b8c8;
  font-size: 16px;
  animation: rise .7s ease .16s both;
}
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  animation: rise .7s ease .24s both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Products */
.section {
  padding: 56px 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 24px;
}
.section-head h3 {
  margin: 0 0 6px;
  font-size: 24px;
}
.section-head p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}
.section-head a { color: var(--accent-teal); font-size: 14px; font-weight: 500; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.product-cover {
  height: 140px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background: linear-gradient(135deg, var(--cover, #0F766E), #0B1420);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.product-cover.has-image {
  padding: 0;
  justify-content: flex-start;
}
.product-cover.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-cover.has-image .tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
}
.tag {
  align-self: start;
  background: rgba(255,255,255,.18);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
}
.cover-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
}
.product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.product-body h4 {
  margin: 0;
  font-size: 15px;
}
.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.price {
  color: var(--accent-amber);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
}
.price small {
  font-size: 14px;
  font-weight: 600;
}
.stock { color: var(--text-muted); font-size: 12px; }

/* Panels */
.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
}
.page {
  padding: 40px 0 64px;
}
.page-title {
  text-align: center;
  margin-bottom: 24px;
}
.page-title h1 {
  margin: 0 0 8px;
  font-size: 32px;
}
.page-title p { margin: 0; color: var(--text-secondary); }

.buy-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: start;
}
.buy-cover {
  height: 220px;
  border-radius: 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: end;
  padding: 24px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--cover, #0F766E), #0B1420);
  overflow: hidden;
  position: relative;
}
.buy-cover.has-image {
  padding: 0;
  align-items: stretch;
}
.buy-cover.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.chips { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.chip {
  background: var(--accent-teal-soft);
  color: var(--accent-teal);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
}

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
}
.form-control {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
}
.form-control:focus { border-color: var(--accent-teal); background: #fff; }

.qty {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.qty button {
  width: 44px;
  height: 42px;
  border: none;
  background: #fff;
  cursor: pointer;
}
.qty input {
  width: 64px;
  border: none;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  background: #fff;
}

.pay-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 10px;
  cursor: pointer;
  background: #fff;
  user-select: none;
}
.pay-option.active {
  border-color: var(--accent-teal);
  border-width: 2px;
  background: #F0FDFA;
  padding: 13px 15px;
}
.pay-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.pay-left { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.pay-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.usdt-pay .usdt-head {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.usdt-main {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}
.usdt-qr { text-align: center; }
.usdt-qr img {
  width: 220px;
  height: 220px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  margin: 0 auto 8px;
}
.usdt-value {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  word-break: break-all;
}
.usdt-amount {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: #26A17B;
}
.usdt-amount small { font-size: 14px; color: var(--text-secondary); }
.usdt-status {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #FFF7ED;
  color: #B45309;
  font-size: 13px;
}
.usdt-status.ok { background: #ECFDF5; color: #0F766E; }
@media (max-width: 720px) {
  .usdt-pay .usdt-head,
  .usdt-main { grid-template-columns: 1fr; }
}
  border-radius: 8px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}
.dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}
.dot-alipay { background: #1677FF; }
.dot-wechat { background: #07C160; }
.dot-epay { background: #FF6A00; }

.muted { color: var(--text-muted); font-size: 12px; }
.alert {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 14px;
}
.alert-error { background: #FEF2F2; color: #B91C1C; }
.alert-ok { background: var(--accent-teal-soft); color: var(--accent-teal); }

.card-box {
  background: var(--bg-ink);
  color: #CCFBF1;
  border-radius: 12px;
  padding: 16px;
  margin: 12px 0;
  font-family: var(--font-display);
}
.card-box .label { color: var(--text-muted); font-size: 12px; font-family: var(--font-body); margin-bottom: 6px; }
.card-box .value { font-size: 18px; font-weight: 600; word-break: break-all; }

.badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  background: var(--accent-teal-soft);
  color: var(--accent-teal);
}
.badge-warn { background: #FFEDD5; color: var(--accent-amber); }
.badge-danger { background: #FEE2E2; color: #B91C1C; }

.result-list { display: grid; gap: 16px; max-width: 560px; margin: 0 auto; }
.query-box { max-width: 560px; margin: 0 auto; }

.site-footer {
  background: var(--bg-ink);
  color: #F7FAFC;
  text-align: center;
  padding: 40px 16px;
  margin-top: auto;
}
.site-footer .brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 12px;
}
.site-footer .links {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 10px;
}
.site-footer .copy { color: #5B6B7C; font-size: 12px; }

.success-hero {
  text-align: center;
  padding: 48px 0 24px;
}
.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-teal);
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 28px;
}

/* Mobile list */
.mobile-list { display: none; gap: 12px; }
.mobile-item {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
}
.mobile-thumb {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--cover, #0F766E), #0B1420);
  overflow: hidden;
}
.mobile-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mobile-item .info { flex: 1; min-width: 0; }
.mobile-item h4 { margin: 0 0 4px; font-size: 13px; }
.mobile-item .meta { color: var(--text-muted); font-size: 11px; }
.mobile-item .side { text-align: right; }
.mobile-item .price { font-size: 15px; }

@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .buy-layout { grid-template-columns: 1fr; }
  .nav { display: none; }
  .header-actions .btn-outline { display: none; }
  .header-actions { gap: 6px; }
}

@media (max-width: 640px) {
  .product-grid { display: none; }
  .mobile-list { display: grid; }
  .hero { padding: 40px 16px 36px; }
  .section { padding: 28px 0 40px; }
  .panel { padding: 20px 16px; border-radius: 16px; }
  .site-header .header-actions .btn-ink { display: inline-flex; }
}

/* ?????? */
.cs-widget {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 1200;
  font-family: var(--font-body, "Noto Sans SC", sans-serif);
}
.cs-fab {
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: #0F766E;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(15, 118, 110, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, background .2s ease;
}
.cs-fab:hover, .cs-fab.open { background: #0B5F59; transform: translateY(-2px); }
.cs-panel {
  position: absolute;
  right: 0;
  bottom: 68px;
  width: min(320px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid #D5DEE8;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(11, 20, 32, 0.16);
  padding: 16px;
}
.cs-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.cs-panel-head strong { font-size: 16px; color: #0B1420; }
.cs-hours { color: #8A9AAB; font-size: 12px; margin-top: 4px; }
.cs-close {
  border: none;
  background: #F7FAFC;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: #5B6B7C;
}
.cs-welcome {
  margin: 0 0 12px;
  color: #5B6B7C;
  font-size: 13px;
  line-height: 1.5;
}
.cs-actions { display: grid; gap: 8px; }
.cs-action {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 1px solid #E8EEF4;
  background: #F7FAFC;
  border-radius: 12px;
  padding: 10px 12px;
  color: #0B1420;
  text-decoration: none;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.cs-action:hover { border-color: #0F766E; background: #F0FDFA; }
.cs-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.cs-ico.qq { background: #12B7F5; }
.cs-ico.wx { background: #07C160; }
.cs-ico.tel { background: #0B1420; }
.cs-ico.tg { background: #229ED9; }
