/*
Theme Name: Startallback
Theme URI: https://www.startallback.com.cn
Author: StartAllBack
Description: StartAllBack 中文站主题
Version: 2.0.0
*/

:root {
  --sb-bg: #ffffff;
  --sb-bg-alt: #f7f8fc;
  --sb-bg-dark: #1a1d2e;
  --sb-text: #1d1d1f;
  --sb-text-muted: #6e6e73;
  --sb-text-light: #86868b;
  --sb-border: #e5e5ea;
  --sb-primary: #007aff;
  --sb-primary-hover: #0066d6;
  --sb-accent: #5856d6;
  --sb-success: #34c759;
  --sb-card-shadow: 0 2px 12px rgba(0,0,0,0.06);
  --sb-card-shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --sb-radius: 12px;
  --sb-radius-lg: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--sb-text);
  background: var(--sb-bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--sb-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--sb-primary-hover); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid var(--sb-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.site-logo {
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--sb-text);
  gap: 10px;
  flex-shrink: 0;
}
.site-logo-icon {
  height: 36px !important;
  width: 36px !important;
  border-radius: 8px;
  object-fit: contain;
  display: block;
}
.site-logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--sb-text);
  white-space: nowrap;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 15px;
  color: var(--sb-text);
  font-weight: 500;
  position: relative;
  transition: all .2s;
}
.site-nav a:hover { background: var(--sb-bg-alt); color: var(--sb-primary); }
.site-nav .nav-cta {
  background: var(--sb-primary);
  color: #fff !important;
  padding: 10px 22px;
  margin-left: 12px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,122,255,0.25);
}
.site-nav .nav-cta:hover { background: var(--sb-primary-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,122,255,0.35); }
.menu-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }

/* ========== Footer ========== */
.site-footer {
  background: var(--sb-bg-dark);
  color: #a1a1aa;
  padding: 48px 0 24px;
  margin-top: 80px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand h3 { color: #fff; font-size: 18px; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #a1a1aa; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #71717a;
}
.footer-bottom a { color: #71717a; }
.footer-bottom a:hover { color: #fff; }

/* ========== Hero ========== */
.hero {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, #f0f4ff 0%, #ffffff 100%);
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: rgba(0,122,255,0.1);
  color: var(--sb-primary);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #1d1d1f 0%, #5856d6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 20px;
  color: var(--sb-text-muted);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.5;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .2s;
  text-decoration: none;
  gap: 8px;
}
.btn-primary {
  background: var(--sb-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,122,255,0.3);
}
.btn-primary:hover { background: var(--sb-primary-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,122,255,0.4); }
.btn-secondary {
  background: var(--sb-bg);
  color: var(--sb-text);
  border: 1px solid var(--sb-border);
}
.btn-secondary:hover { background: var(--sb-bg-alt); color: var(--sb-text); }
.btn-large { padding: 18px 36px; font-size: 17px; }
.btn-white { background: #fff; color: var(--sb-primary); }
.btn-white:hover { background: #f0f0f0; color: var(--sb-primary-hover); }

/* ========== Sections ========== */
.section { padding: 80px 0; }
.section-alt { background: var(--sb-bg-alt); }
.section-dark { background: var(--sb-bg-dark); color: #fff; }
.section-dark h2 { color: #fff; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-header p { font-size: 18px; color: var(--sb-text-muted); max-width: 560px; margin: 0 auto; }

/* ========== Feature Cards ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius-lg);
  padding: 32px;
  transition: all .25s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--sb-card-shadow-lg); border-color: transparent; }
.feature-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--sb-primary), var(--sb-accent));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #fff;
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { color: var(--sb-text-muted); font-size: 15px; line-height: 1.6; }

/* ========== Showcase ========== */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.showcase-text h3 { font-size: 32px; font-weight: 700; margin-bottom: 16px; letter-spacing: -0.01em; }
.showcase-text p { font-size: 17px; color: var(--sb-text-muted); line-height: 1.7; margin-bottom: 20px; }
.showcase-text ul { list-style: none; }
.showcase-text li { padding: 8px 0; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.showcase-text li::before { content: "✓"; color: var(--sb-success); font-weight: 700; font-size: 18px; }
.showcase-img {
  border-radius: var(--sb-radius-lg);
  overflow: hidden;
  box-shadow: var(--sb-card-shadow-lg);
  background: var(--sb-bg-alt);
}
.showcase-img img { width: 100%; height: auto; }

/* ========== Price Box ========== */
.price-box {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 24px;
  padding: 56px 40px;
  text-align: center;
  color: #fff;
  box-shadow: 0 20px 60px rgba(118,75,162,0.4);
}
.price-tag {
  font-size: 72px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}
.price-tag span { font-size: 24px; font-weight: 500; }
.price-label { font-size: 18px; opacity: 0.9; margin-bottom: 28px; }
.price-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ========== Reviews ========== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-card {
  background: #fff;
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius-lg);
  padding: 28px;
}
.review-stars { color: #ff9500; margin-bottom: 12px; font-size: 16px; }
.review-text { font-size: 15px; line-height: 1.7; color: var(--sb-text); margin-bottom: 16px; }
.review-author { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--sb-text-muted); }
.review-avatar {
  width: 36px; height: 36px;
  background: var(--sb-bg-alt);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; color: var(--sb-primary);
}

/* ========== CTA Banner ========== */
.cta-banner {
  background: linear-gradient(135deg, #1a1d2e 0%, #2d3250 100%);
  border-radius: 24px;
  padding: 64px 40px;
  text-align: center;
  color: #fff;
  margin: 0 auto;
}
.cta-banner h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.cta-banner p { font-size: 18px; opacity: 0.85; margin-bottom: 28px; }

/* ========== Page Hero ========== */
.page-hero {
  padding: 56px 0 40px;
  background: linear-gradient(180deg, #f0f4ff 0%, #ffffff 100%);
  text-align: center;
}
.page-hero h1 { font-size: 44px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; }
.page-hero p { font-size: 18px; color: var(--sb-text-muted); }

/* ========== Download Page ========== */
.download-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 0;
}
.download-card {
  background: #fff;
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius-lg);
  padding: 40px;
  text-align: center;
}
.download-version {
  font-size: 14px;
  color: var(--sb-text-muted);
  margin-bottom: 16px;
}

/* ========== Docs Archive & Single ========== */
.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  padding: 48px 0 80px;
  align-items: start;
}
.docs-sidebar {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.docs-sidebar-group { margin-bottom: 28px; }
.docs-sidebar-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sb-text-light);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--sb-border);
}
.docs-sidebar-list { list-style: none; }
.docs-sidebar-list > li > a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--sb-text);
  margin-bottom: 2px;
  transition: all .15s;
}
.docs-sidebar-list > li > a:hover { background: var(--sb-bg-alt); color: var(--sb-primary); }
.docs-sidebar-list > li.current > a {
  background: rgba(0,122,255,0.08);
  color: var(--sb-primary);
  font-weight: 600;
}
.docs-sidebar-sub { list-style: none; padding-left: 12px; margin-top: 4px; border-left: 2px solid var(--sb-border); }
.docs-sidebar-sub a {
  display: block;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--sb-text-muted);
  border-radius: 0 6px 6px 0;
  margin-bottom: 1px;
  transition: all .15s;
}
.docs-sidebar-sub a:hover { color: var(--sb-primary); background: var(--sb-bg-alt); }
.docs-sidebar-sub a.current { color: var(--sb-primary); font-weight: 600; background: rgba(0,122,255,0.06); }

/* Docs main content area */
.docs-main { min-width: 0; }
.docs-list { list-style: none; }
.docs-cat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--sb-border);
  margin-bottom: 24px;
}
.docs-cat-header h2 { font-size: 22px; font-weight: 700; }
.docs-cat-count {
  background: var(--sb-bg-alt);
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 13px;
  color: var(--sb-text-muted);
}

/* Docs list items */
.docs-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--sb-border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.docs-list li:last-child { border-bottom: none; }
.docs-list a {
  color: var(--sb-text);
  font-size: 15px;
  font-weight: 500;
  flex: 1;
}
.docs-list a:hover { color: var(--sb-primary); }
.docs-list .docs-arrow { color: var(--sb-text-light); font-size: 18px; }

/* Quick cards on root archive */
.docs-root-card {
  background: #fff;
  border: 1px solid var(--sb-border);
  border-radius: 14px;
  padding: 28px;
  transition: all .2s;
}
.docs-root-card:hover { border-color: var(--sb-primary); box-shadow: 0 4px 20px rgba(0,122,255,0.1); transform: translateY(-2px); }
.docs-root-card-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--sb-primary), var(--sb-accent));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; font-weight: 700;
  margin-bottom: 16px;
}
.docs-root-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.docs-root-card p { font-size: 14px; color: var(--sb-text-muted); }

/* Single Doc page */
.single-doc-wrap { padding: 40px 0 60px; }
.doc-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--sb-text-muted);
  margin-bottom: 24px;
  transition: color .15s;
}
.doc-back:hover { color: var(--sb-primary); }
.doc-header { margin-bottom: 32px; }
.doc-cats { margin-bottom: 12px; }
.doc-cats a {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sb-primary);
  margin-right: 8px;
}
.doc-title { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; line-height: 1.25; }
.doc-content { font-size: 16px; line-height: 1.8; color: var(--sb-text); max-width: 760px; }
.doc-content h2 { font-size: 24px; font-weight: 700; margin: 36px 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--sb-border); }
.doc-content h3 { font-size: 20px; font-weight: 600; margin: 28px 0 12px; }
.doc-content p { margin-bottom: 16px; }
.doc-content ul, .doc-content ol { margin: 16px 0; padding-left: 24px; }
.doc-content li { margin-bottom: 8px; }
.doc-content code {
  background: var(--sb-bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
  font-family: "SF Mono", Menlo, monospace;
}
.doc-content pre {
  background: var(--sb-bg-dark);
  color: #e5e7eb;
  padding: 20px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.6;
}
.doc-content pre code { background: none; padding: 0; }
.doc-content img { border-radius: 12px; margin: 20px 0; box-shadow: var(--sb-card-shadow); }
.doc-content blockquote {
  border-left: 4px solid var(--sb-primary);
  padding: 12px 20px;
  background: var(--sb-bg-alt);
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
  color: var(--sb-text-muted);
}
.doc-content a { text-decoration: underline; text-underline-offset: 3px; }

/* Docs mobile */
@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 1fr; gap: 24px; padding: 32px 0 48px; }
  .docs-sidebar { position: static; max-height: none; }
}

/* ========== 404 ========== */
.error-404 { text-align: center; padding: 120px 0; }
.error-404 h1 { font-size: 96px; font-weight: 800; color: var(--sb-primary); margin-bottom: 16px; letter-spacing: -0.03em; }
.error-404 h2 { font-size: 24px; font-weight: 600; margin-bottom: 12px; }
.error-404 p { color: var(--sb-text-muted); margin-bottom: 28px; }

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 36px; }
  .hero-sub { font-size: 17px; }
  .section { padding: 56px 0; }
  .section-header h2 { font-size: 28px; }
  .features-grid { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr; gap: 32px; }
  .showcase-text h3 { font-size: 24px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .header-inner { height: 64px; }
  .site-nav { display: none; position: fixed; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px; border-bottom: 1px solid var(--sb-border); box-shadow: var(--sb-card-shadow); }
  .site-nav.open { display: flex; }
  .site-nav .nav-cta { margin-left: 0; }
  .menu-toggle { display: block; }
  .page-hero h1 { font-size: 32px; }
  .doc-title { font-size: 28px; }
  .cta-banner { padding: 40px 24px; }
  .cta-banner h2 { font-size: 26px; }
  .price-tag { font-size: 56px; }
}

/* ========== Utilities ========== */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.wp-caption { text-align: center; font-size: 14px; color: var(--sb-text-muted); margin-bottom: 20px; }
.aligncenter { margin: 20px auto; }
