/* === Template B: Light SaaS Blue-Purple === */
:root {
  --bg: #F8FAFC;
  --card: #FFFFFF;
  --card-border: #E5E7EB;
  --primary: #6366F1;
  --primary-dark: #4F46E5;
  --primary-deep: #312E81;
  --text: #1E293B;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1200px;
}

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

html { font-size:16px; scroll-behavior:smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--primary-dark); }

img { max-width:100%; height:auto; display:block; }

/* === Header === */
.site-header {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}
.logo svg { width:32px; height:32px; }
.logo span { background: linear-gradient(135deg, var(--primary-deep), var(--primary)); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.main-nav { display: flex; gap: 28px; list-style: none; align-items: center; }
.main-nav a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 6px 0;
  position: relative;
}
.main-nav a:hover { color: var(--primary); }
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: width 0.2s;
}
.main-nav a:hover::after { width: 100%; }
.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 20px !important;
  border-radius: 50px;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}
.nav-cta::after { display: none; }

/* === Breadcrumbs === */
.breadcrumbs {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px 0;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs .sep { color: var(--text-muted); }
.breadcrumbs .current { color: var(--text); font-weight: 500; }

/* === Container === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* === Hero Section (Home - 2-col) === */
.hero-section {
  background: linear-gradient(135deg, var(--primary-deep), var(--primary-dark), var(--primary));
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
  pointer-events: none;
}
.hero-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-left { color: #fff; }
.hero-left h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero-left .subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  line-height: 1.6;
}
.hero-points { list-style: none; margin-bottom: 36px; }
.hero-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.92);
}
.hero-points li svg { flex-shrink: 0; width: 22px; height: 22px; }
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 14px 36px;
  border-radius: 50px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  color: var(--primary-dark);
}
.hero-right { display: flex; justify-content: center; }
.download-selector {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 400px;
}
.download-selector h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
  text-align: center;
}
.select-group { margin-bottom: 20px; }
.select-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.select-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--card-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s;
}
.select-group select:focus {
  outline: none;
  border-color: var(--primary);
}
.version-info {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.version-info .label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.version-info .value { font-weight: 600; color: var(--text); font-size: 0.95rem; }
.download-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-align: center;
}
.download-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* === Section Common === */
.section { padding: 72px 0; }
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}
.section-alt { background: #fff; }

/* === Feature Cards (Horizontal Scroll) === */
.features-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.features-scroll::-webkit-scrollbar { height: 6px; }
.features-scroll::-webkit-scrollbar-track { background: var(--bg); border-radius: 3px; }
.features-scroll::-webkit-scrollbar-thumb { background: var(--card-border); border-radius: 3px; }
.feature-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-card .icon-wrap {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-card .icon-wrap svg { width: 24px; height: 24px; color: #fff; }
.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; }

/* === Tutorial Grid === */
.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.tutorial-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.tutorial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.tutorial-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary-dark), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
}
.tutorial-card-img img { width: 100%; height: 100%; object-fit: cover; }
.tutorial-card-body { padding: 20px; }
.tutorial-card-body .tag {
  display: inline-block;
  background: rgba(99,102,241,0.1);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  margin-bottom: 10px;
}
.tutorial-card-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.tutorial-card-body h3 a { color: var(--text); }
.tutorial-card-body h3 a:hover { color: var(--primary); }
.tutorial-card-body p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

/* === Download Table === */
.download-table-wrap { overflow-x: auto; }
.download-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.download-table thead { background: linear-gradient(135deg, var(--primary-deep), var(--primary-dark), var(--primary)); }
.download-table thead th {
  color: #fff;
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
}
.download-table tbody td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--card-border);
  font-size: 0.95rem;
}
.download-table tbody tr:last-child td { border-bottom: none; }
.download-table tbody tr:hover { background: rgba(99,102,241,0.04); }
.download-table .platform-name { font-weight: 700; color: var(--text); }
.download-table .dl-link {
  display: inline-block;
  padding: 6px 18px;
  background: var(--primary);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.15s;
}
.download-table .dl-link:hover { background: var(--primary-dark); color: #fff; }

/* === Article Layout === */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  padding: 48px 0;
}
.article-main { min-width: 0; }
.article-main h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.article-meta {
  display: flex;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--card-border);
}
.article-main h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-left: 14px;
  border-left: 4px solid var(--primary);
  line-height: 1.35;
}
.article-main h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 12px;
}
.article-main p {
  margin-bottom: 16px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}
.article-main ul, .article-main ol {
  margin-bottom: 20px;
  padding-left: 24px;
}
.article-main li {
  margin-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.7;
}
.article-main blockquote {
  border-left: 4px solid var(--primary);
  background: rgba(99,102,241,0.04);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
  font-style: italic;
}
.article-main .highlight-box {
  background: linear-gradient(135deg, rgba(49,46,129,0.05), rgba(99,102,241,0.08));
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}
.article-main .highlight-box strong { color: var(--primary); }
.article-main .step {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.article-main .step-num {
  width: 36px; height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.article-main .step-content { flex: 1; }
.article-main .step-content h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }
.article-main .step-content p { font-size: 0.95rem; color: var(--text-secondary); }
.article-main pre {
  background: #1E293B;
  color: #E2E8F0;
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin: 20px 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
}
.article-main code {
  background: rgba(99,102,241,0.08);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: var(--font-mono);
}
.article-main pre code {
  background: none;
  color: inherit;
  padding: 0;
}

/* === Article Sidebar (FAQ) === */
.article-sidebar { position: sticky; top: 88px; align-self: start; }
.sidebar-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.sidebar-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}
.sidebar-card .faq-item { margin-bottom: 16px; }
.sidebar-card .faq-item:last-child { margin-bottom: 0; }
.sidebar-card .faq-q {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: var(--text);
  cursor: pointer;
}
.sidebar-card .faq-a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.sidebar-dl-card {
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  color: #fff;
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.sidebar-dl-card p { margin-bottom: 16px; font-weight: 500; }
.sidebar-dl-card .btn-white {
  display: inline-block;
  background: #fff;
  color: var(--primary);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
}

/* === FAQ Page === */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-entry {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 16px;
  transition: border-color 0.15s;
}
.faq-entry:hover { border-color: var(--primary); }
.faq-entry h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.faq-entry p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; }

/* === Static Pages === */
.static-content { max-width: 800px; margin: 0 auto; padding: 48px 0; }
.static-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.static-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
}
.static-content p { margin-bottom: 16px; font-size: 1.05rem; line-height: 1.8; }
.static-content .update-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

/* === CTA Section === */
.cta-section {
  background: linear-gradient(135deg, var(--primary-deep), var(--primary-dark), var(--primary));
  padding: 64px 0;
  text-align: center;
  color: #fff;
}
.cta-section h2 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.cta-section p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 28px; }
.cta-section .btn-white-lg {
  display: inline-block;
  background: #fff;
  color: var(--primary);
  padding: 14px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: transform 0.2s;
}
.cta-section .btn-white-lg:hover {
  transform: translateY(-2px);
  color: var(--primary-dark);
}

/* === Footer === */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--card-border);
  padding: 40px 0 32px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand p { color: var(--text-secondary); font-size: 0.9rem; margin-top: 8px; }
.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--primary); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px 0;
  border-top: 1px solid var(--card-border);
  margin-top: 32px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* === Social Proof Bar === */
.social-proof {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 32px 0;
  flex-wrap: wrap;
}
.proof-item { text-align: center; }
.proof-item .num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}
.proof-item .label { font-size: 0.85rem; color: var(--text-muted); }

/* === Comparison Table === */
.compare-table-wrap { overflow-x: auto; margin: 32px 0; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.compare-table th {
  background: var(--bg);
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--card-border);
}
.compare-table th:first-child { width: 180px; }
.compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--card-border);
  font-size: 0.95rem;
}
.compare-table .win { color: var(--success); font-weight: 600; }
.compare-table .lose { color: var(--text-muted); }
.compare-table .highlight-col { background: rgba(99,102,241,0.04); }

/* === Responsive === */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-left h1 { font-size: 2.2rem; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 12px 16px; gap: 8px; }
  .main-nav { gap: 16px; flex-wrap: wrap; }
  .hero-section { padding: 48px 0; }
  .hero-left h1 { font-size: 1.8rem; }
  .section { padding: 48px 0; }
  .section-header h2 { font-size: 1.6rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .social-proof { gap: 24px; }
}
