/* =============================================
   Ethan 个人品牌网站 - 全局样式表
   现代活力明亮风 | 纯原生 CSS
   ============================================= */

/* ---- CSS 变量主题系统 ---- */
:root {
  /* 主色系 - 活力蓝紫（Indigo系，年轻现代感） */
  --primary: #4F46E5;
  --primary-dark: #4338CA;
  --primary-light: #EEF2FF;
  --primary-gradient: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #6366F1 100%);

  /* 点缀色 - 暖琥珀金 */
  --accent: #F59E0B;
  --accent-hover: #D97706;
  --accent-light: #FFFBEB;

  /* 背景色 */
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --bg-alt2: #eef1f6;

  /* 文字色 */
  --text: #1a1a2e;
  --text-secondary: #5a5a7a;
  --text-muted: #8a8aa0;

  /* 边框与阴影 */
  --border: #e8ecf1;
  --border-light: #f0f2f5;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 8px 32px rgba(79, 70, 229, 0.12);

  /* 圆角 */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* 间距 */
  --section-padding: 100px 0;
  --container-padding: 0 24px;

  /* 字体 */
  --font: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', -apple-system, sans-serif;

  /* 过渡 */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s ease;

  /* 最大宽度 */
  --max-width: 1200px;
}

/* ---- CSS Reset ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* ---- 通用 Section 样式 ---- */
.section {
  padding: var(--section-padding);
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .section-label {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 20px;
  border-radius: 50px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.section-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ---- 按钮系统 ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 14px;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 16px;
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: gap var(--transition);
}

.btn-arrow:hover {
  gap: 12px;
}

/* ---- 导航栏 ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}

.navbar-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-links a {
  padding: 8px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 50px;
  position: relative;
  transition: all var(--transition-fast);
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--primary);
  background: var(--primary-light);
}

/* 语言切换按钮 */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  color: var(--primary);
  background: var(--primary-light);
  border: 1.5px solid transparent;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition-fast);
  letter-spacing: 0.5px;
  white-space: nowrap;
  margin-left: 4px;
}

.lang-toggle:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* 汉堡菜单按钮 */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.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);
}

/* 移动端菜单 */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 100px 32px 40px;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.mobile-menu.active {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  display: block;
  padding: 16px 24px;
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius);
  transition: all var(--transition-fast);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  background: var(--primary-light);
  color: var(--primary);
}

/* 移动端菜单中的语言切换 */
.mobile-menu .lang-toggle {
  margin: 8px 24px;
  padding: 12px 24px;
  font-size: 15px;
  justify-content: center;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
}

.mobile-menu .lang-toggle:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ---- 页脚 ---- */
.footer {
  background: #111827;
  color: #cbd5e1;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer h4 {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer p,
.footer li {
  font-size: 14px;
  line-height: 2;
  color: #94a3b8;
}

.footer .footer-brand {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.footer .footer-desc {
  line-height: 1.8;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
}

/* ---- 页面标题栏 ---- */
.page-hero {
  background: linear-gradient(135deg, #EEF2FF 0%, #F5F3FF 50%, #F0F9FF 100%);
  padding: 140px 0 80px;
  text-align: center;
}

.page-hero h1 {
  font-size: 42px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* ---- 卡片通用样式 ---- */
.card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--bg-alt2);
}

.card-body {
  padding: 24px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- 首页 Banner ---- */
.banner {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1E1B4B 0%, #312E81 30%, #4F46E5 70%, #6366F1 100%);
  overflow: hidden;
}

.banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 900"><defs><linearGradient id="g" x1="0%25" y1="0%25" x2="100%25" y2="100%25"><stop offset="0%25" stop-color="%23ffffff" stop-opacity="0.05"/><stop offset="100%25" stop-color="%23ffffff" stop-opacity="0.02"/></linearGradient></defs><rect fill="url(%23g)" width="1440" height="900"/></svg>') center/cover;
  opacity: 0.3;
}

.banner::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
  animation: floatBubble 8s ease-in-out infinite;
}

@keyframes floatBubble {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, -40px) scale(1.05); }
}

.banner-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
}

.banner-badge {
  display: inline-block;
  padding: 8px 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
}

.banner h1 {
  font-size: 56px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.banner h1 span.banner-accent {
  background: linear-gradient(135deg, #A5B4FC, #F59E0B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.banner p {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 40px;
  line-height: 1.7;
}

.banner-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- 核心优势 ---- */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.advantage-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.advantage-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.advantage-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.advantage-card:hover::before {
  transform: scaleX(1);
}

.advantage-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--primary);
}

.advantage-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.advantage-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---- 产品概览 ---- */
.products-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.products-overview .card {
  cursor: pointer;
}

.products-overview .card-img-wrapper {
  position: relative;
  overflow: hidden;
}

.products-overview .card-img-wrapper img {
  transition: transform 0.5s ease;
}

.products-overview .card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

.products-overview .card-tag {
  padding: 4px 12px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 12px;
}

/* ---- 企业简介 ---- */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-preview-text h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.about-preview-text p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-preview-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-preview-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* ---- 合作伙伴 ---- */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.partner-item {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  filter: grayscale(100%);
  opacity: 0.6;
}

.partner-item:hover {
  filter: grayscale(0%);
  opacity: 1;
  box-shadow: var(--shadow);
  border-color: var(--border);
}

.partner-item img {
  max-height: 48px;
  width: auto;
}

/* ---- 底部 CTA ---- */
.cta-section {
  background: var(--primary-gradient);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 300"><circle cx="100" cy="250" r="200" fill="rgba(255,255,255,0.03)"/><circle cx="1100" cy="50" r="150" fill="rgba(255,255,255,0.03)"/></svg>') center/cover;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.cta-section p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
}

/* ---- 关于页：企业介绍 ---- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-intro-text p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 16px;
}

.about-intro-text .highlight-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

.stat-item .stat-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item .stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

.about-intro-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-intro-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* ---- 时间轴 ---- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-light), var(--primary) 50%, var(--primary-light));
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 48px;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-item:nth-child(odd) .timeline-content {
  text-align: right;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 0 0 4px var(--accent-light);
  z-index: 1;
}

.timeline-content {
  width: calc(50% - 40px);
  background: var(--bg);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.timeline-content:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.timeline-content .year {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.timeline-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.timeline-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- 企业文化 ---- */
.culture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.culture-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

.culture-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.culture-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.culture-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.culture-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---- 资质荣誉 ---- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cert-item {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: all var(--transition);
}

.cert-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.cert-item img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: contain;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.cert-item .cert-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ---- 产品列表页 ---- */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font);
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.products-grid .card {
  cursor: pointer;
}

.products-grid .card-img-wrapper {
  position: relative;
  overflow: hidden;
}

.products-grid .card-img-wrapper img {
  transition: transform 0.5s ease;
}

.products-grid .card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

.products-grid .card-category {
  display: inline-block;
  padding: 3px 10px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  border-radius: 50px;
  margin-bottom: 10px;
}

.products-grid .card-features {
  list-style: none;
  margin-top: 10px;
}

.products-grid .card-features li {
  font-size: 13px;
  color: var(--text-muted);
  padding: 3px 0;
  padding-left: 16px;
  position: relative;
}

.products-grid .card-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

.products-grid .card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

/* ---- 产品详情页 ---- */
.breadcrumb {
  padding: 16px 0;
  font-size: 14px;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--primary);
}

.breadcrumb span {
  margin: 0 8px;
}

.product-detail-hero {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: start;
}

/* 图片轮播 */
.gallery {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-alt);
}

.gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.gallery-main img.active {
  opacity: 1;
  position: relative;
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: all var(--transition-fast);
  z-index: 2;
}

.gallery-btn:hover {
  background: #fff;
  box-shadow: var(--shadow-md);
}

.gallery-btn.prev {
  left: 12px;
}

.gallery-btn.next {
  right: 12px;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  padding: 12px;
  overflow-x: auto;
}

.gallery-thumbs img {
  width: 72px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.5;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.gallery-thumbs img.active {
  border-color: var(--primary);
  opacity: 1;
}

.gallery-thumbs img:hover {
  opacity: 0.8;
}

/* 产品信息区 */
.product-info h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-tagline {
  font-size: 16px;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 24px;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
}

.specs-table tr {
  border-bottom: 1px solid var(--border-light);
}

.specs-table td {
  padding: 14px 16px;
  font-size: 14px;
}

.specs-table td:first-child {
  font-weight: 600;
  color: var(--text);
  width: 30%;
  background: var(--bg-alt);
}

.specs-table td:last-child {
  color: var(--text-secondary);
}

/* 功能详情 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

.feature-item:hover {
  background: var(--bg);
  box-shadow: var(--shadow);
}

.feature-item .feature-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.feature-item h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.feature-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 应用场景 */
.scenes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.scene-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

.scene-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.scene-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.scene-card .scene-info {
  padding: 20px;
}

.scene-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.scene-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 详情底部 CTA */
.detail-cta {
  background: var(--bg-alt);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  background: linear-gradient(135deg, #EEF2FF, #F5F3FF);
}

.detail-cta h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.detail-cta p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.detail-cta .cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- 联系我们页面 ---- */
.contact-content {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 40px;
}

/* 联系信息 */
.contact-info {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border-light);
}

.contact-info h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 24px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.contact-info-item:last-child {
  border: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-info-item .info-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--primary);
}

.contact-info-item .info-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.contact-info-item .info-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
}

/* 留言表单 */
.contact-form-wrap {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
}

.contact-form-wrap h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
}

.contact-form-wrap .form-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}

.form-group label .required {
  color: #ef4444;
  margin-left: 2px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: var(--font);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-input.error,
.form-textarea.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  font-size: 12px;
  color: #ef4444;
  margin-top: 6px;
  display: none;
}

.form-error.visible {
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font);
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
}

/* 地图占位 */
.map-placeholder {
  width: 100%;
  height: 320px;
  background: var(--bg-alt2);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  margin-top: 40px;
}

.map-placeholder .map-icon {
  font-size: 48px;
  opacity: 0.5;
}

/* ---- Toast 提示 ---- */
.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  padding: 16px 24px;
  border-radius: var(--radius);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  z-index: 10000;
  box-shadow: var(--shadow-lg);
  transform: translateX(120%);
  transition: transform var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.show {
  transform: translateX(0);
}

.toast-success {
  background: #10b981;
}

.toast-error {
  background: #ef4444;
}

/* ---- 404 页面 ---- */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-page h1 {
  font-size: 120px;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.error-page h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

.error-page p {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* ---- 动画 ---- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ---- 响应式设计 ---- */

/* 平板端 768px - 1199px */
@media (max-width: 1199px) {
  :root {
    --section-padding: 80px 0;
  }

  .section-header h2 { font-size: 30px; }

  .banner h1 { font-size: 42px; }

  .advantages-grid { grid-template-columns: repeat(2, 1fr); }

  .products-overview { grid-template-columns: repeat(2, 1fr); }

  .products-grid { grid-template-columns: repeat(3, 1fr); }

  .about-preview {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-intro {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .partners-grid { grid-template-columns: repeat(3, 1fr); }

  .culture-grid { grid-template-columns: repeat(2, 1fr); }
  .culture-grid .culture-card:last-child {
    grid-column: span 2;
    max-width: 400px;
    margin: 0 auto;
  }

  .cert-grid { grid-template-columns: repeat(3, 1fr); }

  .product-detail-hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature-grid { grid-template-columns: 1fr; }

  .scenes-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  .footer-grid > div:first-child { grid-column: span 3; }
}

/* 手机端 ≤767px */
@media (max-width: 767px) {
  :root {
    --section-padding: 60px 0;
  }

  .section-header { margin-bottom: 36px; }
  .section-header h2 { font-size: 26px; }
  .section-header p { font-size: 14px; }

  .container { padding: 0 16px; }

  /* 导航 */
  .navbar .container { height: 60px; }

  .navbar-links { display: none; }

  .hamburger { display: flex; }

  .banner { min-height: 90vh; }

  .banner h1 { font-size: 32px; }

  .banner p { font-size: 16px; }

  .banner-buttons { flex-direction: column; align-items: center; }

  .banner-buttons .btn { width: 100%; max-width: 280px; }

  .advantages-grid { grid-template-columns: 1fr; gap: 16px; }

  .products-overview { grid-template-columns: 1fr; gap: 20px; }

  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .partners-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .about-preview-text h2 { font-size: 24px; }

  .about-intro-text .highlight-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .stat-item { padding: 14px 10px; }
  .stat-item .stat-num { font-size: 22px; }

  /* 时间轴 */
  .timeline::before { left: 20px; }

  .timeline-item,
  .timeline-item:nth-child(odd) {
    flex-direction: row;
    padding-left: 50px;
  }

  .timeline-item:nth-child(odd) .timeline-content { text-align: left; }

  .timeline-dot {
    left: 20px;
  }

  .timeline-content { width: 100%; }

  .culture-grid { grid-template-columns: 1fr; }
  .culture-grid .culture-card:last-child { grid-column: span 1; max-width: 100%; }

  .cert-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .page-hero { padding: 120px 0 50px; }
  .page-hero h1 { font-size: 30px; }

  .feature-grid { grid-template-columns: 1fr; }

  .scenes-grid { grid-template-columns: 1fr; gap: 16px; }

  .form-row { grid-template-columns: 1fr; }

  .detail-cta { padding: 32px 20px; }

  .cta-section h2 { font-size: 26px; }
  .cta-section p { font-size: 15px; }

  .filter-bar { gap: 8px; }
  .filter-btn { padding: 8px 16px; font-size: 13px; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-grid > div:first-child { grid-column: span 1; }

  .gallery-thumbs img { width: 56px; height: 40px; }
}
