/* 3Q Tools — shared styles */
:root {
  --ink: #0A1220;
  --ink-2: #121E33;
  --gold: #C9A35C;
  --text: #111827;
  --muted: #5B6472;
  --line: #E5E7EB;
  --bg: #FFFFFF;
  --bg-soft: #F7F8FA;
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei",
    "PingFang SC", "Hiragino Sans GB", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 18, 32, 0.96);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px;
}
.brand {
  color: #fff; font-weight: 750; letter-spacing: .3px; font-size: 17px;
  display: flex; align-items: center; gap: 9px;
}
.brand .dot {
  width: 9px; height: 9px; border-radius: 2px;
  background: var(--gold); display: inline-block;
}
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: rgba(255,255,255,0.78); font-size: 14.5px; }
.nav a:hover { color: #fff; }
.nav a.cta {
  color: var(--ink); background: var(--gold); padding: 7px 15px;
  border-radius: 8px; font-weight: 650;
}
.nav a.cta:hover { background: #D8B472; color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff; padding: 74px 0 66px;
}
.hero h1 {
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.22; margin: 0 0 18px; font-weight: 780; letter-spacing: -0.4px;
}
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p.lead {
  font-size: clamp(15.5px, 1.9vw, 18px); color: rgba(255,255,255,0.76);
  max-width: 640px; margin: 0 0 30px;
}
.hero .actions { display: flex; gap: 13px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px;
  font-weight: 660; font-size: 15.5px; border: 1px solid transparent;
  transition: transform .12s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #D8B472; }
.btn-ghost { border-color: rgba(255,255,255,0.3); color: #fff; }
.btn-ghost:hover { border-color: rgba(255,255,255,0.62); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #17253D; }

/* ---------- sections ---------- */
.section { padding: 62px 0; }
.section.soft { background: var(--bg-soft); }
.section h2 {
  font-size: clamp(22px, 3vw, 30px); margin: 0 0 10px; font-weight: 760;
  letter-spacing: -0.3px;
}
.section .sub { color: var(--muted); margin: 0 0 34px; max-width: 660px; }

/* ---------- product cards ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: #fff;
  display: flex; flex-direction: column;
  transition: box-shadow .18s ease, transform .18s ease;
}
.card:hover { box-shadow: 0 12px 32px rgba(16,24,40,0.10); transform: translateY(-2px); }
.card .thumb { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.card .thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin: 0 0 6px; font-size: 20px; font-weight: 730; }
.card .tagline { color: var(--muted); font-size: 14.5px; margin: 0 0 14px; }
.card ul { margin: 0 0 20px; padding-left: 18px; color: var(--muted); font-size: 14.5px; }
.card ul li { margin-bottom: 5px; }
.card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { font-size: 24px; font-weight: 780; letter-spacing: -0.5px; }
.price small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 4px; }

/* ---------- feature list ---------- */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feat h4 { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.feat p { margin: 0; color: var(--muted); font-size: 14.5px; }
.feat .ico {
  width: 34px; height: 34px; border-radius: 9px; background: #F0E6D2;
  color: #8A6C2E; display: flex; align-items: center; justify-content: center;
  font-weight: 800; margin-bottom: 12px; font-size: 15px;
}

/* ---------- table ---------- */
table.spec { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.spec th, table.spec td {
  text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.spec th { width: 34%; color: var(--muted); font-weight: 600; }

/* ---------- notice ---------- */
.notice {
  border: 1px solid var(--line); border-left: 3px solid var(--gold);
  background: #FFFDF8; padding: 15px 18px; border-radius: 10px;
  font-size: 14.5px; color: var(--muted);
}

/* ---------- prose (legal pages) ---------- */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(24px, 3.2vw, 32px); margin: 0 0 8px; }
.prose h2 { font-size: 19px; margin: 34px 0 8px; font-weight: 720; }
.prose p, .prose li { color: #313945; font-size: 15px; }
.prose ul { padding-left: 20px; }
.prose .updated { color: var(--muted); font-size: 14px; margin-bottom: 26px; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink); color: rgba(255,255,255,0.72);
  padding: 42px 0 34px; font-size: 14px;
}
.site-footer .cols {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 30px; margin-bottom: 26px;
}
.site-footer h5 { color: #fff; font-size: 14px; margin: 0 0 10px; font-weight: 680; }
.site-footer a { display: block; color: rgba(255,255,255,0.72); margin-bottom: 7px; }
.site-footer a:hover { color: #fff; }
.site-footer .bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: rgba(255,255,255,0.5); font-size: 13px;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .grid-2, .feats, .site-footer .cols { grid-template-columns: 1fr; }
  .nav { gap: 14px; }
  .nav a:not(.cta) { display: none; }
  .hero { padding: 52px 0 46px; }
  .section { padding: 46px 0; }
}

/* ---------- checkout pending modal ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(6, 11, 20, 0.62);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-mask.open { display: flex; }
.modal-card {
  width: 100%; max-width: 460px;
  background: #fff; border-radius: 16px;
  padding: 26px 26px 20px;
  box-shadow: 0 24px 60px rgba(6,11,20,0.28);
}
.modal-card h4 {
  margin: 0 0 10px; font-size: 19px; color: var(--ink);
  letter-spacing: -0.2px;
}
.modal-card p { margin: 0 0 12px; font-size: 15px; color: var(--muted); }
.modal-card .modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.modal-card .modal-actions a,
.modal-card .modal-actions button {
  font-size: 15px; padding: 10px 16px; border-radius: 9px;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
}
.modal-card .modal-actions .primary { background: var(--ink); color: #fff; }
.modal-card .modal-actions .ghost { background: #fff; color: var(--muted); border-color: var(--line); }

/* ---------- 语言切换 ---------- */
.nav .lang {
  font-size: 13px;
  letter-spacing: 0.2px;
  opacity: 0.68;
  padding: 6px 4px;
}
.nav .lang:hover { opacity: 1; }
