/* =====================================================================
   weifeng.xyz 全新主页 · 全站样式
   设计语言：Apple Design（苹果风）— 简约、精致、留白
   作者：weifeng.xyz
   说明：
   - 所有颜色通过 CSS 变量定义，由 [data-theme] 切换明暗主题
   - 响应式断点：<768px 单列 / 768~1024px 双列 / >1024px 多列
   - 全部过渡使用苹果标准缓动 cubic-bezier(0.25, 0.1, 0.25, 1)
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. 设计令牌（Design Tokens）— 颜色、阴影、圆角
   --------------------------------------------------------------------- */
:root {
  --bg: #F5F5F7;                 /* 页面背景（苹果官网标志性银灰） */
  --bg-soft: #EBEBED;            /* 次级背景（分区交替用） */
  --card-bg: #FFFFFF;            /* 卡片背景 */
  --text: #1D1D1F;               /* 主文字 */
  --text-secondary: #86868B;     /* 辅助文字 */
  --accent: #0071E3;             /* 强调色（Apple Blue，仅用于交互元素） */
  --accent-soft: rgba(0, 113, 227, 0.10); /* 强调色的浅淡背景 */
  --border: rgba(0, 0, 0, 0.08); /* 细分隔线 */
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);          /* 卡片阴影 */
  --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.12);   /* 卡片悬停阴影 */
  --nav-bg: rgba(245, 245, 247, 0.72);              /* 导航毛玻璃底色 */
  --code-bg: rgba(0, 0, 0, 0.05);
  --radius: 20px;                /* 卡片圆角 */
  --radius-sm: 12px;             /* 小元素圆角 */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);          /* 苹果标准缓动 */
}

/* 深色主题覆盖 */
[data-theme="dark"] {
  --bg: #000000;
  --bg-soft: #111111;
  --card-bg: #1C1C1E;
  --text: #F5F5F7;
  --text-secondary: #A1A1A6;
  --accent: #0A84FF;
  --accent-soft: rgba(10, 132, 255, 0.16);
  --border: rgba(255, 255, 255, 0.10);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 12px 36px rgba(0, 0, 0, 0.5);
  --nav-bg: rgba(0, 0, 0, 0.72);
  --code-bg: rgba(255, 255, 255, 0.06);
}

/* ---------------------------------------------------------------------
   2. 基础重置与排版（系统字体栈，clamp 流式文字）
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* 锚点定位时为固定导航让位 */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: clamp(0.95rem, 1.2vw, 1.0625rem); /* 正文 */
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--text); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font-family: inherit; font-size: 1rem; color: var(--text); }
ul, ol { list-style: none; }

/* 标题层级（使用 clamp 实现响应式） */
h1, .h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);   /* 主标题 H1 */
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h2, .h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem); /* 副标题 H2 */
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
h3, .h3 {
  font-size: clamp(1.125rem, 2vw, 1.5rem); /* 小标题 H3 */
  font-weight: 600;
  line-height: 1.3;
}
.lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-secondary);
  font-weight: 400;
}
.small, .muted { font-size: 0.875rem; color: var(--text-secondary); }

/* 触摸目标最小 44×44，所有可点击项保证 */
a, button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

/* 容器：最大宽度 1200px 居中 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 分区统一样式 */
.section { padding: 80px 0 120px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head .eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2 { margin-bottom: 16px; }
.section-head p { color: var(--text-secondary); }

/* ---------------------------------------------------------------------
   3. 按钮
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 980px; /* 苹果胶囊按钮 */
  font-size: 1rem;
  font-weight: 500;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease),
              color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { color: #FFFFFF; filter: brightness(1.08); }
.btn-secondary {
  background: var(--accent-soft);
  color: var(--accent);
}
.btn-secondary:hover { color: var(--accent); filter: brightness(0.96); }
.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }
.btn-lg { min-height: 50px; padding: 0 28px; font-size: 1.0625rem; }

/* ---------------------------------------------------------------------
   4. 导航栏（固定顶部，滚动后毛玻璃）
   --------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
              backdrop-filter 0.3s var(--ease);
}
.site-header.scrolled {
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  gap: 8px;
}
.brand svg { flex: none; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 400;
  padding: 8px 14px;
  border-radius: 980px;
  min-height: 40px;
}
.nav-links a:hover { background: var(--accent-soft); color: var(--accent); }

/* 主题切换按钮（太阳/月亮） */
.theme-toggle {
  width: 44px; height: 44px;
  border-radius: 50%;
  color: var(--text);
  background: var(--accent-soft);
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}
.theme-toggle:hover { background: var(--accent); color: #fff; }
.theme-toggle:active { transform: scale(0.97); }
.theme-toggle .icon-sun, .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* 汉堡菜单（仅移动端显示） */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------------
   5. Hero 主视觉区
   --------------------------------------------------------------------- */
.hero {
  padding: 160px 0 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-title { margin: 20px auto 24px; max-width: 900px; }
.hero-title .accent-word { color: var(--accent); }
.hero-sub { max-width: 640px; margin: 0 auto 40px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
/* Hero 全景：替换原 hero.jpg，宽度 100vw 全屏拉通 */
.hero-art {
  margin: 56px 0 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
}
/* 全景上的玻璃效果标签 */
.hero-art { position: relative; }
.hero-art-badge {
  position: absolute;
  top: 38%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  padding: 12px 32px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.39);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.hero-art iframe {
  display: block;
  width: 100%;
  height: 480px;
  border: 0;
  background: #000;
}
@media (max-width: 768px) {
  /* 全景上的玻璃效果标签 */
.hero-art { position: relative; }
.hero-art-badge {
  position: absolute;
  top: 38%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  padding: 12px 32px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.39);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.hero-art iframe { height: 320px; }
}
/* 关键数据统计条 */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
  padding: 32px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stat-value { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.stat-label { font-size: 0.875rem; color: var(--text-secondary); margin-top: 4px; }

/* ---------------------------------------------------------------------
   6. 主要业务（Primary Service）卡片
   --------------------------------------------------------------------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.card-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-secondary); font-size: 0.9375rem; }

/* ---------------------------------------------------------------------
   7. 客户案例（Cases）
   --------------------------------------------------------------------- */
.case-card { display: flex; flex-direction: column; padding: 32px; }
.case-tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 980px;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.case-card h3 { margin-bottom: 10px; }
.case-card > p { color: var(--text-secondary); margin-bottom: 20px; flex: 1; }
.case-metric {
  display: flex; align-items: baseline; gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: auto;
}
.case-metric strong { font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.case-metric span { font-size: 0.875rem; color: var(--text-secondary); }

/* ---------------------------------------------------------------------
   8. 软件产品（Software）
   --------------------------------------------------------------------- */
.software-grid { grid-template-columns: repeat(2, 1fr); }
.software-card { display: flex; flex-direction: column; padding: 36px; }
.software-badge {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 980px;
  margin-bottom: 16px;
}
.software-card h3 { margin-bottom: 8px; }
.software-card .tagline { color: var(--text-secondary); margin-bottom: 20px; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.feature-tags li {
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 980px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 500;
}
.price-line { display: flex; align-items: baseline; gap: 8px; margin-bottom: 28px; }
.price-line strong { font-size: 1.75rem; font-weight: 700; }
.price-line span { font-size: 0.875rem; color: var(--text-secondary); }
.software-actions { display: flex; gap: 12px; margin-top: auto; }
.software-actions .btn { flex: 1; }

/* ---------------------------------------------------------------------
   9. 定价（Pricing）
   --------------------------------------------------------------------- */
.pricing-card { position: relative; padding: 36px; display: flex; flex-direction: column; }
.pricing-card.featured { border: 2px solid var(--accent); }
.pricing-ribbon {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 980px;
  white-space: nowrap;
}
.pricing-name { font-size: 1.125rem; font-weight: 600; margin-bottom: 8px; }
.pricing-amount { font-size: 2.25rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.pricing-per { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 24px; }
.pricing-list { flex: 1; margin-bottom: 28px; }
.pricing-list li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0;
  color: var(--text);
  font-size: 0.9375rem;
}
.pricing-list .check {
  flex: none; width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 2px;
}

/* ---------------------------------------------------------------------
   10. 专业资料（Resources）
   --------------------------------------------------------------------- */
.resource-card { display: flex; gap: 24px; padding: 24px; }
.resource-cover { flex: none; width: 168px; border-radius: var(--radius-sm); overflow: hidden; }
.resource-cover img { width: 100%; height: auto; }
.resource-body { display: flex; flex-direction: column; justify-content: center; flex: 1; }
.resource-body h3 { margin-bottom: 8px; }
.resource-body p { color: var(--text-secondary); margin-bottom: 16px; }
.resource-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.resource-price { font-size: 1.125rem; font-weight: 600; color: var(--accent); }

/* ---------------------------------------------------------------------
   11. 学习研究（Study and Research）
   --------------------------------------------------------------------- */
.study-list { display: grid; gap: 16px; }
.study-item {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.study-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.study-item h3 { margin-bottom: 12px; line-height: 1.35; }
.study-item h3 a { color: var(--text); }
.study-item h3 a:hover { color: var(--accent); }
.study-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.study-tags li {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 980px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 500;
}
.study-item .muted { display: block; margin-top: 10px; }
.study-featured {
  border: 1px solid var(--accent);
  background: linear-gradient(135deg, var(--accent-soft), transparent 60%), var(--card-bg);
}

/* ---------------------------------------------------------------------
   12. 生态合作（Partners）
   --------------------------------------------------------------------- */
.partner-grid { grid-template-columns: repeat(4, 1fr); }
.partner-card { text-align: center; padding: 32px 20px; }
.partner-logo {
  width: 72px; height: 72px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: var(--bg-soft);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.partner-card h3 { font-size: 1.0625rem; margin-bottom: 8px; }
.partner-card p { color: var(--text-secondary); font-size: 0.875rem; }

/* ---------------------------------------------------------------------
   13. 联系我们（Contact）
   --------------------------------------------------------------------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info h3 { margin-bottom: 12px; }
.contact-info p { color: var(--text-secondary); margin-bottom: 8px; }
.contact-email {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 8px;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--accent);
  min-height: 44px;
}
.contact-note {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.9375rem;
}
.contact-form { display: grid; gap: 16px; }
.form-field label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 8px; }
.form-field input, .form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  color: var(--text);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-msg { font-size: 0.875rem; color: var(--accent); min-height: 20px; }

/* ---------------------------------------------------------------------
   14. 页脚（Footer）
   --------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 48px 0 32px;
}
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 32px; }
.footer-brand { color: var(--text); font-size: 1.125rem; font-weight: 600; margin-bottom: 12px; display: inline-flex; gap: 8px; }
.footer-desc { color: var(--text-secondary); font-size: 0.875rem; max-width: 280px; }
.footer-col h4 { font-size: 0.875rem; font-weight: 600; margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-secondary); font-size: 0.875rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-size: 0.8125rem;
}
/* 备案信息列 */
.footer-legal { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
/* 版权行加一个和图标等宽的透明占位，让三行文字左边缘对齐 */
.footer-legal > span { display: inline-flex; align-items: center; gap: 6px; }
.footer-legal > span::before { content: ""; width: 14px; flex: none; }
.beian-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-secondary); font-size: 0.8125rem; min-height: auto;
}
.beian-link:hover { color: var(--accent); }
.beian-link svg { flex: none; width: 14px; height: 14px; }

/* 右侧友链行 */
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.footer-links a { color: var(--text-secondary); font-size: 0.8125rem; min-height: auto; padding: 0; }
.footer-links a:hover { color: var(--accent); }

/* 社交图标 */
.footer-social { display: flex; gap: 14px; align-items: center; }
.footer-social a {
  color: var(--text-secondary); display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.footer-social a:hover { color: var(--accent); background: var(--accent-soft); }
/* ===== 个人收藏 Common Link：低调折叠面板 ===== */
.common-links { margin-top: 8px; border-top: 1px dashed var(--border); padding-top: 16px; }
.common-links > summary {
  cursor: pointer; list-style: none;
  font-size: 0.75rem; color: var(--text-secondary);
  display: inline-flex; align-items: center; gap: 6px;
  user-select: none; min-height: auto; padding: 0;
}
.common-links > summary::-webkit-details-marker { display: none; }
.common-links > summary::before { content: "▸"; transition: transform 0.2s var(--ease); display: inline-block; }
.common-links[open] > summary::before { transform: rotate(90deg); }
.common-links > summary:hover { color: var(--accent); }
.common-links-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px;
  margin-top: 16px; text-align: left;
}
.common-col h5 { font-size: 0.75rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.common-col ul { list-style: none; }
.common-col li { margin-bottom: 6px; }
.common-col a {
  font-size: 0.75rem; color: var(--text-secondary); line-height: 1.4;
  display: block; padding: 2px 0; min-height: auto;
}
.common-col a:hover { color: var(--accent); }
@media (max-width: 900px) { .common-links-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .common-links-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------
   15. 页面级共享组件（软件产品页通用）
   --------------------------------------------------------------------- */
.page-hero { padding: 140px 0 72px; text-align: center; }
.page-hero .eyebrow { color: var(--accent); font-weight: 600; font-size: 0.875rem; letter-spacing: 0.06em; margin-bottom: 16px; }
.page-hero h1 { margin-bottom: 20px; }
.page-hero .sub { max-width: 680px; margin: 0 auto 32px; color: var(--text-secondary); }
.page-hero .actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* 子页内容通用 */
.prose p { color: var(--text-secondary); margin-bottom: 16px; }
.step-card { text-align: center; padding: 32px; }
.step-num {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.375rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.gallery-item { padding: 0; overflow: hidden; }
.gallery-item img { width: 100%; }
.gallery-caption { padding: 20px 24px; }
.gallery-caption h4 { margin-bottom: 4px; }
.gallery-caption p { color: var(--text-secondary); font-size: 0.875rem; }

/* 特性大卡片（两列） */
.feature-block { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.feature-block .card p { color: var(--text-secondary); }

/* 对比价格表 */
.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.9375rem; }
.compare th { font-weight: 600; background: var(--bg-soft); }
.compare td:last-child { color: var(--text); font-weight: 500; }
.compare .highlight-row td { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

/* 环境要求列表 */
.env-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.env-list .card { display: flex; gap: 16px; padding: 24px; }
.env-list .card strong { display: block; margin-bottom: 6px; }
.env-list .card span { color: var(--text-secondary); font-size: 0.875rem; }
.env-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }

/* 子页版权声明条 */
.copyright-bar {
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--text-secondary);
  font-size: 0.875rem;
}
.copyright-bar strong { color: var(--text); }

/* ---------------------------------------------------------------------
   16. 响应式布局
   --------------------------------------------------------------------- */
/* 平板端 768px ~ 1024px：双列 */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 140px 0 72px; }
}

/* 移动端 < 768px：单列 */
@media (max-width: 768px) {
  .section { padding: 60px 0 80px; }
  .container { padding: 0 20px; }
  .grid-2, .grid-3, .grid-4, .software-grid, .feature-block, .contact-wrap, .env-list { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 24px; }
  .hero-actions .btn { flex: 1; }
  .resource-card { flex-direction: column; }
  .resource-cover { width: 100%; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* 导航：桌面链接隐藏，显示汉堡 */
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--nav-bg);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    padding: 8px 20px 20px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; }
  .nav-links a { width: 100%; min-height: 44px; }
}

/* ---------------------------------------------------------------------
   17. 动效与无障碍
   --------------------------------------------------------------------- */
/* 滚动进入视口的淡入动画（JS 添加 .visible 类触发） */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* 尊重用户减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* 焦点可见性（无障碍） */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
