/* 艾里森光电官网样式 - V2.1 "暗夜画廊"版（手机优化）
 * 设计原则：以黑为底，以光为笔。手机端大字体、大触控区。
 */

:root {
  --bg: #050505;
  --bg-card: #0a0a0a;
  --text: #ffffff;
  --text-muted: #aaaaaa;
  --accent-gold: #d4af37;
  --accent-glow: rgba(212, 175, 55, 0.4);
  --border: rgba(255,255,255,0.1);
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; outline: none; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; transition: 0.2s; }
img { display: block; max-width: 100%; height: auto; }

/* ====== 导航栏 ====== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(5,5,5,0.9);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1400px; margin: 0 auto;
  height: 70px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
}

.brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; }
.brand-mark {
  width: 30px; height: 30px; background: var(--accent-gold); color: #000;
  display: grid; place-items: center; border-radius: 4px; font-size: 12px; font-weight: 800;
}
.brand small { display: block; font-size: 9px; color: var(--text-muted); font-weight: 400; letter-spacing: 0.5px; margin-top: 1px; }

/* 桌面导航链接 */
.nav-links { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--text-muted);
  position: relative; padding-bottom: 4px;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a::after {
  content: ""; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--accent-gold); transition: 0.25s;
}
.nav-links a:hover::after { width: 100%; }

/* 汉堡按钮 - 手机端可见 */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  width: 48px; height: 48px; background: none; border: 1px solid var(--border);
  border-radius: 8px; color: #fff; font-size: 22px; cursor: pointer;
  z-index: 210; /* 必须在菜单面板之上 */
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* ====== Hero 区域 ====== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; z-index: 0;
  filter: brightness(0.7) contrast(1.1);
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(5,5,5,0.95) 0%, rgba(5,5,5,0.4) 60%, transparent 100%);
}
.hero-content { position: relative; z-index: 2; padding: 0 10%; max-width: 900px; }

.eyebrow {
  display: inline-block; padding: 6px 14px;
  border: 1px solid var(--accent-gold); color: var(--accent-gold);
  font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 20px; background: rgba(212,175,55,0.08); border-radius: 2px;
}

h1 {
  font-size: clamp(36px, 7vw, 72px);
  line-height: 1.15; margin-bottom: 20px; font-weight: 800; letter-spacing: -0.5px;
}

.lead { font-size: 18px; color: #ccc; margin-bottom: 32px; max-width: 560px; line-height: 1.7; }

.actions { display: flex; gap: 14px; flex-wrap: wrap; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 28px;
  font-weight: 600; font-size: 16px; border-radius: 6px;
  transition: 0.2s; border: none; cursor: pointer;
  min-width: 140px;
}
.button.primary { background: var(--accent-gold); color: #000; }
.button.primary:hover { background: #fff; box-shadow: 0 4px 20px var(--accent-glow); transform: translateY(-2px); }
.button.secondary { background: transparent; border: 1.5px solid rgba(255,255,255,0.25); color: #fff; }
.button.secondary:hover { border-color: #fff; background: rgba(255,255,255,0.05); }

.metrics {
  display: flex; gap: 40px; margin-top: 48px;
  padding-top: 24px; border-top: 1px solid var(--border);
}
.metric strong { display: block; font-size: 32px; font-weight: 700; }
.metric span { font-size: 13px; color: var(--text-muted); }

/* ====== Section 通用 ====== */
.section { padding: 90px 0; }
.section.alt { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; width: 100%; }
.section-head { margin-bottom: 48px; }
.section-title { font-size: clamp(28px, 5vw, 44px); margin-bottom: 14px; font-weight: 700; line-height: 1.25; }
.section-copy { color: var(--text-muted); font-size: 17px; max-width: 680px; line-height: 1.75; }

/* ====== 卡片 ====== */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }

.card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  padding: 28px; border-radius: 8px;
  transition: 0.3s; position: relative; overflow: hidden;
}
.card:hover {
  border-color: rgba(212,175,55,0.3);
  transform: translateY(-3px);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.card::before {
  content: ""; position: absolute; top: 0; left: -100%; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent); transition: 0.5s;
}
.card:hover::before { left: 100%; }

.card h3 { font-size: 19px; margin-bottom: 10px; font-weight: 600; line-height: 1.35; }
.card p { color: var(--text-muted); margin: 0; font-size: 15px; line-height: 1.7; }

.tag {
  display: inline-block; padding: 4px 10px; margin-bottom: 14px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
  color: var(--accent-gold); border: 1px solid rgba(212,175,55,0.3); border-radius: 3px;
  background: rgba(212,175,55,0.06);
}

/* ====== 媒体卡片 ====== */
.media-card { padding: 0; display: flex; flex-direction: column; height: 100%; border-radius: 8px; overflow: hidden; }
.media-card img { width: 100%; height: 240px; object-fit: cover; transition: 0.5s; filter: brightness(0.85); }
.media-card:hover img { transform: scale(1.04); filter: brightness(1.05); }
.media-body { padding: 22px; border-top: 1px solid var(--border); background: var(--bg-card); flex: 1; }
.media-body h3 { margin-bottom: 8px; }

/* ====== 业务列表 ====== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.feature-list { display: grid; gap: 16px; }
.feature {
  display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 20px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.02); border-radius: 8px;
}
.feature b {
  width: 48px; height: 48px; display: grid; place-items: center;
  background: rgba(212,175,55,0.08); border: 1px solid rgba(212,175,55,0.2);
  font-weight: 800; color: var(--accent-gold); border-radius: 6px; font-size: 16px;
}
.feature h3 { margin-bottom: 4px; font-size: 17px; }
.feature p { margin: 0; color: var(--text-muted); font-size: 14px; }

/* ====== Footer ====== */
.site-footer { padding: 50px 0 30px; background: #000; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-grid h3 { font-size: 15px; margin-bottom: 12px; color: #fff; }
.footer-grid p, .footer-grid a { color: var(--text-muted); margin-bottom: 6px; display: block; font-size: 14px; line-height: 1.6; }
.copyright { text-align: center; color: #555; font-size: 13px; padding-top: 20px; border-top: 1px solid var(--border); }

/* ====== 响应式：手机端 ====== */
@media (max-width: 900px) {
  /* 导航 */
  .nav { height: 60px; padding: 0 16px; }
  .brand { font-size: 16px; gap: 8px; }
  .brand small { display: none; }
  .brand-mark { width: 28px; height: 28px; font-size: 11px; }

  /* 汉堡按钮 */
  .nav-toggle {
    display: flex !important;
    width: 48px; height: 48px; /* 大触控区 */
    font-size: 24px;
    position: relative; z-index: 210;
    background: rgba(255,255,255,0.05);
  }

  /* 全屏菜单面板 */
  .nav-links {
    display: none;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    flex-direction: column;
    background: rgba(5,5,5,0.98);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    padding: 80px 24px 24px; /* 上方留出导航栏空间 */
    gap: 0; z-index: 150; /* 在按钮之下 */
    overflow-y: auto;
  }
  .nav-links.open { display: flex !important; }
  .nav-links li { border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-links a {
    display: block; padding: 18px 0; font-size: 20px; font-weight: 600; color: #fff;
    min-height: 56px; /* 大触控区 */
    display: flex; align-items: center;
  }
  .nav-links a::after { display: none; }

  /* Hero */
  .hero { min-height: auto; padding: 90px 0 50px; }
  .hero-overlay { background: linear-gradient(180deg, rgba(5,5,5,0.92) 0%, rgba(5,5,5,0.5) 100%); }
  .hero-content { padding: 0 20px; text-align: center; max-width: 100%; }
  .hero-bg { opacity: 0.35; }

  h1 { font-size: 30px; letter-spacing: 0; margin-bottom: 16px; }
  .eyebrow { font-size: 11px; padding: 5px 12px; margin-bottom: 14px; }
  .lead { font-size: 16px; margin: 0 auto 24px; line-height: 1.65; }
  .actions { flex-direction: column; align-items: center; gap: 12px; width: 100%; }
  .actions .button { width: 100%; max-width: 320px; height: 52px; font-size: 17px; }

  .metrics { gap: 20px; margin-top: 28px; padding-top: 20px; justify-content: center; flex-wrap: wrap; }
  .metric strong { font-size: 26px; }
  .metric span { font-size: 13px; }

  /* Section */
  .wrap { padding: 0 20px; }
  .section { padding: 50px 0; }
  .section-head { margin-bottom: 28px; }
  .section-title { font-size: 24px; }
  .section-copy { font-size: 16px; }

  /* 卡片 */
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .card { padding: 22px; }
  .card h3 { font-size: 18px; }
  .card p { font-size: 15px; }
  .tag { font-size: 12px; }

  /* 媒体卡片 */
  .media-card img { height: 200px; }
  .media-body { padding: 18px; }

  /* 特色列表 */
  .split { grid-template-columns: 1fr; gap: 28px; }
  .feature { padding: 18px; gap: 14px; }
  .feature b { width: 44px; height: 44px; font-size: 15px; }
  .feature h3 { font-size: 17px; }
  .feature p { font-size: 15px; }

  /* Footer */
  .site-footer { padding: 36px 0 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; margin-bottom: 20px; }
  .footer-grid h3 { font-size: 16px; }
  .footer-grid p, .footer-grid a { font-size: 15px; }
  .copyright { font-size: 13px; }
}

@media (max-width: 380px) {
  h1 { font-size: 26px; }
  .section-title { font-size: 22px; }
  .nav { padding: 0 12px; }
  .wrap { padding: 0 14px; }
  .card { padding: 18px; }
  .metric strong { font-size: 22px; }
}
