/* ============================================================
   Eagaton 通讯设备品牌 - 样式表
   主色调：高级商务灰 + 科技蓝点缀
   ============================================================ */

/* ---------- CSS 变量 ---------- */
:root {
  /* 主色调 */
  --color-deep:    #1a1a2e;
  --color-medium:  #2d2d44;
  --color-light:   #e8e8e8;
  --color-bg:      #f5f5f7;

  /* 辅助色 */
  --color-accent:       #4a90d9;
  --color-accent-hover: #3a7bc8;
  --color-accent-light: rgba(74, 144, 217, 0.12);

  /* 文字色 */
  --color-text:       #2d2d44;
  --color-text-light: #6b6b80;
  --color-text-white: #ffffff;

  /* 卡片 */
  --color-card-bg:    #ffffff;
  --color-card-shadow: rgba(0, 0, 0, 0.06);

  /* 尺寸 */
  --max-width: 1200px;
  --nav-height: 72px;
  --radius: 12px;
  --radius-sm: 8px;

  /* 间距 */
  --section-padding: 100px 24px;

  /* 动效 */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
}

/* ---------- 全局重置 ---------- */
*,
*::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", Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ---------- 滚动渐入动画 ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* 错开延迟 */
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }
.fade-in:nth-child(5) { transition-delay: 0.4s; }

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

/* ---------- 区块标题 ---------- */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-deep);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--color-text-light);
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- 按钮样式 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-text-white);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(74, 144, 217, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--color-text-white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}
.btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-ghost {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}
.btn-ghost:hover {
  background: var(--color-accent);
  color: #fff;
}

/* ============================================================
   1. 导航栏
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(26, 26, 46, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  transition: background var(--transition-base);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
  /* 深色背景下反转 Logo 颜色：黑色 → 白色 */
  filter: brightness(0) invert(1);
}

/* 导航链接 */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* 导航右侧操作区 */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-actions .btn {
  padding: 10px 24px;
  font-size: 13px;
}

/* 语言切换按钮 */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.lang-switcher:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

.lang-switcher .lang-icon {
  flex-shrink: 0;
}

/* 移动端语言切换器在展开时等宽排列 */
@media (max-width: 768px) {
  .nav-actions.open .lang-switcher {
    justify-content: center;
    width: 100%;
  }
}

/* 汉堡菜单按钮 */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition-base);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   2. Hero 区
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  /* 深灰渐变背景 */
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 50%, #1a1a2e 100%);
  padding: 120px 24px 80px;
}

/* 背景装饰几何图形 */
.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(74, 144, 217, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(74, 144, 217, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--color-accent);
  background: rgba(74, 144, 217, 0.12);
  border: 1px solid rgba(74, 144, 217, 0.25);
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero h1 span {
  color: var(--color-accent);
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.65);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

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

/* 滚动指示器 */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: bounce 2s infinite;
}

.scroll-indicator svg {
  width: 24px;
  height: 24px;
  opacity: 0.4;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-8px); }
  60% { transform: translateX(-50%) translateY(-4px); }
}

/* ============================================================
   3. 产品展示区
   ============================================================ */
.products {
  padding: var(--section-padding);
  background: #fff;
}

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

.product-card {
  background: var(--color-card-bg);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  border: 1px solid #eaeaea;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px var(--color-card-shadow);
  border-color: transparent;
}

.product-card:hover::before {
  transform: scaleX(1);
}

/* 产品图标 */
.product-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  background: var(--color-accent-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-base);
}

.product-card:hover .product-icon {
  background: var(--color-accent);
}
.product-card:hover .product-icon svg {
  color: #fff;
}

.product-icon svg {
  width: 36px;
  height: 36px;
  color: var(--color-accent);
  transition: color var(--transition-base);
}

.product-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-deep);
  margin-bottom: 12px;
}

.product-card p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 20px;
}

.product-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  transition: gap var(--transition-fast);
}

.product-card:hover .product-tag {
  gap: 10px;
}

.product-tag svg {
  width: 16px;
  height: 16px;
}

/* ============================================================
   4. 核心优势区
   ============================================================ */
.advantages {
  padding: var(--section-padding);
  background: var(--color-bg);
}

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

.advantage-card {
  text-align: center;
  padding: 36px 24px;
  background: #fff;
  border-radius: var(--radius);
  transition: all var(--transition-base);
}

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

.advantage-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: var(--color-accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.advantage-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
}

.advantage-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-deep);
  margin-bottom: 8px;
}

.advantage-card p {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ============================================================
   5. 关于我们区
   ============================================================ */
.about {
  padding: var(--section-padding);
  background: #fff;
}

.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-deep);
  margin-bottom: 20px;
}

.about-text p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 12px;
}

/* 数据亮点 */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--color-bg);
  border-radius: var(--radius);
  transition: transform var(--transition-base);
}

.stat-card:hover {
  transform: scale(1.04);
}

.stat-number {
  display: block;
  font-size: 40px;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  color: var(--color-text-light);
  font-weight: 500;
}

/* ============================================================
   6. 技术支持区
   ============================================================ */
.support {
  padding: var(--section-padding);
  background: var(--color-bg);
}

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

.support-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 20px;
  background: #fff;
  border-radius: var(--radius);
  transition: all var(--transition-base);
  border: 1px solid transparent;
}

.support-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 28px var(--color-card-shadow);
}

.support-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  color: var(--color-accent);
}

.support-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-deep);
  margin-bottom: 6px;
}

.support-card p {
  font-size: 13px;
  color: var(--color-text-light);
}

/* ============================================================
   7. 页脚
   ============================================================ */
.footer {
  background: var(--color-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 24px 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .nav-logo {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 10px;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--color-accent);
}

/* 社交图标 */
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
}

.social-link svg {
  width: 18px;
  height: 18px;
  color: #fff;
}

/* 页脚底部 */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

/* ============================================================
   响应式设计
   ============================================================ */

/* 平板端 (≤1024px) */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .advantage-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .support-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .about-wrapper { gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .hero h1 { font-size: 44px; }
  .section-title { font-size: 30px; }
}

/* 移动端 (≤768px) */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
    --section-padding: 64px 16px;
  }

  /* 导航 - 移动端 */
  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: rgba(26, 26, 46, 0.97);
    backdrop-filter: blur(12px);
    padding: 20px 0;
    gap: 0;
  }

  .nav-links.open a {
    padding: 14px 24px;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-actions.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(var(--nav-height) + 256px);
    left: 0;
    width: 100%;
    padding: 16px 24px;
    background: rgba(26, 26, 46, 0.97);
    backdrop-filter: blur(12px);
    gap: 10px;
  }

  .nav-actions.open .btn { width: 100%; }

  .hamburger { display: flex; }

  /* Hero */
  .hero h1 { font-size: 32px; }
  .hero-subtitle { font-size: 15px; }

  /* 产品 */
  .product-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }

  /* 优势 */
  .advantage-grid { grid-template-columns: 1fr 1fr; gap: 16px; }

  /* 关于 */
  .about-wrapper { grid-template-columns: 1fr; }
  .about-text { order: 1; }
  .about-stats { order: 2; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .about-text h2 { font-size: 28px; }

  /* 支持 */
  .support-grid { grid-template-columns: 1fr 1fr; gap: 16px; }

  /* 页脚 */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .footer-brand { display: flex; flex-direction: column; align-items: center; }
  .social-links { justify-content: center; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* 通用 */
  .section-title { font-size: 26px; }
  .section-header { margin-bottom: 40px; }
  .stat-number { font-size: 30px; }
}

/* 小屏 (≤480px) */
@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; }
  .advantage-grid { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; max-width: 300px; margin: 0 auto; }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat-card { padding: 24px 12px; }
  .stat-number { font-size: 26px; }
  .btn { padding: 12px 24px; font-size: 14px; }
}
