/* ============================
   昕曜官网样式表 v2.1 — 智能科技风格
   最后更新: 2026-07-08
   ============================ */
:root {
  /* 深色科技底色 */
  --bg-deep: #060b16;
  --bg-dark: #0a101f;
  --bg-card: rgba(10, 16, 31, 0.72);
  --bg-card-hover: rgba(14, 22, 40, 0.88);
  --bg-glass: rgba(255, 255, 255, 0.03);

  /* 电光青主色 */
  --primary: #00d4ff;
  --primary-dim: #0088aa;
  --primary-glow: rgba(0, 212, 255, 0.18);
  --primary-glow-strong: rgba(0, 212, 255, 0.35);

  /* 紫色辅色 */
  --secondary: #8b5cf6;
  --secondary-glow: rgba(139, 92, 246, 0.18);

  /* 文字 */
  --text-primary: #e6edf5;
  --text-secondary: #8a9bb5;
  --text-muted: #556277;

  /* 边框 & 阴影 */
  --border-subtle: rgba(0, 212, 255, 0.08);
  --border-glow: rgba(0, 212, 255, 0.2);
  --border-glow-hover: rgba(0, 212, 255, 0.4);
  --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.08);
  --shadow-elevated: 0 8px 40px rgba(0, 0, 0, 0.4);

  /* 圆角 */
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;

  /* 过渡 */
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* 尺寸 */
  --nav-height: 72px;
  --max-width: 1240px;
  --section-gap: 40px;
}

/* ============================
   Reset & Base
   ============================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ============================
   Canvas Background
   ============================ */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ============================
   Tech Grid Background (CSS)
   ============================ */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* 扫描线 */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 212, 255, 0.008) 2px,
    rgba(0, 212, 255, 0.008) 4px
  );
}

/* ============================
   Navbar
   ============================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(6, 11, 22, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(6, 11, 22, 0.92);
  border-bottom-color: var(--border-glow);
  box-shadow: 0 1px 30px rgba(0, 212, 255, 0.06);
}

.nav-container {
  max-width: 94%;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.logo-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 6px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

.nav-link {
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
  letter-spacing: 0.3px;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: transform var(--transition);
  box-shadow: 0 0 8px var(--primary-glow);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  text-shadow: 0 0 20px var(--primary-glow);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Contact Dropdown */
.contact-wrapper {
  position: relative;
}

.contact-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 360px;
  background: rgba(10, 16, 31, 0.95);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 30px var(--primary-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 100;
}

.contact-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.contact-dropdown-header {
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.contact-dropdown-header h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}

.contact-dropdown-body {
  padding: 12px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-icon {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 2px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.contact-value {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================
   Section Common
   ============================ */
.section {
  position: relative;
  z-index: 1;
  margin-bottom: var(--section-gap);
}

.section:first-of-type {
  margin-top: var(--nav-height);
}

.section-header {
  width: 90%;
  margin: 0 auto 36px;
  text-align: center;
  padding: 60px 20px 0;
}

/* 标题下方科技装饰线 */
.section-header::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin: 20px auto 0;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  border-radius: 2px;
  box-shadow: 0 0 12px var(--primary-glow);
}

.section-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(180deg, #e6edf5 0%, #8a9bb5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
  margin-top: 12px;
}

/* Glass Card */
.section-card {
  width: 90%;
  margin: 0 auto;
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 48px 48px;
  box-shadow: var(--shadow-glow);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

/* 卡片顶部微光扫线 */
.section-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 212, 255, 0.3) 20%,
    rgba(139, 92, 246, 0.3) 50%,
    rgba(0, 212, 255, 0.3) 80%,
    transparent 100%
  );
}

/* ============================
   Scroll Reveal
   ============================ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays (handled via JS) */

/* ============================
   Hero Section
   ============================ */
.hero-section {
  padding: 0;
  margin-bottom: 0;
}

.hero-section:first-of-type {
  margin-top: var(--nav-height);
}

.hero-section .section-card {
  width: 100%;
  max-width: 100%;
  margin: 0;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  overflow: visible;
}

.hero-section .section-card::before {
  display: none;
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
  padding: 100px 32px 120px;
  position: relative;
}

.hero-text {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 2;
}

/* 标题前装饰 */
.hero-text::before {
  content: "AI POWERED";
  display: block;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--primary);
  margin-bottom: 20px;
  opacity: 0.7;
}

.hero-title {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 24px;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #ffffff 0%, var(--primary) 40%, var(--secondary) 80%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.3));
}

.hero-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 2;
  margin-bottom: 36px;
  max-width: 520px;
}

/* CTA 按钮组 */
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: transparent;
  color: var(--primary);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glow);
  transition: all var(--transition);
  cursor: pointer;
}

.btn-outline:hover {
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
  background: rgba(0, 212, 255, 0.05);
  transform: translateY(-3px);
}

/* Hero 视觉区 — Canvas 粒子网络 */
.hero-visual {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

#heroCanvas {
  width: 420px;
  height: 420px;
}

/* ============================
   Products / Services — 通用行布局
   ============================ */
.product-list,
.service-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.item-row {
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.item-row:last-child {
  border-bottom: none;
}

.item-row.reverse {
  flex-direction: row-reverse;
}

.item-row .item-text {
  flex: 1;
  min-width: 0;
  padding: 24px 48px;
}

.item-row .item-text h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}

/* 标题下方发光短线 */
.item-row .item-text h3::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  margin-top: 8px;
  background: var(--primary);
  border-radius: 1px;
  box-shadow: 0 0 8px var(--primary-glow);
}

.item-row .item-text p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.9;
}

/* 标签 */
.tech-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.tech-tag {
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 20px;
  letter-spacing: 0.3px;
}

.item-row .item-media {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.item-row .item-media img {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.06);
  transition: all var(--transition);
}

.item-row .item-media:hover img {
  border-color: var(--border-glow);
  box-shadow: 0 0 60px rgba(0, 212, 255, 0.12);
}

/* ============================
   Glass Card 公共基类
   ============================ */
.glass-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition);
}

.glass-card:hover::before {
  opacity: 1;
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* ============================
   AI Apps Section
   ============================ */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ai-card {
  padding: 36px 28px;
}

.ai-card::before {
  background: radial-gradient(circle at 50% 0%, rgba(0, 212, 255, 0.06) 0%, transparent 70%);
}

.ai-card:hover {
  border-color: var(--border-glow-hover);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px var(--primary-glow);
}

.ai-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.ai-card:hover .ai-icon {
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
}

.ai-icon svg {
  width: 26px;
  height: 26px;
}

.ai-card h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
  transition: color var(--transition);
}

.ai-card:hover h4 {
  color: var(--primary);
}

.ai-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================
   Advantages Section
   ============================ */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.advantage-card {
  padding: 44px 32px;
}

.advantage-card::before {
  background: radial-gradient(circle at 50% 100%, rgba(139, 92, 246, 0.05) 0%, transparent 60%);
}

.advantage-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px var(--secondary-glow);
}

.advantage-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  color: var(--primary);
  transition: color var(--transition);
}

.advantage-card:hover .advantage-icon {
  color: var(--secondary);
}

.advantage-icon svg {
  width: 100%;
  height: 100%;
}

.advantage-card h4 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.advantage-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ============================
   Footer
   ============================ */
.footer {
  position: relative;
  z-index: 1;
  background: rgba(6, 11, 22, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  padding: 40px 20px;
  margin-top: 20px;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.footer-copyright {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.footer-license {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-license a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-license a:hover {
  color: var(--accent);
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 1024px) {
  .hero-content {
    flex-direction: column;
    gap: 48px;
    text-align: center;
    padding: 64px 24px 80px;
  }

  .hero-title { font-size: 36px; }
  .hero-desc { max-width: 100%; }
  .hero-actions { justify-content: center; }
  #heroCanvas { width: 320px; height: 320px; }

  .ai-grid,
  .advantage-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .item-row {
    flex-direction: column !important;
    gap: 24px;
    text-align: center;
  }
  .item-row .item-text h3::after {
    margin: 8px auto 0;
  }
  .tech-tags {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .nav-container { padding: 0 16px; }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(6, 11, 22, 0.96);
    backdrop-filter: blur(20px);
    padding: 16px;
    gap: 4px;
    transform: translateY(-120%);
    transition: transform var(--transition);
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav-menu.open { transform: translateY(0); }
  .nav-toggle { display: flex; }

  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero-title { font-size: 28px; }
  .hero-text::before { font-size: 10px; letter-spacing: 2px; }
  .section-title { font-size: 26px; }
  #heroCanvas { width: 260px; height: 260px; }

  .section-card { padding: 32px 20px; }

  .ai-grid,
  .advantage-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions { flex-direction: column; align-items: center; }
}
