@charset "utf-8";

:root {
  --primary: #003277;
  --primary-dark: #002456;
  --primary-light: #1a5a9e;
  --accent: #0ea5e9;
  --text: #1e293b;
  --text-muted: #64748b;
  --bg: #f1f5f9;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 50, 119, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 50, 119, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 50, 119, 0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --container: 1200px;
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; vertical-align: middle; }

/* ---- Header ---- */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo img {
  height: 48px;
  width: auto;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.header-search label {
  font-size: 13px;
  color: var(--text-muted);
  margin-right: 10px;
  white-space: nowrap;
}

.header-search input[type="text"] {
  width: 220px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}

.header-search input[type="text"]:focus {
  border-color: var(--primary-light);
}

.header-search button {
  height: 38px;
  padding: 0 18px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14px;
  cursor: pointer;
  transition: background var(--transition);
}

.header-search button:hover { background: var(--primary-dark); }

/* ---- Navigation ---- */
.site-nav {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.site-nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex: 1;
}

.nav-list li { flex: 1; }

.nav-list a {
  display: block;
  padding: 14px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all var(--transition);
  position: relative;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 3px 3px 0 0;
  transition: width var(--transition);
}

.nav-list a:hover,
.nav-list li.active a {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.nav-list li.active a::after,
.nav-list a:hover::after { width: 60%; }

/* ---- Banner ---- */
.banner-wrap {
  width: 100%;
  max-width: none;
  margin: 12px 0 0;
  padding: 0;
  background: #061428;
  position: relative;
}

.banner-slider,
.banner-page {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
  background: #061428;
}

.banner-slider { height: 420px; }
.banner-page { height: 240px; }

.banner-slider .mySlides {
  display: none;
  width: 100%;
  height: 100%;
}

.banner-slider .mySlides:first-child { display: block; }

.banner-slider .mySlides img,
.banner-page img {
  display: block;
  width: 100%;
  max-width: none;
  height: 420px;
  object-fit: cover;
  object-position: center center;
}

.banner-page img { height: 240px; }

.banner-overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(6, 20, 40, 0.78) 0%, rgba(6, 20, 40, 0.35) 55%, rgba(6, 20, 40, 0.15) 100%);
  display: flex;
  align-items: center;
  pointer-events: none;
}

.banner-overlay-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  color: #fff;
}

.banner-kicker {
  margin: 0 0 10px;
  letter-spacing: 4px;
  font-size: 12px;
  color: #7dd3fc;
  font-weight: 600;
}

.banner-overlay-inner h2 {
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.banner-overlay-inner p {
  margin: 12px 0 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.88);
}

.home-intro {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-muted);
  font-size: 13px;
}

.home-intro strong {
  color: var(--primary);
  font-size: 15px;
}

/* ---- Layout ---- */
.site-container {
  max-width: var(--container);
  margin: 24px auto;
  padding: 0 24px;
}

.layout-grid {
  display: grid;
  grid-template-columns: 220px 1fr 240px;
  gap: 24px;
  align-items: start;
}

.layout-grid-2col {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
}

/* ---- Sidebar ---- */
.sidebar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

.sidebar-card + .sidebar-card { margin-top: 20px; }

.sidebar-title {
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.sidebar-body { padding: 16px 18px; }

/* Product menu */
.qm-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  max-height: 560px;
  overflow-y: auto;
}

.qm-menu ul {
  list-style: none;
  margin: 0;
  padding: 4px 0 4px 16px;
  border-left: 2px solid var(--border);
}

.qm-menu li { line-height: 1; }

.qm-menu li + li { margin-top: 2px; }

.qm-menu li.qm-top {
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
  margin-bottom: 6px;
}

.qm-menu li.qm-all {
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.qm-menu a {
  color: var(--text);
  display: block;
  padding: 7px 10px;
  border-radius: 6px;
  transition: all var(--transition);
}

.qm-menu a:hover {
  color: var(--primary);
  background: var(--bg);
  text-decoration: none;
}

.qm-menu li.qm-top > a,
.qm-menu li.qm-open > a { font-weight: 600; color: var(--primary); }

.qm-menu li.qm-cur > a {
  color: var(--white);
  background: var(--primary);
  font-weight: 600;
}

.qm-menu li.qm-all > a { font-weight: 600; }

.qm-empty { color: var(--text-muted); font-size: 13px; padding: 8px; }

/* Contact sidebar */
.contact-info { font-size: 13px; line-height: 1.8; color: var(--text-muted); }

.contact-info strong {
  display: block;
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 12px;
  font-weight: 700;
}

.contact-info a { color: var(--primary-light); word-break: break-all; }

.contact-phone-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 20px;
  text-align: center;
  color: var(--white);
}

.contact-phone-banner .phone-label { font-size: 13px; opacity: 0.85; }

.contact-phone-banner .phone-number {
  font-size: 22px;
  font-weight: 700;
  margin-top: 6px;
  letter-spacing: 1px;
}

/* Application scope */
.app-scope-img {
  border-radius: var(--radius);
  margin-bottom: 12px;
}

.app-scope-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ---- Main content ---- */
.main-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: 28px 32px;
  min-height: 400px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 22px;
  background: var(--accent);
  border-radius: 2px;
}

.page-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 20px;
}

.content-text {
  font-size: 14px;
  line-height: 2;
  color: var(--text);
}

.content-text p { margin: 0 0 16px; }

/* ---- Product grid (index) ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}

.section-title-row .section-title {
  margin: 0;
  padding: 0;
  border: none;
}

.section-more {
  font-size: 13px;
  color: var(--primary-light);
  white-space: nowrap;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  transition: all var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.product-card-img {
  padding: 14px;
  background: #fff;
  height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-img img {
  width: 100%;
  height: 120px;
  object-fit: contain;
}

.product-card-name {
  padding: 10px 8px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  border-top: 1px solid var(--border);
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition);
}

.product-card:hover .product-card-name { color: var(--primary); }

.product-card a { color: inherit; text-decoration: none; display: block; }

/* ---- Product list (product page) ---- */
.proDiv { width: 100%; }

.proDiv #ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.xn_pro_nrsmall {
  width: auto;
  height: auto;
  padding: 0;
  border: 1px solid var(--border);
  float: none;
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius);
  background: var(--white);
  transition: all var(--transition);
}

.xn_pro_nrsmall:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--primary-light);
  background: var(--white);
}

.xn_pro_ritbox {
  position: static;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.xn_pro_name {
  width: 100%;
  height: auto;
  line-height: 1.4;
  font-size: 14px;
  padding: 12px 14px 0;
  margin-top: 0;
  white-space: normal;
  text-overflow: unset;
}

.xn_pro_name a { color: var(--text); font-weight: 600; }
.xn_pro_name a:hover { color: var(--primary); }

.xn_pro_coent {
  width: 100%;
  height: auto;
  line-height: 1;
  padding: 10px 14px 16px;
  text-align: center;
}

.xn_pro_coent img {
  width: 100%;
  max-width: 120px;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

/* ---- Pagination ---- */
.Detail-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); }

.page p {
  position: relative;
  height: auto;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 36px;
  text-align: center;
}

.page p span {
  width: auto;
  height: auto;
  padding: 4px 12px;
  margin-right: 8px;
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  line-height: 1.5;
  text-align: center;
  border-radius: 4px;
}

.page p a {
  color: var(--primary);
  padding: 4px 10px;
  margin: 0 2px;
  border-radius: 4px;
  transition: all var(--transition);
}

.page p a:hover {
  color: var(--white);
  background: var(--primary);
}

.jogger { padding: 20px 0; text-align: center; font-family: inherit; }

.jogger a {
  padding: 6px 12px;
  margin: 2px;
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  transition: all var(--transition);
}

.jogger a:hover {
  color: var(--white);
  background: var(--primary);
  border-color: var(--primary);
}

.jogger span.current {
  padding: 6px 12px;
  margin: 2px;
  color: var(--white);
  background: var(--primary);
  border-radius: 4px;
}

.jogger span.disabled { display: none; }

/* ---- Forms ---- */
.form-card {
  max-width: 640px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--primary-light); }

.form-group textarea { resize: vertical; min-height: 140px; }

.btn-primary {
  display: inline-block;
  padding: 10px 32px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition);
}

.btn-primary:hover { background: var(--primary-dark); }

.form-intro {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.8;
}

/* ---- Product detail ---- */
.product-detail {
  display: block;
}

.product-detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.product-detail-img {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px 18px;
  text-align: center;
}

.product-detail-caption {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.product-detail-img img {
  width: 100%;
  height: 320px;
  object-fit: contain;
}

.product-detail-caption .zoom-hint {
  color: var(--primary-light);
  font-size: 12px;
  margin-left: 6px;
}

.product-detail-img a.js-zoom {
  display: block;
  cursor: zoom-in;
}

.img-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(6, 20, 40, 0.86);
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: auto;
  cursor: zoom-out;
}

.img-lightbox.is-open { display: flex; }

.img-lightbox img {
  max-width: none;
  width: auto;
  height: auto;
  max-width: 96vw;
  max-height: 92vh;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

.product-detail-info h1 {
  font-size: 22px;
  color: var(--primary);
  margin: 0 0 16px;
}

.product-detail-intro {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.product-detail-content { font-size: 14px; line-height: 1.8; }

/* ---- Footer ---- */
.site-footer {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #001a3a 100%);
  color: rgba(255, 255, 255, 0.75);
  margin-top: 48px;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px 24px 24px;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand { font-size: 15px; font-weight: 600; color: var(--white); }

.footer-contact { font-size: 13px; line-height: 1.8; }

.footer-contact a { color: rgba(255, 255, 255, 0.75); }
.footer-contact a:hover { color: var(--white); }

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}

.footer-nav a:hover { color: var(--white); }

.footer-bottom {
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a { color: rgba(255, 255, 255, 0.6); }
.footer-bottom a:hover { color: var(--white); }

.clearfix::after { content: ''; display: table; clear: both; }

/* ---- Breadcrumb ---- */
.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.breadcrumb a { color: var(--primary-light); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .layout-grid { grid-template-columns: 200px 1fr; }
  .sidebar-right { display: none; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .proDiv #ul { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .header-top { flex-direction: column; align-items: stretch; }
  .header-search { width: 100%; }
  .header-search input[type="text"] { flex: 1; width: auto; }
  .header-search { display: flex; }
  .nav-list { flex-wrap: wrap; }
  .nav-list li { flex: 1 1 33%; }
  .layout-grid,
  .layout-grid-2col { grid-template-columns: 1fr; }
  .banner-slider, .banner-slider .mySlides img { height: 260px; }
  .banner-page, .banner-page img { height: 180px; }
  .banner-overlay-inner h2 { font-size: 24px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .proDiv #ul { grid-template-columns: repeat(2, 1fr); }
  .product-detail-gallery { grid-template-columns: 1fr; }
  .main-content { padding: 20px; }
  .footer-main { flex-direction: column; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-list li { flex: 1 1 50%; }
}
