/* HuoZhong VPN mirror — style.css */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

:root {
  --primary: #FF6F00;
  --primary-dark: #C94F00;
  --gold: #FFB020;
  --dark: #111827;
  --header-bg: #FFFFFF;
  --bg: #FAFAFA;
  --surface: #FFF7ED;
  --surface-2: #FFEDD5;
  --text: #111827;
  --text-muted: #6B7280;
  --green: #1AAE5B;
  --red: #E03C31;
  --border: #F3F4F6;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-card: 0 2px 4px rgba(16,24,40,.04), 0 8px 20px -4px rgba(16,24,40,.08);
  --shadow-lg: 0 4px 8px rgba(16,24,40,.04), 0 24px 48px -12px rgba(16,24,40,.14);
  --transition: .3s cubic-bezier(.4,0,.2,1);
  --ease-out: cubic-bezier(.22,1,.36,1);
  --ease-sweep: cubic-bezier(0,0,.2,1);
  --dur-fast: .15s; --dur-md: .3s; --dur-slow: .4s;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: clip; max-width: 100%; } /* clip, NOT hidden: hidden breaks the sticky header (M9) */
body { font-family: 'TikTok Sans', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Noto Sans SC', Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4 { margin-top: 0; line-height: 1.25; }

/* ─── HEADER ─── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--header-bg);
  border-bottom: 2px solid var(--gold);
}
.nav {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center;
  padding: 0 var(--space-sm);
  height: 64px; gap: var(--space-sm);
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.logo { height: 36px; width: auto; max-width: 160px; object-fit: contain; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  flex: 1; justify-content: center;
}
.nav-links > li > a {
  color: rgba(255,255,255,.85); font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-links > li > a:hover { color: #fff; background: rgba(255,255,255,.1); text-decoration: none; }

.nav-right {
  display: flex; align-items: center; gap: var(--space-sm);
  flex-shrink: 0; margin-left: auto;
}

/* mobile-only language row inside the menu; hidden on desktop */
.mobile-lang { display: none; }

/* ─── DROPDOWN / LANGUAGE SWITCHER ─── */
.dropdown { position: relative; }
.dropdown-panel {
  position: absolute; top: 100%; right: 0;
  margin-top: 0; padding-top: 8px;
  display: none; min-width: 160px; z-index: 1000;
}
.dropdown-panel-inner {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.dropdown:hover .dropdown-panel,
.dropdown:focus-within .dropdown-panel { display: block; }
.dropdown-panel a {
  display: block; padding: 10px 16px;
  color: var(--text); font-size: 14px;
  transition: background var(--transition);
  white-space: nowrap;
}
.dropdown-panel a:hover { background: var(--surface); text-decoration: none; }

.lang-btn {
  background: none; border: 1px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.85); padding: 6px 12px;
  border-radius: var(--radius-sm); cursor: pointer;
  font-size: 13px; display: flex; align-items: center; gap: 6px;
  transition: border-color var(--transition);
}
.lang-btn:hover { border-color: rgba(255,255,255,.7); }
.lang-btn i { font-size: 11px; }

/* ─── CTA BUTTON ─── */
.btn-cta {
  background: var(--primary); color: #fff;
  padding: 10px 20px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap; display: inline-block;
}
.btn-cta:hover { background: var(--primary-dark); text-decoration: none; transform: translateY(-1px); }

.btn-cta-lg {
  background: var(--primary); color: #fff;
  padding: 16px 36px; border-radius: var(--radius-md);
  font-size: 18px; font-weight: 700;
  display: inline-block;
  transition: background var(--transition), transform var(--transition);
}
.btn-cta-lg:hover { background: var(--primary-dark); text-decoration: none; transform: translateY(-2px); }

.btn-outline {
  border: 2px solid var(--primary); color: var(--primary);
  padding: 10px 20px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600; display: inline-block;
  transition: all var(--transition);
}
.btn-outline:hover { background: var(--primary); color: #fff; text-decoration: none; }

/* ─── HAMBURGER ─── */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  color: #fff; font-size: 22px; padding: 6px;
  order: 99;
}

/* ─── HERO ─── */
.hero {
  background: linear-gradient(135deg, #12122a 0%, #1e2a5e 60%, #0d3b82 100%);
  color: #fff; text-align: center;
  padding: var(--space-xl) var(--space-sm);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('/assets/images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.12;
}
.hero-inner { position: relative; max-width: 800px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,199,44,.15); border: 1px solid rgba(255,199,44,.4);
  color: var(--gold); padding: 6px 16px; border-radius: 100px;
  font-size: 13px; font-weight: 600; margin-bottom: var(--space-md);
}
.hero h1 { font-size: clamp(28px, 5vw, 52px); font-weight: 800; margin-bottom: var(--space-sm); color: #fff; }
.hero p { font-size: clamp(16px, 2.5vw, 20px); color: rgba(255,255,255,.82); margin-bottom: var(--space-lg); max-width: 640px; margin-left: auto; margin-right: auto; }
.hero-cta-group { display: flex; gap: var(--space-sm); justify-content: center; flex-wrap: wrap; }
.hero-price { margin-top: var(--space-md); font-size: 14px; color: rgba(255,255,255,.6); }

/* ─── TRUST BAR ─── */
.trust-bar {
  background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: var(--space-md) var(--space-sm);
}
.trust-bar-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-lg); flex-wrap: wrap;
}
.trust-item { text-align: center; }
.trust-num {
  font-size: 28px; font-weight: 800; color: var(--primary);
  display: block; line-height: 1;
}
.trust-label {
  font-size: 12px; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: .5px; margin-top: 6px; display: block;
}
.trust-divider { width: 1px; height: 40px; background: var(--border); }

/* ─── SECTIONS ─── */
.section { padding: var(--space-xl) var(--space-sm); }
.section-alt { background: var(--surface); }
.container { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--primary); margin-bottom: var(--space-xs);
}
.section-title { font-size: clamp(24px, 4vw, 40px); font-weight: 800; margin-bottom: var(--space-sm); }
.section-sub { font-size: 17px; color: var(--text-muted); max-width: 600px; margin-bottom: var(--space-lg); }
.text-center { text-align: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }

/* ─── FEATURE GRID ─── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}
.feature-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-md);
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.feature-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: var(--surface-2); display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: var(--space-sm); color: var(--primary);
}
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* ─── SPLIT ROW ─── */
.split-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-lg); align-items: center;
}
.split-row.reverse { direction: rtl; }
.split-row.reverse > * { direction: ltr; }
.split-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-image img { width: 100%; height: 320px; object-fit: cover; }
.split-content .section-title { font-size: clamp(22px, 3vw, 34px); }
.check-list { margin: var(--space-sm) 0 var(--space-md); }
.check-list li { padding: 8px 0; display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check-list li::before { content: '\2713'; color: var(--green); font-weight: 700; font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* ─── PRICING ─── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
}
.pricing-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-md);
  position: relative; transition: box-shadow var(--transition);
}
.pricing-card.popular {
  border-color: var(--primary); border-width: 2px;
  box-shadow: 0 0 0 4px rgba(0,111,207,.08);
}
.pricing-card:hover { box-shadow: var(--shadow-card); }
.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; padding: 4px 16px;
  border-radius: 100px; font-size: 12px; font-weight: 700;
  white-space: nowrap;
}
.pricing-name { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin-bottom: var(--space-xs); }
.pricing-price { font-size: 42px; font-weight: 800; color: var(--text); line-height: 1; }
.pricing-price sup { font-size: 22px; vertical-align: top; margin-top: 8px; display: inline-block; }
.pricing-period { font-size: 14px; color: var(--text-muted); margin-bottom: var(--space-sm); margin-top: 6px; }
.pricing-divider { height: 1px; background: var(--border); margin: var(--space-sm) 0; }
.pricing-features li { padding: 6px 0; display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.pricing-features li::before { content: '\2713'; color: var(--green); font-weight: 700; flex-shrink: 0; }
.pricing-features li.no::before { content: '\2715'; color: var(--border); }
.pricing-cta { width: 100%; padding: 13px; border-radius: var(--radius-md); font-size: 15px; font-weight: 700; cursor: pointer; margin-top: var(--space-sm); display: block; text-align: center; transition: all var(--transition); background: var(--primary); color: #fff; border: none; }
.pricing-cta:hover { background: var(--primary-dark); text-decoration: none; }
.pricing-card.popular .pricing-cta { background: var(--primary); }

/* ─── IMAGE STRIP ─── */
.image-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-sm);
}
.image-strip-item { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3; }
.image-strip-item img { width: 100%; height: 100%; object-fit: cover; }

/* ─── AWARDS ─── */
.awards-row {
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-lg); flex-wrap: wrap;
}
.award-item { text-align: center; }
.award-icon { font-size: 40px; color: var(--gold); margin-bottom: 8px; }
.award-title { font-size: 14px; font-weight: 700; }
.award-sub { font-size: 12px; color: var(--text-muted); }

/* ─── FAQ ─── */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left;
  padding: var(--space-sm) 0; font-size: 16px; font-weight: 600;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  color: var(--text);
}
.faq-q i { color: var(--primary); flex-shrink: 0; transition: transform var(--transition); }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 0 var(--space-sm); font-size: 15px; color: var(--text-muted); line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* ─── FOOTER ─── */
.site-footer {
  background: var(--dark); color: rgba(255,255,255,.7);
  padding: var(--space-xl) var(--space-sm) var(--space-md);
}
.footer-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg); margin-bottom: var(--space-xl);
}
.footer-brand .logo-footer { height: 36px; width: auto; filter: brightness(0) invert(1); margin-bottom: var(--space-sm); }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: var(--space-sm); text-transform: uppercase; letter-spacing: .5px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,.7); font-size: 14px; transition: color var(--transition); }
.footer-col ul li a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.1); padding-top: var(--space-sm);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 13px; margin: 0; }
.social-links { display: flex; gap: 12px; }
.social-links a { color: rgba(255,255,255,.5); font-size: 18px; transition: color var(--transition); }
.social-links a:hover { color: #fff; text-decoration: none; }

/* ─── PLATFORM ICONS ─── */
.platform-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-md);
}
.platform-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-sm); text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.platform-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.platform-card i { font-size: 36px; color: var(--primary); margin-bottom: var(--space-sm); }
.platform-card span { font-size: 14px; font-weight: 600; display: block; }

/* ─── GUARANTEE BANNER ─── */
.guarantee-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; text-align: center;
  padding: var(--space-lg) var(--space-sm); border-radius: var(--radius-xl);
  margin: var(--space-lg) 0;
}
.guarantee-banner h2 { font-size: clamp(22px, 4vw, 36px); margin-bottom: var(--space-sm); color: #fff; }
.guarantee-banner p { font-size: 16px; color: rgba(255,255,255,.85); margin-bottom: var(--space-md); max-width: 560px; margin-left: auto; margin-right: auto; }

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  background: linear-gradient(135deg, #12122a 0%, #1e2a5e 100%);
  color: #fff; text-align: center;
  padding: 72px var(--space-sm) var(--space-xl);
}
.page-hero h1 { font-size: clamp(26px, 4vw, 44px); font-weight: 800; margin-bottom: var(--space-sm); color: #fff; }
.page-hero p { font-size: 18px; color: rgba(255,255,255,.8); max-width: 600px; margin: 0 auto; }

/* ─── CONTACT ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
.contact-form { display: flex; flex-direction: column; gap: var(--space-sm); }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 14px; font-weight: 600; }
.form-group input, .form-group textarea, .form-group select {
  padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-md);
  font-size: 15px; font-family: inherit; background: #fff;
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--primary);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-submit {
  background: var(--primary); color: #fff; border: none; cursor: pointer;
  padding: 14px 32px; border-radius: var(--radius-md); font-size: 16px; font-weight: 700;
  transition: background var(--transition);
}
.form-submit:hover { background: var(--primary-dark); }

/* ─── PROSE (privacy/terms) ─── */
.prose { max-width: 800px; margin: 0 auto; font-size: 15px; line-height: 1.8; }
.prose h2 { font-size: 22px; margin-top: 40px; margin-bottom: 12px; }
.prose h3 { font-size: 17px; margin-top: 28px; }
.prose p { margin-bottom: 16px; color: var(--text-muted); }
.prose ul { margin: 12px 0 16px 24px; list-style: disc; }
.prose ul li { color: var(--text-muted); margin-bottom: 6px; }

/* ─── MOBILE ─── */
@media (max-width: 768px) {
  .nav { padding: 0 8px; }
  .nav-links {
    display: none;
    position: absolute; top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: center;
    height: auto; max-height: none;
    overflow: visible;
    background: var(--header-bg);
    box-shadow: 0 8px 16px rgba(0,0,0,.24);
    padding: 12px 0;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links > li { width: 100%; text-align: center; }
  .nav-links > li > a { display: block; width: 100%; padding: 14px 0; font-size: 17px; }

  .nav-right .lang-switcher { display: none; }
  .nav-right .btn-cta { display: none; }
  .nav-toggle { display: block; }

  /* Lang switcher INSIDE mobile menu */
  .mobile-lang {
    display: flex; justify-content: center; gap: 16px;
    padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12);
    width: 100%;
  }
  .nav-links li.mobile-lang a {
    display: inline-block;
    width: auto;
    padding: 4px 10px;
    font-size: 15px;
    line-height: 1.4;
    white-space: nowrap;
    color: rgba(255,255,255,.75);
  }
  .nav-links li.mobile-lang a.active { color: var(--gold); font-weight: 700; }

  .split-row { grid-template-columns: 1fr; }
  .split-row.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-divider { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .image-strip { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .btn-cta-lg, .btn-cta, .hero-cta-group a {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: max-content;
    max-width: 90%;
  }
  .hero-cta-group { flex-direction: column; align-items: center; }

  .platform-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .awards-row { flex-direction: column; gap: var(--space-md); }
}

/* ─── UTILITY ─── */
.mb-0 { margin-bottom: 0; }
.mt-lg { margin-top: var(--space-lg); }
.tag {
  display: inline-block; background: var(--surface-2); color: var(--primary);
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 100px;
  text-transform: uppercase; letter-spacing: .5px;
}

/* ─── CN mode: visible update date under the H1 (cn.bing freshness signal, §18) ─── */
time.updated { display: inline-block; margin: 0 0 var(--space-sm); font-size: 14px; opacity: .75; }
.hero time.updated { color: rgba(255,255,255,.8); }

/* ═══ COMMON-MISTAKE RULES (website-quality-standards.md §26, checked by qa_mistakes.py) ═══ */
/* M9 sticky header everywhere */
.site-header { position: sticky; top: 0; z-index: 1000; }
/* M3/M4/M8 nav dropdown (device/product pages grouped): hover-intent on desktop, tap-toggle on mobile */
.dropdown.open > .dropdown-panel { display: block; }
.nav-links .dropdown-panel { left: 0; right: auto; }
.dropdown-toggle {
  background: none; border: 0; cursor: pointer; font: inherit;
  color: rgba(255,255,255,.85); font-size: 14px; font-weight: 500; padding: 8px 12px;
}
.dropdown-toggle::after { content: " ▾"; font-size: .8em; }
/* footer column titles are not headings (keeps H1→H2→H3 order intact, M17) */
.footer-heading { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: var(--space-sm); text-transform: uppercase; letter-spacing: .5px; }
/* M14 device/product cards on the download hub */
.device-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--space-md); }
.device-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: var(--space-md); display: flex; flex-direction: column; gap: 10px; text-align: left;
}
.device-card .device-icon { font-size: 36px; width: 40px; height: 40px; line-height: 40px; color: var(--primary); } /* M22 one size */
.device-card h3 { margin: 0; font-size: 20px; }
.device-card h3 a { color: inherit; }
.device-card ul { margin: 0; padding-left: 18px; list-style: disc; }
.device-card li { font-size: 14px; color: var(--text-muted); margin: 2px 0; }
.device-card .btn-cta { margin-top: auto; align-self: flex-start; }
/* M13 payment methods, M24 comparison table, M19 bullet lists */
.payment-methods { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: var(--space-md); }
.payment-methods li { list-style: none; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 14px; font-weight: 600; background: #fff; }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { border-bottom: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.compare-table .highlight { background: var(--surface); font-weight: 700; }
.bullets { padding-left: 20px; list-style: disc; }
.bullets li { margin: 6px 0; }
.section-sub { max-width: 720px; margin: 0 auto var(--space-md); text-align: center; color: var(--text-muted); }

@media (max-width: 768px) {
  .nav { padding: 0 16px; }                                  /* M7 not flush to the edges */
  .nav-links .dropdown { width: 100%; text-align: center; }
  .nav-links .dropdown-toggle { width: 100%; padding: 14px 0; font-size: 17px; }
  .nav-links .dropdown-panel { position: static; padding-top: 0; min-width: 0; }
  .nav-links .dropdown:hover > .dropdown-panel,
  .nav-links .dropdown:focus-within > .dropdown-panel { display: none; }
  .nav-links .dropdown.open > .dropdown-panel { display: block; }     /* M4 open / M8 close on tap */
  .nav-links .dropdown-panel-inner { background: rgba(255,255,255,.06); border: 0; box-shadow: none; }
  .nav-links .dropdown-panel a { color: rgba(255,255,255,.85); text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }            /* M21 two footer columns */
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }            /* M21 stays two columns on phones */
}


/* ═══════════ HuoZhong theme (measured from the source: white nav, orange #FF6F00, pill CTA, 16/24px cards) ═══════════ */
body { background: var(--bg); }
.site-header { background: #fff; border-bottom: 1px solid #F3F4F6; transition: box-shadow var(--dur-md) cubic-bezier(.4,0,.2,1); }
.site-header.scrolled { box-shadow: 0 1px 8px rgba(0,0,0,.06); }
.nav { height: 64px; max-width: 1200px; }
.logo { height: 38px; }
.nav-links { gap: 8px; }
.nav-links > li > a { color: #374151; font-size: 14px; font-weight: 500; position: relative; border-radius: 0; padding: 8px 12px; }
.nav-links > li > a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-md) var(--ease-out); }
.nav-links > li > a:hover { color: #111827; background: transparent; }
.nav-links > li > a:hover::after, .nav-links > li > a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links > li > a[aria-current="page"] { color: var(--primary); }
.nav-toggle { color: #374151; }
.dropdown-toggle { color: #374151; }

/* pill CTA with the source's background-size sweep fill */
.btn-cta, .btn-cta-lg {
  background-color: var(--primary); color: #fff; border-radius: 9999px; font-weight: 600;
  background-image: linear-gradient(var(--primary-dark), var(--primary-dark)); background-repeat: no-repeat; background-position: left center; background-size: 0% 100%;
  box-shadow: 0 6px 16px -6px rgba(255,111,0,.55);
  transition: background-size var(--dur-slow) var(--ease-sweep), box-shadow var(--dur-slow) var(--ease-sweep), transform var(--dur-slow) var(--ease-sweep);
}
.btn-cta { padding: 10px 22px; font-size: 14px; }
.btn-cta.btn-lg, .btn-cta-lg { padding: 0 28px; height: 48px; line-height: 48px; font-size: 18px; display: inline-block; }
.btn-cta:hover, .btn-cta-lg:hover { background-color: var(--primary); background-size: 100% 100%; transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(255,111,0,.7); text-decoration: none; color: #fff; }
.btn-cta:active { transform: translateY(0) scale(.98); }

/* hero */
.hero { background: linear-gradient(to bottom, #FFF7ED 0%, rgba(255,251,235,.7) 50%, #FAFAFA 100%); color: var(--text); padding: 120px var(--space-sm) 72px; }
.hero::before { display: none; }
.hero::after { content: ''; position: absolute; left: 50%; bottom: -150px; width: min(1100px, 92vw); height: 300px; transform: translateX(-50%);
  background-image: radial-gradient(circle, rgba(107,114,128,.38) 1.6px, transparent 2px); background-size: 12px 12px;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 40%, #000 25%, transparent 72%); mask-image: radial-gradient(ellipse 50% 50% at 50% 40%, #000 25%, transparent 72%); opacity: .55; }
.hero-inner { max-width: 1000px; z-index: 1; }
.hero-badge { background: #fff; border: 1px solid #FFEDD5; color: var(--primary); box-shadow: var(--shadow-card); margin-bottom: 20px; }
.hero h1 { color: var(--text); font-size: clamp(32px, 5vw, 56px); line-height: 1.25; font-weight: 700; margin-bottom: 8px; }
.hero h1 .accent { background: linear-gradient(90deg, #FF6F00 0%, #FF9A1F 50%, #FF6F00 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: accent-shimmer 4.5s ease-in-out infinite; }
.hero p { color: #4B5563; font-size: clamp(16px, 2.4vw, 20px); max-width: 640px; }
.hero time.updated, .page-hero time.updated { color: var(--text-muted); }
.hero-stats { display: flex; justify-content: center; align-items: stretch; gap: 0; margin: 40px auto 36px; max-width: 620px; }
.hero-stat { flex: 1; padding: 0 16px; text-align: center; }
.hero-stat + .hero-stat { border-left: 1px solid rgba(17,24,39,.08); }
.hero-stat svg { width: 44px; height: 44px; stroke: #6B7280; fill: none; stroke-width: 1.5; }
.hero-stat b { display: block; font-size: clamp(30px, 5vw, 48px); font-weight: 800; color: #111827; line-height: 1.15; letter-spacing: .01em; }
.hero-stat span { font-size: 14px; color: #9CA3AF; }
.hero-mascot { position: absolute; right: max(2vw, calc(50% - 650px)); bottom: 150px; width: clamp(110px, 15vw, 210px); animation: plane-cruise 6s ease-in-out infinite; filter: drop-shadow(0 18px 24px rgba(255,111,0,.25)); pointer-events: none; }
.hero-cta-group { gap: 12px; }

/* inner page hero */
.page-hero { background: linear-gradient(to bottom, #FFF7ED, #FAFAFA); color: var(--text); padding: 72px var(--space-sm) 56px; }
.page-hero h1 { color: var(--text); font-weight: 700; }
.page-hero p { color: #4B5563; }

/* sections */
.section { padding: 88px var(--space-sm); }
.section-alt { background: #fff; }
.section-title { font-weight: 700; font-size: clamp(28px, 4.2vw, 44px); text-align: center; }
.section-title .accent { color: var(--primary); }
.section-sub { color: #6B7280; font-size: 17px; }
.feature-card, .device-card, .pricing-card, .platform-card { background: #fff; border: 0; border-radius: 16px; box-shadow: 0 0 0 1px #F3F4F6, var(--shadow-card); transition: box-shadow var(--dur-md) cubic-bezier(.4,0,.2,1), transform var(--dur-md) var(--ease-out); }
.feature-card:hover, .device-card:hover, .pricing-card:hover { box-shadow: 0 0 0 1px #FFE0C2, 0 14px 32px -10px rgba(255,111,0,.22); transform: translateY(-3px); }
.feature-icon { background: #FFF7ED; color: var(--primary); border-radius: 14px; }
.pricing-card.popular { box-shadow: 0 0 0 2px var(--primary), var(--shadow-card); }
.pricing-price { font-size: 30px; font-weight: 800; color: var(--primary); }
.pricing-cta .btn-cta { display: block; text-align: center; }
.device-card .device-icon { color: #111827; }
.device-card .btn-cta { background-color: #FFF7ED; color: var(--primary); box-shadow: none; background-image: linear-gradient(var(--primary), var(--primary)); padding: 8px 18px; }
.device-card .btn-cta:hover { color: #fff; box-shadow: 0 8px 18px -8px rgba(255,111,0,.6); }
.payment-methods li { border-radius: 9999px; border: 0; box-shadow: 0 0 0 1px #F3F4F6, var(--shadow-card); }
.compare-table { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px #F3F4F6, var(--shadow-card); }
.compare-table th { background: #FAFAFA; font-size: 14px; color: #6B7280; }
.compare-table .highlight { background: #FFF7ED; color: #C94F00; }
.faq-item { background: #fff; border: 0; border-radius: 16px; margin-bottom: 12px; box-shadow: 0 0 0 1px #F3F4F6, 0 2px 4px rgba(16,24,40,.04); padding: 0 20px; }
.faq-q { padding: 18px 0; }
.faq-q::after { content: ''; width: 9px; height: 9px; border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(45deg); transition: transform var(--dur-md) var(--ease-out); flex-shrink: 0; margin-left: 12px; margin-top: -4px; }
.faq-item.open .faq-q::after { transform: rotate(225deg); margin-top: 4px; }
.faq-a { display: grid; grid-template-rows: 0fr; padding: 0; transition: grid-template-rows var(--dur-md) var(--ease-out); }
.faq-a > p { overflow: hidden; margin: 0; opacity: 0; transition: opacity var(--dur-md) ease; }
.faq-item.open .faq-a { display: grid; grid-template-rows: 1fr; }
.faq-item.open .faq-a > p { opacity: 1; padding-bottom: 18px; }
.faq-q i { display: none; }
.bullets li::marker { color: var(--primary); }

/* platforms section (source: copy left, phone centre, download rows right) */
.platforms { position: relative; overflow: hidden; background-image: radial-gradient(circle, rgba(255,111,0,.16) 1.3px, transparent 1.8px); background-size: 28px 28px; }
.platforms-grid { display: grid; grid-template-columns: 1fr 300px 1fr; gap: 40px; align-items: center; max-width: 1200px; margin: 0 auto; }
.platforms h2 { text-align: left; }
.platforms .lead { color: #4B5563; font-size: 17px; line-height: 1.8; margin: 0 0 24px; }
.mini-card { display: flex; gap: 14px; align-items: center; background: #fff; padding: 16px 20px; border-radius: 16px; box-shadow: var(--shadow-card); margin-bottom: 14px; color: var(--primary); max-width: 320px; font-size: 15px; transition: transform var(--dur-md) var(--ease-out), box-shadow var(--dur-md); }
.mini-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.mini-card svg { width: 30px; height: 30px; flex: none; stroke: var(--primary); fill: none; stroke-width: 1.8; }
.phone { width: 270px; margin: 0 auto; border: 8px solid #111; border-radius: 42px; background: #F6EBDD; aspect-ratio: 9/18.5; position: relative; overflow: hidden; box-shadow: 0 30px 70px -20px rgba(255,111,0,.4), 0 0 0 2px #333; animation: float-y 5s ease-in-out infinite; }
.phone::before { content: ''; position: absolute; top: 8px; left: 50%; width: 78px; height: 22px; background: #111; border-radius: 12px; transform: translateX(-50%); z-index: 2; }
.phone-map { position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(160,130,90,.45) 1.4px, transparent 1.9px); background-size: 9px 9px; -webkit-mask-image: radial-gradient(ellipse 70% 40% at 50% 30%, #000 40%, transparent 80%); mask-image: radial-gradient(ellipse 70% 40% at 50% 30%, #000 40%, transparent 80%); }
.phone-panel { position: absolute; left: 10px; right: 10px; bottom: 54px; background: #fff; border-radius: 16px; padding: 10px; box-shadow: var(--shadow-card); font-size: 11px; color: #111827; }
.phone-panel small { display: block; color: #9CA3AF; }
.phone-btn { display: block; margin-top: 8px; background: var(--primary); color: #fff; text-align: center; padding: 9px 0; border-radius: 9999px; font-weight: 700; font-size: 12px; }
.phone-tabs { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; background: #fff; display: flex; justify-content: space-around; align-items: center; font-size: 10px; color: #9CA3AF; }
.phone-tabs b { color: var(--primary); }
.os-stack { display: flex; flex-direction: column; gap: 12px; }
.os-row { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 16px; padding: 12px 16px; box-shadow: 0 0 0 1px #F3F4F6, 0 2px 4px rgba(16,24,40,.04), 0 8px 20px -4px rgba(16,24,40,.08); color: #111; font-weight: 600; transition: box-shadow var(--dur-md) cubic-bezier(.4,0,.2,1), transform var(--dur-md) var(--ease-out); }
.os-row:nth-child(even) { margin-left: 22px; }
.os-row:hover { text-decoration: none; transform: translateX(4px); box-shadow: 0 0 0 1px #FFE0C2, 0 14px 30px -10px rgba(255,111,0,.28); }
.os-row i { font-size: 30px; width: 30px; height: 30px; line-height: 30px; text-align: center; }
.os-row em { margin-left: auto; font-style: normal; color: var(--primary); background: #FFF7ED; border-radius: 9999px; padding: 6px 14px; font-size: 13px; font-weight: 500; }

/* nodes section */
.nodes-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; max-width: 1200px; margin: 0 auto; }
.nodes-map { min-height: 380px; border-radius: 24px; background-image: radial-gradient(circle, rgba(107,114,128,.4) 1.5px, transparent 2px); background-size: 11px 11px; -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 30%, transparent 75%); position: relative; }
.nodes-card { background: #fff; border-radius: 24px; padding: 24px; box-shadow: 0 0 0 1px #F3F4F6, var(--shadow-lg); position: relative; }
.nodes-chip { display: inline-block; background: #FFF7ED; color: var(--primary); border-radius: 9999px; padding: 6px 14px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.tier-tabs { display: flex; gap: 22px; border-bottom: 1px solid #F3F4F6; margin-bottom: 14px; }
.tier-tabs span { padding: 8px 0; color: #9CA3AF; font-weight: 600; font-size: 14px; }
.tier-tabs span.on { color: var(--primary); box-shadow: 0 2px 0 var(--primary); }
.node-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 14px; box-shadow: 0 0 0 1px #F3F4F6, 0 2px 4px rgba(16,24,40,.04); margin-bottom: 10px; font-size: 15px; }
.node-row small { color: #9CA3AF; }
.node-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 5px rgba(255,111,0,.16); display: inline-block; margin-right: 10px; animation: pulse-dot 2.4s ease-in-out infinite; }
.nodes-flame { position: absolute; right: 22px; top: -36px; width: 56px; animation: float-y 5s ease-in-out infinite; }

/* closing band */
.section:has(> .container > .hero-cta-group) { background: linear-gradient(to bottom, #FAFAFA, #FFF7ED); }

/* footer */
.site-footer { background: #FAFAFA; color: #6B7280; border-top: 1px solid #F3F4F6; padding: 56px var(--space-sm) 24px; }
.footer-brand .logo-footer { filter: none; height: 38px; }
.footer-heading { color: #111827; text-transform: none; font-size: 14px; letter-spacing: 0; }
.footer-col ul li a { color: #6B7280; }
.footer-col ul li a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid #F3F4F6; }
.footer-grid { margin-bottom: 40px; }

/* ═══ MOTION ═══ */
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes plane-cruise { 0%, 100% { transform: translate(0) rotate(0); } 25% { transform: translateY(-4.5%) rotate(-2.5deg); } 50% { transform: translate(0) rotate(0); } 75% { transform: translateY(2.5%) rotate(1.5deg); } }
@keyframes accent-shimmer { 0% { background-position: 100% 0; } 60%, 100% { background-position: 0 0; } }
@keyframes page-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 0 4px rgba(255,111,0,.18); } 50% { box-shadow: 0 0 0 9px rgba(255,111,0,0); } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }
main > section:first-child .hero-inner, .page-hero .container { animation: page-in .4s var(--ease-out) 50ms both; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
.hero-stat b { font-variant-numeric: tabular-nums; }

@media (max-width: 960px) {
  .platforms-grid { grid-template-columns: 1fr; }
  .platforms h2, .platforms .lead { text-align: center; }
  .mini-card { margin-left: auto; margin-right: auto; }
  .nodes-wrap { grid-template-columns: 1fr; }
  .nodes-map { display: none; }
}
@media (max-width: 768px) {
  .site-header { background: #fff; }
  .nav-links { background: #fff; box-shadow: 0 12px 24px -8px rgba(16,24,40,.18); border-top: 1px solid #F3F4F6; }
  .nav-links.open { animation: menu-in .25s var(--ease-out) both; }
  .nav-links > li > a { color: #374151; }
  .nav-links > li > a::after { display: none; }
  .nav-links > li > a[aria-current="page"] { color: var(--primary); font-weight: 700; }
  .nav-links .dropdown-panel a { color: #374151; }
  .hero { padding: 72px var(--space-sm) 56px; }
  .hero-mascot { position: static; display: block; margin: 8px auto 0; width: 120px; }
  .hero-stat svg { width: 32px; height: 32px; }
  .hero-stats { margin: 28px auto; }
  .section { padding: 56px var(--space-sm); }
  .os-row:nth-child(even) { margin-left: 0; }
  .btn-cta.btn-lg { height: 46px; line-height: 46px; }
  .compare-table { display: block; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .faq-a { transition: none; }
}
