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

:root {
  --primary: #0e2a4d;
  --accent: #d9a35b;
  --light: #f5f6f8;
  --text: #1c2733;
  --muted: #6b7785;
  --line: #e6e9ee;
  --header-h: 74px;
}

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 12px 30px;
  font-size: 15px;
  letter-spacing: .5px;
  transition: all .25s ease;
  border-radius: 2px;
}
.btn-primary { background: var(--accent); color: #20160a; font-weight: 600; }
.btn-primary:hover { background: #e9b876; transform: translateY(-2px); }
.btn-ghost { border: 1px solid rgba(255,255,255,.65); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--primary); }
.btn-line { border: 1px solid rgba(255,255,255,.7); color: #fff; }
.btn-line:hover { background: var(--accent); border-color: var(--accent); color: #20160a; }
.btn-line-dark { border: 1px solid var(--primary); color: var(--primary); }
.btn-line-dark:hover { background: var(--primary); color: #fff; }

/* ---------- 头部 ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(16,32,56,.09); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 42px; width: auto; }
.logo-text { display: flex; align-items: baseline; gap: 6px; color: var(--primary); }
.logo-text b { font-size: 24px; letter-spacing: 2px; font-weight: 800; }
.logo-text i { font-style: normal; font-size: 13px; color: var(--muted); letter-spacing: 1px; }

.main-nav { flex: 1; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-item > a {
  display: block; padding: 0 16px; line-height: var(--header-h);
  font-size: 15px; color: var(--text); transition: color .2s; white-space: nowrap;
}
.nav-item > a:hover { color: var(--accent); }
.nav-item.has-sub > a::after {
  content: ""; display: inline-block; width: 5px; height: 5px;
  border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px); margin-left: 6px; opacity: .55;
}

.submenu {
  position: absolute; top: calc(var(--header-h) - 6px); left: 50%;
  transform: translate(-50%, 8px);
  min-width: 190px; background: #fff; border-radius: 4px;
  box-shadow: 0 16px 40px rgba(16,32,56,.16);
  padding: 8px 0; opacity: 0; visibility: hidden; transition: all .22s ease;
}
.submenu::before {
  content: ""; position: absolute; top: -6px; left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px; background: #fff;
}
.nav-item:hover .submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.submenu li a { display: block; padding: 9px 20px; font-size: 14px; color: #33404f; white-space: nowrap; }
.submenu li a:hover { background: var(--light); color: var(--accent); }

.header-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header-phone { text-align: right; line-height: 1.25; }
.header-phone small { display: block; font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.header-phone strong { font-size: 17px; color: var(--primary); letter-spacing: .5px; }
.menu-toggle { display: none; width: 30px; height: 22px; position: relative; }
.menu-toggle i {
  position: absolute; left: 0; width: 100%; height: 2px; background: var(--primary);
  transition: all .25s;
}
.menu-toggle i:nth-child(1) { top: 0; }
.menu-toggle i:nth-child(2) { top: 10px; }
.menu-toggle i:nth-child(3) { top: 20px; }
.menu-toggle.open i:nth-child(1) { top: 10px; transform: rotate(45deg); }
.menu-toggle.open i:nth-child(2) { opacity: 0; }
.menu-toggle.open i:nth-child(3) { top: 10px; transform: rotate(-45deg); }

main { padding-top: var(--header-h); }

/* ---------- 轮播 ---------- */
.hero { position: relative; height: 640px; overflow: hidden; background: var(--primary); }
.slides { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease;
  background: linear-gradient(120deg, #0b1e38 0%, #16385f 45%, #2a5c8e 100%) center/cover no-repeat;
  display: flex; align-items: center;
}
.slide.active { opacity: 1; }
.slide-mask {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,16,30,.82) 0%, rgba(6,16,30,.42) 55%, rgba(6,16,30,.18) 100%);
}
.slide-inner { position: relative; z-index: 2; color: #fff; max-width: 1240px; }
.slide-title { font-size: 54px; font-weight: 700; letter-spacing: 3px; line-height: 1.25; }
.slide-sub { font-size: 20px; margin: 16px 0 34px; color: rgba(255,255,255,.85); letter-spacing: 2px; }
.dots { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.dot { width: 30px; height: 3px; background: rgba(255,255,255,.35); transition: background .3s; }
.dot.active { background: var(--accent); }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; line-height: 42px; text-align: center;
  color: #fff; font-size: 30px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%;
  cursor: pointer; transition: all .25s; user-select: none;
}
.hero-arrow:hover { background: rgba(255,255,255,.15); }
.hero-arrow.prev { left: 30px; }
.hero-arrow.next { right: 30px; }

/* ---------- 通用区块 ---------- */
.sec { padding: 88px 0; }
.sec.alt { background: var(--light); }
.sec-head { text-align: center; margin-bottom: 48px; }
.sec-title { font-size: 32px; font-weight: 700; letter-spacing: 2px; color: var(--primary); }
.sec-sub { margin-top: 12px; color: var(--muted); font-size: 15px; letter-spacing: .5px; }
.more-line { text-align: center; margin-top: 44px; }

/* ---------- 数据 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 26px 16px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-value { font-size: 40px; font-weight: 800; color: var(--primary); letter-spacing: 1px; }
.stat-label { font-size: 16px; font-weight: 600; margin-top: 6px; }
.stat-desc { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ---------- 技术区 ---------- */
.tech-sec {
  position: relative; color: #fff;
  background: radial-gradient(circle at 50% 30%, #1d4573 0%, #0b1e38 62%, #06101e 100%);
  overflow: hidden;
}
.tech-sec::after {
  content: ""; position: absolute; width: 620px; height: 620px; border-radius: 50%;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(217,163,91,.28) 0%, transparent 62%);
}
.tech-inner { position: relative; z-index: 2; text-align: center; max-width: 860px; }
.tech-badge {
  display: inline-block; font-size: 15px; letter-spacing: 6px; color: var(--accent);
  border: 1px solid rgba(217,163,91,.5); padding: 6px 18px; margin-bottom: 26px;
}
.tech-title { font-size: 40px; font-weight: 700; letter-spacing: 2px; }
.tech-desc { margin: 22px 0 34px; color: rgba(255,255,255,.76); font-size: 16px; line-height: 2; }

/* ---------- 分类卡片 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cat-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  overflow: hidden; transition: all .3s ease;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(16,32,56,.13); border-color: transparent; }
.cat-media { height: 210px; background: var(--light); }
.cat-img { width: 100%; height: 210px; object-fit: cover; }
.cat-name { font-size: 18px; font-weight: 600; padding: 18px 20px; letter-spacing: 1px; }
.cat-name a:hover { color: var(--accent); }
.cat-products {
  max-height: 0; overflow: hidden; transition: max-height .35s ease;
  background: var(--light); border-top: 1px solid transparent;
}
.cat-card:hover .cat-products { max-height: 320px; border-top-color: var(--line); }
.cat-products ul { padding: 8px 20px 16px; }
.cat-products li a { display: block; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.cat-products li:last-child a { border-bottom: 0; }
.cat-products strong { display: block; font-size: 14px; font-weight: 600; }
.cat-products em { display: block; font-style: normal; font-size: 12px; color: var(--muted); }
.cat-products li a:hover strong { color: var(--accent); }

/* 图片占位 */
.ph {
  position: relative; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #e9edf3 0%, #d5dde8 48%, #c3cfdd 100%);
  color: rgba(14,42,77,.42); font-size: 14px; letter-spacing: 2px;
}
.ph span { padding: 0 12px; text-align: center; }

/* ---------- 大图分组 ---------- */
.group-banner {
  position: relative; min-height: 420px; display: flex; align-items: center;
  background: linear-gradient(115deg, #0b1e38 0%, #1a3f68 60%, #2f6191 100%) center/cover no-repeat;
  color: #fff; text-align: center; overflow: hidden;
}
.group-banner-mask { position: absolute; inset: 0; background: rgba(6,16,30,.42); }
.group-banner-inner { position: relative; z-index: 2; }
.group-banner-title { font-size: 38px; font-weight: 700; letter-spacing: 4px; }
.group-banner-sub { margin: 14px 0 32px; color: rgba(255,255,255,.8); font-size: 16px; }
.group-banner-links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

/* ---------- 新闻 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card { background: #fff; border: 1px solid var(--line); transition: all .3s; display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(16,32,56,.12); }
.news-media { height: 190px; overflow: hidden; background: var(--light); }
.news-img { width: 100%; height: 190px; object-fit: cover; }
.news-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.news-cat { font-size: 12px; color: var(--accent); letter-spacing: 1px; }
.news-title { font-size: 17px; font-weight: 600; line-height: 1.55; margin: 8px 0 10px; }
.news-card:hover .news-title { color: var(--accent); }
.news-sum {
  font-size: 13px; color: var(--muted); flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-date { font-size: 12px; color: #9aa5b1; margin-top: 14px; }

/* ---------- 服务卡片 ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card { display: block; background: #fff; border: 1px solid var(--line); overflow: hidden; transition: all .3s; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(16,32,56,.12); }
.service-img { width: 100%; height: 160px; object-fit: cover; }
.service-body { padding: 18px 20px 22px; }
.service-body h3 { font-size: 17px; font-weight: 600; }
.service-body p { font-size: 13px; color: var(--muted); margin-top: 6px; }
.service-card:hover h3 { color: var(--accent); }

/* ---------- 联系 ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.contact-title { font-size: 32px; font-weight: 700; color: var(--primary); letter-spacing: 2px; }
.contact-desc { color: var(--muted); margin: 14px 0 26px; }
.contact-list li {
  display: flex; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 15px;
}
.contact-list span { width: 84px; flex-shrink: 0; color: var(--muted); }
.contact-list em { font-style: normal; }
.contact-list a:hover { color: var(--accent); }
.contact-map { min-height: 320px; background: var(--light); }
.contact-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.map-ph {
  height: 100%; min-height: 320px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, #e9edf3, #cdd8e5); color: rgba(14,42,77,.5);
}
.map-ph small { font-size: 12px; color: rgba(14,42,77,.38); }

/* ---------- 门店 ---------- */
.store-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.store-card { border: 1px solid var(--line); padding: 26px 24px; transition: all .3s; background: #fff; }
.store-card:hover { border-color: var(--accent); box-shadow: 0 12px 30px rgba(16,32,56,.1); }
.store-card h3 { font-size: 17px; margin-bottom: 10px; }
.store-addr { font-size: 14px; color: var(--muted); }
.store-phone { font-size: 14px; color: var(--primary); margin-top: 10px; font-weight: 600; }

/* ---------- 子页头 ---------- */
.page-hero {
  padding: 76px 0 60px; background: linear-gradient(115deg, #0b1e38, #1d4573 70%, #2f6191);
  color: #fff; text-align: center;
}
.page-hero h1 { font-size: 38px; font-weight: 700; letter-spacing: 4px; }
.page-hero p { margin-top: 14px; color: rgba(255,255,255,.78); }
.about-text { max-width: 900px; margin: 0 auto; font-size: 16px; line-height: 2.1; color: #3c4a5a; text-align: center; }

/* ---------- 产品详情 ---------- */
.product-hero { padding: calc(var(--header-h) + 30px) 0 60px; background: var(--light); }
.crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.crumbs a:hover { color: var(--accent); }
.crumbs i { font-style: normal; color: #c3cad3; }
.crumbs span { color: var(--text); }
.product-top { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.product-gallery { background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.product-img, .product-gallery .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.product-gallery .ph { display: flex; align-items: center; justify-content: center; }
.product-tag {
  display: inline-block; padding: 5px 14px; border-radius: 2px; font-size: 12px; letter-spacing: 1px;
  background: rgba(217,163,91,.14); color: #a97a30;
}
.product-name { font-size: 34px; line-height: 1.3; font-weight: 700; margin: 16px 0 12px; letter-spacing: 1px; }
.product-sub { font-size: 16px; color: var(--muted); line-height: 1.9; }
.product-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 26px; }
.product-meta { border-top: 1px solid var(--line); padding-top: 20px; display: flex; gap: 44px; flex-wrap: wrap; }
.product-meta li { font-size: 13px; color: var(--muted); }
.product-meta li span { display: block; margin-bottom: 4px; }
.product-meta li strong { font-size: 17px; color: var(--primary); font-weight: 600; }
.product-detail-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 60px; align-items: start; }
.product-desc .sec-head, .product-specs .sec-head { text-align: left; margin-bottom: 22px; }
.product-desc .sec-title, .product-specs .sec-title { font-size: 22px; }
.product-desc .sec-title::after, .product-specs .sec-title::after { margin: 12px 0 0; }
.product-desc p { font-size: 15px; line-height: 2.1; color: #3c4a5a; margin-bottom: 16px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.spec-table th, .spec-table td { padding: 13px 16px; border: 1px solid var(--line); text-align: left; }
.spec-table th { width: 38%; background: #fafbfc; color: #46545f; font-weight: 500; }
.spec-table td { color: var(--text); }
.muted { color: var(--muted); font-size: 14px; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.related-card {
  display: block; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 4px;
  transition: all .3s ease; text-align: center;
}
.related-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(16,32,56,.13); border-color: transparent; }
.related-img, .related-card .ph { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 2px; }
.related-card .ph { display: flex; align-items: center; justify-content: center; background: var(--light); }
.related-card h3 { font-size: 15px; margin: 14px 0 6px; }
.related-card p { font-size: 12px; color: var(--muted); line-height: 1.7; }

/* ---------- 页脚 ---------- */
.site-footer { background: #0a1626; color: rgba(255,255,255,.72); padding-top: 64px; }
.footer-top { display: grid; grid-template-columns: 300px 1fr; gap: 50px; padding-bottom: 48px; }
.footer-logo { margin-bottom: 16px; }
.footer-logo .logo-text b, .footer-logo .logo-text i { color: #fff; }
.footer-desc { font-size: 13px; line-height: 1.9; color: rgba(255,255,255,.5); }
.footer-contact { font-size: 13px; margin-top: 16px; color: rgba(255,255,255,.62); line-height: 2; }
.footer-groups { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.footer-group h4 { color: #fff; font-size: 15px; margin-bottom: 16px; letter-spacing: 1px; }
.footer-group li { margin-bottom: 10px; }
.footer-group a { font-size: 13px; color: rgba(255,255,255,.55); transition: color .2s; }
.footer-group a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; color: rgba(255,255,255,.42); }
.footer-meta { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-meta a:hover { color: var(--accent); }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .main-nav > ul { gap: 0; }
  .nav-item > a { padding: 0 10px; font-size: 14px; }
  .header-phone { display: none; }
  .cat-grid, .service-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-groups { grid-template-columns: repeat(3, 1fr); }
  .related-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .hero { height: 480px; }
  .slide-title { font-size: 36px; }
  .slide-sub { font-size: 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .news-grid, .contact-wrap, .store-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 34px; }
  .footer-groups { grid-template-columns: repeat(2, 1fr); }
  .sec { padding: 60px 0; }
  .sec-title, .contact-title { font-size: 26px; }
  .tech-title { font-size: 30px; }
  .group-banner-title { font-size: 28px; }
  .product-top, .product-detail-grid { grid-template-columns: 1fr; gap: 34px; }
  .product-name { font-size: 26px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }

  .menu-toggle { display: block; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: #fff; padding: 16px 20px 40px; overflow-y: auto;
    transform: translateX(100%); transition: transform .3s ease; display: none;
  }
  .main-nav.open { transform: translateX(0); display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-item > a { line-height: 52px; padding: 0 4px; font-size: 16px; }
  .nav-item.has-sub > a::after { display: none; }
  .submenu {
    position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none;
    padding: 0 0 10px 14px; display: block; min-width: 0; background: transparent;
  }
  .submenu::before { display: none; }
  .submenu li a { padding: 7px 0; font-size: 14px; color: var(--muted); }
  .submenu li a:hover { background: transparent; }
}

@media (max-width: 620px) {
  .cat-grid, .service-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-media, .cat-img { height: 150px; }
  .cat-name { font-size: 15px; padding: 12px 14px; }
  .slide-title { font-size: 26px; letter-spacing: 1px; }
  .slide-sub { font-size: 14px; margin-bottom: 24px; }
  .hero { height: 400px; }
  .stat-value { font-size: 28px; }
  .footer-groups { grid-template-columns: 1fr 1fr; }
  .page-hero h1 { font-size: 26px; }
  .hero-arrow { display: none; }
}
