
:root {
  --primary: #1d4ed8;
  --primary-2: #2563eb;
  --navy: #0a2540;
  --navy-2: #123f6d;
  --amber: #f59e0b;
  --green: #16a34a;
  --red: #dc2626;
  --bg: #f4f7fb;
  --card: #ffffff;
  --ink: #0b1526;
  --muted: #5b6b7d;
  --faint: #94a3b8;
  --border: #e3e9f2;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(10, 37, 64, .06), 0 10px 28px -14px rgba(10, 37, 64, .22);
  --shadow-lg: 0 2px 4px rgba(10, 37, 64, .06), 0 20px 40px -16px rgba(10, 37, 64, .28);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: #bfdbfe; }
a { color: var(--primary); }
img { max-width: 100%; }

/* Sticky glass header */
header {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 13px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(10, 37, 64, .05);
}
.header-inner {
  max-width: 1020px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -.02em;
}
.logo-icon { width: 32px; height: 32px; border-radius: 50%; display: block; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { color: #334155; text-decoration: none; font-size: .9rem; font-weight: 600; }
.nav-links a:hover { color: var(--primary); }
@media (max-width: 680px) { .nav-links { display: none; } }
.lang-selector {
  font-size: .85rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f1f5f9;
  color: #1e293b;
  cursor: pointer;
  outline: none;
}
.container { max-width: 1020px; margin: 0 auto; padding: 28px 16px 8px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
h1 { font-size: 1.9rem; line-height: 1.25; margin-bottom: 12px; color: var(--navy); letter-spacing: -.02em; }
h2 { font-size: 1.35rem; margin: 24px 0 12px; color: var(--navy); letter-spacing: -.01em; }
h3 { color: var(--navy); }
.breadcrumbs { font-size: .88rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* Hero: deep navy gradient */
.hero {
  background:
    radial-gradient(ellipse 80% 60% at 80% -10%, rgba(37, 99, 235, .55), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 110%, rgba(245, 158, 11, .28), transparent 55%),
    linear-gradient(135deg, #0a2540 0%, #123f6d 55%, #155e9c 100%);
  border-radius: 24px;
  padding: 58px 34px 46px;
  text-align: center;
  color: #fff;
  margin-bottom: 26px;
  box-shadow: var(--shadow-lg);
}
.hero h1 {
  color: #fff;
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -.02em;
}
.hero p { font-size: 1.12rem; color: #c7d8ee; max-width: 640px; margin: 0 auto 22px; }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-stats span {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #e2e8f0;
  font-size: .85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
}
@media (max-width: 640px) { .hero { padding: 40px 20px 32px; } .hero h1 { font-size: 1.8rem; } }

/* The 3 gateway cards */
.gateway-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 6px 0 8px;
}
@media (max-width: 820px) { .gateway-grid { grid-template-columns: 1fr; } }
.gateway-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary-2);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow);
}
.gateway-card:nth-child(2) { border-top-color: var(--amber); }
.gateway-card:nth-child(3) { border-top-color: var(--green); }
.gateway-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-2);
  box-shadow: var(--shadow-lg);
}
.gateway-icon {
  font-size: 1.9rem;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #eff6ff;
}
.gateway-card:nth-child(2) .gateway-icon { background: #fffbeb; }
.gateway-card:nth-child(3) .gateway-icon { background: #f0fdf4; }
.gateway-title { font-size: 1.22rem; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.gateway-desc { font-size: .9rem; color: var(--muted); line-height: 1.55; margin-bottom: 16px; flex-grow: 1; }
.gateway-cta { font-size: .92rem; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 4px; }

/* Verdict badges */
.badge {
  display: inline-block;
  font-size: 1.02rem;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 999px;
  margin: 6px 0 14px;
}
.badge.noneed { background: #dcfce7; color: #166534; }
.badge.check { background: #fef3c7; color: #92400e; }
.badge.need { background: #fee2e2; color: #991b1b; }

/* Real photos */
.photo-row { display: flex; gap: 8px; margin: 12px 0; }
.photo-row img {
  width: 50%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
}
.photo-single img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
}
.img-slot {
  background: #f1f5f9;
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 600;
  margin: 10px 0;
}
.img-badge {
  background: #e2e8f0;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: monospace;
}

/* Simulator box */
.sim-box {
  background: linear-gradient(180deg, #f0fdf4, #ffffff);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  padding: 26px;
  margin: 20px 0;
  box-shadow: var(--shadow);
}
.sim-title { font-weight: 800; font-size: 1.2rem; color: #166534; margin-bottom: 8px; }
.sim-controls {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}
@media (max-width: 640px) { .sim-controls { grid-template-columns: 1fr; } }
.sim-select {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #fff;
  font-size: .95rem;
  outline: none;
}
.sim-select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22, 163, 74, .15); }
.sim-btn {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #fff;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: filter .2s;
  box-shadow: 0 4px 12px -4px rgba(22, 163, 74, .5);
}
.sim-btn:hover { filter: brightness(1.08); }
.sim-result {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #cbd5e1;
  font-size: .98rem;
  display: none;
}

/* Manifesto card */
.manifesto-card {
  background: linear-gradient(180deg, #f8fafc, #ffffff);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary-2);
  border-radius: 12px;
  padding: 22px 24px;
  margin: 28px 0;
  font-size: .94rem;
  color: #334155;
  line-height: 1.65;
  box-shadow: var(--shadow);
}

/* Leaderboard cards: photo left, data right */
.queue-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  background: #ffffff;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s;
}
.queue-card:hover {
  border-color: #93c5fd;
  box-shadow: var(--shadow-lg);
}
.queue-body {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 22px;
  align-items: start;
}
@media (max-width: 720px) { .queue-body { grid-template-columns: 1fr; } }
.lb-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
}
.queue-rank-badge {
  display: inline-block;
  background: #eff6ff;
  color: var(--primary);
  font-size: .82rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  margin-bottom: 8px;
}
.queue-rank-badge.gold { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
.queue-rank-badge.silver { background: #f1f5f9; color: #475569; border-color: #cbd5e1; }
.queue-rank-badge.unranked { background: #f1f5f9; color: var(--faint); border-color: var(--border); }
.queue-title { font-size: 1.2rem; font-weight: 800; color: var(--navy); }
.queue-specs { font-size: .9rem; color: #475569; margin: 6px 0 12px; }
.data-grid { border-top: 1px solid var(--border); }
.drow {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: .9rem;
  border-bottom: 1px dashed #edf2f7;
}
.drow:last-child { border-bottom: none; }
.drow span { color: var(--muted); white-space: nowrap; }
.drow b { font-weight: 600; text-align: right; color: var(--ink); }
.src-tag { font-size: .72rem; color: var(--faint); font-weight: 500; }
.unread { color: var(--faint); font-style: italic; font-weight: 500; }
.metrics-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .86rem;
  background: #f8fafc;
  padding: 12px 16px;
  border-radius: 8px;
  margin: 12px 0;
}
.metric-item strong { color: var(--ink); }
.price-matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
@media (max-width: 640px) { .price-matrix-grid { grid-template-columns: 1fr 1fr; } }
.store-pill {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  text-align: center;
}
.store-name { color: var(--muted); font-size: .75rem; display: block; margin-bottom: 2px; }
.store-price { font-weight: 700; color: var(--ink); font-size: .95rem; }
.btn-soft {
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  padding: 12px 20px;
  border-radius: 10px;
  display: inline-block;
  transition: filter .2s;
  box-shadow: 0 4px 12px -4px rgba(37, 99, 235, .55);
}
.btn-soft:hover { filter: brightness(1.1); }
.btn-ghost {
  background: #fff;
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  padding: 11px 18px;
  border-radius: 10px;
  display: inline-block;
  border: 1px solid var(--primary-2);
  transition: background .2s;
}
.btn-ghost:hover { background: #eff6ff; }
.lb-note {
  font-size: .82rem;
  color: var(--muted);
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 6px;
  line-height: 1.6;
}

/* Country directory */
.search-box {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 1.05rem;
  margin-bottom: 24px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  box-shadow: 0 2px 4px rgba(10, 37, 64, .03);
}
.search-box:focus {
  border-color: var(--primary-2);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.country-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--ink);
  transition: all .2s;
  display: block;
}
.country-card:hover {
  background: #ffffff;
  border-color: var(--primary-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.country-flag { font-size: 1.35rem; display: block; margin-bottom: 2px; }
.country-name { font-weight: 700; font-size: 1rem; display: block; }
.country-name-zh { font-size: .82rem; color: var(--muted); }
.country-meta { font-size: .82rem; color: var(--muted); margin-top: 3px; display: block; }

.route-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.route-chip {
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: .88rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: background .15s;
}
.route-chip:hover { background: #dbeafe; border-color: #93c5fd; }

details {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
}
details[open] summary { border-bottom: 1px solid var(--border); background: #f8fafc; }
summary {
  padding: 16px 20px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  color: var(--navy);
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.3rem; color: var(--muted); }
details[open] summary::after { content: "−"; }
.details-body { padding: 20px; font-size: .95rem; color: #334155; line-height: 1.6; }

footer {
  text-align: center;
  padding: 40px 16px;
  font-size: .85rem;
  color: #94a3b8;
  border-top: 1px solid #1e293b;
  background: var(--navy);
  margin-top: 48px;
}
footer a { color: #c7d8ee; }
.legal-micro { font-size: .75rem; color: #64748b; margin-top: 8px; }

/* ---- section 13: background images + logo ---- */
.hero {
  background-color: #0a2540;
  background-image:
    linear-gradient(rgba(10, 37, 64, .78), rgba(10, 37, 64, .60)),
    url("bg/hero-bg.jpg");
  background-size: cover;
  background-position: center;
}
.gateway-banner {
  display: block;
  height: 132px;
  margin: -26px -22px 18px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius) var(--radius) 0 0;
}
.page-hero {
  height: 190px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  margin-bottom: 18px;
}
@media (max-width: 640px) {
  .page-hero { height: 118px; }
  .gateway-banner { height: 96px; }
}

/* ---- section 14: interactive lab ---- */
.lab-wrap h2 { font-size: 1.4rem; margin: 26px 0 12px; }
.lab-potd h3, .lab-quiz h3, .lab-cmp h3 { margin: 0 0 6px; font-size: 1.15rem; }
.lab-quiz p, .lab-cmp p { color: #64748b; margin: 0 0 14px; }
.lab-potd-card { display: flex; gap: 16px; background: linear-gradient(135deg, #0a2540, #155e9c); color: #fff; border-radius: 14px; padding: 18px; margin-bottom: 18px; align-items: center; }
.lab-potd-card img { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; background: #fff; flex-shrink: 0; }
.lab-potd-name { font-size: 1.15rem; font-weight: 800; margin-bottom: 6px; }
.lab-potd-regions { margin-top: 8px; font-size: .85rem; color: #bfdbfe; }
.lab-quiz, .lab-cmp { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; padding: 20px; margin-bottom: 18px; }
.lab-quiz-photo { max-width: 280px; width: 100%; border-radius: 10px; background: #fff; border: 1px solid #e2e8f0; margin: 0 auto 14px; display: block; }
.lab-quiz-q { font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; text-align: center; }
.lab-quiz-meta { display: flex; gap: 16px; justify-content: center; color: #64748b; font-size: .9rem; margin-bottom: 12px; flex-wrap: wrap; }
.lab-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lab-opt { padding: 12px; border-radius: 10px; border: 1px solid #cbd5e1; background: #fff; font-size: 1rem; font-weight: 600; cursor: pointer; }
.lab-opt:hover { border-color: #2563eb; }
.lab-opt:disabled { cursor: default; opacity: .75; }
.lab-opt.ok { background: #dcfce7; border-color: #16a34a; }
.lab-opt.bad { background: #fee2e2; border-color: #dc2626; }
.lab-feedback { text-align: center; font-weight: 700; margin: 12px 0; min-height: 1.2em; }
.lab-feedback.ok { color: #16a34a; }
.lab-feedback.bad { color: #dc2626; }
.lab-next, .lab-start-btn { display: block; margin: 12px auto 0; padding: 10px 22px; border-radius: 999px; border: none; background: #2563eb; color: #fff; font-weight: 700; cursor: pointer; font-size: 1rem; }
.lab-end { text-align: center; padding: 10px 0; }
.lab-end-title { font-size: 1.5rem; font-weight: 800; color: #0a2540; margin-bottom: 8px; }
.lab-end div { margin-bottom: 6px; }
.lab-cmp-selects { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.lab-cmp-selects select { padding: 8px 10px; border-radius: 8px; border: 1px solid #cbd5e1; font-size: 1rem; }
.lab-vs { font-weight: 800; color: #94a3b8; }
.lab-cmp-table { width: 100%; border-collapse: collapse; background: #fff; font-size: .92rem; }
.lab-cmp-table th, .lab-cmp-table td { border: 1px solid #e2e8f0; padding: 8px 10px; text-align: left; vertical-align: top; }
.lab-cmp-table th { background: #f1f5f9; width: 90px; }
.lab-cmp-table img { width: 90px; height: 90px; object-fit: cover; border-radius: 8px; }
@media (max-width: 640px) {
  .lab-potd-card { flex-direction: column; text-align: center; }
  .lab-opts { grid-template-columns: 1fr; }
}

/* ---- section 15: affiliate check-price button ---- */
.amz-check-btn { display: inline-block; padding: 6px 14px; border-radius: 999px; background: #f59e0b; color: #fff; font-weight: 700; text-decoration: none; font-size: .9rem; }
.amz-check-btn:hover { background: #d97706; color: #fff; }
