/* ============================================================
   OpenCorpAI 官网样式 — 对齐企业AI经营中控台视觉规范
   主色 #4080FF · 背景 #F5F7FA · 圆角 6/12px · 蓝紫渐变 Hero
   ============================================================ */

:root {
  --primary: #4080FF;
  --primary-dark: #3366CC;
  --primary-light: #E8F0FF;
  --grad-a: #667EEA;
  --grad-b: #764BA2;
  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --border: #E5E6EB;
  --border-light: #F2F3F5;
  --text-primary: #1D2129;
  --text-regular: #4E5969;
  --text-secondary: #86909C;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(29, 33, 41, 0.04), 0 2px 8px rgba(29, 33, 41, 0.06);
  --shadow-md: 0 4px 12px rgba(29, 33, 41, 0.08), 0 12px 32px rgba(29, 33, 41, 0.10);
  --shadow-lg: 0 12px 24px rgba(29, 33, 41, 0.14), 0 24px 64px rgba(102, 126, 234, 0.28);
  --container: 1120px;
  --nav-h: 64px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 1000;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-sm {
  min-height: 36px;
  padding: 6px 18px;
  font-size: 14px;
}

.btn-hero {
  background: #fff;
  color: var(--grad-b);
  box-shadow: var(--shadow-md);
}

.btn-hero:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

/* ---------- 顶部导航 ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

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

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-text em {
  font-style: normal;
  font-size: 11px;
  color: var(--text-secondary);
}

.nav-links {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-regular);
  font-size: 15px;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--text-primary);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
  color: #fff;
  padding: 96px 0 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}

.hero-blob-1 {
  width: 480px;
  height: 480px;
  top: -160px;
  right: -120px;
  background: #47BFFF;
}

.hero-blob-2 {
  width: 420px;
  height: 420px;
  bottom: -180px;
  left: -140px;
  background: #4080FF;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
  padding-bottom: 80px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 2px;
  padding: 6px 14px;
  margin-bottom: 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.95);
}

.hero-copy h1 {
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
  max-width: 34em;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-points li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.85;
}

.hero-window {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(4px);
}

.hero-window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px 12px;
}

.hero-window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.hero-window-bar em {
  font-style: normal;
  margin-left: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}

.hero-window img {
  border-radius: 8px;
  width: 100%;
  box-shadow: 0 8px 24px rgba(20, 12, 48, 0.35);
}

/* 数据条 */

.stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
  transform: translateY(1px);
}

.stat {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 22px 12px;
}

.stat strong {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
}

.stat span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
}

/* ---------- 通用 section ---------- */

.section {
  padding: 88px 0;
}

.section-alt {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.section-head p {
  font-size: 16px;
  color: var(--text-regular);
}

/* ---------- 产品能力 ---------- */

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(64, 128, 255, 0.45);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  margin-bottom: 18px;
}

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

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14.5px;
  color: var(--text-regular);
  line-height: 1.7;
}

/* ---------- 界面预览 ---------- */

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

.shot {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 12px 0;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shot:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.shot img {
  border-radius: 8px 8px 0 0;
  width: 100%;
  border: 1px solid var(--border-light);
}

.shot figcaption {
  padding: 12px 4px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-regular);
  text-align: center;
}

/* ---------- 开放生态 ---------- */

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

.eco-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.eco-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(64, 128, 255, 0.45);
}

.eco-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: 999px;
}

.eco-card h3 {
  font-size: 19px;
  font-weight: 600;
}

.eco-card p {
  font-size: 14.5px;
  color: var(--text-regular);
  line-height: 1.7;
  flex: 1;
}

.eco-card a {
  font-size: 14.5px;
  font-weight: 600;
}

/* ---------- CTA ---------- */

.cta {
  background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
  color: #fff;
  padding: 88px 0;
  text-align: center;
}

.cta-inner h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 800;
  margin-bottom: 14px;
}

.cta-inner p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 32px;
}

/* ---------- 页脚 ---------- */

.footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 56px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand p {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links strong {
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-regular);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 20px;
  padding-bottom: 20px;
  border-top: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-bottom a {
  color: var(--text-secondary);
}

.footer-bottom a:hover {
  color: var(--primary);
}

/* ---------- 滚动进入动画 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .feature-card,
  .eco-card,
  .shot {
    transition: none;
  }
}

/* ---------- 响应式 ---------- */

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

  .hero-visual {
    max-width: 640px;
    margin: 0 auto;
    width: 100%;
  }

  .feature-grid,
  .eco-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 18px;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 12px 18px 16px;
    box-shadow: var(--shadow-md);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 14px;
    font-size: 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-actions .btn {
    display: none;
  }

  .hero {
    padding-top: 64px;
  }

  .hero-inner {
    gap: 40px;
    padding-bottom: 64px;
  }

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

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat {
    padding: 18px 12px;
  }

  .stat strong {
    font-size: 26px;
  }

  .section {
    padding: 64px 0;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .feature-grid,
  .eco-grid,
  .shot-grid {
    grid-template-columns: 1fr;
  }

  .cta {
    padding: 64px 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
