/* 气泡屏译助手 — 官网样式 */

/* ========== Reset & Base ========== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
               "Helvetica Neue", Arial, sans-serif;
  color: #1A1A1A;
  background: #F5F8FC;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: #1565C0; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ========== Layout ========== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== Header ========== */
.site-header {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: #1A1A1A;
  text-decoration: none;
}
.brand-logo {
  width: 32px;
  height: 32px;
  background: #1565C0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}
.brand-logo svg { width: 22px; height: 22px; }
.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}
.nav-links a {
  color: #4B5563;
  font-size: 15px;
  font-weight: 500;
}
.nav-links .btn-primary {
  background: #1565C0;
  color: #fff;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
}
.nav-links .btn-primary:hover { background: #0D47A1; text-decoration: none; }

/* ========== Hero ========== */
.hero {
  background: linear-gradient(180deg, #FFFFFF 0%, #E3F2FD 100%);
  padding: 60px 0 80px;
  text-align: center;
}
.hero-title {
  font-size: 36px;
  font-weight: 800;
  color: #0D47A1;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero-subtitle {
  font-size: 18px;
  color: #4B5563;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-download {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero-download .btn-xl {
  box-shadow: 0 8px 24px rgba(21, 101, 192, 0.35);
  font-size: 20px;
  padding: 22px 56px;
  border-radius: 14px;
  letter-spacing: 1px;
}
.hero-download .btn-xl:hover {
  box-shadow: 0 12px 32px rgba(21, 101, 192, 0.45);
}
.dl-icon { font-size: 22px; line-height: 1; }
.hero-download-meta {
  color: #607D8B;
  font-size: 14px;
  letter-spacing: 0.5px;
}
.hero-cta-secondary {
  margin-top: 18px;
  opacity: 0.95;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary { background: #1565C0; color: #fff; }
.btn-primary:hover { background: #0D47A1; transform: translateY(-1px); text-decoration: none; }
.btn-secondary { background: #fff; color: #1565C0; border: 2px solid #1565C0; }
.btn-secondary:hover { background: #E3F2FD; text-decoration: none; }
.btn-block { display: flex; width: 100%; }
.btn-lg { padding: 18px 40px; font-size: 17px; }
.btn-ghost { background: transparent; color: #1565C0; }
.btn-ghost:hover { background: #E3F2FD; text-decoration: none; }

/* ========== Section ========== */
section { padding: 60px 0; }
.section-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  color: #0D47A1;
  margin-bottom: 12px;
}
.section-subtitle {
  text-align: center;
  color: #6B7280;
  margin-bottom: 40px;
  font-size: 15px;
}

/* ========== Features ========== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature-card {
  background: #fff;
  padding: 28px 24px;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #E3F2FD;
  color: #1565C0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.feature-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-desc { font-size: 14px; color: #4B5563; line-height: 1.6; }

/* ========== Pricing ========== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.plan-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  position: relative;
  border: 2px solid #E5E7EB;
  transition: all 0.2s;
}
.plan-card:hover {
  border-color: #1565C0;
  transform: translateY(-2px);
}
.plan-card.recommended {
  border-color: #1565C0;
  background: linear-gradient(180deg, #FFFFFF 0%, #E3F2FD 100%);
}
.plan-card .badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #FFD54F;
  color: #0D47A1;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
}
.plan-name { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: #0D47A1; }
.plan-price { font-size: 32px; font-weight: 800; color: #1565C0; margin-bottom: 4px; }
.plan-price small { font-size: 14px; font-weight: 500; color: #6B7280; }
.plan-desc { font-size: 12px; color: #6B7280; margin-bottom: 16px; }
.plan-card .btn { width: 100%; padding: 10px; font-size: 14px; }

/* ========== FAQ ========== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  padding: 18px 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-q::after { content: "+"; font-size: 22px; color: #1565C0; }
.faq-item.open .faq-q::after { content: "−"; }
.faq-a {
  padding: 0 20px 18px;
  color: #4B5563;
  font-size: 14px;
  display: none;
}
.faq-item.open .faq-a { display: block; }

/* ========== Contact ========== */
.contact-card {
  background: #fff;
  border-radius: 14px;
  padding: 28px;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}
.contact-card .wechat-qr {
  width: 200px;
  height: 200px;
  margin: 0 auto 16px;
  background: #F5F8FC;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9CA3AF;
  font-size: 13px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
.contact-card .wechat-qr-img {
  display: block;
  width: 200px;
  height: 200px;
  margin: 0 auto 16px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  object-fit: cover;
}
.contact-card .wechat-id {
  font-size: 16px;
  font-weight: 600;
  color: #1565C0;
  margin-bottom: 8px;
}

/* ========== Footer ========== */
.site-footer {
  background: #0D47A1;
  color: #BBDEFB;
  padding: 30px 0;
  text-align: center;
  font-size: 13px;
  margin-top: 40px;
}
.site-footer a { color: #FFD54F; }

/* ========== Checkout Page ========== */
.checkout-container {
  max-width: 480px;
  margin: 40px auto;
  padding: 0 20px;
}
.checkout-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.checkout-title { font-size: 22px; font-weight: 700; text-align: center; margin-bottom: 20px; }
.checkout-plan-info {
  background: #E3F2FD;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.checkout-plan-info .label { color: #6B7280; font-size: 13px; }
.checkout-plan-info .value { font-weight: 700; color: #0D47A1; font-size: 16px; }
.pay-method-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}
.pay-tab {
  padding: 12px;
  border: 2px solid #E5E7EB;
  border-radius: 10px;
  background: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #4B5563;
  cursor: pointer;
  transition: all 0.2s;
}
.pay-tab.active { border-color: #1565C0; color: #1565C0; background: #E3F2FD; }
.pay-qr-area {
  text-align: center;
  padding: 24px 0;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.pay-qr-area img {
  width: 200px;
  height: 200px;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  margin: 0 auto 12px;
}
.pay-qr-area .hint { color: #6B7280; font-size: 13px; margin-top: 8px; }
.pay-status-pending {
  color: #1565C0;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin: 12px 0;
}
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #1565C0;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== Success Page ========== */
.success-container {
  max-width: 480px;
  margin: 60px auto;
  padding: 0 20px;
}
.success-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  text-align: center;
}
.success-icon {
  width: 80px;
  height: 80px;
  background: #4CAF50;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 40px;
  margin: 0 auto 20px;
}
.success-title { font-size: 24px; font-weight: 700; color: #0D47A1; margin-bottom: 8px; }
.success-subtitle { color: #6B7280; font-size: 14px; margin-bottom: 24px; }
.activate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px;
  background: #1565C0;
  color: #fff;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  text-decoration: none;
  transition: background 0.2s;
}
.activate-btn:hover { background: #0D47A1; text-decoration: none; }
.code-display {
  background: #F5F8FC;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 16px;
  font-family: "SF Mono", Menlo, monospace;
  font-size: 14px;
  color: #0D47A1;
  word-break: break-all;
  user-select: all;
}
.copy-btn {
  background: #E3F2FD;
  color: #1565C0;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 14px;
  display: inline-block;
}
.copy-btn:hover { background: #BBDEFB; }
.success-steps {
  text-align: left;
  background: #F5F8FC;
  border-radius: 10px;
  padding: 16px;
  margin-top: 16px;
  font-size: 13px;
  color: #4B5563;
}
.success-steps ol { padding-left: 20px; }
.success-steps li { margin-bottom: 6px; }

/* ========== Responsive ========== */
@media (max-width: 640px) {
  .hero { padding: 40px 0 60px; }
  .hero-title { font-size: 28px; }
  .hero-subtitle { font-size: 15px; }
  .section-title { font-size: 22px; }
  section { padding: 40px 0; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links a:not(.btn-primary) { display: none; }
  .plan-price { font-size: 26px; }
  .checkout-card, .success-card { padding: 22px 18px; }
  .hero-download .btn-xl { font-size: 17px; padding: 18px 36px; }
  .hero-download-meta { font-size: 12px; }
}
