:root {
  --color-primary: #6366f1;
  --color-primary-dark: #4f46e5;
  --color-primary-light: #818cf8;
  --color-accent: #06b6d4;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-bg-dark: #0f172a;
  --color-text: #1e293b;
  --color-text-secondary: #64748b;
  --color-text-light: #94a3b8;
  --color-border: #e2e8f0;
  --color-success: #10b981;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
  --gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6);
  --gradient-soft: linear-gradient(135deg, #eef2ff, #f5f3ff);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-md: 0 10px 30px rgba(99, 102, 241, .08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .12);
  --radius-lg: 18px;
  --radius-md: 14px;
}

*, *:before, *:after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-primary-dark); }

:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; border-radius: 4px; }

::selection { background: var(--color-primary); color: #fff; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }

.logo-group { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--color-text); flex-shrink: 0; }
.logo-group img { width: 40px; height: 40px; border-radius: 11px; box-shadow: var(--shadow-sm); }
.logo-text { font-weight: 800; font-size: 18px; line-height: 1.2; white-space: nowrap; }
.logo-badge {
  display: inline-block;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: .5px;
}

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--color-text-secondary);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 9px;
  transition: all .2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--color-primary); background: #eef2ff; }

.lang-switch {
  color: var(--color-text-light);
  font-size: 13px;
  border: 1px solid var(--color-border);
  border-radius: 7px;
  padding: 5px 12px;
}
.lang-switch:hover { border-color: var(--color-primary); color: var(--color-primary); background: transparent; }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--color-text); }
.mobile-toggle svg { width: 24px; height: 24px; }

.hero { position: relative; overflow: hidden; padding: 96px 0 64px; text-align: center; background: linear-gradient(180deg, #f5f7ff, #fff 70%); }
.hero:before, .hero:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: 0;
  opacity: .55;
}
.hero:before { width: 520px; height: 520px; background: radial-gradient(circle, #c7d2fe, transparent 70%); top: -180px; left: -120px; }
.hero:after { width: 460px; height: 460px; background: radial-gradient(circle, #bae6fd, transparent 70%); top: -120px; right: -140px; }
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--color-bg-dark);
  margin-bottom: 22px;
  letter-spacing: -.02em;
}
.hero .subtitle {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--color-text-secondary);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.hero-geo {
  max-width: 720px;
  margin: 18px auto 0;
  text-align: left;
  font-size: .95rem;
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  color: var(--color-text-secondary);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(6px);
}
.hero-geo strong { color: var(--color-text); }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-img { margin: 52px auto 0; max-width: 580px; border-radius: 18px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(15, 23, 42, .04); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}
.btn-primary { background: var(--gradient-primary); color: #fff; box-shadow: 0 8px 22px rgba(99, 102, 241, .35); }
.btn-primary:hover { background: var(--gradient-primary); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(99, 102, 241, .45); filter: brightness(1.05); }
.btn-outline { background: transparent; color: var(--color-text); border: 2px solid var(--color-border); }
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); transform: translateY(-2px); }

.section { padding: 84px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 14px;
  color: var(--color-bg-dark);
  letter-spacing: -.01em;
}
.section-title:after {
  content: "";
  display: block;
  width: 52px;
  height: 4px;
  border-radius: 2px;
  background: var(--gradient-primary);
  margin: 14px auto 0;
}
.section-desc { text-align: center; color: var(--color-text-secondary); max-width: 600px; margin: 0 auto 48px; font-size: 1.05rem; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 32px 28px; transition: all .25s; box-shadow: var(--shadow-sm); }
.feature-card:hover { border-color: transparent; box-shadow: var(--shadow-md); transform: translateY(-4px); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 18px;
  background: var(--gradient-soft);
}
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--color-bg-dark); }
.feature-card p { color: var(--color-text-secondary); font-size: .95rem; line-height: 1.6; }

.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.download-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 36px 28px; text-align: center; transition: all .25s; box-shadow: var(--shadow-sm); }
.download-card:hover { border-color: transparent; box-shadow: var(--shadow-md); transform: translateY(-4px); }
.download-card .platform-icon { width: 64px; height: 64px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 40px; }
.download-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.download-card .version { color: var(--color-text-light); font-size: .85rem; margin-bottom: 20px; }
.download-btns { display: flex; flex-direction: column; gap: 10px; }
.dl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 11px; font-weight: 600; font-size: 14px;
  border: none; cursor: pointer; font-family: var(--font-sans);
  transition: all .2s; text-decoration: none;
}
.dl-btn-primary { background: var(--color-primary); color: #fff; }
.dl-btn-primary:hover { background: var(--color-primary-dark); color: #fff; transform: translateY(-1px); }
.dl-btn-secondary { background: var(--color-bg-alt); color: var(--color-text); border: 1px solid var(--color-border); }
.dl-btn-secondary:hover { border-color: var(--color-primary); color: var(--color-primary); }

.info-block {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 20px 24px;
  margin-top: 32px;
  font-size: .95rem;
  color: var(--color-text-secondary);
  text-align: center;
}

.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; font-weight: 700; margin: 48px 0 16px; color: var(--color-bg-dark); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; font-weight: 700; margin: 28px 0 10px; color: var(--color-bg-dark); }
.prose pre { background: var(--color-bg-dark); color: #e2e8f0; border-radius: 12px; padding: 18px 22px; margin: 16px 0 20px; overflow-x: auto; font-size: .88rem; line-height: 1.6; box-shadow: var(--shadow-sm); }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose code { background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: 5px; padding: 1px 6px; font-size: .88em; }
.prose p { margin-bottom: 16px; }
.prose p:first-of-type { font-size: 1.05rem; color: var(--color-text); }
.prose ul { padding-left: 24px; margin-bottom: 16px; }
.prose li { margin-bottom: 8px; }
.prose li strong { color: var(--color-bg-dark); }
.prose a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--color-primary-dark); }
.prose blockquote { border-left: 3px solid var(--color-primary); background: var(--color-bg-alt); padding: 16px 20px; margin: 24px 0; border-radius: 0 10px 10px 0; color: var(--color-text-secondary); font-size: .95rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: .95rem; box-shadow: var(--shadow-sm); border-radius: 10px; overflow: hidden; }
.prose th, .prose td { border: 1px solid var(--color-border); padding: 11px 14px; text-align: left; vertical-align: top; }
.prose thead th { background: #eef2ff; color: var(--color-bg-dark); font-weight: 700; }
.prose tbody tr:nth-child(even) { background: var(--color-bg-alt); }
.prose tbody tr:hover { background: #f1f5f9; }
.prose h5 { font-size: 1.05rem; font-weight: 700; margin: 24px 0 10px; color: var(--color-bg-dark); }
.prose h6 { font-size: 1rem; font-weight: 700; margin: 20px 0 8px; color: var(--color-bg-dark); }
.prose hr { border: none; border-top: 1px solid var(--color-border); margin: 32px 0; }

.note-card { background: linear-gradient(135deg, #fef3c7, #fefce8); border: 1px solid #fde68a; border-radius: 14px; padding: 24px 28px; margin-top: 32px; box-shadow: var(--shadow-sm); }
.note-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: #92400e; }
.note-card p { color: #78350f; font-size: .95rem; margin-bottom: 8px; }
.note-card a { color: #b45309; font-weight: 600; }

.site-footer { position: relative; background: var(--color-bg-dark); color: #94a3b8; padding: 56px 0 40px; }
.site-footer:before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-primary);
}
.footer-inner { display: grid; grid-template-columns: minmax(220px, 1.8fr) repeat(auto-fit, minmax(150px, 1fr)); gap: 40px 48px; align-items: start; }
.footer-brand { max-width: 320px; }
.footer-brand .logo-group { color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: .9rem; line-height: 1.6; }
.footer-links h4 { color: #fff; font-size: .9rem; font-weight: 700; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .05em; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #94a3b8; font-size: .9rem; transition: color .2s, padding-left .2s; }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid #1e293b; text-align: center; font-size: .85rem; }

.breadcrumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .85rem; color: var(--color-text-light); padding-top: 22px; padding-bottom: 4px; }
.breadcrumb a { color: var(--color-text-secondary); transition: color .2s; }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb .crumb-sep { color: var(--color-border); }
.breadcrumb .crumb-current { color: var(--color-text); font-weight: 600; }

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .25s;
  z-index: 90;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { filter: brightness(1.05); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(99, 102, 241, .45); }
.back-to-top svg { width: 22px; height: 22px; }

.page-hero { position: relative; padding: 72px 0 44px; text-align: center; background: linear-gradient(180deg, #f5f7ff, #fff 75%); }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--color-bg-dark); margin-bottom: 14px; letter-spacing: -.02em; }
.page-hero p { color: var(--color-text-secondary); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

.article-list { display: grid; gap: 20px; max-width: 860px; margin: 0 auto; }
.article-card { position: relative; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 24px 28px; transition: all .25s; box-shadow: var(--shadow-sm); }
.article-card:hover { border-color: transparent; box-shadow: var(--shadow-md); transform: translateY(-3px); }
.article-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; color: var(--color-bg-dark); }
.article-card h3 a { color: var(--color-bg-dark); text-decoration: none; transition: color .2s; }
.article-card h3 a:hover { color: var(--color-primary); }
.article-card h3 a:after { content: " →"; color: var(--color-text-light); opacity: 0; transition: opacity .2s, transform .2s; display: inline-block; }
.article-card:hover h3 a:after { opacity: 1; transform: translateX(3px); }
.article-card p { color: var(--color-text-secondary); font-size: .95rem; }

.faq-item { max-width: 760px; margin: 0 auto 16px; background: #fff; border: 1px solid var(--color-border); border-radius: 14px; padding: 20px 24px; box-shadow: var(--shadow-sm); transition: border-color .2s; }
.faq-item:hover { border-color: var(--color-primary-light); }
.faq-item h3 { font-size: 1.05rem; font-weight: 700; color: var(--color-bg-dark); margin-bottom: 8px; }
.faq-item p { color: var(--color-text-secondary); font-size: .95rem; }

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
  }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; text-align: center; }
  .hero { padding: 56px 0 44px; }
  .hero-img { max-width: 100%; }
  .section { padding: 52px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .header-inner { gap: 12px; }
}

.demo-frame {
  max-width: 980px;
  margin: 8px auto 36px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(15, 23, 42, .05);
  border: 1px solid var(--color-border);
  background: linear-gradient(135deg, #1e293b, #0f172a);
}
.demo-frame img { width: 100%; height: auto; display: block; }

.demo-chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 880px; margin: 0 auto; }
.demo-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--color-border);
  border-radius: 999px; padding: 9px 18px; font-size: .92rem; font-weight: 600;
  color: var(--color-text); box-shadow: var(--shadow-sm);
}
.demo-chip svg { width: 18px; height: 18px; color: var(--color-primary); flex-shrink: 0; }

.matrix-wrap { max-width: 920px; margin: 0 auto; overflow-x: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--color-border); }
.version-matrix { width: 100%; border-collapse: collapse; min-width: 520px; font-size: .95rem; }
.version-matrix th, .version-matrix td { border-bottom: 1px solid var(--color-border); padding: 14px 18px; text-align: left; }
.version-matrix thead th { background: #eef2ff; color: var(--color-bg-dark); font-weight: 700; }
.version-matrix tbody tr:last-child td { border-bottom: none; }
.version-matrix tbody tr:hover { background: var(--color-bg-alt); }
.dl-table-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gradient-primary); color: #fff; font-weight: 600; font-size: .9rem;
  padding: 8px 18px; border-radius: 9px; text-decoration: none; transition: all .2s;
}
.dl-table-btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(99, 102, 241, .35); filter: brightness(1.05); }

.list-toolbar { max-width: 860px; margin: 0 auto 28px; }
.list-search {
  width: 100%; padding: 13px 18px; font-size: 1rem; font-family: var(--font-sans);
  border: 1px solid var(--color-border); border-radius: 12px; background: #fff; color: var(--color-text);
  box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s;
}
.list-search:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, .15); }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 32px; }
.page-btn {
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--color-border); background: #fff; color: var(--color-text-secondary);
  font-size: .92rem; font-weight: 600; cursor: pointer; transition: all .2s;
}
.page-btn:hover:not(:disabled) { border-color: var(--color-primary); color: var(--color-primary); }
.page-btn.active { background: var(--gradient-primary); color: #fff; border-color: transparent; }
.page-btn:disabled { opacity: .45; cursor: default; }
.article-card.hidden { display: none; }

@media (max-width: 768px) {
  .demo-frame { margin: 4px auto 24px; }
  .demo-chips { gap: 8px; }
  .demo-chip { font-size: .85rem; padding: 7px 14px; }
}

.popup-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15, 23, 42, .55); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.popup-overlay.active { opacity: 1; visibility: visible; }
.popup {
  background: #fff; border-radius: var(--radius-lg); padding: 34px 30px; text-align: center;
  max-width: 360px; width: calc(100% - 40px); box-shadow: var(--shadow-lg);
  transform: translateY(12px); transition: transform .2s;
}
.popup-overlay.active .popup { transform: translateY(0); }
.popup-ic {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-soft); color: var(--color-primary);
}
.popup-ic svg { width: 28px; height: 28px; }
.popup h3 { font-size: 1.2rem; font-weight: 700; color: var(--color-bg-dark); margin-bottom: 10px; }
.popup p { color: var(--color-text-secondary); font-size: .95rem; margin-bottom: 22px; }
.popup-btns { display: flex; gap: 12px; justify-content: center; }

.friend-links { background: var(--color-bg-alt); }
.friend-links .section-title { text-align: left; margin-bottom: 22px; }
.friend-links .section-title:after { margin: 14px 0 0; }
.friend-links-list { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.friend-links-list a {
  font-weight: 600; color: var(--color-primary);
  padding: 7px 16px; border: 1px solid var(--color-border);
  border-radius: 999px; background: #fff; transition: all .2s;
}
.friend-links-list a:hover { border-color: var(--color-primary); color: var(--color-primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* Guide page */
.guide-hub-title { font-size: 1.6rem; font-weight: 800; color: var(--color-bg-dark); margin: 0 0 8px; }
.guide-hub-sub { color: var(--color-text-secondary); margin: 0 0 32px; }
.guide-cluster { margin-bottom: 36px; }
.guide-cluster:last-child { margin-bottom: 0; }
.guide-cluster-title { font-size: 1.15rem; font-weight: 700; color: var(--color-bg-dark); margin: 0 0 16px; padding-left: 12px; border-left: 4px solid var(--color-primary); }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.guide-card { display: block; padding: 20px; border-radius: 12px; border: 1px solid var(--color-border); background: #fff; text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s; }
.guide-card:hover { border-color: var(--color-primary-light); box-shadow: 0 4px 16px rgba(79, 70, 229, .08); }
.guide-cat { display: inline-block; font-size: .72rem; font-weight: 700; color: var(--color-primary); background: #eef2ff; padding: 3px 10px; border-radius: 6px; margin-bottom: 10px; }
.guide-card strong { display: block; font-size: 1rem; color: var(--color-bg-dark); margin-bottom: 8px; line-height: 1.4; }
.guide-card p { font-size: .85rem; color: var(--color-text-secondary); margin: 0; line-height: 1.5; }
.guide-cta { margin-top: 28px; padding: 18px 22px; border-radius: 12px; background: #eef2ff; text-align: center; font-weight: 600; }
.guide-cta a { color: var(--color-primary); text-decoration: none; }
.guide-cta a:hover { text-decoration: underline; }
.guide-layout { display: block; }
.guide-toc { background: #fff; border: 1px solid var(--color-border); border-radius: 12px; padding: 18px 20px; }
.guide-toc-title { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--color-text-secondary); margin: 0 0 12px; }
.guide-toc ul { list-style: none; margin: 0; padding: 0; }
.guide-toc li { margin: 0; }
.guide-toc li a { display: block; padding: 6px 0; color: var(--color-text); text-decoration: none; font-size: .92rem; border-bottom: 1px solid var(--color-border); }
.guide-toc li:last-child a { border-bottom: none; }
.guide-toc li a:hover { color: var(--color-primary); }
.guide-toc li.toc-sub a { padding-left: 14px; font-size: .86rem; color: var(--color-text-secondary); }
.guide-prose { max-width: none; }
@media (min-width: 980px) {
  .guide-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
  .guide-toc { position: sticky; top: 96px; }
}

.article-hero {
  position: relative;
  padding: 64px 0 40px;
  background: linear-gradient(180deg, #f5f7ff, #fff 80%);
  border-bottom: 1px solid var(--color-border);
}
.article-hero .container { max-width: 820px; }
.article-cat {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  color: var(--color-primary);
  background: #eef2ff;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  letter-spacing: .3px;
}
.article-hero h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--color-bg-dark);
  margin-bottom: 16px;
  letter-spacing: -.02em;
}
.article-content { padding-top: 8px; }

.cta-box {
  background: var(--gradient-soft);
  border: 1px solid #c7d2fe;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-align: center;
  margin: 8px 0 40px;
  box-shadow: var(--shadow-sm);
}
.cta-box h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-bg-dark);
  margin-bottom: 10px;
}
.cta-box p {
  color: var(--color-text-secondary);
  margin: 0 auto 22px;
  max-width: 560px;
}
.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.related-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-bg-dark);
  margin-bottom: 18px;
}
.related-list { list-style: none; padding: 0; }
.related-list li { margin-bottom: 12px; }
.related-list a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}
.related-list a:hover { text-decoration: underline; }

.back-link { margin-top: 28px; }
.back-link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-secondary);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
}
.back-link a:hover { color: var(--color-primary); }

@media (max-width: 600px) {
  .article-hero { padding: 44px 0 28px; }
  .cta-box { padding: 28px 22px; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; text-align: center; }
}
