/* ========== 设计系统 ========== */
:root {
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --paper: #f8fafc;
  --white: #ffffff;
  --navy: #0a0f1e;
  --teal: #10b981;
  --teal-dark: #059669;
  --cyan: #06b6d4;
  --orange: #f97316;
  --amber: #f59e0b;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.18);
  --radius: 12px;
  --radius-sm: 8px;
}

/* ========== 重置 ========== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding-left: 20px; }
ul li { margin-top: 6px; color: var(--muted); font-size: 15px; }

/* ========== 导航栏 ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px clamp(20px, 5vw, 80px);
  background: rgba(248, 250, 252, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  transition: box-shadow 300ms ease;
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(15, 23, 42, 0.1); }
.brand img { width: 38px; height: 38px; }
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}
.nav a { transition: color 160ms ease; padding-bottom: 2px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--teal); }
.nav a.active { color: var(--teal); border-bottom-color: var(--teal); }

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px clamp(20px, 7vw, 80px) 80px;
  background: var(--navy);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 20%, rgba(6, 182, 212, 0.18), transparent),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(16, 185, 129, 0.12), transparent),
    radial-gradient(ellipse 40% 40% at 60% 50%, rgba(245, 158, 11, 0.08), transparent);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-text { color: var(--white); }
.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-text h1 {
  font-size: clamp(38px, 5.5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.hero-desc {
  max-width: 520px;
  margin-top: 22px;
  color: #94a3b8;
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* 按钮 */
.btn-primary, .btn-outline {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}
.btn-primary {
  color: #0f172a;
  background: var(--teal);
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(16, 185, 129, 0.4); }
.btn-outline {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-2px); }

/* Hero 视觉装饰 */
.hero-visual { position: relative; height: 380px; display: flex; align-items: center; justify-content: center; }
.hv-orb {
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2), transparent 70%);
  animation: orb-float 6s ease-in-out infinite;
}
.hv-orb.small {
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.18), transparent 70%);
  animation-delay: -3s;
  transform: translate(60px, -40px);
}
@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(14px, -14px) scale(1.04); }
}
.hv-cards { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hv-cards span {
  width: 72px; height: 72px;
  display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: var(--radius);
  font-size: 13px; font-weight: 800;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  transition: transform 200ms ease, border-color 200ms ease;
}
.hv-cards span:hover { transform: translateY(-4px); border-color: var(--teal); }

/* ========== Section 通用 ========== */
.section { padding: 100px clamp(20px, 7vw, 80px); }
.section-head { max-width: 640px; margin-bottom: 60px; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.section-sub { margin-top: 16px; color: var(--muted); font-size: 16px; }

/* ========== 首页产品速览 ========== */
.overview { background: var(--white); }
.overview-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.ov-card {
  display: block;
  padding: 28px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  text-align: center;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  cursor: pointer;
}
.ov-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--teal); }
.ov-icon {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--paper);
}
.ov-card h3 { font-size: 15px; margin-bottom: 8px; }
.ov-card p { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ========== 技术底座 ========== */
.tech { background: #f1f5f9; }
.tech-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.tech-card {
  padding: 24px 20px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.tech-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tech-card strong { display: block; font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.tech-card span { font-size: 13px; color: var(--muted); }

/* ========== Page Hero（列表页和详情页的小横幅） ========== */
.page-hero {
  padding: 120px clamp(20px, 7vw, 80px) 48px;
  background: linear-gradient(180deg, var(--navy) 0%, #0f1b33 100%);
  color: var(--white);
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  margin-bottom: 12px;
}
.page-hero p { color: #94a3b8; font-size: 16px; max-width: 560px; margin: 0 auto; }

/* ========== 产品列表页 ========== */
.product-list { background: var(--paper); }
.pl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.pl-card {
  padding: 32px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease;
  display: flex;
  flex-direction: column;
}
.pl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pl-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--paper);
  margin-bottom: 16px;
}
.pl-card h3 { font-size: 20px; margin-bottom: 10px; }
.pl-desc { color: var(--muted); font-size: 14px; line-height: 1.65; margin-bottom: 16px; flex: 1; }
.pl-features { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.pl-features span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  background: var(--paper);
  border: 1px solid var(--line);
}
.pl-link {
  display: inline-flex;
  align-items: center;
  color: var(--teal);
  font-size: 14px;
  font-weight: 700;
  transition: gap 200ms ease;
}
.pl-link:hover { text-decoration: underline; }

/* 产品标签 */
.prod-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.tag-ai { color: #059669; background: #d1fae5; }
.tag-cf { color: #0e7490; background: #cffafe; }
.tag-im { color: #c2410c; background: #ffedd5; }
.tag-shop { color: #059669; background: #d1fae5; }
.tag-fp { color: #b45309; background: #fef3c7; }

/* ========== 产品详情页 ========== */
.detail-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px clamp(20px, 7vw, 80px) 80px;
}
/* 侧边栏 */
.detail-nav {
  position: sticky;
  top: 100px;
  align-self: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.detail-nav-title { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.06em; }
.detail-nav a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  border-bottom: 1px solid var(--line);
  transition: color 160ms ease;
}
.detail-nav a:last-child { border-bottom: 0; }
.detail-nav a:hover { color: var(--teal); }

/* 详情内容 */
.detail-content { min-width: 0; }
.detail-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}
.detail-section:first-child { padding-top: 0; }
.detail-section:last-child { border-bottom: 0; }
.detail-header { margin-bottom: 32px; }
.detail-header h2 { font-size: 28px; margin: 10px 0 12px; }
.detail-lead { color: var(--muted); font-size: 16px; max-width: 600px; }
.detail-block { margin-bottom: 32px; }
.detail-block h3 {
  font-size: 18px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--teal);
  display: inline-block;
}
.detail-block > p { color: var(--muted); font-size: 15px; line-height: 1.75; }

/* 特性网格 */
.detail-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 14px;
}
.df-item {
  padding: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--white);
}
.df-item strong { display: block; font-size: 14px; margin-bottom: 6px; }
.df-item p { color: var(--muted); font-size: 13px; line-height: 1.6; }

/* 技术表格 */
.detail-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.detail-table td {
  padding: 10px 14px;
  border: 1px solid var(--line);
}
.detail-table td:first-child {
  font-weight: 700;
  width: 140px;
  background: var(--paper);
  color: var(--ink);
}
.detail-table td:last-child { color: var(--muted); }

/* ========== 页脚 ========== */
.site-footer {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px clamp(20px, 7vw, 80px);
  border-top: 1px solid var(--line);
  background: var(--white);
  font-size: 14px;
  color: var(--muted);
}
.site-footer img { width: 32px; height: 32px; }
.footer-nav { display: flex; gap: 20px; }
.footer-nav a { transition: color 160ms ease; }
.footer-nav a:hover { color: var(--teal); }
.site-footer > p { margin-left: auto; }

/* ========== 滚动渐显动画 ========== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: 200px; }
  .hv-orb { width: 200px; height: 200px; }
  .hv-orb.small { width: 120px; height: 120px; }
  .overview-grid { grid-template-columns: repeat(3, 1fr); }
  .pl-grid { grid-template-columns: 1fr 1fr; }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-layout { grid-template-columns: 180px 1fr; gap: 32px; }
  .detail-grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .site-header { gap: 14px; padding: 12px 20px; }
  .nav { gap: 16px; font-size: 13px; }
  .hero { padding: 100px 20px 60px; }
  .hero-visual { display: none; }
  .section { padding: 64px 20px; }
  .overview-grid { grid-template-columns: 1fr 1fr; }
  .pl-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-nav { position: static; display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; }
  .detail-nav-title { width: 100%; margin-bottom: 4px; }
  .detail-nav a { border-bottom: 0; padding: 4px 10px; font-size: 12px; border: 1px solid var(--line); border-radius: 4px; }
  .detail-grid-3 { grid-template-columns: 1fr; }
  .detail-table td:first-child { width: 100px; }
  .site-footer { flex-wrap: wrap; gap: 12px; }
  .site-footer > p { margin-left: 0; width: 100%; }
  .page-hero { padding: 100px 20px 36px; }
}

@media (max-width: 480px) {
  .hero-text h1 br { display: none; }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline { width: 100%; }
  .overview-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ov-card { padding: 20px 14px; }
  .tech-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tech-card { padding: 18px 12px; }
  .detail-header h2 { font-size: 22px; }
  .detail-section { padding: 32px 0; }
}

/* ========== 可访问性 ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
