/* ==========================================================================
   QtScrcpy 官网 - 共享样式表
   纯静态多页面网站
   ========================================================================== */

:root {
  /* 配色 */
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-alt: #eef2f8;
  --surface-dark: #0f172a;
  --text: #0f172a;
  --text-secondary: #51607a;
  --text-muted: #8a94a8;
  --border: #e2e8f0;
  --border-dark: #cbd5e1;

  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  --accent: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* 尺寸 */
  --nav-height: 64px;
  --radius: 12px;
  --radius-lg: 16px;
  --container: 1120px;

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, .08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, .12);

  /* 字体 */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC",
          "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", Consolas, "Courier New", monospace;
}

/* ---------- 基础重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color .2s;
}

a:hover {
  color: var(--primary-dark);
}

ul,
ol {
  list-style: none;
}

code,
kbd {
  font-family: var(--font-mono);
  font-size: .9em;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .1em .45em;
}

kbd {
  background: var(--surface);
  border-bottom-width: 2.5px;
  font-size: .82em;
  white-space: nowrap;
}

main {
  flex: 1;
}

/* ---------- 布局工具 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-head .eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.section-head p {
  color: var(--text-secondary);
  margin-top: 14px;
}

/* ---------- 导航栏 ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
}

.logo:hover {
  color: var(--text);
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .24);
  flex-shrink: 0;
}

.logo-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color .2s, background .2s;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface-alt);
}

.nav-links a.active {
  color: var(--primary);
  background: rgba(37, 99, 235, .08);
  font-weight: 600;
}

.nav-download-mobile {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-ghost {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: .92rem;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--surface-alt);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  place-items: center;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
  stroke: var(--text);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: .98rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, .32);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, .4);
}

.btn-outline {
  background: #eef4ff;
  color: var(--text);
  border-color: #c9d9f7;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #e3eeff;
}

/* 深色背景上的次级按钮：半透明白色毛玻璃 */
.btn-outline-light {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border-color: rgba(255, 255, 255, .45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, .24);
  color: #fff;
  border-color: rgba(255, 255, 255, .65);
}

.btn-dark {
  background: var(--surface-dark);
  color: #fff;
}

.btn-dark:hover {
  color: #fff;
  background: #1e293b;
}

/* 网盘下载主按钮：醒目橙色渐变，突出转化入口 */
.btn-pan {
  background: linear-gradient(135deg, #f97316 0%, #f59e0b 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(249, 115, 22, .35);
  animation: pan-pulse 2.6s ease-in-out infinite;
}

.btn-pan:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(249, 115, 22, .5);
}

@keyframes pan-pulse {
  0%, 100% { box-shadow: 0 6px 18px rgba(249, 115, 22, .35); }
  50% { box-shadow: 0 6px 30px rgba(249, 115, 22, .6); }
}

.btn-sm {
  padding: 8px 14px;
  font-size: .88rem;
}

/* ---------- 英雄区（页面顶部横幅） ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(59, 130, 246, .55), transparent 60%),
    radial-gradient(800px 400px at 88% 10%, rgba(6, 182, 212, .5), transparent 55%),
    linear-gradient(150deg, #0b1220 0%, #0f1b33 55%, #10233f 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  padding-top: 92px;
  padding-bottom: 96px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: .85rem;
  color: rgba(255, 255, 255, .9);
  margin-bottom: 28px;
  backdrop-filter: blur(4px);
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .3);
}

.hero h1 {
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
  margin-bottom: 22px;
}

.hero h1 .grad {
  background: linear-gradient(120deg, #7dd3fc, #22d3ee 55%, #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, .78);
  max-width: 680px;
  margin: 0 auto 34px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-actions-equal .btn {
  width: 168px;
  justify-content: center;
}

.hero-meta {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, .6);
  font-size: .92rem;
}

.hero-meta a {
  color: rgba(255, 255, 255, .75);
}

.hero-meta a:hover {
  color: #7dd3fc;
}

.product-preview {
  max-width: 1080px;
  margin: 48px auto 0;
  padding: 10px 10px 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 18px;
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 30px 80px rgba(2, 8, 23, .48);
  backdrop-filter: blur(8px);
}

.product-preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.product-preview figcaption {
  padding: 10px 8px 12px;
  color: rgba(255, 255, 255, .68);
  font-size: .84rem;
  text-align: center;
}

/* ---------- 数据统计条 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 20px;
  margin-top: -56px;
  position: relative;
  z-index: 5;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
  border-radius: 11px;
  background: rgba(37, 99, 235, .1);
  display: grid;
  place-items: center;
}

.stat-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
}

.stat-card .num {
  font-size: 2rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -.02em;
}

.stat-card .label {
  font-size: .86rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ---------- 特性卡片网格 ---------- */
.grid {
  display: grid;
  gap: 22px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  text-align: center;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-dark);
}

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: rgba(37, 99, 235, .1);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
}

.card .icon svg {
  width: 23px;
  height: 23px;
  stroke: var(--primary);
}

.card .icon.green { background: rgba(16, 185, 129, .12); }
.card .icon.green svg { stroke: var(--success); }
.card .icon.cyan { background: rgba(6, 182, 212, .12); }
.card .icon.cyan svg { stroke: var(--accent); }
.card .icon.orange { background: rgba(245, 158, 11, .13); }
.card .icon.orange svg { stroke: var(--warning); }
.card .icon.purple { background: rgba(129, 140, 248, .13); }
.card .icon.purple svg { stroke: #818cf8; }

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

/* 卡片内需保持左对齐的内容（代码块、列表、键码标签） */
.card .code-block,
.card ul,
.card ol,
.card .kbd-list {
  text-align: left;
}

.card p {
  color: var(--text-secondary);
  font-size: .94rem;
}

/* ---------- 步骤（教程） ---------- */
.steps {
  display: grid;
  gap: 18px;
}

.step {
  display: flex;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.step-num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--primary-gradient);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  box-shadow: 0 4px 10px rgba(37, 99, 235, .28);
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.step p {
  color: var(--text-secondary);
  font-size: .94rem;
}

/* ---------- 表格 ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .94rem;
  min-width: 560px;
}

thead {
  background: var(--surface-alt);
}

th {
  text-align: left;
  padding: 14px 20px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

td {
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: #fafbfe;
}

td strong {
  color: var(--text);
}

/* ---------- FAQ 手风琴 ---------- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s;
}

.faq-item.open {
  border-color: rgba(37, 99, 235, .4);
  box-shadow: var(--shadow-md);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 22px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  font-family: var(--font);
}

.faq-q .tag {
  flex-shrink: 0;
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .1);
  color: var(--primary);
  margin-right: 8px;
  letter-spacing: .04em;
}

.faq-q .arrow {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  transition: transform .25s;
  color: var(--text-muted);
}

.faq-item.open .arrow {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.faq-a-inner {
  padding: 0 22px 20px;
  color: var(--text-secondary);
  font-size: .95rem;
}

.faq-a-inner p + p {
  margin-top: 10px;
}

.faq-a-inner ol {
  list-style: decimal;
  padding-left: 20px;
  margin-top: 8px;
}

.faq-a-inner ol li {
  margin-top: 4px;
}

/* ---------- 代码块 ---------- */
.code-block {
  background: #0f172a;
  border-radius: var(--radius);
  padding: 18px 20px;
  overflow-x: auto;
  margin: 14px 0;
}

.code-block code {
  background: none;
  border: none;
  color: #7dd3fc;
  font-size: .9rem;
  padding: 0;
}

.code-block .cmt { color: #64748b; }

/* ---------- 提示框 ---------- */
.callout {
  display: flex;
  gap: 12px;
  background: rgba(37, 99, 235, .06);
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: .94rem;
  color: var(--text-secondary);
  margin: 16px 0;
}

.callout svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.callout.success {
  background: rgba(16, 185, 129, .06);
  border-color: rgba(16, 185, 129, .22);
}

.callout.success svg { stroke: var(--success); }

.callout.warning {
  background: rgba(245, 158, 11, .07);
  border-color: rgba(245, 158, 11, .25);
}

.callout.warning svg { stroke: var(--warning); }

.download-warning {
  width: fit-content;
  max-width: 100%;
  margin: 28px auto 0;
}

/* ---------- 教程文章 ---------- */
.tutorial-card {
  display: flex;
  flex-direction: column;
}

.tutorial-card p {
  flex: 1;
  margin-bottom: 22px;
}

.tutorial-card .btn {
  align-self: center;
}

.article-meta {
  display: block;
  margin-bottom: 12px;
  color: var(--primary);
  font-size: .8rem;
  font-weight: 700;
}

.article-wrap {
  max-width: 860px;
  margin: 0 auto;
}

.article-breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, .62);
  font-size: .9rem;
}

.article-breadcrumb a {
  color: #7dd3fc;
}

.article-content {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.85;
}

.article-content > h2 {
  margin: 46px 0 16px;
  color: var(--text);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  line-height: 1.3;
}

.article-content > h2:first-child {
  margin-top: 0;
}

.article-content h3 {
  margin: 26px 0 10px;
  color: var(--text);
  font-size: 1.12rem;
}

.article-content .step h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.article-content .step p {
  margin: 0;
}

.tutorial-figure {
  margin: 24px 0 32px;
}

.tutorial-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .1);
}

.tutorial-figure figcaption {
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: .9rem;
  line-height: 1.6;
  text-align: center;
}

#project-info,
#project-info-card {
  scroll-margin-top: 90px;
}

.project-info-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px;
  text-align: center;
}

.project-info-card p {
  margin: 10px auto 24px;
  max-width: 620px;
}

.article-content p + p,
.article-content ul + p,
.article-content ol + p {
  margin-top: 14px;
}

.article-content ul,
.article-content ol {
  margin: 14px 0;
  padding-left: 24px;
}

.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }

.article-content li + li {
  margin-top: 8px;
}

.article-content .steps {
  margin: 20px 0;
}

.article-source {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .88rem;
}

.article-source a {
  color: var(--primary);
}

/* ---------- 下载卡片 ---------- */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.dl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}

.dl-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.dl-card .os-icon {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  background: var(--surface-alt);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
}

.dl-card .os-icon svg,
.dl-card .os-icon img {
  width: 28px;
  height: 28px;
}

.dl-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
}

.dl-card .sub {
  color: var(--text-secondary);
  font-size: .9rem;
  margin: 4px 0 18px;
}

.dl-card .dl-actions {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.dl-card .dl-actions .btn {
  width: 100%;
}

.dl-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--primary-gradient);
  color: #fff;
}

/* ---------- 徽章 / 平台图标行 ---------- */
.platform-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--text);
}

.platform-chip svg {
  width: 20px;
  height: 20px;
}

/* ---------- 键码标签 ---------- */
.keymap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.kbd-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- 关于页 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.community-card {
  text-align: center;
  padding: 32px 26px;
}

.community-card .icon {
  margin: 0 auto 16px;
}

.community-card h3 {
  margin-bottom: 6px;
}

.community-card p {
  font-size: .92rem;
  margin-bottom: 16px;
}

/* ---------- CTA 横幅 ---------- */
.cta-banner {
  background:
    radial-gradient(700px 300px at 15% 120%, rgba(59, 130, 246, .4), transparent 60%),
    radial-gradient(600px 300px at 85% -20%, rgba(6, 182, 212, .35), transparent 55%),
    linear-gradient(150deg, #0b1220, #10233f);
  border-radius: var(--radius-lg);
  color: #fff;
  padding: 56px 40px;
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-banner p {
  color: rgba(255, 255, 255, .75);
  max-width: 560px;
  margin: 0 auto 28px;
}

/* ---------- 页脚 ---------- */
.footer {
  background: var(--surface-dark);
  color: #94a3b8;
  padding: 56px 0 32px;
  margin-top: auto;
}

.footer > .container {
  display: grid;
  grid-template-columns: minmax(250px, 1.15fr) minmax(0, 3fr);
  column-gap: 64px;
  align-items: start;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  padding-bottom: 0;
  border-bottom: none;
}

.footer-brand-wide {
  display: block;
  margin-bottom: 0;
}

.footer-brand-wide p {
  max-width: 280px;
  text-align: left;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: .9rem;
  max-width: 300px;
}

.footer h4 {
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-col li + li {
  margin-top: 10px;
}

.footer-col a {
  color: #94a3b8;
  font-size: .9rem;
}

.footer-col a:hover {
  color: #7dd3fc;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 28px;
  font-size: .85rem;
  text-align: center;
}

.footer-bottom a {
  color: #94a3b8;
}

/* ---------- 滚动淡入动画 ---------- */
.reveal-init {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal-init.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .nav-toggle {
    display: grid;
  }

  .nav-actions > .btn {
    display: none;
  }

  .nav-links {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 12px 24px 20px;
    gap: 2px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform .25s, opacity .25s, visibility .25s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    padding: 12px 14px;
  }

  .nav-links .nav-download-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    color: #fff;
    background: var(--primary-gradient);
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(37, 99, 235, .24);
  }

  .nav-links .nav-download-mobile:hover,
  .nav-links .nav-download-mobile.active {
    color: #fff;
    background: var(--primary-gradient);
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer > .container {
    display: block;
  }

  .footer-brand-wide {
    margin-bottom: 34px;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 52px 0;
  }

  .grid-3,
  .grid-4,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero .container {
    padding-top: 64px;
    padding-bottom: 72px;
  }

  .hero-meta {
    gap: 16px;
  }

  .nav-actions .btn-ghost {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand-wide {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-brand-wide p {
    text-align: left;
  }

  .project-info-card .btn {
    width: 100%;
    text-align: center;
  }

  .stats {
    margin-top: -40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
