:root {
  --navy: #0e2a44;
  --navy-2: #173b5c;
  --blue: #0067b2;
  --blue-dark: #004f8a;
  --red: #d8262e;
  --ink: #1d2933;
  --muted: #667785;
  --line: #dfe6ec;
  --bg: #ffffff;
  --bg-soft: #f5f8fa;
  --shadow: 0 6px 24px rgba(14, 42, 68, .08);
  --radius: 4px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif; color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input { font: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); box-shadow: 0 1px 8px rgba(14,42,68,.04); }
.header-inner { height: 72px; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.logo-img { width: 44px; height: 44px; object-fit: contain; display: block; }
.logo-text strong { display: block; font-size: 17px; color: var(--navy); letter-spacing: 1px; line-height: 1.2; }
.logo-text span { display: block; font-size: 9px; color: var(--muted); letter-spacing: 1.6px; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 4px; height: 100%; }
.nav-link { position: relative; padding: 0 15px; height: 100%; display: flex; align-items: center; font-size: 15px; font-weight: 600; color: var(--navy); transition: color .2s; white-space: nowrap; cursor: pointer; }
.nav-link:hover, .nav-link.active { color: var(--blue); }
.nav-link.active::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; background: var(--blue); }
.nav-products { position: relative; }
.dropdown { position: absolute; top: 100%; left: -12px; width: 560px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 18px; display: none; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.nav-products:hover .dropdown, .nav-products.open .dropdown { display: grid; }
.dropdown-title { grid-column: 1 / -1; font-size: 12px; color: var(--muted); letter-spacing: 1px; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.dropdown-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 3px; transition: background .15s; }
.dropdown-item:hover { background: var(--bg-soft); }
.dropdown-item svg { flex: 0 0 auto; }
.dropdown-item b { display: block; color: var(--navy); font-size: 14px; }
.dropdown-item small { display: block; color: var(--muted); font-size: 11px; }
.header-search { margin-left: auto; position: relative; display: flex; align-items: center; }
.header-search input { width: 226px; height: 38px; padding: 0 40px 0 14px; border: 1px solid var(--line); border-radius: 3px; background: var(--bg-soft); outline: none; color: var(--ink); transition: border-color .2s, background .2s; }
.header-search input:focus { border-color: var(--blue); background: #fff; }
.search-btn { position: absolute; right: 0; width: 38px; height: 38px; border: 0; background: transparent; color: var(--navy); cursor: pointer; display: grid; place-items: center; }
.search-btn:hover { color: var(--blue); }
.suggestions { position: absolute; top: 44px; right: 0; width: 380px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); display: none; z-index: 60; max-height: 420px; overflow: auto; }
.suggestions.show { display: block; }
.suggestion-item { display: block; padding: 10px 14px; border-bottom: 1px solid #eef2f5; }
.suggestion-item:hover { background: var(--bg-soft); }
.suggestion-item b { display: block; font-size: 13px; color: var(--navy); font-weight: 600; }
.suggestion-item span { color: var(--muted); font-size: 12px; }
.suggestion-all { padding: 11px 14px; color: var(--blue); font-weight: 600; font-size: 13px; }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--navy); padding: 8px; }
.mobile-search-btn { display: none; border: 0; background: transparent; color: var(--navy); padding: 8px; cursor: pointer; }
.mobile-search-btn.active { color: var(--blue); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(120deg, #f7fafc 0%, #eef4f8 100%); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; min-height: 430px; padding-top: 48px; padding-bottom: 48px; }
.hero-tag { display: inline-block; padding: 4px 10px; border-left: 3px solid var(--red); background: #fff; color: var(--blue); font-size: 13px; font-weight: 700; letter-spacing: 1px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.28; margin: 0 0 16px; color: var(--navy); font-weight: 700; letter-spacing: -.5px; }
.hero p { color: var(--muted); font-size: 16px; max-width: 520px; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 24px; border: 1px solid transparent; border-radius: 3px; font-weight: 600; font-size: 14px; cursor: pointer; transition: all .2s; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #b91e25; }
.hero-visual { position: relative; }
.hero-visual svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 16px 24px rgba(14,42,68,.12)); }

/* ---------- Sections ---------- */
.section { padding: 62px 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-head h2 { margin: 0; font-size: 26px; color: var(--navy); font-weight: 700; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.section-head a { color: var(--blue); font-weight: 600; font-size: 14px; white-space: nowrap; }
.eyebrow { display: block; color: var(--red); font-weight: 700; font-size: 12px; letter-spacing: 2px; margin-bottom: 6px; }
.brands { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 34px; justify-content: center; color: var(--navy-2); font-weight: 700; letter-spacing: .5px; font-size: 15px; opacity: .78; }
.brands span { white-space: nowrap; }

.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card { background: #fff; border: 1px solid var(--line); padding: 24px 20px; display: flex; flex-direction: column; gap: 14px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #b8cbdc; }
.cat-card .icon-box { height: 66px; display: flex; align-items: center; }
.cat-card h3 { margin: 0; font-size: 16px; color: var(--navy); }
.cat-card small { color: var(--muted); font-size: 11px; letter-spacing: .5px; }
.cat-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; min-height: 42px; }
.cat-card .arrow { color: var(--blue); font-weight: 600; font-size: 13px; margin-top: auto; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card { background: #fff; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-thumb { height: 190px; background: #f6f9fb; border-bottom: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.product-thumb svg { width: 100%; height: 100%; }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.product-brand { color: var(--blue); font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.product-name { font-size: 14px; font-weight: 600; color: var(--navy); line-height: 1.5; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 42px; }
.product-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-top: auto; padding-top: 10px; border-top: 1px solid #eef2f5; }
.product-price { color: var(--red); font-weight: 700; font-size: 14px; }
.product-link { display: block; margin-top: 10px; color: var(--blue); font-size: 13px; font-weight: 600; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.about-grid h2 { font-size: 26px; color: var(--navy); margin: 0 0 18px; }
.about-grid p { color: #526673; margin: 0 0 14px; }
.about-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 22px; }
.fact { border-left: 3px solid var(--blue); padding: 4px 0 4px 14px; }
.fact b { display: block; color: var(--navy); font-size: 17px; }
.fact span { color: var(--muted); font-size: 12px; }
.service-list { display: grid; gap: 12px; }
.service-item { background: #fff; border: 1px solid var(--line); padding: 16px 18px; }
.service-item b { color: var(--navy); }
.service-item p { margin: 4px 0 0; font-size: 13px; }

/* ---------- Page content ---------- */
.page-head { background: linear-gradient(120deg, #0e2a44, #1b4a72); color: #fff; padding: 34px 0 32px; }
.page-head h1 { margin: 0 0 6px; font-size: 28px; font-weight: 700; }
.page-head p { margin: 0; color: #c9dceb; font-size: 14px; }
.crumb { font-size: 12px; color: #a9c4d9; margin-bottom: 12px; }
.crumb a:hover { color: #fff; }
.crumb span { margin: 0 6px; opacity: .6; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 24px 0; flex-wrap: wrap; }
.toolbar h2 { margin: 0; font-size: 20px; color: var(--navy); }
.toolbar .count { color: var(--muted); font-size: 13px; }
.filter-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tag { padding: 6px 12px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: 13px; cursor: pointer; border-radius: 2px; }
.filter-tag:hover, .filter-tag.active { border-color: var(--blue); color: var(--blue); background: #f0f7fc; }
.search-page-input { display: flex; gap: 10px; margin: 0 0 8px; }
.search-page-input input { flex: 1; height: 46px; border: 1px solid var(--line); padding: 0 14px; border-radius: 3px; outline: none; }
.search-page-input input:focus { border-color: var(--blue); }
.empty { padding: 60px 0; text-align: center; color: var(--muted); }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 36px 0 10px; }
.detail-gallery { background: #f6f9fb; border: 1px solid var(--line); aspect-ratio: 4/3; display: grid; place-items: center; }
.detail-gallery svg { width: 100%; height: 100%; }
.detail-gallery img { width: 100%; height: 100%; object-fit: contain; }
.detail-info h1 { font-size: 25px; color: var(--navy); line-height: 1.4; margin: 6px 0 14px; }
.detail-info .brand-line { color: var(--blue); font-weight: 700; font-size: 13px; }
.detail-info .desc { color: #536773; margin: 14px 0 20px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: 14px; }
.spec-table th, .spec-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.spec-table th { background: var(--bg-soft); color: var(--navy); width: 34%; font-weight: 600; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.note-box { background: #fff8e8; border-left: 3px solid #e8a800; padding: 12px 14px; font-size: 13px; color: #7a5a11; margin-top: 18px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-top: 34px; }
.contact-card { border: 1px solid var(--line); padding: 26px; background: #fff; }
.contact-card h2 { margin-top: 0; color: var(--navy); font-size: 20px; }
.contact-row { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid #edf1f4; }
.contact-row:last-child { border-bottom: 0; }
.contact-row .label { width: 72px; flex: 0 0 auto; color: var(--muted); font-size: 13px; }
.contact-row .value { color: var(--ink); word-break: break-all; }
.map-placeholder { background: repeating-linear-gradient(45deg, #f4f8fa, #f4f8fa 12px, #eef4f7 12px, #eef4f7 24px); border: 1px solid var(--line); min-height: 280px; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c6d6e3; padding: 44px 0 22px; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid h4 { color: #fff; margin: 0 0 14px; font-size: 14px; }
.footer-grid p { margin: 0 0 8px; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 30px; padding-top: 16px; display: flex; justify-content: space-between; gap: 16px; color: #92aabd; font-size: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cat-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .header-inner { gap: 16px; }
  .header-search input { width: 180px; }
}
@media (max-width: 760px) {
  .menu-toggle, .mobile-search-btn { display: inline-grid; place-items: center; }
  .main-nav { position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; height: auto; padding: 8px 0; display: none; box-shadow: var(--shadow); }
  .main-nav.show { display: flex; }
  .nav-link { height: 46px; padding: 0 20px; }
  .nav-link.active::after { display: none; }
  .dropdown { position: static; width: 100%; box-shadow: none; border: 0; border-top: 1px solid var(--line); display: none; padding: 10px 14px; }
  .nav-products.open .dropdown { display: grid; }
  .header-search { position: absolute; top: 72px; left: 12px; right: 12px; margin: 0; display: none; }
  .header-search.show { display: flex; }
  .header-search input { width: 100%; height: 42px; font-size: 15px; }
  .header-search .search-btn { width: 42px; height: 42px; }
  .suggestions { width: 100%; top: 48px; }
  .header-inner { height: 60px; }
  .main-nav { top: 60px; }
  .header-search { top: 60px; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 32px; }
  .hero-visual { max-width: 420px; }
  .section { padding: 44px 0; }
  .cat-grid, .product-grid, .about-grid, .detail-grid, .contact-grid { grid-template-columns: 1fr; }
  .detail-gallery { max-height: 340px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
