/* ======== 变量 ======== */
:root {
  --color-primary: #1a3a5c;
  --color-primary-dark: #0f2740;
  --color-accent: #e8833a;
  --color-accent-hover: #c96e2c;
  --color-text: #333;
  --color-text-light: #666;
  --color-bg: #fff;
  --color-bg-gray: #f5f6f8;
  --color-border: #e0e0e0;
  --font-stack: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --max-width: 1200px;
  --header-height: 64px;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --transition: 0.3s ease;
}

/* ======== Reset ======== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body {
  font-family: var(--font-stack);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ======== 导航栏 ======== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  transition: box-shadow var(--transition);
}
.header--scrolled { box-shadow: var(--shadow); }
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-height);
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo__icon {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700; font-size: 14px;
  border-radius: 6px;
  flex-shrink: 0;
}
.logo__text { font-size: 16px; font-weight: 600; color: var(--color-primary); white-space: nowrap; }
.nav__list { display: flex; gap: 32px; }
.nav__link {
  font-size: 15px; color: var(--color-text);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.nav__link:hover,
.nav__link--active { color: var(--color-accent); border-bottom-color: var(--color-accent); }

/* 语言切换 */
.header__actions { display: flex; align-items: center; gap: 16px; }
.lang-switch {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 13px;
  color: var(--color-text-light);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.lang-switch:hover { border-color: var(--color-accent); color: var(--color-accent); }
.lang-switch__zh,
.lang-switch__en { transition: color var(--transition); }
.lang-switch--en .lang-switch__en { color: var(--color-accent); font-weight: 600; }
.lang-switch:not(.lang-switch--en) .lang-switch__zh { color: var(--color-accent); font-weight: 600; }
.lang-switch__divider { margin: 0 2px; color: var(--color-border); }

.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: var(--color-text); border-radius: 2px; transition: all var(--transition); }
.hamburger--active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger--active span:nth-child(2) { opacity: 0; }
.hamburger--active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ======== Hero ======== */
.hero {
  position: relative;
  height: 100vh; min-height: 600px; max-height: 800px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, #2a5a8c 100%);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 L55 30 L30 55 L5 30 Z' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3Ccircle cx='30' cy='30' r='12' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3C/svg%3E");
}
.hero__content { position: relative; z-index: 1; }
.hero__title { font-size: clamp(28px, 5vw, 52px); font-weight: 700; letter-spacing: 2px; margin-bottom: 16px; }
.hero__subtitle { font-size: clamp(16px, 2.5vw, 20px); opacity: 0.9; margin-bottom: 40px; }

/* ======== 按钮 ======== */
.btn { display: inline-block; padding: 14px 40px; border-radius: 6px; font-size: 16px; font-weight: 500; cursor: pointer; transition: all var(--transition); border: none; }
.btn--primary { background: var(--color-accent); color: #fff; }
.btn--primary:hover { background: var(--color-accent-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232,131,58,0.4); }

/* ======== Section 通用 ======== */
.section { padding: 80px 0; }
.section--gray { background: var(--color-bg-gray); }
.section__title { font-size: 32px; font-weight: 700; color: var(--color-primary); text-align: center; margin-bottom: 8px; }
.section__subtitle { font-size: 14px; color: var(--color-accent); text-align: center; letter-spacing: 4px; margin-bottom: 48px; }

/* ======== 关于我们 ======== */
.about__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; align-items: center; }
.about__text p { color: var(--color-text-light); margin-bottom: 16px; font-size: 15px; }
.about__text strong { color: var(--color-primary); }
.about__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { text-align: center; padding: 24px 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.stat__number { display: block; font-size: 36px; font-weight: 700; color: var(--color-accent); }
.stat__label { display: block; font-size: 14px; color: var(--color-text-light); margin-top: 4px; }

/* ======== 产品详情 ======== */
.product-detail {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: start;
  padding: 48px 0;
  border-bottom: 1px solid var(--color-border);
}
.product-detail:last-child { border-bottom: none; }
.product-detail--reverse { direction: rtl; }
.product-detail--reverse > * { direction: ltr; }

.product-detail__main-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #fff;
}
.product-detail__main-img img { width: 100%; object-fit: contain; }
.product-detail__thumbs { display: flex; gap: 12px; margin-top: 16px; }
.thumb {
  padding: 8px 20px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  color: var(--color-text-light);
  transition: all var(--transition);
}
.thumb--active,
.thumb:hover { border-color: var(--color-accent); color: var(--color-accent); }

.product-detail__name { font-size: 28px; font-weight: 700; color: var(--color-primary); margin-bottom: 4px; }
.product-detail__tagline { font-size: 16px; color: var(--color-accent); margin-bottom: 20px; }
.product-detail__desc { color: var(--color-text-light); margin-bottom: 24px; }
.product-detail__desc p { margin-bottom: 12px; }
.product-detail__desc ul { padding-left: 20px; list-style: disc; }
.product-detail__desc li { margin-bottom: 6px; font-size: 14px; }

.product-detail__specs { width: 100%; border-collapse: collapse; }
.product-detail__specs th,
.product-detail__specs td { padding: 10px 16px; font-size: 14px; text-align: left; }
.product-detail__specs th { background: var(--color-bg-gray); color: var(--color-primary); font-weight: 600; width: 100px; border-radius: 4px; }
.product-detail__specs tr:not(:last-child) th,
.product-detail__specs tr:not(:last-child) td { border-bottom: 4px solid #fff; }

/* ======== 功能特点 ======== */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-card__icon { color: var(--color-accent); margin-bottom: 16px; display: flex; justify-content: center; }
.feature-card h3 { font-size: 18px; color: var(--color-primary); margin-bottom: 12px; }
.feature-card p { font-size: 14px; color: var(--color-text-light); }

/* ======== 应用场景 ======== */
.scenarios__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.scenario-card { text-align: center; }
.scenario-card__placeholder {
  display: flex; align-items: center; justify-content: center;
  height: 120px;
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 12px;
  color: var(--color-accent);
  transition: transform var(--transition);
}
.scenario-card:hover .scenario-card__placeholder { transform: scale(1.05); }
.scenario-card h4 { font-size: 16px; color: var(--color-primary); margin-bottom: 4px; }
.scenario-card p { font-size: 13px; color: var(--color-text-light); }

/* ======== 联系我们 ======== */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact__info { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact__item h4 { font-size: 14px; color: var(--color-accent); margin-bottom: 4px; }
.contact__item p { font-size: 15px; color: var(--color-text); }
.contact__map-placeholder {
  height: 100%;
  min-height: 200px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--color-bg-gray);
  border-radius: var(--radius);
  border: 1px dashed var(--color-border);
  color: var(--color-text-light);
}
.contact__map-sub { font-size: 13px; margin-top: 4px; }

/* ======== 页脚 ======== */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 24px 0;
  font-size: 14px;
}

/* ======== 动画 ======== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in--visible { opacity: 1; transform: translateY(0); }

/* ======== 响应式 ======== */
@media (max-width: 1024px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .scenarios__grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail,
  .product-detail--reverse { grid-template-columns: 1fr; gap: 32px; direction: ltr; }
}

@media (max-width: 768px) {
  .logo__text { font-size: 14px; }
  .nav { display: none; position: absolute; top: var(--header-height); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--color-border); padding: 16px 24px; }
  .nav--open { display: block; }
  .nav__list { flex-direction: column; gap: 16px; }
  .hamburger { display: flex; }
  .header__actions { gap: 12px; }
  .lang-switch { padding: 4px 8px; font-size: 12px; }
  .hero { max-height: 500px; }
  .about__grid { grid-template-columns: 1fr; gap: 32px; }
  .about__stats { grid-template-columns: repeat(3, 1fr); }
  .features__grid { grid-template-columns: 1fr; }
  .scenarios__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__info { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .section { padding: 48px 0; }
  .section__title { font-size: 24px; }
  .stat__number { font-size: 28px; }
  .product-detail__name { font-size: 22px; }
  .about__stats { grid-template-columns: 1fr; }
  .scenarios__grid { grid-template-columns: 1fr; }
}
