/* ============================================================
   China eSIM — www.cnesim.net
   Design system: China Red (#D8000F / #E60012) + Ink Black
   ============================================================ */
:root {
  --red: #D8000F;
  --red-bright: #E60012;
  --red-deep: #8E0009;
  --red-glow: rgba(230, 0, 18, .45);
  --ink: #0B0B0D;
  --ink-2: #141417;
  --ink-3: #1D1D21;
  --line: rgba(255, 255, 255, .09);
  --paper: #F7F4F2;
  --text-dark: #17171A;
  --text-mute: #6E6E73;
  --gold: #E8C15A;
  --radius: 14px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--ink);
  color: #F5F3F0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Top notice bar ---------- */
.notice-bar {
  background: linear-gradient(90deg, var(--red-deep), var(--red-bright), var(--red-deep));
  color: #fff; font-size: 13px; letter-spacing: .04em;
  text-align: center; padding: 8px 16px;
}
.notice-bar b { font-weight: 700; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 11, 13, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--red-bright), var(--red-deep));
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 19px; color: #fff;
  box-shadow: 0 4px 16px var(--red-glow);
  position: relative; overflow: hidden;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
}
.brand-text .cn { font-size: 18px; font-weight: 800; letter-spacing: .06em; }
.brand-text .en { font-size: 10.5px; color: #A7A7AD; letter-spacing: .32em; text-transform: uppercase; }
.main-nav { display: flex; gap: 34px; }
.main-nav a {
  font-size: 14.5px; color: #CFCFD4; letter-spacing: .04em;
  padding: 6px 0; position: relative; transition: color .2s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--red-bright); transition: width .25s;
}
.main-nav a:hover, .main-nav a.active { color: #fff; }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.header-cta {
  background: linear-gradient(135deg, var(--red-bright), var(--red-deep));
  color: #fff; font-size: 14px; font-weight: 700;
  padding: 10px 22px; border-radius: 999px; letter-spacing: .05em;
  box-shadow: 0 4px 18px var(--red-glow); transition: transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.header-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 26px var(--red-glow); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 24px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 110px;
  background:
    radial-gradient(1100px 500px at 82% -10%, rgba(230,0,18,.28), transparent 60%),
    radial-gradient(700px 420px at 8% 110%, rgba(230,0,18,.16), transparent 60%),
    linear-gradient(180deg, #0E0E11 0%, var(--ink) 100%);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 20%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; position: relative; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid rgba(230,0,18,.5); color: #FF6B74;
  font-size: 12.5px; letter-spacing: .22em; padding: 7px 16px; border-radius: 999px;
  background: rgba(230,0,18,.08); margin-bottom: 26px; text-transform: uppercase;
}
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red-bright); box-shadow: 0 0 10px var(--red-bright); }
.hero h1 {
  font-size: clamp(34px, 5.2vw, 58px); font-weight: 900; line-height: 1.18; letter-spacing: .01em;
}
.hero h1 .red {
  background: linear-gradient(120deg, #FF4D57, var(--red-bright) 55%, #FF8087);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin-top: 22px; font-size: 16.5px; color: #B9B9C0; line-height: 1.85; max-width: 540px; }
.hero-sub b { color: #F0EEE9; }
.hero-actions { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--red-bright), var(--red-deep));
  color: #fff; font-weight: 700; font-size: 16px; letter-spacing: .04em;
  padding: 16px 34px; border-radius: 12px; border: 0; cursor: pointer;
  box-shadow: 0 10px 30px var(--red-glow); transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px var(--red-glow); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; border: 1px solid rgba(255,255,255,.22); color: #EDEDEF;
  font-weight: 600; font-size: 16px; padding: 16px 34px; border-radius: 12px;
  transition: border-color .2s, background .2s; appearance: none; -webkit-appearance: none;
}
.btn-ghost:hover { border-color: var(--red-bright); background: rgba(230,0,18,.08); }
.hero-stats { display: flex; gap: 44px; margin-top: 52px; flex-wrap: wrap; }
.hero-stat .num { font-size: 30px; font-weight: 900; color: #fff; }
.hero-stat .num span { color: var(--red-bright); }
.hero-stat .lbl { font-size: 12.5px; color: #8F8F96; letter-spacing: .14em; margin-top: 4px; }

/* hero eSIM card visual */
.hero-visual { display: flex; justify-content: center; }
.esim-card {
  width: min(400px, 100%); aspect-ratio: 1.586;
  border-radius: 22px; position: relative; overflow: hidden;
  background: linear-gradient(130deg, #1A1A1F 0%, #101013 55%, #20060A 100%);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 40px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(230,0,18,.15), 0 20px 60px rgba(230,0,18,.18);
  padding: 26px 30px;
  display: flex; flex-direction: column; justify-content: space-between;
  transform: rotate(-3deg);
  transition: transform .5s;
}
.esim-card:hover { transform: rotate(0deg) scale(1.02); }
.esim-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px 220px at 85% -20%, rgba(230,0,18,.4), transparent 65%);
}
.esim-card::after {
  content: ""; position: absolute; top: -60%; left: -30%; width: 60%; height: 220%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.09), transparent);
  transform: rotate(20deg);
}
.ec-top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; }
.ec-brand { font-size: 15px; font-weight: 800; letter-spacing: .1em; }
.ec-brand small { display: block; font-size: 9px; color: #9A9AA1; letter-spacing: .3em; font-weight: 400; margin-top: 3px; }
.ec-flag {
  width: 46px; height: 32px; border-radius: 5px; overflow: hidden; position: relative;
  background: var(--red-bright);
  box-shadow: 0 4px 12px rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
}
.ec-flag span { color: #FFD24A; font-size: 17px; }
.ec-chip {
  width: 52px; height: 40px; border-radius: 8px; position: relative;
  background: linear-gradient(135deg, #E8C15A, #B8912F);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.25);
}
.ec-chip::before, .ec-chip::after {
  content: ""; position: absolute; background: rgba(0,0,0,.28); border-radius: 2px;
}
.ec-chip::before { left: 8px; right: 8px; top: 12px; height: 2px; box-shadow: 0 7px 0 rgba(0,0,0,.28); }
.ec-chip::after { top: 6px; bottom: 6px; left: 24px; width: 2px; }
.ec-bottom { position: relative; }
.ec-number { font-size: 17px; letter-spacing: .18em; color: #D8D8DC; font-family: "Courier New", monospace; }
.ec-meta { display: flex; justify-content: space-between; margin-top: 10px; font-size: 10.5px; color: #8F8F96; letter-spacing: .18em; }
.float-badge {
  position: absolute; background: rgba(20,20,23,.9); backdrop-filter: blur(8px);
  border: 1px solid rgba(230,0,18,.4); border-radius: 12px; padding: 12px 18px;
  font-size: 13px; box-shadow: 0 16px 40px rgba(0,0,0,.5);
}
.float-badge .fb-num { font-weight: 800; color: #fff; font-size: 16px; }
.float-badge .fb-lbl { color: #9A9AA1; font-size: 11px; margin-top: 2px; }
.fb-1 { top: 6%; right: -4%; animation: floaty 5s ease-in-out infinite; }
.fb-2 { bottom: 8%; left: -6%; animation: floaty 6s ease-in-out 1s infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Trust strip ---------- */
.trust-strip { border-block: 1px solid var(--line); background: var(--ink-2); }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 30px 0; }
.trust-item { display: flex; align-items: center; gap: 14px; justify-content: center; }
.trust-item .ti-ico {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: rgba(230,0,18,.12); border: 1px solid rgba(230,0,18,.35);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.trust-item .ti-txt b { display: block; font-size: 14.5px; color: #fff; }
.trust-item .ti-txt span { font-size: 12px; color: #8F8F96; }

/* ---------- Section scaffolding ---------- */
.section { padding: 90px 0; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-eyebrow {
  color: var(--red-bright); font-size: 12.5px; letter-spacing: .3em;
  text-transform: uppercase; font-weight: 700; margin-bottom: 14px;
}
.section-title { font-size: clamp(26px, 3.6vw, 40px); font-weight: 900; letter-spacing: .01em; }
.section-desc { color: #9A9AA1; margin-top: 14px; font-size: 15.5px; line-height: 1.8; max-width: 640px; margin-inline: auto; }

/* ---------- Product grid ---------- */
.filter-bar {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px;
}
.filter-chip {
  border: 1px solid rgba(255,255,255,.16); background: transparent; color: #C9C9CF;
  font-size: 14px; padding: 10px 22px; border-radius: 999px; cursor: pointer;
  transition: all .2s; font-family: var(--font);
}
.filter-chip:hover { border-color: var(--red-bright); color: #fff; }
.filter-chip.active {
  background: linear-gradient(135deg, var(--red-bright), var(--red-deep));
  border-color: transparent; color: #fff; font-weight: 700;
  box-shadow: 0 6px 20px var(--red-glow);
}
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card {
  background: linear-gradient(160deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.product-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--red-bright), var(--red-deep));
  opacity: 0; transition: opacity .3s;
}
.product-card:hover { transform: translateY(-8px); border-color: rgba(230,0,18,.5); box-shadow: 0 24px 50px rgba(0,0,0,.5), 0 8px 30px rgba(230,0,18,.15); }
.product-card:hover::before { opacity: 1; }
.pc-tag {
  position: absolute; top: 16px; right: -28px; transform: rotate(38deg);
  background: linear-gradient(90deg, var(--red-bright), var(--red-deep));
  color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
  padding: 4px 32px; box-shadow: 0 4px 10px rgba(0,0,0,.4);
}
.pc-tag.gold { background: linear-gradient(90deg, #E8C15A, #B8912F); color: #221A05; }
.pc-title { font-size: 16.5px; font-weight: 800; line-height: 1.45; min-height: 48px; }
.pc-sim {
  margin: 18px auto 14px; width: 118px; height: 76px; border-radius: 10px;
  background: linear-gradient(130deg, #232329, #121215 60%, #2A070B);
  border: 1px solid rgba(255,255,255,.14); position: relative;
  display: flex; align-items: center; justify-content: center;
}
.pc-sim .mini-chip { width: 30px; height: 23px; border-radius: 5px; background: linear-gradient(135deg, #E8C15A, #B8912F); }
.pc-sim .mini-flag { position: absolute; top: 7px; right: 7px; width: 22px; height: 15px; border-radius: 3px; background: var(--red-bright); display: flex; align-items: center; justify-content: center; font-size: 9px; color: #FFD24A; }
.pc-rows { border-top: 1px dashed rgba(255,255,255,.12); padding-top: 14px; flex: 1; }
.pc-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; font-size: 13px; }
.pc-row .k { color: #8F8F96; display: flex; align-items: center; gap: 7px; }
.pc-row .k::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--red-bright); }
.pc-row .v { color: #E8E8EB; font-weight: 600; }
.pc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.pc-price { font-size: 22px; font-weight: 900; color: #fff; }
.pc-price small { font-size: 11px; color: #8F8F96; font-weight: 400; display: block; letter-spacing: .06em; }
.pc-price .cur { color: var(--red-bright); }
.pc-buy {
  background: rgba(230,0,18,.14); border: 1px solid rgba(230,0,18,.55); color: #FF6B74;
  font-size: 13.5px; font-weight: 700; padding: 9px 20px; border-radius: 9px; cursor: pointer;
  transition: all .2s; font-family: var(--font);
}
.pc-buy:hover { background: linear-gradient(135deg, var(--red-bright), var(--red-deep)); color: #fff; box-shadow: 0 6px 18px var(--red-glow); }
.deal-days {
  background: var(--ink-3); color: #EDEDEF; border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px; font-size: 12.5px; padding: 6px 8px; font-family: var(--font);
  max-width: 150px; cursor: pointer; outline: none;
}
.deal-days:focus { border-color: var(--red-bright); }
.deal-days option { background: var(--ink-2); }

/* ---------- Light section (guide / FAQ on home) ---------- */
.section-light { background: var(--paper); color: var(--text-dark); }
.section-light .section-desc { color: var(--text-mute); }
.guide-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.guide-card {
  background: #fff; border: 1px solid #EBE6E2; border-radius: var(--radius);
  padding: 30px 26px; transition: transform .25s, box-shadow .25s;
}
.guide-card:hover { transform: translateY(-6px); box-shadow: 0 22px 46px rgba(139,0,9,.12); }
.guide-num {
  width: 46px; height: 46px; border-radius: 12px; font-size: 19px; font-weight: 900;
  background: linear-gradient(135deg, var(--red-bright), var(--red-deep)); color: #fff;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(230,0,18,.3);
}
.guide-card h3 { font-size: 17px; margin-bottom: 10px; }
.guide-card p { font-size: 13.5px; color: var(--text-mute); line-height: 1.8; }

/* light faq */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-list details {
  background: #fff; border: 1px solid #EBE6E2; border-radius: 12px;
  margin-bottom: 14px; overflow: hidden; transition: box-shadow .2s;
}
.faq-list details[open] { box-shadow: 0 12px 30px rgba(139,0,9,.1); border-color: rgba(216,0,15,.35); }
.faq-list summary {
  cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 700; font-size: 15.5px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 22px; color: var(--red-bright); font-weight: 400; transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .faq-body { padding: 0 24px 20px; color: #4B4B50; font-size: 14.5px; line-height: 1.9; }
.faq-list .faq-body a { color: var(--red-bright); font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--red-deep), var(--red-bright) 60%, #FF4D57);
  padding: 80px 0; text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .35;
}
.cta-band h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 900; position: relative; }
.cta-band p { margin-top: 14px; color: rgba(255,255,255,.85); position: relative; font-size: 16px; }
.cta-band .btn-dark {
  display: inline-block; margin-top: 32px; position: relative;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 16px;
  padding: 16px 42px; border-radius: 12px; letter-spacing: .04em;
  box-shadow: 0 14px 36px rgba(0,0,0,.35); transition: transform .2s;
}
.cta-band .btn-dark:hover { transform: translateY(-3px); }

/* ---------- Footer ---------- */
.site-footer { background: #08080A; border-top: 1px solid var(--line); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-grid h4 { font-size: 14px; letter-spacing: .12em; color: #fff; margin-bottom: 18px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 11px; }
.footer-grid a, .footer-grid p { font-size: 13.5px; color: #8F8F96; line-height: 1.8; transition: color .2s; }
.footer-grid a:hover { color: var(--red-bright); }
.footer-brand p { margin-top: 14px; max-width: 300px; }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: #6B6B72;
}
.footer-bottom .pay-badges { display: flex; gap: 8px; }
.pay-badges span {
  border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; font-size: 11px; color: #9A9AA1;
}

/* ---------- Product detail page ---------- */
.pd-hero { padding: 46px 0 60px; background: linear-gradient(180deg, #0E0E11, var(--ink)); border-bottom: 1px solid var(--line); }
.crumbs { font-size: 13px; color: #8F8F96; margin-bottom: 28px; }
.crumbs a:hover { color: var(--red-bright); }
.crumbs .sep { margin: 0 8px; color: #4A4A50; }
.pd-grid { display: grid; grid-template-columns: 420px 1fr; gap: 54px; align-items: start; }
.pd-gallery {
  border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(150deg, var(--ink-3), #0E0E11);
  aspect-ratio: 1.15; display: flex; align-items: center; justify-content: center; position: relative;
}
.pd-gallery img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 12px; margin-top: 14px; }
.pd-thumbs img {
  width: 74px; height: 74px; object-fit: cover; border-radius: 10px; cursor: pointer;
  border: 2px solid transparent; opacity: .65; transition: all .2s;
}
.pd-thumbs img.active, .pd-thumbs img:hover { border-color: var(--red-bright); opacity: 1; }
.pd-rating { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.stars { color: var(--gold); font-size: 16px; letter-spacing: 2px; }
.pd-rating .rv { font-size: 13px; color: #8F8F96; }
.pd-title { font-size: clamp(21px, 2.6vw, 30px); font-weight: 900; line-height: 1.5; }
.pd-price-box {
  margin-top: 22px; padding: 22px 26px; border-radius: 14px;
  background: linear-gradient(120deg, rgba(230,0,18,.14), rgba(230,0,18,.05));
  border: 1px solid rgba(230,0,18,.35);
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
}
.pd-price-box .lbl { font-size: 13px; color: #B9B9C0; letter-spacing: .1em; }
.pd-price-box .amount { font-size: 38px; font-weight: 900; color: #fff; }
.pd-price-box .amount .cur { color: var(--red-bright); font-size: 24px; margin-right: 4px; }
.pd-price-box .market { font-size: 15px; color: #7C7C83; text-decoration: line-through; }
.pd-price-box .selected-label { width: 100%; font-size: 13.5px; color: #C9C9CF; }
.pd-price-box .selected-label b { color: #fff; }

.spec-group { margin-top: 26px; }
.spec-name { font-size: 14px; font-weight: 700; color: #C9C9CF; margin-bottom: 12px; letter-spacing: .05em; }
.spec-name .spec-hint { color: #6B6B72; font-weight: 400; font-size: 12.5px; margin-left: 8px; }
.spec-options { display: flex; flex-wrap: wrap; gap: 10px; }
.spec-opt {
  border: 1px solid rgba(255,255,255,.16); background: var(--ink-3); color: #D5D5DA;
  font-size: 13.5px; padding: 10px 20px; border-radius: 10px; cursor: pointer;
  transition: all .18s; font-family: var(--font); text-align: center;
}
.spec-opt:hover:not(:disabled) { border-color: var(--red-bright); color: #fff; }
.spec-opt.active {
  background: linear-gradient(135deg, var(--red-bright), var(--red-deep));
  border-color: transparent; color: #fff; font-weight: 700;
  box-shadow: 0 6px 18px var(--red-glow);
}
.spec-opt:disabled { opacity: .28; cursor: not-allowed; }
.spec-select {
  width: 100%; max-width: 380px; background: var(--ink-3); color: #EDEDEF;
  border: 1px solid rgba(255,255,255,.16); border-radius: 10px;
  font-size: 14.5px; padding: 13px 16px; font-family: var(--font); cursor: pointer; outline: none;
}
.spec-select:focus { border-color: var(--red-bright); }
.spec-select option { background: var(--ink-2); }

.pd-buybar {
  margin-top: 30px; display: flex; gap: 14px; align-items: stretch; flex-wrap: wrap;
}
.qty-box { display: flex; align-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; overflow: hidden; }
.qty-box button {
  width: 46px; height: 100%; min-height: 52px; background: var(--ink-3); border: 0; color: #fff;
  font-size: 20px; cursor: pointer; transition: background .2s;
}
.qty-box button:hover { background: rgba(230,0,18,.3); }
.qty-box input {
  width: 58px; height: 100%; min-height: 52px; background: transparent; border: 0; color: #fff;
  font-size: 17px; font-weight: 700; text-align: center; outline: none; font-family: var(--font);
}
.btn-buy-now {
  flex: 1; min-width: 220px; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--red-bright), var(--red-deep));
  color: #fff; font-size: 17px; font-weight: 800; letter-spacing: .08em;
  padding: 16px 30px; border-radius: 12px;
  box-shadow: 0 12px 32px var(--red-glow); transition: transform .2s, box-shadow .2s;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font);
}
.btn-buy-now:hover { transform: translateY(-2px); box-shadow: 0 18px 44px var(--red-glow); }
.btn-cart {
  border: 1px solid rgba(255,255,255,.22); background: transparent; color: #EDEDEF;
  font-size: 15px; font-weight: 600; padding: 16px 28px; border-radius: 12px; cursor: pointer;
  transition: all .2s; font-family: var(--font);
}
.btn-cart:hover { border-color: var(--red-bright); background: rgba(230,0,18,.1); }
.pd-assure { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 22px; }
.pd-assure span { font-size: 12.5px; color: #8F8F96; display: flex; align-items: center; gap: 7px; }
.pd-assure i { color: var(--red-bright); font-style: normal; }

/* detail tabs */
.pd-tabs-bar {
  position: sticky; top: 68px; z-index: 50; background: rgba(11,11,13,.92); backdrop-filter: blur(12px);
  border-block: 1px solid var(--line);
}
.pd-tabs-bar .wrap { display: flex; gap: 6px; overflow-x: auto; }
.pd-tab-btn {
  background: none; border: 0; color: #9A9AA1; font-size: 15px; font-weight: 600;
  padding: 18px 22px; cursor: pointer; position: relative; white-space: nowrap; font-family: var(--font);
}
.pd-tab-btn::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--red-bright); transform: scaleX(0); transition: transform .25s; }
.pd-tab-btn.active { color: #fff; }
.pd-tab-btn.active::after { transform: scaleX(1); }
.pd-tab-panel { display: none; padding: 60px 0; scroll-margin-top: 130px; }
.pd-tab-panel.active { display: block; }
.pd-tab-panel.light { background: var(--paper); color: var(--text-dark); }

/* attrs tab */
.attr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.attr-card {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px;
  display: flex; gap: 16px; align-items: center;
}
.attr-card .ac-ico {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0; font-size: 19px;
  background: rgba(230,0,18,.12); border: 1px solid rgba(230,0,18,.35);
  display: flex; align-items: center; justify-content: center;
}
.attr-card .ac-k { font-size: 12px; color: #8F8F96; }
.attr-card .ac-v { font-size: 15px; font-weight: 700; color: #fff; margin-top: 3px; }
.desc-helps { list-style: none; width: 100%; max-width: none; }
.desc-helps li {
  background: var(--ink-2); border: 1px solid var(--line); border-left: 3px solid var(--red-bright);
  border-radius: 10px; padding: 18px 22px; margin-bottom: 14px; font-size: 14.5px; color: #C9C9CF; line-height: 1.9;
}
.desc-helps li strong { color: #fff; margin-right: 8px; }
.desc-helps li a { color: #FF6B74; font-weight: 600; }
.country-card {
  display: flex; align-items: center; gap: 18px; background: var(--ink-2);
  border: 1px solid var(--line); border-radius: 12px; padding: 22px 26px; max-width: 560px;
}
.country-card img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.country-card .cc-name { font-size: 17px; font-weight: 800; }
.country-card .cc-op { font-size: 13px; color: #8F8F96; margin-top: 4px; }

/* intro (embedded original rich content) recolored to red theme */
.intro-shell {
  /* override original gold vars -> China red */
  --sr-gold: #C30010 !important;
  --sr-gold-light: #E60012 !important;
  --sr-bg-warm: #FFF0F0 !important;
  background: var(--paper); color: var(--text-dark);
  padding: 40px 0 80px;
}
.intro-shell .intro-wrapper { max-width: 860px !important; margin: 0 auto !important; background: #fff !important; border-radius: 18px; padding: clamp(20px, 4vw, 48px) !important; box-shadow: 0 20px 60px rgba(139,0,9,.08); border: 1px solid #EFE7E4; }

/* ---------- language switcher ---------- */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent; border: 1px solid rgba(255,255,255,.2); border-radius: 999px;
  color: #D5D5DA; font-size: 13px; padding: 8px 14px; cursor: pointer;
  font-family: var(--font); transition: border-color .2s, color .2s;
  white-space: nowrap;
}
.lang-btn:hover { border-color: var(--red-bright); color: #fff; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 158px;
  background: rgba(20,20,23,.98); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0,0,0,.55); padding: 8px;
  display: none; z-index: 300;
}
.lang-switch.open .lang-menu { display: block; }
.lang-menu a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 12px; border-radius: 8px; font-size: 13.5px; color: #C9C9CF;
  cursor: pointer; transition: background .15s, color .15s;
}
.lang-menu a:hover { background: rgba(230,0,18,.14); color: #fff; }
.lang-menu a.active { color: #fff; font-weight: 700; }
.lang-menu a.active::after { content: "✓"; color: var(--red-bright); font-weight: 800; }

/* ---------- back to top ---------- */
.back-top {
  position: fixed; right: 26px; bottom: 30px; z-index: 200;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--red-bright), var(--red-deep));
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px var(--red-glow);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .25s, transform .25s, visibility .25s, box-shadow .2s;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { box-shadow: 0 14px 34px var(--red-glow); transform: translateY(-3px); }
@media (max-width: 768px) {
  .back-top { right: 16px; bottom: 18px; width: 44px; height: 44px; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pd-grid { grid-template-columns: 1fr; }
  .pd-gallery { max-width: 480px; }
  .fb-1 { right: 0; } .fb-2 { left: 0; }
}
@media (max-width: 768px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: block; }
  .main-nav.open {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: 68px; left: 0; right: 0;
    background: rgba(11,11,13,.98); border-bottom: 1px solid var(--line); padding: 10px 24px 20px;
  }
  .main-nav.open a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .guide-grid { grid-template-columns: 1fr; }
  .attr-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 64px 0 80px; }
  .section { padding: 64px 0; }
  .float-badge { display: none; }
  .pc-title { font-size: 14.5px; min-height: 42px; }
  .pc-buy { padding: 8px 14px; font-size: 12.5px; }
  .pd-tabs-bar { top: 67px; }
  .btn-buy-now { min-width: 100%; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
  .pc-price { font-size: 18px; }
  .attr-grid { grid-template-columns: 1fr; }
}
