/* ============================================
   bwg2 - 搬瓦工VPS推广落地页样式
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #4a8abf;
  --primary-dark: #3573a3;
  --accent: #c4893c;
  --accent-dark: #a8732e;
  --red: #c55045;
  --dark: #3a5a78;
  --dark-light: #4f5e75;
  --text: #222222;
  --text-secondary: #555558;
  --text-light: #8e9296;
  --bg: #f5f7fa;
  --bg-white: #ffffff;
  --border: #e5e5e5;
  --border-light: #f0f0f0;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 24px rgba(0,0,0,0.12);
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1180px;
  --sidebar-width: 230px;
  --transition: 0.2s ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  line-height: 1.4;
  font-weight: 600;
}
h1 { font-size: 1.75rem; }
h2 { font-size: 1.4rem; color: var(--text); }
h3 { font-size: 1.15rem; }

.text-center { text-align: center; }
.text-red { color: var(--red); }
.text-muted { color: var(--text-secondary); }
.text-sm { font-size: 0.875rem; }

.hide { display: none !important; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.page-wrapper {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 30px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px;
  align-items: start;
}

main {
  min-width: 0;
}

section {
  margin-bottom: 10px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 30px 28px;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  font-weight: 500;
  outline: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(196,137,60,0.3);
}
.btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 4px 14px rgba(196,137,60,0.4);
  transform: translateY(-1px);
  color: #fff;
}

.btn-primary-lg {
  padding: 14px 40px;
  font-size: 1.1rem;
  border-radius: var(--radius);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-copy {
  background: var(--red);
  color: #fff;
  padding: 6px 14px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-copy:hover {
  background: #a5423a;
  transform: scale(1.05);
}

.btn-block {
  display: block;
  width: 100%;
}

/* ---------- Hero 配色方案 ---------- */
body[data-theme="blue"]    { --hero-bg: #2c4a8a; --hero-bg-end: #30559a; }
body[data-theme="purple"]  { --hero-bg: #4a3d80; --hero-bg-end: #54469a; }
body[data-theme="orange"]  { --hero-bg: #7a4535; --hero-bg-end: #965535; }
body[data-theme="teal"]    { --hero-bg: #1a7068; --hero-bg-end: #1d8278; }
body[data-theme="brown"]   { --hero-bg: #2d2218; --hero-bg-end: #3f2d20; }

/* 配色切换器 */
.hero-theme-switcher {
  position: absolute;
  top: 8px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.hero-theme-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  margin-right: 2px;
}
.hero-theme-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  display: inline-block;
}
.hero-theme-dot:hover {
  transform: scale(1.25);
  border-color: rgba(255,255,255,0.6);
}
.hero-theme-dot.active {
  border-color: #fff;
  box-shadow: 0 0 6px rgba(255,255,255,0.5);
}

/* ---------- Hero Section ---------- */
.hero {
  padding: 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--hero-bg, var(--dark)) 0%, var(--hero-bg-end, #2e4f6a) 100%);
  color: #fff;
}
.hero + .hero {
  border-top: 1px solid rgba(255,255,255,0.08);
}
/**  padding: 22px 30px 18px; */
.hero-inner {
  padding: 40px 90px 16px;
  position: relative;
}

.hero h1 {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #fff;
  text-align: center;
}
.hero .hero-subtitle {
  /** color: rgba(255,255,255,0.75); **/
  color: #f0da50;
  font-size: 0.92rem;
  margin-bottom: 14px;
  text-align: center;
}

.hero-coupon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  background: rgba(255,255,255,0.12);
  border: 1px dashed rgba(255,255,255,0.3);
  border-radius: var(--radius);
  padding: 5px 16px;
  /**
  margin-bottom: 10px; */
}
.hero-coupon-expired {
  opacity: 0.85; /** 0.5  */
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.15);
}
.hero-coupon-expired .hero-coupon-code {
  color: rgba(255,255,255,0.7);
  text-decoration: line-through;
}
.hero-coupon-expired .btn-copy {
  background: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6);
}
.hero-coupon-expired-note {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  flex-shrink: 0;
}
.hero-coupon-extra {
  /**
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7); */
  font-size: 0.9rem;
  flex-shrink: 0;
}
.hero-coupon-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.hero-coupon-code {
  background: rgba(255,255,255,0.18);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  font-family: "Courier New", Consolas, monospace;
  color: #e6d060;
  cursor: pointer;
  user-select: all;
  transition: background var(--transition);
}
.hero-coupon-code:hover {
  background: rgba(255,255,255,0.28);
}
.hero-coupon-note {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  width: 100%;
  margin-top: 4px;
  text-align: center;
}

.hero-hot {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  text-align: center;
}
.hero-hot-badge {
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 4px;
}
.hero-hot-name {
  font-size: 1rem;
  font-weight: 400;
}
.hero-hot-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #e6d060;
}
.hero-hot-price small {
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
}
.hero-hot-rmb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* ---------- Hero 浅色背景覆盖（hero-coupons / hero-offer）---------- */
.hero-coupons,
.hero-offer {
  background: linear-gradient(135deg, #ecf3fb 0%, #e0eaf5 100%);
  color: var(--text);
}
.hero-coupons .hero-inner,
.hero-offer .hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 20px;
}

/* 分隔线适配浅色背景 */
.hero-coupons + .hero-offer {
  border-top: 1px solid rgba(59,130,246,0.12);
}

/* ---- hero-coupons 内文字 ---- */
.hero-coupons .hero-coupon-label {
  color: var(--primary-dark);
}
.hero-coupons .hero-coupon-code {
  color: var(--primary);
  background: #e8f2fd;
}
.hero-coupons .hero-coupon-code:hover {
  background: #d4e5f9;
}
.hero-coupons .hero-coupon-extra,
.hero-coupons .hero-coupon-note {
  color: var(--text-secondary);
}
.hero-coupons .hero-coupon-expired-note {
  color: var(--text-light);
}
.hero-coupons .hero-coupon {
  background: #fff;
  border: 1px solid #bfd6f0;
  box-shadow: 0 2px 8px rgba(59,130,246,0.08);
}
.hero-coupons .hero-coupon:first-of-type {
  border-left: 4px solid var(--red);
  box-shadow: 0 2px 12px rgba(197,80,69,0.12);
}
.hero-coupons .hero-coupon:first-of-type .hero-coupon-code {
  color: var(--red);
  background: #fef2f2;
}
.hero-coupons .hero-coupon:first-of-type .hero-coupon-code:hover {
  background: #fee2e2;
}
.hero-coupons .hero-coupon-expired {
  opacity: 0.75;
  background: #fafafc;
  border-color: #dee8f4;
}
.hero-coupons .hero-coupon-expired .hero-coupon-code {
  color: var(--text-light);
  text-decoration: line-through;
}
.hero-coupons .hero-coupon-expired .btn-copy {
  background: rgba(0,0,0,0.08);
  color: var(--text-light);
}

/* ---- hero-offer 内配色 ---- */
.hero-offer .hero-hot {
  background: #fff;
  box-shadow: 0 2px 12px rgba(74,138,191,0.12);
  border: 1px solid #bfd6f0;
}
.hero-offer .hero-hot-name {
  color: var(--text);
}
.hero-offer .hero-hot-price {
  color: var(--red);
}
.hero-offer .hero-hot-price small {
  color: var(--text-secondary);
}
.hero-offer .hero-hot-rmb {
  color: var(--text-secondary);
}
.hero-hot-price-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}
.hero-hot-price-link:hover .hero-hot-price {
  opacity: 0.85;
}
.hero-offer .hero-hot-badge {
  background: #335b7a;
}

/* RackNerd hero-offer 按钮（深蓝，覆盖默认金色） */
.hero-offer:not(.hero-offer-bwg) .btn-primary {
  background: #335b7a;
  box-shadow: 0 2px 8px rgba(51,91,122,0.35);
}
.hero-offer:not(.hero-offer-bwg) .btn-primary:hover {
  background: #274860;
  box-shadow: 0 4px 14px rgba(51,91,122,0.45);
}

/* ---- 服务商标识标签 ---- */
.hero-hot-provider {
  display: inline-block;
  text-align: right;
  min-width: 13em;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
  background: rgba(51,91,122,0.12);
  color: #335b7a;
  letter-spacing: 0.3px;
}
.hero-hot-provider::before {
  content: '●';
  font-size: 0.5rem;
  margin-right: 4px;
}
.hero-hot-provider-bwg {
  background: rgba(196,137,60,0.15);
  color: #a8732e;
}

/* ---- hero-offer 搬瓦工配色（金色系，与RackNerd紫色区分）---- */
.hero-offer-bwg .hero-hot {
  border-color: #e8d5a8;
  box-shadow: 0 2px 12px rgba(196,137,60,0.12);
}
.hero-offer-bwg .hero-hot-badge {
  background: var(--accent-dark);
}
.hero-offer-bwg .hero-hot-price {
  color: var(--accent-dark);
}
.hero-offer-bwg .btn-bwg {
  background: var(--accent);
  box-shadow: 0 2px 8px rgba(196,137,60,0.3);
}
.hero-offer-bwg .btn-bwg:hover {
  background: var(--accent-dark);
  box-shadow: 0 4px 14px rgba(196,137,60,0.4);
}

/* ---------- Coupon Section ---------- */
.coupon-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px;
  background: linear-gradient(135deg, #fff9f0, #fff5e6);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
}
.coupon-card-label {
  font-weight: 600;
  font-size: 1.05rem;
}
.coupon-card-code {
  background: #fff;
  border: 1px dashed var(--accent);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-family: "Courier New", Consolas, monospace;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 1px;
}

/* ---------- Package Cards Grid ---------- */
.package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.package-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
  background: #fff;
}
.package-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--primary);
}

.package-card.recommended {
  border-color: var(--primary);
  border-width: 2px;
}
.package-card.recommended::before {
  content: '🔥 爆款推荐';
  position: absolute;
  top: 10px;
  right: -2px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  padding: 3px 12px 3px 16px;
  border-radius: 20px 0 0 20px;
  font-weight: 600;
  z-index: 1;
}

.package-header {
  padding: 16px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  background: #f2f5f9;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.package-header.recommended-header {
  background: #2f99ea;
  color: #fff;
  border-bottom-color: transparent;
}
.package-header a {
  color: inherit;
}

.package-body {
  padding: 12px 16px 16px;
}

.package-price {
  text-align: center;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--red);
  padding: 0 0 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
  line-height: 1.4;
}
.package-price small {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-secondary);
}
.package-price-sub {
  color: var(--text-secondary);
  font-weight: 400;
}

.package-features {
  margin: 0 0 16px;
}
.package-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}
.package-features li:last-child {
  border-bottom: none;
}
.fl {
  flex-shrink: 0;
  color: var(--text);
  font-weight: 500;
}
.fv {
  text-align: right;
}

.package-action {
  text-align: center;
  padding: 0 16px 16px;
}

.package-card.recommended .btn-primary,
.package-card:has(.recommended-header) .btn-primary {
  background: #2f99ea;
  box-shadow: 0 2px 8px rgba(47,153,234,0.3);
}
.package-card.recommended .btn-primary:hover,
.package-card:has(.recommended-header) .btn-primary:hover {
  background: #2585d0;
  box-shadow: 0 4px 14px rgba(47,153,234,0.4);
}

/* ---------- Why Us Features ---------- */
.why-us-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  text-indent: 1.8em;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-item {
  text-align: center;
  padding: 20px 14px;
  border-radius: var(--radius);
  background: var(--bg);
  transition: all var(--transition);
}
.feature-item:hover {
  background: #edf2f7;
  transform: translateY(-2px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
}

.feature-item h3 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.feature-item p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ---------- Tutorial Steps ---------- */
.tutorial-steps {
  counter-reset: step;
}

.tutorial-step {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  counter-increment: step;
}
.tutorial-step:last-child {
  border-bottom: none;
}

.tutorial-step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.tutorial-step-body h3 {
  font-size: 0.9rem;
  margin-bottom: 2px;
}
.tutorial-step-body p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.tutorial-img {
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

/* ---------- FAQ Accordion ---------- */
.faq-list {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  padding: 14px 0;
  text-align: left;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--text);
  transition: color var(--transition);
}
.faq-question:hover {
  color: var(--primary);
}
.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
}
.faq-item.active .faq-question::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.active .faq-answer {
  max-height: 500px;
}
.faq-answer-inner {
  padding: 0 0 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- CTA Bottom ---------- */
.cta-bottom {
  text-align: center;
  padding: 36px 28px;
  background: linear-gradient(135deg, var(--dark) 0%, #2e4f6a 100%);
  color: #fff;
  border-radius: var(--radius-lg);
}
.cta-bottom h2 {
  color: #fff;
  margin-bottom: 8px;
  border: none;
  padding: 0;
}
.cta-bottom p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 18px;
  font-size: 0.95rem;
}
.cta-bottom .btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 12px rgba(196,137,60,0.3);
}
.cta-bottom .btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 4px 18px rgba(196,137,60,0.4);
}

/* ---------- Sidebar Navigation ---------- */
.sidebar {
  position: sticky;
  top: 20px;
}

.sidebar-nav {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.sidebar-nav-title {
  padding: 14px 18px;
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--primary);
  color: #fff;
}

.sidebar-nav ul li {
  border-bottom: 1px solid var(--border-light);
}
.sidebar-nav ul li:last-child {
  border-bottom: none;
}

.sidebar-nav a {
  display: block;
  padding: 11px 18px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all var(--transition);
  border-left: 3px solid transparent;
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--primary);
  background: #f0f7fd;
  border-left-color: var(--primary);
  font-weight: 500;
}

.sidebar-nav .sidebar-nav-highlight {
  background: #eef5fc;
  border-top: 1px solid #d0e3f5;
  border-bottom: 1px solid #d0e3f5;
}

.sidebar-nav .sidebar-nav-highlight a {
  font-weight: 600;
  color: var(--primary);
}

.sidebar-nav .nav-back-top {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
  padding: 10px;
  cursor: pointer;
  transition: color var(--transition);
}
.sidebar-nav .nav-back-top:hover {
  color: var(--primary);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 20px;
  font-size: 0.82rem;
  margin-top: 30px;
}
.footer a {
  color: rgba(255,255,255,0.8);
}
.footer a:hover {
  color: #fff;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-120px);
  background: #27ae60;
  color: #fff;
  padding: 10px 28px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transition: transform 0.35s ease;
  pointer-events: none;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
}
.toast.error {
  background: var(--red);
}

/* ---------- Mobile Nav Button ---------- */
.mobile-nav-toggle {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  cursor: pointer;
  transition: all var(--transition);
}
.mobile-nav-toggle:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}
.mobile-nav-overlay.show {
  display: block;
}

.mobile-nav-panel {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: #fff;
  z-index: 1001;
  transition: right 0.3s ease;
  padding: 60px 20px 20px;
  box-shadow: var(--shadow-lg);
}
.mobile-nav-panel.show {
  right: 0;
}

.mobile-nav-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

.mobile-nav-panel a {
  display: block;
  padding: 12px 0;
  font-size: 1rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
}
.mobile-nav-panel a:hover {
  color: var(--primary);
}

/* ---------- Trust Badges Row ---------- */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
}
.trust-badge-icon {
  font-size: 1.1rem;
}

/* ---------- Comparison Table ---------- */
.comparison-intro {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}
.comparison-intro p {
  margin-bottom: 10px;
}
.comparison-recommend {
  background: #fef9e7;
  border-left: 4px solid var(--accent);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
  color: #6d5e00;
}

.comparison-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 680px;
}

.comparison-table thead th {
  background: var(--dark);
  color: #fff;
  padding: 14px 12px;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}
.comparison-table thead th:first-child {
  border-radius: var(--radius-sm) 0 0 0;
}
.comparison-table thead th:last-child {
  border-radius: 0 var(--radius-sm) 0 0;
}

.comparison-table tbody td {
  padding: 12px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
  line-height: 1.5;
}

.comparison-table tbody tr:nth-child(even) td {
  background: #fafbfc;
}
.comparison-table tbody tr:hover td {
  background: #f0f7fd;
}

.comparison-table .col-label {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  background: #f5f7fa;
  min-width: 110px;
}

.comparison-table .col-win {
  color: #1a7a2e;
}
.comparison-table .col-lose {
  color: var(--text-secondary);
}
.comparison-table .col-win small,
.comparison-table .col-lose small {
  font-size: 0.78rem;
  display: block;
  margin-top: 2px;
  opacity: 0.75;
}

.comparison-table tbody td a {
  font-weight: 500;
}

/* ---------- Homepage Provider Cards ---------- */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.provider-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all var(--transition);
}
.provider-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.provider-card-bar {
  height: 4px;
}
.provider-card-body {
  padding: 18px 20px 20px;
}
.provider-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.provider-card-body h3 a {
  color: var(--text);
}
.provider-card-body h3 a:hover {
  color: var(--primary);
}
.provider-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.provider-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 10px;
  display: block;
}
.provider-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.provider-tag {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 12px;
  background: #eef5fc;
  color: var(--primary);
  white-space: nowrap;
}
.provider-card-placeholder {
  border: 2px dashed var(--border);
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: var(--text-light);
  cursor: default;
  text-align: center;
}
.provider-card-placeholder:hover {
  transform: none;
  box-shadow: none;
}
.provider-card-placeholder .placeholder-text {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ---------- Homepage Choose Guide ---------- */
.choose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.choose-item {
  text-align: center;
  padding: 24px 16px;
  border-radius: var(--radius);
  background: var(--bg);
}
.choose-item .choose-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}
.choose-item h3 {
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.choose-item p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .page-wrapper {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .package-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .provider-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .choose-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  section {
    padding: 22px 16px;
    margin-bottom: 10px;
  }

  .hero-inner {
    padding: 24px 16px;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  .hero-hot {
    flex-direction: column;
    text-align: center;
  }

  .package-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .coupon-card {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .page-wrapper {
    padding: 10px;
  }

  section {
    padding: 18px 12px;
    border-radius: var(--radius);
  }

  .hero h1 {
    font-size: 1.25rem;
  }

  .hero-coupon {
    flex-direction: column;
  }
  .hero-coupon-code {
    font-size: 1.1rem;
  }

  .package-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .provider-grid {
    grid-template-columns: 1fr;
  }

  .choose-grid {
    grid-template-columns: 1fr;
  }

  .tutorial-step {
    flex-direction: column;
    gap: 8px;
  }

  .trust-badges {
    gap: 10px;
  }
}
