:root {
  --bg: #f6f8fb;
  --bg-soft: #eef3f7;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-strong: rgba(255, 255, 255, 0.9);
  --line: rgba(15, 23, 32, 0.08);
  --text: #16202b;
  --muted: #6f7d8c;
  --dark-text: #0e1620;
  --light-surface: #f5f7fa;
  --light-card: #ffffff;
  --accent: #65adf1;   /* 主蓝（专业） */
  --accent-soft: #3b82f6;
  --shadow: 0 20px 60px rgba(15, 23, 32, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(216, 179, 106, 0.10), transparent 24%),
    radial-gradient(circle at left center, rgba(90, 116, 145, 0.10), transparent 26%),
    linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
  color: var(--text);
  line-height: 1.65;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-shell {
  overflow: visible;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(22px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(15, 23, 32, 0.06);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(15, 23, 32, 0.08);
}

.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* keeps logo ratio */
}

.brand-mark span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(216, 179, 106, 0.95), transparent);
}

.brand-mark span:nth-child(1) { top: 14px; }
.brand-mark span:nth-child(2) { top: 22px; }
.brand-mark span:nth-child(3) { top: 30px; }

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text strong {
  font-size: 0.98rem;
  letter-spacing: 0.12em;
}

.brand-text small {
  color: var(--muted);
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 32, 0.08);
  background: rgba(255, 255, 255, 0.8);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn.active {
  background: var(--accent);
  color: #111;
  font-weight: 700;
}

.eyebrow,
.section-tag {
  display: inline-flex;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--accent);
  background: rgba(255, 255, 255, 0.03);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.section-tag.light {
  color: #f3d7a1;
  border-color: rgba(243, 215, 161, 0.16);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #0e141c;
}

.btn-secondary {
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(15,23,32,0.08);
  color: var(--text);
}

.btn-dark {
  background: #0f1720;
  color: #fff;
}
/* ===== New Hero (Immersive) ===== */

.hero-immersive {
  position: relative;
  height: 92vh;
  min-height: 600px;
  overflow: hidden;
}

/* 背景 */
.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 遮罩（很关键） */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10,20,30,0.2),
    rgba(10,20,30,0.65)
  );
}

/* 内容 */
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
  color: #fff;
  padding: 0 20px;
}

.hero-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  opacity: 0.7;
  margin-bottom: 16px;
}

.hero-content h1 {
  font-size: clamp(2.8rem, 5vw, 5rem);
  margin-bottom: 16px;
  line-height: 1.05;
}

.hero-content p {
  max-width: 640px;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 26px;
}


/* ===== About KPI ===== */

.about-kpi {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.kpi-item {
  padding: 26px 20px;
  border-radius: 20px;

  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(15,23,32,0.06);

  text-align: center;
  box-shadow: var(--shadow);

  transition: transform 0.25s ease;
}

.kpi-item:hover {
  transform: translateY(-4px);
}

.kpi-item strong {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.kpi-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .about-kpi {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .about-kpi {
    grid-template-columns: 1fr;
  }
}

.section {
  padding: 72px 0;
}

.section-dark {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.65), rgba(245,248,252,0.9)),
    #f3f6fa;
  border-top: 1px solid rgba(15,23,32,0.05);
  border-bottom: 1px solid rgba(15,23,32,0.05);
}
.section-heading {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 16px 0 0;
  font-size: clamp(1.9rem, 3vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  max-width: 620px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  overflow: hidden;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(15,23,32,0.06);
}

.product-card:hover .product-image img {
  transform: scale(1.04);
}

.product-content {
  padding: 24px;
}

.product-index {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.86rem;
  letter-spacing: 0.12em;
}

.product-content h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
}

.product-content p {
  margin: 0;
  color: var(--muted);
}

.product-list {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-top: 40px;
}

.product-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
}


.slider-track {
  direction: ltr !important;
}

.product-image {
  aspect-ratio: 16 / 12;

  border-radius: 18px;   /* 🔥 必须加 */
  overflow: hidden;      /* 🔥 必须配合 */

  position: relative;    /* （给hover扩展用，可选） */
}

.product-image img {
  width: 100%;           /* 🔥 建议加上 */
  height: 100%;
  object-fit: cover;

  transition: transform 0.5s ease;
}

.product-info {
  max-width: 520px;
}

.product-index {
  font-size: 0.8rem;
  opacity: 0.5;
}

.product-spec {
  margin-top: 14px;
  padding-left: 18px;
  color: var(--muted);
}

.facility-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}

.facility-gallery {
  display: grid;
  gap: 18px;
}

.gallery-main,
.gallery-subgrid img {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15,23,32,0.06);
}

.gallery-main {
  min-height: 420px;
}

.gallery-main img {
  height: 100%;
  object-fit: cover;
}

.gallery-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.gallery-subgrid img {
  aspect-ratio: 12 / 12;
  object-fit: cover;
}

.facility-copy h2 {
  margin: 16px 0 14px;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.facility-copy p {
  margin: 0;
  color: var(--muted);
}

.strength-list {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.strength-list article {
  padding: 18px 0;
  border-top: 1px solid rgba(15,23,32,0.08);
}

.strength-list article:first-child {
  padding-top: 0;
  border-top: 0;
}

.strength-list strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.strength-list span {
  color: var(--muted);
}

.contact-section {
  padding-top: 30px;
  padding-bottom: 84px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 24px;
}

.contact-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247,249,252,0.96));
  padding: 34px;
  color: var(--dark-text);
}

.contact-panel h2 {
  margin: 16px 0 12px;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.1;
}

.contact-panel p {
  margin: 0;
  color: #637282;
}

.contact-items {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.contact-item {
  padding: 18px 0;
  border-top: 1px solid rgba(14, 22, 32, 0.08);
}

.contact-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.contact-label {
  font-size: 0.86rem;
  color: #7c8a97;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.contact-value,
.contact-value a {
  color: #152331;
  font-size: 1rem;
  word-break: break-word;
}

.contact-actions {
  margin-top: 26px;
}

.contact-side {
  display: flex;
}

.quote-card {
  width: 100%;
  min-height: 100%;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02)),
    url('images/墙面标志.jpg') center/cover;
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}

.quote-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(15,23,32,0.38));
}

.quote-card > * {
  position: relative;
  z-index: 1;
}

.quote-card span {
  display: inline-block;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.84rem;
}

.quote-card h3 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(1.8rem, 2.6vw, 2.8rem);
  line-height: 1.12;
  color: #ffffff;  
}

.site-footer {
  padding: 0 0 34px;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(15,23,32,0.08);
}

.footer-wrap strong {
  display: block;
  margin-bottom: 6px;
}

.footer-wrap p,
.to-top {
  margin: 0;
  color: var(--muted);
}

.to-top:hover {
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.22s; }

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .nav-wrap {
    min-height: 72px;
  }

  .brand-text strong {
    font-size: 0.88rem;
    letter-spacing: 0.08em;
  }

  .hero-copy,
  .feature-card,
  .product-content,
  .contact-panel,
  .quote-card {
    padding: 20px;
  }

  .section {
    padding: 56px 0;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

.side-nav {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 32, 0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.side-nav-item {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(123, 140, 163, 0.35);
  border: 1px solid rgba(15, 23, 32, 0.08);
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
  opacity: 0.85;
}

.side-nav-item:hover {
  transform: scale(1.18);
  background: rgba(123, 140, 163, 0.6);
}

.side-nav-item.active {
  background: var(--accent);
  transform: scale(1.28);
  opacity: 1;
}

@media (max-width: 820px) {
  .side-nav {
    right: 14px;
    gap: 10px;
    padding: 10px 8px;
  }

  .side-nav-item {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 640px) {
  .side-nav {
    display: none;
  }
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 一行5个 */
  gap: 18px;
  margin-top: 24px;
}

.partner-item {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(15,23,32,0.06);
  border-radius: 16px;
  height: 110px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  overflow: hidden;

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.partner-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.partner-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;

  transition: transform 0.25s ease, filter 0.25s ease;
}

.partner-item:hover img {
  transform: scale(1.06);
  filter: brightness(1.05);
}

@media (max-width: 1100px) {
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* transition */
body {
  opacity: 0;
  transition: opacity 0.4s ease;
}

body.loaded {
  opacity: 1;
}

body.fade-out {
  opacity: 0;
}

/* about */
.about-actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;  /* 居中更高级 */
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 24px 0;
}

/* 🔥 关键：统一比例容器 */
.detail-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;   /* ✅ 统一比例 */

  border-radius: 14px;
  object-fit: cover;     /* ✅ 自动裁切填满 */

  display: block;
}

.timeline {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.timeline div {
  padding: 16px;
  border-left: 3px solid var(--accent);
  background: rgba(0,0,0,0.02);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.team-image {
  width: 100%;
  height: 280px;
  border-radius: 14px;
  overflow: hidden;   /* 🔥 关键 */
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;  /* 🔥 填满且不变形 */
  transition: transform 0.3s ease;
}

.team-card {
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.team-card:hover img {
  transform: scale(1.05);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.section-heading-main {
  max-width: 720px;
}

.section-heading-action {
  flex-shrink: 0;
}

:root {
  --header-offset: 50px;
}

section {
  scroll-margin-top: var(--header-offset);
}



/* ===== Manufacturing Page ===== */

.equipment-list {
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin-top: 40px;
}

.equipment-item {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.equipment-item.reverse .equipment-image {
  order: 2;
}

.equipment-item.reverse .equipment-text {
  order: 1;
}

.equipment-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 600px; 
}

.equipment-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.equipment-text {
  max-width: 520px;
}

.equipment-index {
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  display: inline-block;
}

.equipment-text h3 {
  margin: 0 0 12px;
  font-size: 1.4rem;
}

.equipment-text p {
  margin: 0;
  color: var(--muted);
}


/* ===== Homepage Immersive ===== */

.immersive-section {
  position: relative;
  height: 75vh;
  min-height: 480px;
  margin: 40px 0;
  border-radius: 28px;
  overflow: hidden;
}

.immersive-bg {
  position: absolute;
  inset: 0;
}

.immersive-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 遮罩更轻一点（首页） */
.immersive-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10,20,30,0.15),
    rgba(10,20,30,0.5)
  );
}

.immersive-content {
  position: relative;
  z-index: 2;
  height: 100%;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
  color: #fff;
  padding: 0 20px;
}

.immersive-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  opacity: 0.7;
  margin-bottom: 12px;
}

.immersive-content h2 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  margin-bottom: 14px;
}

.immersive-content p {
  max-width: 600px;
  color: rgba(255,255,255,0.85);
}


/* ===== Slider ===== */

.slider {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

/* 滑动轨道 */
.slider-track {
  display: flex;
  transition: transform 0.5s ease;
}

.slider-track img {
  width: 100%;
  flex-shrink: 0;
  object-fit: cover;
}

/* 左右按钮 */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;

  width: 36px;
  height: 36px;

  border-radius: 50%;
  border: none;

  background: rgba(0,0,0,0.4);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

/* 圆点 */
.slider-dots {
  position: absolute;
  bottom: 10px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.slider-dots span {
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  cursor: pointer;
}

.slider-dots span.active {
  background: #fff;
}

.product-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.product-row:nth-child(even) {
  grid-template-columns: 0.9fr 1.1fr;
}

.product-image {
  height: 220px;
  overflow: hidden;
  border-radius: 20px;
}

.product-image img,
.slider-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.product-row:nth-child(even) .product-image {
  grid-column: 2;
}

.product-row:nth-child(even) .product-info {
  grid-column: 1;
}

.product-image {
  height: 220px;
  overflow: hidden;
  border-radius: 20px;
}

.product-image img,
.slider-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-track {
  direction: ltr;
}

.product-row.reverse .product-image {
  order: 2;
}

.product-row.reverse .product-info {
  order: 1;
}


.product-image {
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
}


.product-image img,
.slider-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.products-page .product-image {
  height: 400px; 
  border-radius: 20px;
  overflow: hidden;
}

/* 备案 */
.beian {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.beian a {
  color: var(--muted);
}

.beian a:hover {
  color: var(--text);
}