:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --bg: #f3f4f6;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --gold: #fbbf24;
  --silver: #94a3b8;
  --bronze: #b45309;
  --diamond: #a78bfa;
  --normal: #34d399;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
               "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Wrap long words/URLs that would otherwise blow out the viewport on narrow phones */
p, h1, h2, h3, h4, h5, h6, li, span, strong, .summary, .item .title {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ============== Header ============== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.brand .dot {
  width: 28px; height: 28px;
  background: var(--primary);
  border-radius: 8px;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 15px;
}
.brand-logo {
  width: 32px;
  height: 32px;
  display: block;
}
.hero-logo {
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  display: block;
  background: rgba(255,255,255,0.18);
  border-radius: 22px;
  padding: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  backdrop-filter: blur(6px);
}
.nav { display: flex; gap: 6px; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
}
.nav a:hover { background: var(--bg); color: var(--text); }
.nav a.active { color: var(--primary); background: rgba(99,102,241,0.10); }

/* ============== Layout ============== */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.hero {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff;
  padding: 72px 24px;
}
.hero .inner {
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}
.hero h1 {
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.hero p {
  font-size: 18px;
  opacity: 0.92;
  max-width: 640px;
  margin: 0 auto 28px;
}
.hero .cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: #fff;
  color: var(--primary);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  transition: transform 0.15s;
}
.hero .cta:hover { transform: translateY(-1px); }

/* ============== Section ============== */
.section { margin-bottom: 48px; }
.section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title .bar {
  width: 4px; height: 22px;
  background: var(--primary);
  border-radius: 2px;
}
.section-title .more {
  margin-left: auto;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

/* ============== Cards ============== */
.card {
  background: var(--card);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  border: 1px solid var(--border);
}
.list { display: flex; flex-direction: column; gap: 12px; }
.item {
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 18px 20px;
  transition: border-color 0.15s, transform 0.1s;
}
.item:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}
.item .title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.item .meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.item .summary {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.item .cover {
  font-size: 22px;
  margin-right: 8px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 760px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .hero { padding: 56px 20px; }
}

/* Phone breakpoints moved to the very end of the file so they win over the page-specific
   default rules (.download-card, .feature, .about-block, .value, .site-footer) defined below. */

.empty {
  text-align: center;
  padding: 40px 0;
  color: var(--muted);
  font-size: 14px;
}
/* 空状态放进网格容器时跨满整行,否则只占第一格会左偏 */
.grid-2 > .empty,
.grid-3 > .empty {
  grid-column: 1 / -1;
}

/* ============== Business page ============== */
.step {
  display: flex;
  gap: 18px;
  padding: 22px;
  background: var(--card);
  border-radius: 14px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
.step .num {
  width: 44px; height: 44px;
  flex-shrink: 0;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14px; }
.step ul { margin-top: 8px; padding-left: 20px; color: var(--muted); font-size: 14px; }
.step ul li { margin: 3px 0; }

.tier-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 18px;
}
@media (max-width: 760px) { .tier-grid { grid-template-columns: repeat(2, 1fr); } }
.tier-card {
  text-align: center;
  padding: 18px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
}
.tier-card .name { font-weight: 700; font-size: 16px; }
.tier-card .price { font-size: 22px; font-weight: 800; margin: 6px 0; }
.tier-card .perc { font-size: 12px; color: var(--muted); }
.tier-card.normal  .name { color: var(--normal); }
.tier-card.bronze  .name { color: var(--bronze); }
.tier-card.silver  .name { color: var(--silver); }
.tier-card.gold    .name { color: var(--gold); }
.tier-card.diamond .name { color: var(--diamond); }

/* ============== Download page ============== */
.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 32px;
}
@media (max-width: 760px) { .download-grid { grid-template-columns: 1fr; } }
.download-card {
  padding: 28px;
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--border);
  text-align: center;
}
.download-card .icon { font-size: 48px; margin-bottom: 12px; }
.download-card h3 { font-size: 20px; margin-bottom: 6px; }
.download-card p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.btn:hover { background: var(--primary-dark); }
.btn.outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 760px) { .feature-list { grid-template-columns: 1fr; } }
.feature {
  padding: 18px;
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.feature .ic { font-size: 28px; margin-bottom: 8px; }
.feature h4 { font-size: 16px; margin-bottom: 4px; }
.feature p { font-size: 13px; color: var(--muted); }

/* ============== About page ============== */
.about-block { margin-bottom: 28px; }
.about-block h2 { font-size: 22px; margin-bottom: 10px; }
.about-block p { color: var(--muted); font-size: 15px; margin-bottom: 8px; }

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } }
.value {
  padding: 22px;
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--border);
  text-align: center;
}
.value .ic { font-size: 32px; margin-bottom: 8px; }
.value h4 { font-size: 16px; margin-bottom: 6px; }
.value p { font-size: 13px; color: var(--muted); }

/* ============== Footer ============== */
.site-footer {
  background: #111827;
  color: #9ca3af;
  padding: 32px 24px 20px;
  font-size: 13px;
}
.site-footer .inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer a { color: #d1d5db; text-decoration: none; margin-left: 16px; }

/* ============================================================
   Phones (≤ 480px) — placed at the end so it overrides every default rule above.
   Covers iPhone SE / 12 / 13 / 14 / Plus / Pro / Pro Max and Pixel / Galaxy variants.
   ============================================================ */
@media (max-width: 480px) {
  .site-header .inner { padding: 12px 14px; }
  .brand              { font-size: 17px; gap: 8px; }
  .brand-logo         { width: 26px; height: 26px; }
  .nav                { gap: 2px; }
  .nav a              { padding: 6px 8px; font-size: 13px; }

  .container          { padding: 24px 16px 60px; }

  /* Hero */
  .hero               { padding: 48px 16px; }
  .hero h1            { font-size: 28px; letter-spacing: -0.3px; }
  .hero p             { font-size: 15px; margin-bottom: 22px; }
  .hero .cta          { padding: 11px 22px; font-size: 14px; }
  .hero-logo          { width: 76px; height: 76px; padding: 11px; border-radius: 18px; }

  /* Sections */
  .section            { margin-bottom: 34px; }
  .section-title      { font-size: 20px; }
  .section-title .bar { height: 19px; }

  /* Home cards (announcements / articles) */
  .item               { padding: 14px 14px; }
  .item .title        { font-size: 15px; }
  .item .summary      { font-size: 13px; }

  /* Plain h1 on download/about pages (override inline style="font-size:32px") */
  .container > h1     { font-size: 24px !important; line-height: 1.3; }
  .container > p      { font-size: 14px; margin-bottom: 22px; }

  /* Download page */
  .download-grid      { gap: 14px; margin-bottom: 24px; }
  .download-card      { padding: 22px 18px; }
  .download-card .icon{ font-size: 40px; margin-bottom: 10px; }
  .download-card h3   { font-size: 18px; }
  .download-card p    { font-size: 13px; margin-bottom: 14px; }
  .btn                { padding: 11px 26px; font-size: 14px; }
  .feature-list       { gap: 12px; }
  .feature            { padding: 14px; }
  .feature .ic        { font-size: 24px; margin-bottom: 6px; }
  .feature h4         { font-size: 15px; }
  .feature p          { font-size: 12.5px; }

  /* About page */
  .about-block        { margin-bottom: 22px; }
  .about-block h2     { font-size: 19px; }
  .about-block p      { font-size: 14px; }
  .value              { padding: 18px 14px; }
  .value .ic          { font-size: 26px; }
  .value h4           { font-size: 15px; }
  .value p            { font-size: 12.5px; }

  /* Business page */
  .tier-grid          { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tier-card          { padding: 14px 10px; }
  .tier-card .price   { font-size: 19px; }
  .step               { padding: 16px; gap: 12px; }
  .step .num          { width: 36px; height: 36px; font-size: 17px; }

  /* Footer */
  .site-footer       { padding: 22px 16px 18px; font-size: 12px; }
  .site-footer .inner{ flex-direction: column; align-items: flex-start; gap: 8px; }
  .site-footer a     { margin-left: 0; margin-right: 14px; }
}

/* ============================================================
   Very small phones (≤ 400px) — hide the wordmark so nav fits.
   ============================================================ */
@media (max-width: 400px) {
  .brand-text         { display: none; }
  .brand-logo         { width: 28px; height: 28px; }
  .nav a              { padding: 6px 7px; font-size: 12.5px; }

  .container          { padding: 22px 14px 56px; }
  .hero               { padding: 40px 14px; }
  .hero h1            { font-size: 26px; }
  .container > h1     { font-size: 22px !important; }
  .section-title      { font-size: 19px; }
  .download-card      { padding: 20px 16px; }
}
