/* ============ 基础 ============ */
:root {
  --primary: #1a73e8;
  --primary-dark: #0d3b66;
  --primary-light: #eaf2fd;
  --accent: #e07b2a;
  --green: #1e8a5b;
  --text: #2b3442;
  --text-light: #5a6b80;
  --bg: #ffffff;
  --bg-soft: #f6f9fc;
  --border: #e4eaf2;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(13, 59, 102, .08);
  --shadow-lg: 0 16px 48px rgba(13, 59, 102, .14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }

.container { width: min(1180px, 92%); margin: 0 auto; }

/* ============ 按钮 ============ */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .25s ease;
  text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-light { background: #fff; color: var(--primary-dark); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.15); border-color: #fff; }
.btn-block { width: 100%; }

/* ============ 顶部工具条 ============ */
.topbar {
  background: var(--primary-dark);
  color: rgba(255,255,255,.75);
  font-size: 12.5px;
  padding: 7px 0;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: rgba(255,255,255,.85); transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar .divider { margin: 0 8px; opacity: .4; }

/* ============ 导航栏 ============ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 1px 0 var(--border);
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: 0 4px 24px rgba(13,59,102,.10); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 72px; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 38px; height: 38px; }
.logo-text { font-size: 24px; font-weight: 800; letter-spacing: .5px; color: var(--primary-dark); }
.logo-text em { font-style: normal; color: var(--primary); }

.nav-menu { display: flex; gap: 28px; margin-left: auto; }
.nav-menu a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  padding: 6px 2px;
  position: relative;
  transition: color .2s;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 3px;
  border-radius: 2px;
  background: var(--primary);
  transition: width .25s;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--primary); }
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }
.nav-menu .caret { font-size: 11px; }

.nav-cta { padding: 10px 24px; font-size: 14px; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.menu-toggle span { width: 24px; height: 2.5px; background: var(--primary-dark); border-radius: 2px; transition: .3s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============ Hero ============ */
.hero { position: relative; height: 620px; overflow: hidden; color: #fff; }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; transition: opacity .9s ease; pointer-events: none; }
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-bg { position: absolute; inset: 0; transform: scale(1); transition: transform 6s ease; }
.hero-slide.active .hero-bg { transform: scale(1.08); }
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 85% 20%, rgba(255,255,255,.14), transparent),
    radial-gradient(500px 400px at 10% 90%, rgba(255,255,255,.08), transparent);
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 720px;
}
.hero-kicker {
  display: inline-block;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.35);
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 22px;
  width: fit-content;
}
.hero h1 { font-size: 52px; line-height: 1.15; font-weight: 800; margin-bottom: 18px; }
.hero h1 .accent { color: #ffd166; }
.hero-sub { font-size: 18px; opacity: .92; margin-bottom: 34px; max-width: 560px; }
.hero-actions { display: flex; gap: 16px; }

.hero-dots {
  position: absolute;
  bottom: 84px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 10px;
  z-index: 5;
}
.hero-dots button {
  width: 34px; height: 4px;
  border: none; border-radius: 2px;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: .3s;
}
.hero-dots button.active { background: #fff; width: 48px; }

.hero-scroll {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.85);
  font-size: 26px;
  animation: bounce 1.8s infinite;
  z-index: 5;
}
@keyframes bounce { 0%,100% { transform: translate(-50%,0);} 50% { transform: translate(-50%,8px);} }

/* ============ 通用 Section ============ */
.section { padding: 90px 0; }
.section.bg-soft { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 50px; }
.section-kicker {
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-kicker.light { color: #8fd4b3; }
.section-title { font-size: 36px; font-weight: 800; color: var(--primary-dark); }
.section-title.light { color: #fff; }

/* ============ 关于我们 ============ */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.about-visual { position: relative; }
.about-img-main svg { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.about-badge {
  position: absolute;
  right: -14px; bottom: -20px;
  background: var(--accent);
  color: #fff;
  border-radius: 16px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
}
.about-badge strong { font-size: 44px; font-weight: 800; line-height: 1; }
.about-badge span { font-size: 13px; line-height: 1.35; font-weight: 600; }
.about-text p { color: var(--text-light); margin-bottom: 16px; font-size: 16px; }
.about-text strong { color: var(--text); }
.about-points { margin: 8px 0 28px; display: grid; gap: 10px; }
.about-points li { color: var(--text); font-weight: 600; font-size: 15px; }

/* ============ 产品 ============ */
.products { background: var(--bg-soft); }
.filter-bar { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
  padding: 10px 28px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: all .25s;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(13,59,102,.06);
  transition: transform .3s, box-shadow .3s, opacity .4s;
  animation: fadeUp .5s ease both;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-thumb { height: 190px; display: flex; align-items: center; justify-content: center; }
.product-thumb svg { width: 100%; height: 100%; }
.product-info { padding: 18px 20px; text-align: center; }
.product-cat { font-size: 12px; color: var(--primary); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.product-info h3 { font-size: 18px; color: var(--primary-dark); margin: 4px 0 6px; }
.product-info p { font-size: 13px; color: var(--text-light); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px);} to { opacity: 1; transform: none;} }

/* ============ 为什么选择我们 ============ */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.why-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px 30px;
  text-align: center;
  transition: transform .3s, box-shadow .3s;
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.why-icon {
  width: 70px; height: 70px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
}
.why-card h3 { font-size: 20px; color: var(--primary-dark); margin-bottom: 10px; }
.why-card p { color: var(--text-light); font-size: 15px; }

/* 数据统计 */
.stats-band {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  color: #fff;
}
.stat { padding: 42px 30px; text-align: center; position: relative; }
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0; top: 25%;
  height: 50%; width: 1px;
  background: rgba(255,255,255,.25);
}
.stat-num { font-size: 52px; font-weight: 800; line-height: 1.1; }
.stat p { font-size: 14px; opacity: .85; margin-top: 6px; }

/* ============ 合作伙伴 & 认证 ============ */
.partners { background: var(--bg-soft); }
.partner-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.partner-logo {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #9aa8ba;
  transition: all .3s;
}
.partner-logo span { color: #c3cdd9; font-weight: 300; }
.partner-logo:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-4px); }

.cert-band { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.cert {
  padding: 8px 24px;
  border-radius: 8px;
  background: #fff;
  border: 1.5px solid var(--border);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-light);
  transition: all .25s;
}
.cert:hover { border-color: var(--green); color: var(--green); }

/* ============ 客户评价 ============ */
.testimonial-viewport { position: relative; max-width: 860px; margin: 0 auto; }
.testimonial-track {
  display: flex;
  transition: transform .55s cubic-bezier(.4,0,.2,1);
}
.testimonial-card {
  flex: 0 0 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 44px 52px;
  box-shadow: 0 4px 20px rgba(13,59,102,.06);
}
.stars { color: #ffb400; font-size: 20px; letter-spacing: 3px; margin-bottom: 16px; }
.testimonial-card > p { font-size: 17px; color: var(--text); font-style: italic; margin-bottom: 24px; }
.testimonial-author strong { display: block; color: var(--primary-dark); font-size: 16px; }
.testimonial-author span { font-size: 13.5px; color: var(--text-light); }
.ts-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--primary-dark);
  font-size: 24px;
  cursor: pointer;
  transition: all .25s;
  z-index: 3;
}
.ts-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.ts-prev { left: -60px; }
.ts-next { right: -60px; }

/* ============ 新闻 ============ */
.news { background: var(--bg-soft); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(13,59,102,.06);
  transition: transform .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-thumb { height: 170px; display: flex; align-items: center; justify-content: center; }
.news-date { padding: 16px 24px 0; font-size: 13px; color: var(--text-light); font-weight: 600; }
.news-card h3 { padding: 6px 24px 0; font-size: 18px; color: var(--primary-dark); line-height: 1.4; }
.news-card > p { padding: 10px 24px 0; font-size: 14px; color: var(--text-light); flex: 1; }
.news-more { padding: 16px 24px 22px; color: var(--primary); font-weight: 700; font-size: 14px; }

/* ============ 展会 ============ */
.expo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.expo-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
  transition: all .3s;
}
.expo-card:hover { border-color: var(--primary); transform: translateY(-5px); box-shadow: var(--shadow); }
.expo-card.upcoming { background: linear-gradient(150deg,#0d3b66,#1a73e8); border: none; color: #fff; }
.expo-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.upcoming .expo-tag { background: rgba(255,255,255,.18); color: #ffd166; }
.expo-card h3 { font-size: 18px; color: var(--primary-dark); margin-bottom: 6px; }
.upcoming h3 { color: #fff; }
.expo-loc { font-size: 14px; color: var(--text-light); }
.upcoming .expo-loc { color: rgba(255,255,255,.8); }
.expo-date { font-size: 15px; font-weight: 700; color: var(--text); margin-top: 8px; }
.upcoming .expo-date { color: #ffd166; }
.expo-badge {
  position: absolute;
  top: 18px; right: 18px;
  background: #ffd166;
  color: #7a5200;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 1px;
}

/* ============ 公益 ============ */
.charity { background: linear-gradient(135deg, #0e4d33, #1e8a5b); color: #fff; }
.charity-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.charity-text p { opacity: .9; margin-bottom: 16px; font-size: 15.5px; }
.charity-visual svg { border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* ============ 联系 ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; }
.contact-item {
  background: var(--bg-soft);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 18px;
}
.contact-item strong { display: block; color: var(--primary-dark); margin-bottom: 4px; font-size: 15px; }
.contact-item p { color: var(--text-light); font-size: 15px; }

.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  margin-bottom: 14px;
  transition: border-color .2s;
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.form-note { margin-top: 12px; font-size: 14px; color: var(--green); font-weight: 600; min-height: 20px; }

/* ============ 页脚 ============ */
.footer { background: var(--primary-dark); color: rgba(255,255,255,.75); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 64px 0 44px;
}
.footer-logo .logo-text { color: #fff; }
.footer-logo .logo-text em { color: #6fb4ff; }
.footer-brand p { font-size: 14px; margin-top: 14px; }
.footer-copy-mini { opacity: .55; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer-col a { display: block; font-size: 14px; padding: 5px 0; transition: color .2s, padding-left .2s; }
.footer-col a:hover { color: #6fb4ff; padding-left: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: 13px; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ============ 返回顶部 ============ */
.back-top {
  position: fixed;
  right: 26px; bottom: 26px;
  width: 46px; height: 46px;
  border-radius: 12px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .3s;
  box-shadow: var(--shadow);
  z-index: 99;
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--primary-dark); }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .partner-row { grid-template-columns: repeat(3, 1fr); }
  .expo-grid { grid-template-columns: repeat(2, 1fr); }
  .ts-prev { left: 8px; } .ts-next { right: 8px; }
  .testimonial-card { padding: 34px 56px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero { height: 540px; }
  .hero h1 { font-size: 34px; }
  .hero-sub { font-size: 16px; }
  .section { padding: 64px 0; }
  .section-title { font-size: 27px; }
  .about-grid, .charity-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-badge { right: 10px; }
  .why-grid, .news-grid { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: 1fr; }
  .stat + .stat::before { display: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .topbar-links { display: none; }

  .nav-menu {
    position: fixed;
    top: 0; right: -280px;
    width: 270px; height: 100vh;
    background: #fff;
    flex-direction: column;
    padding: 90px 30px 30px;
    gap: 8px;
    box-shadow: -8px 0 30px rgba(0,0,0,.12);
    transition: right .35s ease;
  }
  .nav-menu.open { right: 0; }
  .nav-menu a { font-size: 17px; padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .nav-menu a::after { display: none; }
  .menu-toggle { display: flex; margin-left: auto; position: relative; z-index: 110; }
  .nav-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .partner-row { grid-template-columns: repeat(2, 1fr); }
  .expo-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}
