:root {
  --primary: #0f3a6f;
  --primary-dark: #0b2d55;
  --accent: #f08a24;
  --text: #1d2733;
  --muted: #66758a;
  --bg: #f5f8fc;
  --white: #ffffff;
  --border: #e6ecf3;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  height: 84px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-toggle {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: 0.2s ease;
}

.lang-toggle:hover {
  background: #eef4fd;
  border-color: var(--primary);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  margin-right: auto;
}

.logo-mark {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--primary), #1d5aa3);
  color: var(--white);
  font-weight: 700;
  letter-spacing: 1px;
}

.logo-image {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.brand-text strong {
  display: block;
  font-size: 18px;
}

.brand-text span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.4px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 8px;
  transition: 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
  background: #eef4fd;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 26px;
  cursor: pointer;
}

.hero {
  background: var(--white);
}

.slider {
  position: relative;
  overflow: hidden;
}

.slide {
  display: none;
  position: relative;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  height: clamp(320px, 48vw, 620px);
  object-fit: cover;
  filter: brightness(0.72);
}

.hero-main-slide img {
  object-position: center 42%;
  filter: brightness(0.58);
}

.slide-content {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(1000px, 88%);
  transform: translate(-50%, -50%);
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.slide-content h1,
.slide-content h2 {
  font-size: clamp(24px, 3.2vw, 44px);
  line-height: 1.25;
}

.slide-content p {
  margin-top: 12px;
  font-size: clamp(14px, 1.4vw, 20px);
  opacity: 0.95;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  text-decoration: none;
  color: var(--white);
  background: var(--accent);
  border-radius: 999px;
  font-weight: 700;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  color: var(--primary-dark);
  font-size: 20px;
  cursor: pointer;
}

.prev {
  left: 16px;
}

.next {
  right: 16px;
}

.dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}

.dot.active {
  background: var(--accent);
}

.section {
  padding: 56px 0;
}

.section-title {
  text-align: center;
  font-size: 32px;
  color: var(--primary-dark);
}

.section-desc {
  max-width: 860px;
  margin: 10px auto 0;
  color: var(--muted);
  text-align: center;
}

.more-link {
  text-align: right;
  margin-top: 14px;
}

.more-link a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
}

.category-tabs {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.tab {
  padding: 10px 14px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 999px;
  font-weight: 600;
  color: #3d4e61;
  cursor: pointer;
}

.tab.active {
  color: var(--white);
  border-color: var(--primary);
  background: var(--primary);
}

.product-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
  justify-content: center;
  gap: 18px;
}

.card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(14, 45, 85, 0.12);
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
}

.card-body {
  padding: 12px;
  text-align: center;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: #223247;
  text-align: center;
}

.card-desc {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.contact {
  background: var(--white);
}

.inner-hero {
  padding: 64px 0 52px;
  color: var(--white);
  background: linear-gradient(120deg, #103b70, #1b5ca9);
}

.inner-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
}

.inner-hero p {
  margin-top: 10px;
  opacity: 0.95;
}

.section-alt {
  background: #eef3fa;
}

.content-block h2 {
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.content-block p + p {
  margin-top: 12px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.info-card h3 {
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.info-card ul {
  padding-left: 18px;
}

.info-card li + li {
  margin-top: 6px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 20px;
}

.contact h3 {
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.contact h4 {
  margin-bottom: 8px;
  color: #2b4261;
}

.contact-phone,
.contact-email {
  cursor: pointer;
  color: var(--primary-dark, #1a4480);
  border-bottom: 1px dashed currentColor;
  user-select: none;
}

.contact-phone.revealed,
.contact-email.revealed {
  cursor: text;
  border-bottom: none;
  user-select: text;
}

.contact-phone.revealed a,
.contact-email.revealed a {
  color: var(--primary-dark, #1a4480);
  text-decoration: none;
}

.contact-hint {
  font-size: 12px;
  color: #888;
  margin-top: 6px;
}

.wechat-qr-toggle {
  background: var(--primary-dark, #1a4480);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

.wechat-qr-toggle:hover {
  opacity: 0.9;
}

.wechat-qr {
  display: none;
  margin-top: 10px;
}

.wechat-qr.open {
  display: block;
}

.wechat-qr img {
  width: 160px;
  height: 160px;
  border: 1px solid #e5e8ee;
  border-radius: 6px;
  background: #fff;
}

.qr-missing {
  display: inline-block;
  padding: 10px 12px;
  background: #fff7e6;
  border: 1px dashed #f0b400;
  color: #9a6a00;
  font-size: 12px;
  border-radius: 4px;
}

.site-footer {
  background: #0e2748;
  color: #d2def0;
  text-align: center;
  padding: 18px 0;
}

.breadcrumb {
  font-size: 14px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.breadcrumb a {
  color: #ffd9a8;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 6px;
  opacity: 0.8;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 1.3fr;
  gap: 36px;
  align-items: start;
}

.product-detail-media img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.product-detail-info h2 {
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.product-highlights {
  list-style: none;
  padding: 0;
  margin: 16px 0 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}

.product-highlights li {
  position: relative;
  padding-left: 18px;
  color: #2b3b50;
  font-size: 14px;
}

.product-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.product-highlights strong {
  color: var(--primary-dark);
}

.cta-row {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.product-spec-grid {
  grid-template-columns: 1fr 1fr;
  margin-top: 24px;
}

.process-list {
  margin-top: 14px;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.process-list li {
  color: #2b3b50;
  line-height: 1.7;
}

.process-list strong {
  color: var(--primary-dark);
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  margin-top: 12px;
}

.faq-item h3 {
  color: var(--primary-dark);
  font-size: 16px;
  margin-bottom: 6px;
}

.faq-item p {
  color: #3d4e61;
  font-size: 14px;
}

.related-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

a.card.card-link-wrap {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.card-link {
  margin-top: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .product-detail {
    grid-template-columns: 1fr;
  }

  .product-spec-grid {
    grid-template-columns: 1fr;
  }

  .product-highlights {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 10px 4%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav.open {
    display: flex;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .brand-text strong {
    font-size: 15px;
  }

  .brand-text span {
    font-size: 11px;
  }

  .product-grid {
    grid-template-columns: minmax(220px, 1fr);
  }
}
