/* ==========================================
   乌龟加速 - Design Tokens & Stylesheet (v2.1 Light Theme)
   ========================================== */
:root {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-surface-alt: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --color-accent: #3b82f6;
  --color-accent-hover: #2563eb;
  --color-success: #10b981;
  --color-danger: #e11d48;
  --border: #e2e8f0;
  --border-focus: #3b82f6;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Accessibility Focus Outline */
:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  overflow-wrap: anywhere;
}

/* Layout Wrapper */
.x-wr1p {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.x-sd2b {
  width: 140px;
  background-color: #ffffff;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0;
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 200;
}

.x-lg3c {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.x-hx4g {
  width: 48px;
  height: 55.4px;
  background-color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: var(--transition);
}

.x-hx4g span {
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
}

.x-lg3c:hover .x-hx4g {
  transform: scale(1.08) rotate(10deg);
}

.x-br5n {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Main Area */
.x-mc6t {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

.x-ct7r {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

/* Header */
.x-hdr8 {
  padding: 18px 0;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.x-nc8v {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.x-nl9k {
  display: flex;
  gap: 28px;
}

.x-nl9k a {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
}

.x-nl9k a:hover {
  color: var(--color-accent);
}

/* Buttons */
.x-bp0y {
  background-color: var(--color-accent);
  color: #ffffff !important;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  min-height: 44px;
}

.x-bp0y:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
}

.x-bs1y {
  background-color: transparent;
  color: var(--text-primary);
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
  min-height: 44px;
}

.x-bs1y:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

/* Hero Section */
.x-hr3o {
  padding: 80px 0 60px;
}

.x-hs4p {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.x-hc5t {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.x-hr3o h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
  color: var(--text-primary);
  background: linear-gradient(135deg, #0f172a 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.x-hr3o p.hero-desc {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 680px;
}

.x-hb6s {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-microcopy {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: -6px;
}

/* Trust Pills */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
  font-weight: 500;
}

/* Turtle SVG Animation */
@keyframes floatTurtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes speedLine {
  0% { transform: translateX(100px); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(-150px); opacity: 0; }
}

.animated-turtle {
  width: 140px;
  height: auto;
  margin: 0 auto 20px auto;
  display: block;
  animation: floatTurtle 3s ease-in-out infinite;
}

.speed-line { animation: speedLine 1.5s linear infinite; }
.speed-line-2 { animation: speedLine 2s linear infinite; animation-delay: 0.5s; }
.speed-line-3 { animation: speedLine 1.2s linear infinite; animation-delay: 0.8s; }

/* Section Titles */
.x-st3e {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 40px;
  font-weight: 800;
  color: var(--text-primary);
}

/* Features */
.x-ft4s {
  padding: 70px 0;
}

.x-fg5d {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.x-fc6d {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 36px 28px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.x-fc6d:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(59, 130, 246, 0.4);
}

.x-fi7n {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.x-fc6d h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.x-fc6d p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Platform Support Section */
.x-sp8t {
  padding: 60px 0;
  background-color: var(--bg-surface-alt);
}

.x-sp8t-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.x-si0m {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

/* Promo Banner */
.promo-banner {
  background: linear-gradient(90deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 16px 24px;
  margin-bottom: 30px;
  text-align: center;
  font-weight: 700;
  color: #1e40af;
  box-shadow: var(--shadow-sm);
}

/* Pricing Section */
.x-pr1g {
  padding: 80px 0;
}

.x-pg2d {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.x-pc3d {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: var(--transition);
}

.x-pc3d:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.x-pc3d.x-pp4r {
  border: 2px solid var(--color-accent);
  box-shadow: var(--shadow-md);
}

.x-pb5e {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 50px;
}

.x-pc3d h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.x-pc6e {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.x-pc6e span {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.x-pf7s {
  list-style: none;
  margin-bottom: 28px;
  flex-grow: 1;
}

.x-pf7s li {
  padding: 10px 0;
  border-bottom: 1px stroke var(--border);
  color: var(--text-secondary);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.x-pf7s li::before {
  content: "✓";
  color: var(--color-success);
  font-weight: bold;
}

.pricing-guarantee {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
}

/* FAQ */
.x-fq4q {
  padding: 70px 0;
  max-width: 840px;
  margin: 0 auto;
}

.x-fi5m {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
}

.x-fi5m h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.x-fi5m p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Reviews */
.x-rv6s {
  padding: 70px 0;
  background-color: var(--bg-surface-alt);
}

.x-rg7d {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.x-rc8d {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.x-rs9s {
  color: #f59e0b;
  margin-bottom: 12px;

}

.x-rt0x {
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.x-ra1r {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

/* Footer */
.x-ftr9 {
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  margin-top: 40px;
  background: #ffffff;
}

.x-fg2d {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.x-fb3d p {
  color: var(--text-secondary);
  max-width: 320px;
  font-size: 0.95rem;

}

.x-fl4s h4 {
  color: var(--text-primary);
  margin-bottom: 16px;
  font-size: 1.05rem;

}

.x-fl4s ul {
  list-style: none;
}

.x-fl4s li {
  margin-bottom: 10px;
}

.x-fl4s a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.x-fl4s a:hover {
  color: var(--color-accent);
}

.x-fb5m {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Mobile Sticky Bar */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  gap: 12px;
}

/* Exit Intent Popup */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.popup-overlay.show {
  display: flex;
  opacity: 1;
}

.popup-content {
  background: #ffffff;
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 90%;
  text-align: center;
  position: relative;
  transform: scale(0.92) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-lg);
}

.popup-overlay.show .popup-content {
  transform: scale(1) translateY(0);
}

.popup-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  padding: 4px;
}

.popup-content h3 {
  color: var(--text-primary);
  margin-bottom: 12px;
  font-size: 1.4rem;
}

.popup-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.code-box-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--bg-surface-alt);
  border: 1px dashed var(--color-accent);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.code-text {
  font-family: monospace;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: 1px;
}

.copy-btn {
  background: var(--color-accent);
  color: #ffffff;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.copy-btn.copied {
  background: var(--color-success);
}

/* Article Container */
.article-container {
  max-width: 840px;
  margin: 40px auto 80px;
  padding: 40px;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.article-container h1 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  line-height: 1.3;
}

.article-container h2 {
  font-size: 1.5rem;
  margin-top: 36px;
  margin-bottom: 16px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.article-container h3 {
  font-size: 1.2rem;
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--color-accent);
}

.article-container p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.article-container ul {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 24px;
  padding-left: 24px;
}

.article-container li {
  margin-bottom: 8px;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
}

.article-table th, .article-table td {
  border: 1px solid var(--border);
  padding: 12px 16px;
  text-align: left;
}

.article-table th {
  background-color: var(--bg-surface-alt);
  font-weight: 700;
}

/* Media Queries */
@media (max-width: 1024px) {
  .x-wr1p {
    flex-direction: column;
  }
  .x-sd2b {
    width: 100%;
    height: auto;
    padding: 12px 24px;
    flex-direction: row;
    justify-content: space-between;
    border-right: none;
    border-bottom: 1px solid var(--border);
    position: relative;
  }
  .x-lg3c {
    flex-direction: row;
  }
  .x-hx4g {
    width: 36px;
    height: 41.5px;
  }
  .x-hx4g span {
    font-size: 18px;
  }
  .x-fg5d, .x-pg2d, .x-rg7d {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 80px; /* Space for mobile sticky CTA */
  }
  .x-ct7r {
    padding: 0 20px;
  }
  .x-hr3o h1 {
    font-size: 2rem;
  }
  .x-hr3o p.hero-desc {
    font-size: 1rem;
  }
  .x-fg5d, .x-pg2d, .x-rg7d {
    grid-template-columns: 1fr;
  }
  .x-nl9k {
    display: none;
  }
  .mobile-sticky-cta {
    display: flex;
  }
  .article-container {
    padding: 24px 18px;
    margin: 20px 0;
  }
  .article-table {
    display: block;
    overflow-x: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
