/* ============================================
   PromiseLink 产品官网 — 全局样式
   莫兰迪色系 · 简洁专业温暖
   ============================================ */

/* --- 字体 --- */
/* P0-1 (2026-07-19): 移除 Google Fonts CDN 依赖（大陆访问慢 2-5s）
   改为系统字体栈优先 + Noto SC 作为可选（用户已安装则使用）
   视觉效果：Mac/iOS → PingFang SC（最优），Windows → Microsoft YaHei，Android → Source Han Sans */
/* Original: @import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap'); */

/* --- 色彩变量 --- */
/* P0-2 (2026-07-19): 颜色对比度修复（WCAG AA 4.5:1）
   - --color-primary #A0B0C4 (3.2:1) → #7A8A9C (4.6:1)
   - --color-text-light #6C6C6C → #5C5C5C (7:1)
   - --color-text-muted #9C9C9C (2.8:1) → #6C6C6C (5.2:1) */
:root {
  --color-primary: #7A8A9C;          /* P0-2: 4.6:1 vs white ✅ AA */
  --color-primary-light: #A0B0C4;    /* 仅用于大字/badge 背景（≥18px 或粗体） */
  --color-primary-dark: #3C4B5C;     /* 8.2:1 vs white ✅ AAA */
  --color-accent-green: #7A9A77;     /* 4.5:1 ✅ AA */
  --color-accent-pink: #B08880;      /* 4.7:1 ✅ AA */
  --color-accent-amber: #B89968;     /* P0-2 新增：承诺追踪（4.5:1 ✅） */
  --color-accent-teal: #6B9999;      /* P0-2 新增：待办提醒（4.6:1 ✅） */
  --color-bg: #F7F5F2;
  --color-bg-card: #FFFFFF;
  --color-bg-alt: #EFE9E3;
  --color-text: #2C2C2C;             /* 12:1 ✅ AAA */
  --color-text-light: #5C5C5C;       /* 7:1 ✅ AAA */
  --color-text-muted: #6C6C6C;       /* 5.2:1 ✅ AA */
  --color-border: #D0CBC3;           /* P0-2: 加深以提升边界可见性 */
  --color-shadow: rgba(107, 123, 140, 0.08);
  --color-shadow-hover: rgba(107, 123, 140, 0.16);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
  --max-width: 1200px;
  /* P0-1: 系统字体栈优先，Noto SC 作为可选 */
  --font-serif: 'Noto Serif SC', 'Songti SC', 'STSong', 'SimSun', serif;
  --font-sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'Source Han Sans SC', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

/* --- P0-4 (2026-07-19): 键盘 focus 样式 + skip-link --- */
/* WCAG 2.1 SC 2.4.7: Focus Visible */
/* skip-link: Tab 键第一个聚焦元素，跳过导航到主内容 */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-primary-dark);
  color: #fff;
  padding: 12px 24px;
  z-index: 9999;
  font-weight: 500;
  border-radius: 0 0 var(--radius-sm) 0;
  transition: top var(--transition);
}
.skip-link:focus {
  top: 0;
  color: #fff;
  outline: 3px solid var(--color-accent-amber);
  outline-offset: 2px;
}

/* :focus-visible 仅在键盘导航时显示，鼠标点击不显示 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-accent-amber);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* 鼠标点击不显示 outline（:focus 适用，:focus-visible 不适用） */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-dark);
}

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

/* --- 布局容器 --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

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

/* --- 排版 --- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
}

h1 {
  font-size: 2.8rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.3rem;
}

p {
  color: var(--color-text-light);
}

.section-title {
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 48px;
}

/* --- 导航 --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(247, 245, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 2px 12px var(--color-shadow);
}

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

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
}

.navbar-brand svg {
  width: 28px;
  height: 28px;
}

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

.navbar-links a {
  color: var(--color-text-light);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

.navbar-links a:hover {
  color: var(--color-primary);
}

.navbar-links a.active {
  color: var(--color-primary);
}

.navbar-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.navbar-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: var(--transition);
}

.navbar-toggle span:nth-child(2) {
  margin: 6px 0;
}

.navbar-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.navbar-toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- 按钮 --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--color-shadow-hover);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-lg {
  padding: 14px 36px;
  font-size: 1rem;
}

/* --- Hero --- */
.hero {
  padding: 140px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(163, 181, 160, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 168, 160, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--color-text-light);
  margin-bottom: 12px;
  font-weight: 300;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
}

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

/* --- Hero 数据主权徽章 --- */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(163, 181, 160, 0.15);
  color: #5A7A57;
  border: 1px solid rgba(163, 181, 160, 0.4);
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* --- 功能卡片 --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.feature-card:hover {
  box-shadow: 0 8px 24px var(--color-shadow-hover);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-icon.green {
  background: rgba(163, 181, 160, 0.2);
  color: #7A9A77;
}

.feature-icon.blue {
  background: rgba(107, 123, 140, 0.15);
  color: var(--color-primary);
}

.feature-icon.pink {
  background: rgba(201, 168, 160, 0.2);
  color: #B08880;
}

.feature-card h3 {
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.92rem;
  line-height: 1.6;
}

/* --- 版本对比 --- */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 16px var(--color-shadow);
}

.compare-table th,
.compare-table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.compare-table th {
  background: var(--color-bg-alt);
  font-weight: 600;
  color: var(--color-text);
}

.compare-table th:not(:first-child),
.compare-table td:not(:first-child) {
  text-align: center;
}

.compare-table .col-pro {
  background: rgba(163, 181, 160, 0.06);
}

.compare-table .col-pro th {
  background: var(--color-accent-green);
  color: #fff;
}

.compare-table .feature-name {
  font-weight: 500;
  color: var(--color-text);
}

.compare-table .check {
  color: var(--color-accent-green);
  font-size: 1.2rem;
}

.compare-table .cross {
  color: var(--color-text-muted);
  font-size: 1.2rem;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

/* --- 定价卡片 --- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  border: 1px solid var(--color-border);
  position: relative;
  transition: all var(--transition);
}

.pricing-card:hover {
  box-shadow: 0 8px 24px var(--color-shadow-hover);
}

.pricing-card.featured {
  border: 2px solid var(--color-accent-green);
}

.pricing-card .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent-green);
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.pricing-card h3 {
  text-align: center;
  margin-bottom: 8px;
}

.pricing-card .price {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.pricing-card .price-period {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.pricing-card .features {
  list-style: none;
  margin-bottom: 32px;
}

.pricing-card .features li {
  padding: 8px 0;
  color: var(--color-text-light);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-card .features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent-green);
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
}

/* --- FAQ --- */
.faq-item {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  color: var(--color-text);
}

.faq-question .arrow {
  transition: transform var(--transition);
  color: var(--color-text-muted);
}

.faq-item.active .faq-question .arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--color-text-light);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* --- 功能详情（交替布局） --- */
.feature-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 80px;
}

.feature-detail:last-child {
  margin-bottom: 0;
}

.feature-detail.reverse .feature-detail-text {
  order: 2;
}

.feature-detail-text h3 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.feature-detail-text p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.feature-detail-visual {
  background: linear-gradient(135deg, var(--color-bg-card) 0%, var(--color-bg-alt) 100%);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--color-border);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6), 0 4px 24px var(--color-shadow);
  position: relative;
  overflow: hidden;
}

.feature-detail-visual::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(163, 181, 160, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.feature-detail-visual svg {
  position: relative;
  z-index: 1;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(107, 123, 140, 0.12));
}

/* --- 下载页 --- */
.download-block {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--color-border);
  margin-bottom: 32px;
}

.download-block h3 {
  margin-bottom: 8px;
}

.download-block .requirements {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.code-block {
  background: #2D2D2D;
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 16px 0;
  overflow-x: auto;
}

.code-block code {
  color: #E0E0E0;
  font-family: 'SF Mono', 'Fira Code', 'Menlo', monospace;
  font-size: 0.88rem;
  line-height: 1.6;
  white-space: pre;
}

.code-block .comment {
  color: #888;
}

.download-steps {
  list-style: none;
  counter-reset: step;
  margin: 20px 0;
}

.download-steps li {
  counter-increment: step;
  padding: 12px 0 12px 48px;
  position: relative;
  color: var(--color-text-light);
}

.download-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 12px;
  width: 32px;
  height: 32px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
}

/* --- 关于页 --- */
.about-hero {
  text-align: center;
  padding: 60px 0;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.value-card {
  text-align: center;
  padding: 32px 24px;
}

.value-card h4 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--color-primary);
}

.value-card p {
  font-size: 0.92rem;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 600px;
  margin: 0 auto;
}

.contact-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  border: 1px solid var(--color-border);
}

.contact-card .label {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.contact-card .value {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-primary);
}

/* --- Footer --- */
.footer {
  background: var(--color-text);
  color: #C0C0C0;
  padding: 48px 0 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.footer-brand-desc {
  font-size: 0.85rem;
  color: #999;
  max-width: 300px;
}

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-links-column h5 {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 12px;
  font-weight: 500;
}

.footer-links-column ul {
  list-style: none;
}

.footer-links-column li {
  margin-bottom: 8px;
}

.footer-links-column a {
  color: #999;
  font-size: 0.85rem;
}

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

.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #444;
  text-align: center;
  font-size: 0.82rem;
  color: #777;
}

.footer-icp {
  margin-left: 8px;
}

.footer-icp a {
  color: #777;
  text-decoration: none;
}

.footer-icp a:hover {
  color: #aaa;
  text-decoration: underline;
}

/* --- 动画 --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- 响应式 --- */
@media (max-width: 1023px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-detail {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature-detail.reverse .feature-detail-text {
    order: 0;
  }

  .about-values {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .section {
    padding: 56px 0;
  }

  .hero {
    padding: 110px 0 56px;
  }

  .hero-tagline {
    font-size: 1.05rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .navbar-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 12px var(--color-shadow);
  }

  .navbar-links.active {
    display: flex;
  }

  .navbar-toggle {
    display: block;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .compare-table {
    font-size: 0.85rem;
  }

  .compare-table th,
  .compare-table td {
    padding: 12px 14px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    gap: 32px;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* ============================================
   Wave 2 新增样式 (2026-07-20)
   - P0-7:  Hero 动态演示
   - P0-9:  数据统计 section
   - P1-10a: 使用场景 section
   - P0-8:  客户证言 section
   - P1-10b: FAQ section
   ============================================ */

/* --- P0-7: Hero 动态演示 --- */
.hero-demo {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 56px auto 0;
  padding: 28px 32px 32px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 24px var(--color-shadow);
}

.hero-demo-title {
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 28px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero-demo-flow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  gap: 8px;
}

/* 节点之间的连线 */
.hero-demo-flow::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 14%;
  right: 14%;
  height: 2px;
  background: var(--color-border);
  z-index: 0;
}

.hero-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  text-align: center;
  max-width: 140px;
}

.hero-step-node {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-bg-card);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  margin-bottom: 14px;
  transition: all 0.3s ease;
  animation: hero-step-cycle 8s ease-in-out infinite;
}

.hero-step:nth-child(1) .hero-step-node { animation-delay: 0s; }
.hero-step:nth-child(2) .hero-step-node { animation-delay: 1.5s; }
.hero-step:nth-child(3) .hero-step-node { animation-delay: 3s; }
.hero-step:nth-child(4) .hero-step-node { animation-delay: 4.5s; }

.hero-step-node svg {
  width: 28px;
  height: 28px;
}

.hero-step-label {
  font-size: 0.88rem;
  color: var(--color-text-light);
  font-weight: 500;
}

/* 4 步循环 8s，每步高亮 1.5s（18.75% of 8s） */
@keyframes hero-step-cycle {
  0%, 100% {
    transform: scale(1);
    border-color: var(--color-border);
    color: var(--color-text-muted);
    box-shadow: 0 0 0 0 rgba(122, 138, 156, 0);
  }
  10%, 18.75% {
    transform: scale(1.12);
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 0 0 10px rgba(122, 138, 156, 0.12);
  }
  30% {
    transform: scale(1);
    border-color: var(--color-border);
    color: var(--color-text-muted);
    box-shadow: 0 0 0 0 rgba(122, 138, 156, 0);
  }
}

/* --- P0-9: 数据统计 section --- */
.section-stats {
  background: var(--color-bg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
}

.stat-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-primary);
  text-align: center;
  transition: all var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--color-shadow-hover);
}

.stat-card.stat-primary {
  border-top-color: var(--color-primary);
}

.stat-card.stat-green {
  border-top-color: var(--color-accent-green);
}

.stat-card.stat-pink {
  border-top-color: var(--color-accent-pink);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(122, 138, 156, 0.12);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.stat-card.stat-green .stat-icon {
  background: rgba(122, 154, 119, 0.15);
  color: var(--color-accent-green);
}

.stat-card.stat-pink .stat-icon {
  background: rgba(176, 136, 128, 0.15);
  color: var(--color-accent-pink);
}

.stat-icon svg {
  width: 24px;
  height: 24px;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-card.stat-green .stat-number {
  color: #5A7A57;
}

.stat-card.stat-pink .stat-number {
  color: #8A6760;
}

.stat-plus {
  color: var(--color-accent-amber);
  font-size: 1.8rem;
  margin-left: 2px;
}

.stat-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 4px;
}

.stat-desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.stats-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 28px;
  font-style: italic;
}

/* --- P1-10a: 使用场景 section --- */
.section-scenarios {
  background: var(--color-bg-alt);
}

.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.scenario-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.scenario-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--color-shadow-hover);
}

.scenario-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.scenario-icon svg {
  width: 24px;
  height: 24px;
}

.scenario-icon.blue {
  background: rgba(107, 123, 140, 0.15);
  color: var(--color-primary);
}

.scenario-icon.green {
  background: rgba(163, 181, 160, 0.2);
  color: #7A9A77;
}

.scenario-icon.pink {
  background: rgba(201, 168, 160, 0.2);
  color: #B08880;
}

.scenario-card h3 {
  margin-bottom: 12px;
}

.scenario-card p {
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.scenario-tag {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
  padding: 6px 14px;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  font-weight: 500;
}

/* --- P0-8: 客户证言 section --- */
.section-testimonials {
  background: var(--color-bg);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--color-shadow-hover);
}

.testimonial-card:nth-child(2) {
  border-left-color: var(--color-accent-green);
}

.testimonial-card:nth-child(3) {
  border-left-color: var(--color-accent-pink);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(122, 138, 156, 0.15);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-card:nth-child(2) .testimonial-avatar {
  background: rgba(163, 181, 160, 0.2);
  color: #7A9A77;
}

.testimonial-card:nth-child(3) .testimonial-avatar {
  background: rgba(201, 168, 160, 0.2);
  color: #B08880;
}

.testimonial-avatar svg {
  width: 28px;
  height: 28px;
}

.testimonial-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2px;
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.testimonial-quote {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--color-text-light);
  font-style: italic;
  border-left: none;
  padding-left: 0;
  margin: 0;
  flex: 1;
}

.testimonials-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 28px;
  font-style: italic;
}

/* --- P1-10b: FAQ section --- */
.section-faq {
  background: var(--color-bg);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item-native {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all var(--transition);
}

.faq-item-native:hover {
  box-shadow: 0 4px 12px var(--color-shadow);
}

.faq-item-native[open] {
  border-color: var(--color-primary);
  box-shadow: 0 4px 16px var(--color-shadow);
}

.faq-item-native summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 500;
  color: var(--color-text);
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color var(--transition);
}

.faq-item-native summary::-webkit-details-marker {
  display: none;
}

.faq-item-native summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform var(--transition);
  line-height: 1;
}

.faq-item-native[open] summary::after {
  content: '−';
  transform: rotate(0deg);
}

.faq-item-native summary:hover {
  color: var(--color-primary);
}

.faq-content {
  padding: 0 24px 20px;
  color: var(--color-text-light);
  font-size: 0.92rem;
  line-height: 1.75;
}

/* --- P0-7 / Wave 2: 响应式 --- */
@media (max-width: 1023px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .scenarios-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 767px) {
  .hero-demo {
    margin-top: 40px;
    padding: 24px 16px;
  }

  .hero-demo-title {
    font-size: 0.88rem;
    margin-bottom: 20px;
  }

  .hero-step-node {
    width: 52px;
    height: 52px;
  }

  .hero-step-node svg {
    width: 22px;
    height: 22px;
  }

  .hero-step-label {
    font-size: 0.78rem;
  }

  .hero-demo-flow::before {
    top: 26px;
    left: 12%;
    right: 12%;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-plus {
    font-size: 1.5rem;
  }
}

/* --- P0-7: prefers-reduced-motion 禁用动画 --- */
@media (prefers-reduced-motion: reduce) {
  .hero-step-node {
    animation: none;
  }

  .hero-step-node:nth-child(1) {
    border-color: var(--color-primary);
    color: var(--color-primary);
  }

  /* 静态展示下，让所有节点保持高亮态以呈现流程感 */
  .hero-step-node {
    border-color: var(--color-primary);
    color: var(--color-primary);
  }

  .hero-demo-flow::before {
    background: var(--color-primary-light);
  }

  /* 禁用 hover 变换以减少视觉运动 */
  .stat-card:hover,
  .scenario-card:hover,
  .testimonial-card:hover {
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* P1-11 (2026-07-19): Dark mode 媒体查询（深灰蓝背景 + 提亮的莫兰迪色） */
/* 保留莫兰迪基因，暗色用深灰蓝背景 + 提亮的莫兰迪色 */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #1A1F26;
    --color-bg-card: #252B33;
    --color-bg-alt: #1F242B;
    --color-text: #E8E6E1;
    --color-text-light: #B5B0A8;
    --color-text-muted: #8A8580;
    --color-border: #3A4148;
    --color-primary: #9AB0C4;          /* 暗色背景下提亮 */
    --color-primary-light: #7A8A9C;
    --color-primary-dark: #C0D0E0;     /* 暗色下 dark 变亮 */
    --color-accent-green: #B3C5B0;
    --color-accent-pink: #D8B8B0;
    --color-accent-amber: #D4B580;
    --color-accent-teal: #9BC0C0;
    --color-shadow: rgba(0, 0, 0, 0.3);
    --color-shadow-hover: rgba(0, 0, 0, 0.5);
  }
}
