﻿/* ============================================================
   惠州市毅迅电子科技有限公司 — 欧美现代风格全站样式
   Palette: Dark #0a0c10 / White #fff / Gold Accent #c6903f
   Font: Inter (Google Fonts)
   修改指引：色值集中在 :root，字体在 Google Fonts CDN
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url(''https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap'');

/* ---------- CSS 变量 ---------- */
:root {
  --dark: #0a0c10;
  --dark-soft: #16181d;
  --dark-card: #1c1f25;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --accent: #c6903f;
  --accent-hover: #a6772e;
  --accent-light: rgba(198,144,63,0.12);
  --font-main: ''Inter'', ''PingFang SC'', ''Microsoft YaHei'', system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- 全局 ---------- */
html { scroll-behavior: smooth; }
* { box-sizing: border-box; }
body {
  font-family: var(--font-main);
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  line-height: 1.6;
}

/* ---------- 容器 ---------- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ---------- 导航栏 — 毛玻璃效果 ---------- */
#navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  transition: all var(--transition);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color var(--transition);
  text-decoration: none;
}
.nav-link:hover, .nav-link.active { color: var(--dark); }
.nav-link.active::after {
  content: '''';
  position: absolute; bottom: -4px; left: 0;
  width: 100%; height: 2px;
  background: var(--accent); border-radius: 1px;
}

/* 移动端菜单 */
#mobile-menu { transition: max-height 0.4s ease, opacity 0.3s ease; overflow: hidden; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 50px;
  font-weight: 600; font-size: 0.9rem;
  transition: all var(--transition);
  cursor: pointer; text-decoration: none;
  border: none;
}
.btn-primary {
  background: var(--accent); color: var(--white);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(198,144,63,0.3); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-dark {
  background: var(--dark); color: var(--white);
}
.btn-dark:hover { background: var(--dark-soft); transform: translateY(-1px); box-shadow: var(--shadow); }

/* ---------- Hero Banner ---------- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex; align-items: center;
  background: var(--dark);
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  opacity: 0.35;
  object-fit: cover; width: 100%; height: 100%;
}
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 24px;
}

/* ---------- 区块标题 ---------- */
.section-tag {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px; display: block;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800; line-height: 1.15;
  color: var(--dark);
  margin: 0 0 16px;
}
.section-subtitle {
  font-size: 1.05rem; color: var(--gray-500);
  max-width: 560px; margin: 0 auto;
}

/* ---------- 卡片 ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.dark-card {
  background: var(--dark-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.dark-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.12);
}

/* ---------- 轮播 ---------- */
.carousel-container { position: relative; overflow: hidden; }
.carousel-slides { display: flex; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.carousel-slide { min-width: 100%; position: relative; }
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer; transition: all var(--transition);
}
.carousel-dot.active { background: var(--accent); width: 24px; border-radius: 4px; }

/* ---------- 筛选标签 ---------- */
.filter-tag {
  padding: 8px 20px; border-radius: 50px;
  font-size: 0.85rem; font-weight: 500; cursor: pointer;
  transition: all var(--transition);
  border: 1.5px solid var(--gray-200);
  color: var(--gray-600); background: transparent;
}
.filter-tag:hover { border-color: var(--gray-400); color: var(--dark); }
.filter-tag.active {
  background: var(--dark); color: var(--white); border-color: var(--dark);
}

/* ---------- 模态弹窗 ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.2s ease;
  padding: 16px;
}
.modal-content {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 640px; width: 100%; max-height: 85vh; overflow-y: auto;
  position: relative;
  animation: slideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ---------- 统计数字 ---------- */
.stat-number {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900; line-height: 1;
  color: var(--accent);
}

/* ---------- 客户滚动 ---------- */
.partner-track { display: flex; gap: 40px; animation: scrollLeft 30s linear infinite; }
.partner-track:hover { animation-play-state: paused; }
@keyframes scrollLeft { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ---------- 表单 ---------- */
.form-input {
  width: 100%; padding: 14px 18px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-main); font-size: 0.95rem;
  transition: all var(--transition);
  background: var(--white); color: var(--gray-800);
  outline: none;
}
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.form-input::placeholder { color: var(--gray-400); }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--dark);
  color: var(--gray-400);
  font-size: 0.9rem;
  padding: 64px 0 32px;
}
.site-footer a { color: var(--gray-400); transition: color var(--transition); }
.site-footer a:hover { color: var(--white); }

/* ---------- 工具类 ---------- */
.text-accent { color: var(--accent); }
.bg-dark { background: var(--dark); }
.bg-dark-soft { background: var(--dark-soft); }
.bg-gray-soft { background: var(--gray-50); }

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .hero { min-height: 70vh; }
  .container { padding: 0 16px; }
  .partner-track { animation: scrollLeft 18s linear infinite; }
  #navbar { background: rgba(255,255,255,0.95); }
}
*** End Patch - style.css rewritten ***
