/* ============================================
   Godot Engine 中文官网 - 主样式表
   配色：经典蓝白 (主色#478CBF + 深灰#414042 + 白底)
   风格：扁平、现代、专业
   ============================================ */

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* 主题色 */
  --c-primary: #478CBF;
  --c-primary-dark: #3576a3;
  --c-primary-light: #6ba6d2;
  --c-primary-soft: #e8f2fb;
  --c-primary-softer: #f5f9fc;

  /* 中性色 */
  --c-text: #414042;
  --c-text-light: #6d6e71;
  --c-text-muted: #9aa0a6;
  --c-bg: #ffffff;
  --c-bg-alt: #f8f9fb;
  --c-bg-dim: #f1f3f5;
  --c-border: #e3e7eb;
  --c-border-light: #eef1f4;

  /* 语义色 */
  --c-success: #2e9e6b;
  --c-warning: #d9a441;
  --c-danger: #d35d47;

  /* 字体 */
  --font-sans: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "Source Code Pro", "Cascadia Code", Menlo, Consolas, monospace;

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(65,64,66,.04), 0 1px 3px rgba(65,64,66,.06);
  --shadow-md: 0 4px 6px rgba(65,64,66,.05), 0 2px 4px rgba(65,64,66,.04);
  --shadow-lg: 0 10px 25px rgba(65,64,66,.08), 0 4px 10px rgba(65,64,66,.04);
  --shadow-xl: 0 20px 50px rgba(65,64,66,.12), 0 8px 20px rgba(65,64,66,.06);

  /* 圆角 */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-full: 999px;

  /* 间距系统 */
  --container: 1240px;
  --gutter: 24px;

  /* 过渡 */
  --t-fast: .15s ease;
  --t-base: .25s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--c-primary-dark); }

/* ===== Layout Helpers ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 96px 0;
}

.section-sm {
  padding: 64px 0;
}

.section-bg-alt {
  background: var(--c-bg-alt);
}

.section-bg-soft {
  background: var(--c-primary-soft);
}

.section-bg-dark {
  background: #2a3a4a;
  color: #fff;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-text);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.7rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1em; color: var(--c-text); }
p:last-child { margin-bottom: 0; }

.text-muted { color: var(--c-text-light); }
.text-small { font-size: 0.875rem; }
.text-mono { font-family: var(--font-mono); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 12px;
  padding: 4px 12px;
  background: var(--c-primary-soft);
  border-radius: var(--r-full);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--c-text-light);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  border: 1.5px solid transparent;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--t-base);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}
.btn-primary:hover {
  background: var(--c-primary-dark);
  border-color: var(--c-primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: #fff;
  color: var(--c-primary);
  border-color: var(--c-border);
}
.btn-secondary:hover {
  background: var(--c-primary-soft);
  border-color: var(--c-primary);
  color: var(--c-primary-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--c-text);
  border-color: var(--c-border);
}
.btn-ghost:hover {
  background: var(--c-bg-alt);
  border-color: var(--c-text-muted);
  color: var(--c-text);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-border-light);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--c-text);
  font-weight: 700;
  font-size: 1.15rem;
}

.navbar-brand:hover { color: var(--c-primary); }

.navbar-brand img {
  height: 32px;
  width: auto;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.navbar-nav a {
  display: inline-block;
  padding: 8px 14px;
  color: var(--c-text);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--r-md);
  transition: all var(--t-fast);
}

.navbar-nav a:hover {
  background: var(--c-primary-soft);
  color: var(--c-primary);
}

.navbar-nav a.active {
  color: var(--c-primary);
  font-weight: 600;
}

.navbar-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.navbar-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--c-text);
  position: relative;
  transition: all var(--t-fast);
}

.navbar-toggle span::before,
.navbar-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--c-text);
  transition: all var(--t-fast);
}

.navbar-toggle span::before { top: -6px; }
.navbar-toggle span::after { top: 6px; }

.navbar-toggle.active span { background: transparent; }
.navbar-toggle.active span::before { top: 0; transform: rotate(45deg); }
.navbar-toggle.active span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 980px) {
  .navbar-toggle { display: inline-flex; }
  .navbar-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 16px var(--gutter) 24px;
    border-bottom: 1px solid var(--c-border);
    gap: 4px;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--t-base);
  }
  .navbar-nav.open {
    max-height: 80vh;
    overflow-y: auto;
  }
  .navbar-nav a {
    padding: 12px 14px;
    border-radius: var(--r-md);
  }
  .navbar-cta .btn-secondary { display: none; }
}

/* ===== Footer ===== */
.footer {
  background: #2a3a4a;
  color: #cdd6df;
  padding: 72px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand img {
  height: 36px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  color: #9aa7b3;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col h5 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: #cdd6df;
  font-size: 0.9rem;
  transition: color var(--t-fast);
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #3d4f61;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: #9aa7b3;
}

.footer-bottom a {
  color: #9aa7b3;
  margin-left: 16px;
}

.footer-bottom a:hover { color: #fff; }

/* ===== Hero (通用) ===== */
.hero {
  position: relative;
  padding: 96px 0 80px;
  background:
    radial-gradient(circle at 80% 20%, rgba(71,140,191,.12), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(71,140,191,.08), transparent 40%),
    var(--c-bg);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

.hero-content h1 {
  margin-bottom: 24px;
}

.hero-content .lead {
  font-size: 1.2rem;
  color: var(--c-text-light);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--c-text-light);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
}

/* ===== Stats ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

.stat-card {
  text-align: center;
  padding: 32px 16px;
  background: #fff;
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-lg);
  transition: all var(--t-base);
}

.stat-card:hover {
  border-color: var(--c-primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-num {
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--c-primary);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--c-text-light);
}

/* ===== Feature Grid ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 920px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
}

.feature-card {
  padding: 32px 28px;
  background: #fff;
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-lg);
  transition: all var(--t-base);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-card:hover {
  border-color: var(--c-primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-primary-soft);
  border-radius: var(--r-md);
  color: var(--c-primary);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--c-primary);
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--c-text-light);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ===== Use Cases / Scenarios ===== */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (max-width: 760px) {
  .scenario-grid { grid-template-columns: 1fr; }
}

.scenario-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-lg);
  transition: all var(--t-base);
}

.scenario-card:hover {
  border-color: var(--c-primary-light);
  box-shadow: var(--shadow-md);
}

.scenario-visual {
  width: 120px;
  height: 120px;
  background: var(--c-primary-soft);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-primary);
}

.scenario-visual svg {
  width: 56px;
  height: 56px;
  stroke: var(--c-primary);
}

.scenario-content h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.scenario-content p {
  color: var(--c-text-light);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.scenario-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--c-bg-dim);
  color: var(--c-text-light);
  border-radius: var(--r-full);
}

.tag-primary {
  background: var(--c-primary-soft);
  color: var(--c-primary);
}

/* ===== Testimonials ===== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 920px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

.testimonial-card {
  padding: 32px 28px;
  background: #fff;
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.testimonial-card::before {
  content: "";
  position: absolute;
  top: 20px;
  right: 28px;
  width: 36px;
  height: 36px;
  background: var(--c-primary-soft);
  border-radius: var(--r-full);
  opacity: 0.6;
}

.testimonial-quote {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-text);
  position: relative;
  z-index: 1;
}

.testimonial-quote::before {
  content: """;
  font-size: 3rem;
  color: var(--c-primary);
  font-family: Georgia, serif;
  line-height: 0;
  margin-right: 4px;
  vertical-align: -0.4em;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--c-border-light);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--r-full);
  background: var(--c-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  flex-shrink: 0;
}

.testimonial-info strong {
  display: block;
  font-size: 0.95rem;
  color: var(--c-text);
}

.testimonial-info span {
  font-size: 0.85rem;
  color: var(--c-text-light);
}

/* ===== Version Card ===== */
.version-banner {
  background: linear-gradient(135deg, #478CBF 0%, #3576a3 100%);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.version-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,.1), transparent 70%);
  pointer-events: none;
}

@media (max-width: 760px) {
  .version-banner {
    grid-template-columns: 1fr;
    padding: 32px;
  }
}

.version-banner .eyebrow {
  background: rgba(255,255,255,.15);
  color: #fff;
}

.version-banner h2 {
  color: #fff;
  margin-bottom: 16px;
}

.version-banner p {
  color: rgba(255,255,255,.9);
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.version-banner .btn-primary {
  background: #fff;
  color: var(--c-primary);
  border-color: #fff;
}

.version-banner .btn-primary:hover {
  background: var(--c-primary-soft);
}

.version-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.version-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
}

.version-highlights li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  margin-top: 9px;
  flex-shrink: 0;
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: var(--c-primary-soft);
  border-radius: var(--r-xl);
  padding: 64px 48px;
  text-align: center;
}

.cta-banner h2 {
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: 1.1rem;
  color: var(--c-text-light);
  margin-bottom: 32px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Page Header (内页通用) ===== */
.page-header {
  padding: 80px 0 56px;
  background:
    radial-gradient(circle at 80% 30%, rgba(71,140,191,.1), transparent 50%),
    var(--c-bg-alt);
  border-bottom: 1px solid var(--c-border-light);
}

.page-header h1 {
  margin-bottom: 16px;
}

.page-header p {
  font-size: 1.15rem;
  color: var(--c-text-light);
  max-width: 720px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--c-text-muted);
  margin-bottom: 20px;
}

.breadcrumb a { color: var(--c-text-light); }
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb-sep { color: var(--c-text-muted); }

/* ===== Download Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28,40,55,.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--t-base);
}

.modal-overlay.open {
  display: flex;
  opacity: 1;
}

.modal {
  background: #fff;
  border-radius: var(--r-xl);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px);
  transition: transform var(--t-base);
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  border-bottom: 1px solid var(--c-border-light);
}

.modal-header h3 {
  font-size: 1.3rem;
  margin: 0;
}

.modal-close {
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-light);
  transition: all var(--t-fast);
}

.modal-close:hover {
  background: var(--c-bg-alt);
  color: var(--c-text);
}

.modal-body {
  padding: 32px;
}

.modal-tabs {
  display: flex;
  gap: 4px;
  background: var(--c-bg-alt);
  padding: 4px;
  border-radius: var(--r-md);
  margin-bottom: 24px;
}

.modal-tab {
  flex: 1;
  padding: 10px 16px;
  background: transparent;
  border: none;
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-text-light);
  cursor: pointer;
  transition: all var(--t-fast);
}

.modal-tab.active {
  background: #fff;
  color: var(--c-primary);
  box-shadow: var(--shadow-sm);
}

.qr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 520px) {
  .qr-grid { grid-template-columns: 1fr; }
}

.qr-card {
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 24px;
  text-align: center;
  transition: all var(--t-base);
}

.qr-card:hover {
  border-color: var(--c-primary-light);
  box-shadow: var(--shadow-md);
}

.qr-img {
  width: 180px;
  height: 180px;
  margin: 0 auto 16px;
  background: #fff;
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-md);
  padding: 12px;
}

.qr-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-card h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.qr-card p {
  font-size: 0.85rem;
  color: var(--c-text-light);
  margin-bottom: 16px;
}

.platform-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.platform-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--c-primary-soft);
  color: var(--c-primary);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: var(--r-full);
}

.modal-footer-note {
  background: var(--c-bg-alt);
  border-radius: var(--r-md);
  padding: 16px 20px;
  font-size: 0.875rem;
  color: var(--c-text-light);
  line-height: 1.7;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.modal-footer-note svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  stroke: var(--c-primary);
}

/* ===== Download Page Specific ===== */
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 64px;
}

@media (max-width: 760px) {
  .download-grid { grid-template-columns: 1fr; }
}

.download-card {
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  background: #fff;
  position: relative;
  transition: all var(--t-base);
}

.download-card:hover {
  border-color: var(--c-primary-light);
  box-shadow: var(--shadow-lg);
}

.download-card.recommended {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 4px var(--c-primary-soft);
}

.download-badge {
  position: absolute;
  top: -12px;
  right: 32px;
  background: var(--c-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--r-full);
}

.download-version {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.download-version .ver-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--c-text);
  letter-spacing: -0.02em;
}

.download-version .ver-tag {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--c-text-light);
}

.download-card .release-date {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  margin-bottom: 20px;
}

.download-card .desc {
  color: var(--c-text-light);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.platform-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--c-text);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--t-fast);
  text-align: left;
}

.platform-btn:hover {
  border-color: var(--c-primary);
  background: var(--c-primary-soft);
  color: var(--c-primary);
}

.platform-btn svg {
  width: 20px;
  height: 20px;
  stroke: var(--c-text-light);
  flex-shrink: 0;
}

.platform-btn:hover svg { stroke: var(--c-primary); }

.platform-btn span {
  display: flex;
  flex-direction: column;
}

.platform-btn small {
  font-size: 0.75rem;
  color: var(--c-text-muted);
  font-weight: 400;
}

/* ===== Showcase Grid ===== */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 920px) {
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .showcase-grid { grid-template-columns: 1fr; }
}

.showcase-card {
  background: #fff;
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--t-base);
  display: flex;
  flex-direction: column;
}

.showcase-card:hover {
  border-color: var(--c-primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.showcase-cover {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--c-primary-soft), var(--c-bg-dim));
  position: relative;
  overflow: hidden;
}

.showcase-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-cover .genre-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255,255,255,.95);
  color: var(--c-text);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--r-full);
  backdrop-filter: blur(8px);
}

.showcase-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.showcase-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.showcase-body p {
  color: var(--c-text-light);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.showcase-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--c-border-light);
  font-size: 0.85rem;
  color: var(--c-text-light);
}

.showcase-meta strong {
  color: var(--c-primary);
  font-weight: 600;
}

/* ===== Resource / Learn ===== */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 920px) {
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .resource-grid { grid-template-columns: 1fr; }
}

.resource-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-lg);
  transition: all var(--t-base);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.resource-card:hover {
  border-color: var(--c-primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.resource-card .icon {
  width: 44px;
  height: 44px;
  background: var(--c-primary-soft);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-primary);
}

.resource-card .icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--c-primary);
}

.resource-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.resource-card p {
  color: var(--c-text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

.resource-link {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ===== Tutorial Steps ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

@media (max-width: 920px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .steps-grid { grid-template-columns: 1fr; }
}

.step-card {
  position: relative;
  padding: 32px 24px 28px;
  background: #fff;
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-lg);
  counter-increment: step;
}

.step-card::before {
  content: counter(step, decimal-leading-zero);
  display: inline-block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--c-primary-soft);
  line-height: 1;
  margin-bottom: 16px;
  font-family: var(--font-mono);
}

.step-card h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.step-card p {
  color: var(--c-text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===== Community Channels ===== */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

@media (max-width: 920px) {
  .channel-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .channel-grid { grid-template-columns: 1fr; }
}

.channel-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-lg);
  transition: all var(--t-base);
}

.channel-card:hover {
  border-color: var(--c-primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.channel-icon {
  width: 44px;
  height: 44px;
  background: var(--c-primary-soft);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--c-primary);
}

.channel-info h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.channel-info p {
  color: var(--c-text-light);
  font-size: 0.875rem;
  margin-bottom: 8px;
}

.channel-info .channel-meta {
  font-size: 0.8rem;
  color: var(--c-text-muted);
  display: flex;
  gap: 12px;
}

/* ===== Timeline (About) ===== */
.timeline {
  position: relative;
  padding-left: 32px;
  max-width: 760px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: var(--c-border);
}

.timeline-item {
  position: relative;
  padding-bottom: 40px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: #fff;
  border: 2px solid var(--c-primary);
  border-radius: 50%;
}

.timeline-item .year {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-primary);
  margin-bottom: 6px;
}

.timeline-item h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.timeline-item p {
  color: var(--c-text-light);
  font-size: 0.95rem;
}

/* ===== License Block ===== */
.license-block {
  background: var(--c-bg-alt);
  border-left: 4px solid var(--c-primary);
  border-radius: var(--r-md);
  padding: 24px 28px;
  margin: 32px 0;
}

.license-block h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.license-block p {
  font-size: 0.9rem;
  color: var(--c-text-light);
  margin: 0;
}

/* ===== Team Grid ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 920px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
}

.team-card {
  text-align: center;
  padding: 28px 20px;
  background: #fff;
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-lg);
}

.team-avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
}

.team-card h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.team-card .role {
  font-size: 0.85rem;
  color: var(--c-primary);
  font-weight: 500;
  margin-bottom: 8px;
}

.team-card p {
  font-size: 0.825rem;
  color: var(--c-text-light);
  line-height: 1.55;
}

/* ===== Code Block ===== */
.code-block {
  background: #2a3a4a;
  color: #e6edf3;
  padding: 20px 24px;
  border-radius: var(--r-md);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.7;
  overflow-x: auto;
  margin: 24px 0;
}

.code-block .kw { color: #ff7b72; }
.code-block .fn { color: #d2a8ff; }
.code-block .str { color: #a5d6ff; }
.code-block .com { color: #8b949e; }

/* ===== Two-Column Layout ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 880px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
}

.content-block h2 {
  margin-bottom: 16px;
}

.content-block p {
  color: var(--c-text-light);
  margin-bottom: 16px;
}

.content-block ul {
  list-style: none;
  margin: 16px 0;
}

.content-block ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--c-text);
}

.content-block ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--c-primary);
  border-bottom: 2px solid var(--c-primary);
  transform: rotate(-45deg);
}

/* ===== Search Bar ===== */
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
  max-width: 480px;
  margin: 32px auto 0;
  transition: all var(--t-fast);
}

.search-bar:focus-within {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 4px var(--c-primary-soft);
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--c-text);
}

.search-bar svg {
  width: 18px;
  height: 18px;
  stroke: var(--c-text-light);
}

/* ===== Animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp .6s ease both;
}

.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== Utility ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.flex-wrap { flex-wrap: wrap; }
