/* ============================================================
   布局：导航 / Hero / Footer / 页面特有网格 / 响应式
   ============================================================ */

/* --- 导航栏 --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--od-z-modal);
  padding: var(--od-space-lg) 0;
  transition: background var(--od-transition-normal), backdrop-filter var(--od-transition-normal), padding var(--od-transition-normal);
}
.nav.scrolled {
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 10px 0;
  border-bottom: 1px solid var(--od-border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-brand img {
  height: 32px;
  width: auto;
}
.nav-brand span {
  font-size: var(--od-text-2xl);
  font-weight: 700;
  letter-spacing: -0.5px;
}
.nav-links {
  display: flex;
  gap: var(--od-space-2xl);
  align-items: center;
}
.nav-links a {
  font-size: var(--od-text-base);
  font-weight: 500;
  color: var(--od-text-secondary);
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--od-primary);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--od-primary);
  transition: width var(--od-transition-normal);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-lang {
  font-size: var(--od-text-sm);
  font-weight: 600;
  color: var(--od-text-secondary) !important;
  border: 1px solid var(--od-border);
  padding: var(--od-space-xs) var(--od-space-md);
  border-radius: var(--od-radius-sm);
  transition: border-color var(--od-transition-fast), color var(--od-transition-fast) !important;
}
.nav-lang:hover {
  border-color: var(--od-primary) !important;
  color: var(--od-primary) !important;
}
.nav-lang::after {
  display: none !important;
}

/* 汉堡按钮（移动端） */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--od-space-xs);
}
.nav-toggle svg {
  width: 28px;
  height: 28px;
  stroke: var(--od-text-primary);
}

/* 移动端菜单 */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 15, 30, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: var(--od-z-max);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}
.nav-mobile.open {
  display: flex;
}
.nav-mobile a {
  font-size: var(--od-text-3xl);
  font-weight: 600;
  color: var(--od-text-primary);
  transition: color 0.2s;
}
.nav-mobile a:hover {
  color: var(--od-primary);
}
.nav-mobile-close {
  position: absolute;
  top: 20px;
  right: var(--od-space-xl);
  background: none;
  border: none;
  cursor: pointer;
}
.nav-mobile-close svg {
  width: 32px;
  height: 32px;
  stroke: var(--od-text-primary);
}

/* --- Hero 首屏 --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 120px var(--od-space-xl) 60px;
  overflow: hidden;
  background: var(--od-bg-base);
  color: var(--od-text-primary);
}
/* 网格纹理 */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
  z-index: 0;
}
@keyframes gridMove {
  0% { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}
/* 径向光晕 */
.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.12) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: var(--od-z-base);
  max-width: 900px;
}
.hero-logo {
  width: 80px;
  height: auto;
  margin: 0 auto var(--od-space-xl);
}
.hero h1 {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: var(--od-space-xl);
  line-height: 1.15;
}
.hero-subtitle {
  font-size: var(--od-text-xl);
  color: var(--od-text-secondary);
  margin-bottom: var(--od-space-3xl);
  line-height: 1.8;
}
.hero-buttons {
  display: flex;
  gap: var(--od-space-lg);
  justify-content: center;
  flex-wrap: wrap;
}
.hero-screenshot {
  max-width: 900px;
  width: 100%;
  margin: var(--od-space-4xl) auto 0;
}
/* 滚动箭头 */
.scroll-hint {
  position: absolute;
  bottom: var(--od-space-2xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--od-z-base);
  animation: bounce 2s ease-in-out infinite;
}
.scroll-hint svg {
  width: 32px;
  height: 32px;
  stroke: var(--od-text-tertiary);
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* --- 子页面短 Hero --- */
.hero-mini {
  padding: 140px var(--od-space-xl) 60px;
  min-height: auto;
  background: var(--od-bg-base);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.hero-mini::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}
.hero-mini .hero-content {
  position: relative;
  z-index: var(--od-z-base);
}
.hero-mini h1 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: var(--od-space-lg);
}
.hero-mini p {
  font-size: var(--od-text-xl);
  color: var(--od-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* --- 深色→浅色过渡区 --- */
.transition-zone {
  height: 60px;
  background: linear-gradient(180deg, var(--od-bg-base) 0%, #f0f2f5 100%);
}

/* --- 浅色内容区 --- */
.light-section {
  background: #f0f2f5;
  color: rgba(0, 0, 0, 0.88);
}
.light-section .section-title {
  color: rgba(0, 0, 0, 0.88);
}
.light-section .section-subtitle {
  color: rgba(0, 0, 0, 0.65);
}
.light-section .glass-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.06);
}
.light-section .glass-card:hover {
  border-color: rgba(2, 132, 199, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.light-section .engine-card ul li::before {
  background: #0284c7;
}
.light-section .pill-cyan {
  color: #0284c7;
  border-color: rgba(2, 132, 199, 0.2);
  background: rgba(2, 132, 199, 0.06);
}
.light-section .engine-card .engine-icon,
.light-section .feature-icon {
  color: #0284c7;
}
.light-section .feature-icon {
  background: rgba(2, 132, 199, 0.06);
  border-color: rgba(2, 132, 199, 0.2);
}
.light-section .stat-number {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  -webkit-background-clip: text;
  background-clip: text;
}
.light-section .stat-label {
  color: rgba(0, 0, 0, 0.65);
}
.light-section .engine-card h3,
.light-section .feature-item h4 {
  color: rgba(0, 0, 0, 0.88);
}
.light-section .engine-card ul li,
.light-section .engine-card .engine-desc,
.light-section .feature-item p {
  color: rgba(0, 0, 0, 0.65);
}
.light-section .screenshot-placeholder {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(2, 132, 199, 0.2);
  color: rgba(0, 0, 0, 0.45);
}
.light-section .pricing-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.06);
}
.light-section .pricing-card h3 {
  color: rgba(0, 0, 0, 0.88);
}
.light-section .pricing-price {
  color: rgba(0, 0, 0, 0.88);
}
.light-section .pricing-price .price-unit {
  color: rgba(0, 0, 0, 0.55);
}
.light-section .pricing-desc {
  color: rgba(0, 0, 0, 0.65);
}
.light-section .pricing-features li {
  color: rgba(0, 0, 0, 0.65);
}
.light-section .pricing-features li.disabled {
  color: rgba(0, 0, 0, 0.35);
}
.light-section .pricing-card.featured {
  border-color: rgba(2, 132, 199, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.light-section .pricing-features li .check {
  color: #10b981;
}
.light-section .faq-item {
  border-color: rgba(0, 0, 0, 0.06);
}
.light-section .faq-question {
  color: rgba(0, 0, 0, 0.88);
}
.light-section .faq-question:hover {
  color: #0284c7;
}
.light-section .faq-answer p {
  color: rgba(0, 0, 0, 0.65);
}
.light-section .usecase-card,
.light-section .doc-card,
.light-section .contact-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.06);
}
.light-section .usecase-card:hover,
.light-section .doc-card:hover,
.light-section .contact-card:hover {
  border-color: rgba(2, 132, 199, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.light-section .doc-card .doc-icon,
.light-section .usecase-card .usecase-icon,
.light-section .contact-card-icon {
  color: #0284c7;
}
.light-section .usecase-card h3,
.light-section .doc-card h3,
.light-section .contact-card h4 {
  color: rgba(0, 0, 0, 0.88);
}
.light-section .usecase-card .usecase-desc,
.light-section .doc-card p,
.light-section .contact-card p {
  color: rgba(0, 0, 0, 0.65);
}

/* --- 统计条 --- */
.stats-bar {
  background: var(--od-glass-bg);
  backdrop-filter: blur(var(--od-glass-blur));
  -webkit-backdrop-filter: blur(var(--od-glass-blur));
  border-top: 1px solid var(--od-border);
  border-bottom: 1px solid var(--od-border);
  padding: var(--od-space-4xl) 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--od-space-xl);
  text-align: center;
}

/* --- CTA 横幅 --- */
.cta-banner {
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  padding: 80px var(--od-space-xl);
  text-align: center;
  color: #fff;
}
.cta-banner h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: var(--od-space-lg);
}
.cta-banner p {
  font-size: var(--od-text-xl);
  opacity: 0.9;
  margin-bottom: var(--od-space-2xl);
}
.cta-banner .btn-primary {
  background: #fff;
  color: #0284c7;
}
.cta-banner .btn-primary:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* --- Footer --- */
.footer {
  background: var(--od-bg-surface);
  border-top: 1px solid var(--od-border);
  padding: var(--od-space-4xl) 0 var(--od-space-xl);
  color: var(--od-text-secondary);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--od-space-3xl);
  margin-bottom: var(--od-space-3xl);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--od-space-sm);
  margin-bottom: var(--od-space-lg);
}
.footer-brand img {
  height: 28px;
  width: auto;
}
.footer-brand span {
  font-size: var(--od-text-xl);
  font-weight: 700;
  color: var(--od-text-primary);
}
.footer-desc {
  font-size: var(--od-text-sm);
  color: var(--od-text-tertiary);
  line-height: 1.7;
  max-width: 280px;
}
.footer h4 {
  font-size: var(--od-text-base);
  font-weight: 600;
  color: var(--od-text-primary);
  margin-bottom: var(--od-space-lg);
}
.footer ul li {
  margin-bottom: var(--od-space-sm);
}
.footer ul li a {
  font-size: var(--od-text-sm);
  color: var(--od-text-secondary);
  transition: color var(--od-transition-fast);
}
.footer ul li a:hover {
  color: var(--od-primary);
}
.footer-bottom {
  border-top: 1px solid var(--od-border);
  padding-top: var(--od-space-xl);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--od-space-xs, 8px);
}
.footer-bottom .footer-cookie {
  flex: 0 0 100%;
  margin: 0 !important;
}
.footer-bottom p {
  font-size: var(--od-text-sm);
  color: var(--od-text-tertiary);
}
.footer-bottom .footer-lang a {
  font-size: var(--od-text-sm);
  color: var(--od-text-secondary);
  transition: color var(--od-transition-fast);
}
.footer-bottom .footer-lang a:hover {
  color: var(--od-primary);
}

/* --- 通用网格 --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--od-space-xl); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--od-space-xl); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--od-space-xl); }

/* --- 架构图 --- */
.arch-diagram {
  max-width: 100%;
  overflow-x: auto;
  margin: var(--od-space-2xl) 0;
  padding: var(--od-space-xl);
  background: var(--od-bg-card);
  border: 1px solid var(--od-border);
  border-radius: var(--od-radius-lg);
}
.arch-diagram svg {
  width: 100%;
  min-width: 700px;
  height: auto;
}

/* --- 对比表 --- */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--od-space-2xl) 0;
}
.compare-table th,
.compare-table td {
  padding: var(--od-space-lg);
  text-align: left;
  border-bottom: 1px solid var(--od-border);
  font-size: var(--od-text-base);
}
.compare-table th {
  font-weight: 600;
  color: var(--od-text-primary);
}
.compare-table td {
  color: var(--od-text-secondary);
}
.light-section .compare-table th {
  color: rgba(0, 0, 0, 0.88);
  border-color: rgba(0, 0, 0, 0.06);
}
.light-section .compare-table td {
  color: rgba(0, 0, 0, 0.65);
  border-color: rgba(0, 0, 0, 0.06);
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--od-space-2xl); }
}

@media (max-width: 991px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .section-title { font-size: 30px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 32px; }
  .hero-mini h1 { font-size: 28px; }
  .hero-subtitle { font-size: var(--od-text-lg); }
  .hero { min-height: 100vh; padding: 100px 20px 60px; }
  .hero-mini { padding: 120px 20px var(--od-space-3xl); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--od-space-lg); }
  .stat-number { font-size: 36px; }
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
  .section-padding { padding: 64px 0; }
  .section-title { font-size: 26px; }
  .section-subtitle { font-size: 15px; margin-bottom: 36px; }
  .screenshot-placeholder { min-height: 200px; }
  .glass-card { padding: var(--od-space-xl); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--od-space-xl); }
  .footer-bottom { flex-direction: column; gap: var(--od-space-sm); text-align: center; }
  .cta-banner { padding: 60px var(--od-space-xl); }
  .cta-banner h2 { font-size: 26px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .hero-subtitle { font-size: 15px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; }
  .stat-number { font-size: 32px; }
  .container { padding: 0 var(--od-space-lg); }
}

/* --- 减弱动效 --- */
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
  .scroll-hint { animation: none; }
}
