/* =========================================================
   前台样式 —— 参照参考图排版（单页、响应式）
   ========================================================= */
:root {
  --blue: #0066ff;
  --blue-hover: #0055cc;
  --blue-deep: #0a2e6b;
  --navy: #0055cc;
  --dark: #2a2d38;
  --white: #ffffff;
  --light-gray: #f5f7fa;
  --text: #333333;
  --muted: #6b7280;
  --yellow: #ffd700;
  --green: #00c9a7;
  --green-dark: #00b894;
  --border: #e5e7eb;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(16, 40, 90, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- 头部 ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.logo {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.5px;
  color: var(--dark);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.logo img { height: 34px; width: auto; }
.logo-accent { color: var(--blue); }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { font-size: 15px; color: #374151; transition: color 0.2s; }
.main-nav a:hover { color: var(--blue); }
.nav-lang select {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 14px;
  color: #374151;
  background: var(--white);
  cursor: pointer;
  outline: none;
}
.nav-lang select:focus { border-color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.nav-account { font-size: 14px; color: #374151; white-space: nowrap; }
.nav-account:hover { color: var(--blue); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  text-align: center;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  padding: 10px 24px;
  font-size: 15px;
  border: none;
}
.btn-primary:hover { background: var(--blue-hover); }
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
  padding: 9px 22px;
  font-size: 14px;
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-lg { padding: 14px 34px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero {
  padding: 160px 0 60px;
  text-align: center;
}
.hero h1 {
  font-size: 44px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.hero-sub {
  margin: 22px auto 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
}

/* ---------- 定价卡片 ---------- */
.pricing { padding: 30px 0 90px; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 860px;
  margin: 0 auto;
}
.price-card {
  position: relative;
  border-radius: var(--radius);
  padding: 40px 36px 36px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card-basic {
  background: linear-gradient(160deg, #1b4fc4 0%, #0a2e6b 100%);
  color: var(--white);
}
.card-premium { background: var(--light-gray); color: var(--text); }

.badge-popular {
  position: absolute;
  top: -14px;
  right: 24px;
  background: var(--yellow);
  color: #1f2937;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.price-card h3 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.card-premium h3 { color: var(--blue); }
.price { display: flex; align-items: baseline; gap: 4px; margin: 8px 0 24px; }
.price-cur { font-size: 24px; font-weight: 700; }
.price-num { font-size: 52px; font-weight: 800; line-height: 1; }
.price-suffix { font-size: 20px; font-weight: 700; margin-left: 2px; }
.card-premium .price-cur,
.card-premium .price-num { color: var(--blue); }
.card-premium .price-suffix { color: var(--blue); }

.features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; flex: 1; }
.features li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; }
.card-basic .features li { color: rgba(255, 255, 255, 0.92); }
.check { color: #2bd576; font-weight: 800; flex: none; }
.cross { color: #9ca3af; font-weight: 800; flex: none; }
.card-basic .cross { color: rgba(255, 255, 255, 0.45); }
.card-basic .cross + span { color: rgba(255, 255, 255, 0.45); }

.btn-card-basic {
  background: var(--white);
  color: var(--blue);
  padding: 13px 24px;
  font-size: 16px;
}
.btn-card-basic:hover { background: #eef3ff; }
.btn-card-premium {
  background: var(--white);
  color: var(--blue);
  border-color: var(--blue);
  padding: 13px 24px;
  font-size: 16px;
}
.btn-card-premium:hover { background: #eef3ff; }

/* ---------- 功能展示区 ---------- */
.feature { padding: 60px 0 100px; background: var(--white); }
.feature-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.feature-text h2 { font-size: 36px; font-weight: 800; color: #111827; }
.feature-text > p { margin: 18px 0 30px; color: var(--muted); font-size: 16px; }
.store-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 999px;
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  transition: opacity 0.2s, transform 0.2s;
}
.store-btn:hover { opacity: 0.88; transform: translateY(-2px); }
.store-android { background: linear-gradient(90deg, #00c6ff, #0072ff); }
.store-ios { background: #111827; }
.store-btn svg { width: 20px; height: 20px; flex: none; }
.stats { display: flex; gap: 34px; margin-top: 34px; }
.stat { display: flex; align-items: center; gap: 10px; color: #374151; font-size: 16px; font-weight: 600; }
.stat svg { width: 22px; height: 22px; color: var(--yellow); flex: none; }

/* ---------- 手机预览 ---------- */
.phone-wrap { position: relative; display: flex; justify-content: center; padding: 30px 10px; }
.badge-new {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  background: var(--green);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}
.phone {
  width: 280px;
  background: #111827;
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  position: relative;
  z-index: 2;
}
.phone-screen {
  background: #fff;
  border-radius: 26px;
  overflow: hidden;
  padding: 16px 14px;
}
.phone-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #111827;
}
.phone-back { color: var(--blue); font-size: 18px; line-height: 1; }
.phone-title { font-weight: 800; }
.phone-sub { font-size: 12px; color: var(--muted); margin: 8px 0 12px; text-align: center; }
.phone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.grid-tile {
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.grid-tile span {
  position: absolute;
  left: 0; right: 0; bottom: 0; height: 40%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.18));
}
.grid-tile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.deco-block {
  position: absolute;
  border-radius: 20px;
}
.deco-purple {
  width: 90px;
  height: 90px;
  background: #7c5cff;
  right: -10px;
  top: 40%;
  opacity: 0.85;
  z-index: 1;
}
.deco-dots {
  position: absolute;
  width: 110px;
  height: 110px;
  right: -24px;
  bottom: -12px;
  background-image: radial-gradient(#f3a0c0 2px, transparent 2px);
  background-size: 16px 16px;
  opacity: 0.9;
  z-index: 1;
}

/* ---------- 页脚 ---------- */
.site-footer { background: var(--dark); color: #9ca3af; padding: 46px 0 28px; }
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}
.logo-footer { color: var(--white); }
.footer-wechat { color: #9ca3af; transition: color 0.2s; }
.footer-wechat:hover { color: var(--white); }
.footer-wechat svg { width: 26px; height: 26px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 22px;
  text-align: center;
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
}

/* ---------- 支付 / 账户 / 登录 通用页 ---------- */
.pay-page {
  max-width: 560px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  text-align: center;
}
.pay-page h1 { font-size: 30px; font-weight: 800; color: #111827; margin-bottom: 14px; }
.pay-page p { color: var(--muted); margin-bottom: 22px; }
.pay-info {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  font-size: 15px;
  text-align: left;
}
.pay-info td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.pay-info td:first-child { color: var(--muted); width: 40%; }
.success-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: #e8fbf1;
  color: #16a34a;
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.hidden { display: none !important; }
.download-box { margin-top: 18px; }
.download-box a { word-break: break-all; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .main-nav { gap: 16px; }
  .main-nav a:first-child { display: none; }
  .feature-inner { grid-template-columns: 1fr; gap: 40px; }
  .phone-wrap { order: -1; }
}
@media (max-width: 640px) {
  .header-inner { height: 60px; gap: 12px; }
  .main-nav { gap: 12px; }
  .main-nav a { font-size: 13px; }
  .nav-account { display: none; }
  .hero { padding: 130px 0 40px; }
  .hero h1 { font-size: 30px; }
  .hero-sub { font-size: 15px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .feature-text h2 { font-size: 28px; }
  .stats { gap: 18px; flex-wrap: wrap; }
}

/* ---------- 移动端 H5 增强（参考图排版，服务端 UA 检测添加 body.is-mobile） ---------- */
/* 顶部品牌区：左 LOGO + 右「立即下载」 */
body.is-mobile .header-inner { height: 56px; gap: 10px; }
body.is-mobile .main-nav,
body.is-mobile .nav-lang,
body.is-mobile .nav-account { display: none; }
body.is-mobile .header-actions { margin-left: auto; }
body.is-mobile .header-actions .btn-primary { padding: 8px 18px; font-size: 14px; }
body.is-mobile .logo { font-size: 19px; }
body.is-mobile .logo img { height: 28px; }

/* Hero：主标题「选择适合您的套餐」+ 副标题 */
body.is-mobile .hero { padding: 88px 0 26px; }
body.is-mobile .hero h1 { font-size: 26px; }
body.is-mobile .hero-sub { font-size: 14px; margin-top: 12px; }

/* 双套餐对比卡片：左蓝（基础套餐）+ 右白（高级套餐）并排 */
body.is-mobile .pricing { padding: 8px 0 44px; }
body.is-mobile .pricing-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 100%; padding: 0 12px; }
body.is-mobile .price-card { padding: 18px 12px 14px; border-radius: 14px; box-shadow: 0 8px 24px rgba(16, 40, 90, 0.12); }
body.is-mobile .card-premium { border: 2px solid var(--blue); background: var(--white); }
body.is-mobile .price-card h3 { font-size: 15px; margin-bottom: 4px; }
body.is-mobile .price { margin: 4px 0 12px; gap: 2px; }
body.is-mobile .price-cur { font-size: 15px; }
body.is-mobile .price-num { font-size: 30px; }
body.is-mobile .price-suffix { font-size: 13px; }
body.is-mobile .features { gap: 7px; margin-bottom: 14px; }
body.is-mobile .features li { font-size: 11px; gap: 5px; line-height: 1.4; }
body.is-mobile .btn-card-basic,
body.is-mobile .btn-card-premium { padding: 8px 6px; font-size: 12px; width: 100%; }
body.is-mobile .badge-custom {
  position: absolute;
  top: -10px;
  left: 10px;
  background: var(--yellow);
  color: #1f2937;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}

/* 功能体验展示区：「打造极致体验」标题 + 手机样机 3×3 网格 */
body.is-mobile .feature { padding: 30px 0 50px; }
body.is-mobile .feature-inner { grid-template-columns: 1fr; gap: 20px; }
body.is-mobile .phone-wrap { order: 0; padding: 16px 0; }
body.is-mobile .feature-text h2 { font-size: 24px; }
body.is-mobile .feature-text > p { margin: 10px 0 0; font-size: 14px; }
body.is-mobile .store-buttons { justify-content: center; }
body.is-mobile .stats { justify-content: center; gap: 18px; margin-top: 20px; }
body.is-mobile .phone { width: 210px; }

/* 底部深色版权与 Logo 区 */
body.is-mobile .site-footer { padding: 30px 0 20px; }
body.is-mobile .footer-top { margin-bottom: 18px; }
body.is-mobile .footer-bottom { font-size: 11px; }
