:root {
  --navy-900: #061224;
  --navy-800: #0b1a33;
  --navy-700: #13294b;
  --blue-600: #1e4976;
  --accent: #2b6cb0;
  --accent-light: #4299e1;
  --gold: #c5a059;
  --text: #e8edf5;
  --text-muted: #9fb0c8;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --font: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  /* 顶栏约高，用于整屏轮播 = 一屏可视高度 − 导航 */
  --header-offset: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 40%, #0a1628 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--accent-light);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 全宽内容区：两侧留白随屏宽变化，不再缩在中间窄栏 */
.container {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 100px);
}

.container--narrow {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Header */
.site-header {
  background: rgba(6, 18, 36, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.logo {
  font-weight: 700;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  letter-spacing: 0.06em;
  color: var(--white);
  text-decoration: none;
}
.logo span {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
}

.nav-list a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}
.nav-list a:hover,
.nav-list a.active {
  color: var(--white);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }
  .nav-list {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    background: var(--navy-800);
    padding: 16px 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 12px;
  }
  .nav-list.open {
    display: flex;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--blue-600) 100%);
  color: var(--white);
}
.btn-primary:hover {
  filter: brightness(1.08);
  text-decoration: none;
}
.btn-whatsapp {
  background: #25d366;
  color: #062d14;
}
.btn-whatsapp:hover {
  filter: brightness(1.05);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--accent-light);
  color: var(--white);
  text-decoration: none;
}

/* 内页顶区（非首页整屏轮播） */
.hero {
  padding: clamp(28px, 5vw, 56px) 0 clamp(20px, 3vw, 36px);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 70% at 50% 0%, rgba(43, 108, 176, 0.22), transparent 58%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero h1,
.page-hero-title {
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  margin: 0 0 16px;
  line-height: 1.15;
  color: var(--white);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero p.lead,
.page-hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: min(920px, 100%);
  margin: 0 0 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* 首页：整屏轮播 */
.hero-home {
  position: relative;
  width: 100%;
}

.carousel {
  margin: 24px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--navy-700);
  min-height: 220px;
  position: relative;
}

.carousel-fullscreen {
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  width: 100%;
  min-height: calc(100vh - var(--header-offset));
  min-height: calc(100svh - var(--header-offset));
  height: calc(100vh - var(--header-offset));
  height: calc(100svh - var(--header-offset));
  max-height: none;
  background: #040d1a;
}

.carousel-fullscreen .carousel-slide {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 0;
}
.carousel-fullscreen .carousel-slide.active {
  display: block;
}
.carousel-fullscreen .carousel-slide > a {
  display: block;
  height: 100%;
}
.carousel-fullscreen .carousel-slide img {
  width: 100%;
  height: 100%;
  min-height: calc(100vh - var(--header-offset));
  min-height: calc(100svh - var(--header-offset));
  object-fit: contain;
  object-position: center;
}

.carousel-slide {
  display: none;
  position: relative;
}
.carousel-slide.active {
  display: block;
}
.carousel:not(.carousel-fullscreen) .carousel-slide img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
}

.carousel-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(24px, 5vw, 56px) clamp(20px, 5vw, 100px) clamp(72px, 12vh, 120px);
  background: linear-gradient(transparent, rgba(4, 13, 26, 0.55), rgba(4, 13, 26, 0.92));
  z-index: 2;
}
.carousel-fullscreen .carousel-caption {
  padding-bottom: clamp(88px, 14vh, 140px);
}
.carousel-caption h3 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 3.5vw, 2.25rem);
  color: var(--white);
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: min(1100px, 100%);
}
.carousel-caption p {
  margin: 0;
  color: rgba(232, 237, 245, 0.88);
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  max-width: min(800px, 100%);
  line-height: 1.55;
}

.carousel-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  padding: 14px 16px 20px;
  background: var(--navy-800);
}
.carousel-fullscreen .carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  background: linear-gradient(transparent, rgba(4, 13, 26, 0.75));
  padding-bottom: max(20px, env(safe-area-inset-bottom, 12px));
}
.carousel-dots button {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s, background 0.2s;
}
.carousel-dots button.active {
  background: var(--gold);
  transform: scale(1.15);
}

/* 首页轮播下方主文案区 */
.section-hero-copy {
  padding: clamp(40px, 6vw, 88px) 0;
  position: relative;
}
.section-hero-copy::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 80% at 50% 0%, rgba(30, 73, 118, 0.2), transparent 55%);
  pointer-events: none;
}
.section-hero-copy .container {
  position: relative;
  z-index: 1;
}

.section {
  padding: clamp(40px, 5vw, 72px) 0;
}
.section-alt {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.section h2 {
  font-size: clamp(1.45rem, 2.8vw, 2.1rem);
  margin: 0 0 14px;
  color: var(--white);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section .sub {
  color: var(--text-muted);
  margin: 0 0 clamp(24px, 3vw, 36px);
  max-width: min(960px, 100%);
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
  line-height: 1.65;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.2vw, 28px);
}
@media (min-width: 1400px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}
@media (max-width: 900px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--navy-700);
  border-radius: var(--radius);
  padding: clamp(20px, 2.5vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.card h3 {
  margin-top: 0;
  color: var(--white);
  font-size: 1.15rem;
}

.list-check {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
}
.list-check li {
  margin-bottom: 8px;
}

/* About: mission / vision / values */
.mission-vision-text {
  margin: 0;
  font-size: clamp(0.95rem, 1.35vw, 1.05rem);
  line-height: 1.65;
  color: rgba(232, 237, 245, 0.92);
}
.list-values {
  margin: 0;
  padding-left: 1.15rem;
  color: rgba(232, 237, 245, 0.88);
  line-height: 1.65;
}
.list-values li {
  margin-bottom: 6px;
}
.list-values li:last-child {
  margin-bottom: 0;
}
.mission-vision-grid .card-values .list-values {
  margin-top: 4px;
}

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(18px, 2vw, 28px);
}
.product-card {
  background: var(--navy-700);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.product-card a {
  color: inherit;
  text-decoration: none;
}
.product-card .thumb {
  aspect-ratio: 4/3;
  background: var(--navy-800);
  overflow: hidden;
}
.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card .thumb img.is-placeholder {
  object-fit: contain;
  padding: 12px;
  background: var(--navy-800);
}
.product-card .body {
  padding: 16px 18px 20px;
}
.product-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--white);
}
.product-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Gallery（通用，多列小图） */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: clamp(12px, 1.5vw, 18px);
}
.gallery img,
.gallery video {
  border-radius: 8px;
  width: 100%;
  height: clamp(140px, 18vw, 200px);
  object-fit: cover;
  background: var(--navy-800);
}

/* 工厂环境：一行两张、占位更高 */
.gallery.factory-gallery {
  grid-template-columns: 1fr;
  gap: clamp(16px, 2vw, 24px);
}
@media (min-width: 640px) {
  .gallery.factory-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.gallery.factory-gallery img,
.gallery.factory-gallery video {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
}

/* 资质证书：紧凑网格，大屏一行 5 张 */
.certs-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.5vw, 16px);
  align-items: start;
}
@media (min-width: 640px) {
  .certs-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 900px) {
  .certs-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .certs-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
.certs-row figure {
  margin: 0;
  width: 100%;
  text-align: center;
}
.certs-row img {
  width: 100%;
  height: clamp(100px, 22vw, 160px);
  object-fit: contain;
  background: var(--white);
  border-radius: 8px;
  padding: clamp(6px, 1vw, 10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.certs-row figcaption {
  font-size: clamp(0.72rem, 1.1vw, 0.85rem);
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.35;
  padding: 0 2px;
}

/* 联系页：微信 / WhatsApp 二维码 */
.contact-qr-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.contact-qr-section h4 {
  margin: 0 0 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
}
.contact-qr-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 480px) {
  .contact-qr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}
.contact-qr-item {
  text-align: center;
}
.contact-qr-item p {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.contact-qr-item img {
  display: block;
  margin: 0 auto;
  width: min(200px, 70vw);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 10px;
  padding: 8px;
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.contact-qr-item.is-empty img {
  display: none;
}
.contact-qr-item.is-empty .contact-qr-placeholder {
  display: flex;
}
.contact-qr-placeholder {
  display: none;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  width: min(200px, 70vw);
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 12px;
  box-sizing: border-box;
}

/* Forms */
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text-muted);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}
.form-group textarea {
  min-height: 140px;
  resize: vertical;
}
.form-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Footer */
.site-footer {
  padding: 40px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #040a14;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.site-footer .cols {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
}
@media (max-width: 768px) {
  .site-footer .cols {
    grid-template-columns: 1fr;
  }
}
.site-footer h4 {
  color: var(--white);
  margin: 0 0 12px;
  font-size: 1rem;
}
.site-footer p {
  margin: 0 0 8px;
}

/* 首页页脚：与联系页同一套二维码资源，尺寸略小 */
.site-footer-qr.contact-qr-section {
  margin-top: 28px;
}
.site-footer-qr .contact-qr-item img,
.site-footer-qr .contact-qr-placeholder {
  width: min(140px, 40vw);
}

/* WhatsApp float */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 200;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  text-decoration: none;
  font-size: 1.75rem;
}
.wa-float:hover {
  filter: brightness(1.08);
  text-decoration: none;
}

/* Detail */
.detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.detail-gallery img {
  border-radius: 8px;
  height: 90px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
}
.detail-gallery img.active {
  border-color: var(--gold);
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.prose {
  color: var(--text-muted);
}
.prose p {
  margin: 0 0 14px;
}

.muted {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.empty-box {
  padding: 32px;
  text-align: center;
  color: var(--text-muted);
  background: var(--navy-700);
  border-radius: var(--radius);
}

.carousel-fullscreen > .empty-box {
  min-height: calc(100vh - var(--header-offset));
  min-height: calc(100svh - var(--header-offset));
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  margin: 0;
  background: linear-gradient(160deg, #061224 0%, #0b1a33 100%);
  font-size: 1.05rem;
}
