/* ==================================================
   上海添荣包装制品有限公司 - 重构官网样式表
   主题色：#EA5504（logo 红橙）
   风格：大气 / 现代 / 响应式
   ================================================== */

:root {
  --primary: #EA5504;
  --primary-dark: #C74603;
  --primary-light: #FFF1E8;
  --gold: #C9A96E;
  --gold-light: #F8F1E3;
  --dark: #1A1A1A;
  --dark-2: #2D2D2D;
  --text: #444444;
  --text-muted: #777777;
  --bg: #FFFFFF;
  --bg-warm: #FAF8F5;
  --bg-cream: #F5F1EB;
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --container: 1280px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul, ol {
  list-style: none;
}

.container {
  width: 92%;
  max-width: var(--container);
  margin: 0 auto;
}

.section {
  padding: 90px 0;
}

.section-lg {
  padding: 120px 0;
}

.section-sm {
  padding: 60px 0;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 14px;
  display: inline-block;
}

.section-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 720px;
  margin-top: 16px;
  line-height: 1.8;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 50px;
  gap: 24px;
  flex-wrap: wrap;
}

.text-center {
  text-align: center;
}

.text-center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(234, 85, 4, 0.28);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(234, 85, 4, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--dark);
}

.btn-outline:hover {
  background: var(--dark);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--primary);
}

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

/* Header */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

#header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

#header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

#logo img {
  height: 48px;
  width: auto;
}

#nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

#nav > li {
  position: relative;
}

#nav > li > a {
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
  padding: 8px 0;
  position: relative;
}

#nav > li > a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

#nav > li > a:hover,
#nav > li > a.active {
  color: var(--primary);
}

#nav > li > a:hover::after,
#nav > li > a.active::after {
  width: 100%;
}

#nav .subnav {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 200px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

#nav > li:hover .subnav {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

#nav .subnav a {
  display: block;
  padding: 10px 24px;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
}

#nav .subnav a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

#mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

#mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: all var(--transition);
}

/* Hero */
.hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  background: var(--dark);
  color: #fff;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(26, 26, 26, 0.92) 0%, rgba(26, 26, 26, 0.55) 60%, rgba(26, 26, 26, 0.25) 100%);
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 800;
  line-height: 1.12;
  max-width: 800px;
  margin-bottom: 24px;
}

.hero-title span {
  color: var(--primary);
}

.hero-desc {
  font-size: 18px;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-figure {
  position: absolute;
  right: 5%;
  bottom: 0;
  width: 38%;
  max-width: 520px;
  z-index: 2;
  opacity: 0.9;
}

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

/* Page banner */
.page-banner {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  background: var(--dark-2);
  color: #fff;
  padding-top: 100px;
  overflow: hidden;
}

.page-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

.page-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(26, 26, 26, 0.9) 0%, rgba(26, 26, 26, 0.5) 100%);
}

.page-banner .container {
  position: relative;
  z-index: 2;
}

.page-banner h1 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  margin-bottom: 12px;
}

.page-banner p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 680px;
}

.breadcrumb {
  padding: 18px 0;
  background: var(--bg-warm);
  font-size: 14px;
  color: var(--text-muted);
}

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

.breadcrumb span {
  margin: 0 8px;
}

/* Stats bar */
.stats-bar {
  background: var(--primary);
  color: #fff;
  padding: 50px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item .number {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item .label {
  font-size: 15px;
  opacity: 0.9;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.product-card .img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-cream);
}

.product-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.product-card:hover .img-wrap img {
  transform: scale(1.06);
}

.product-card .body {
  padding: 24px;
}

.product-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.product-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Category cards */
.category-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.category-card .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition);
}

.category-card:hover .bg {
  transform: scale(1.05);
}

.category-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0) 100%);
}

.category-card .content {
  position: relative;
  z-index: 2;
  padding: 24px;
  color: #fff;
  width: 100%;
}

.category-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.category-card p {
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.6;
}

/* About section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.about-text p {
  margin-bottom: 18px;
  color: var(--text);
  font-size: 16px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--dark);
}

.feature-list .icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}

/* Technology / Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.process-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 0px 0 18px 0;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.process-item .num {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 20px auto 18px;
}

.process-item h3 {
  font-size: 18px;
  color: var(--dark);
  margin-bottom: 10px;
}

.process-item p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 10px;
}

/* News */
.news-list {
  display: grid;
  gap: 24px;
}

.news-item {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}

.news-item:hover {
  box-shadow: var(--shadow-hover);
}

.news-item .thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.news-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.news-item:hover .thumb img {
  transform: scale(1.05);
}

.news-item .body {
  padding: 24px 24px 24px 0;
}

.news-item .date {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.news-item h3 {
  font-size: 18px;
  color: var(--dark);
  margin-bottom: 10px;
}

.news-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 50px;
  align-items: start;
}

.contact-info-block {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-info-block .icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.contact-info-block h4 {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 500;
}

.contact-info-block p,
.contact-info-block a {
  font-size: 16px;
  color: var(--dark);
  font-weight: 600;
}

.contact-info-block a:hover {
  color: var(--primary);
}

.contact-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  color: var(--dark);
  background: var(--bg-warm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

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

/* Partners */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  align-items: center;
}

.partner-grid img {
  width: 100%;
  height: 80px;
  object-fit: contain;
  filter: grayscale(0%);
  opacity: 0.7;
  transition: all var(--transition);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 10px;
  box-shadow: var(--shadow);
}

.partner-grid img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Footer */
#footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand img {
  height: 42px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  max-width: 320px;
}

.footer-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-contact p {
  font-size: 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

/* Back to top */
#back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(234, 85, 4, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 999;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  background: var(--primary-dark);
}

/* Utility backgrounds */
.bg-warm { background: var(--bg-warm); }
.bg-cream { background: var(--bg-cream); }
.bg-dark { background: var(--dark); color: #fff; }
.bg-primary { background: var(--primary); color: #fff; }

/* Kraft paper detail page */
.kraft-hero {
  background: var(--dark);
  color: #fff;
  padding: 140px 0 80px;
}

.kraft-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.kraft-intro .image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.kraft-intro .text h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.kraft-intro .text p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
}

.kraft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.kraft-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.kraft-card .img {
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
}

.kraft-card .body {
  padding: 22px;
}

.kraft-card h3 {
  font-size: 17px;
  color: var(--dark);
  margin-bottom: 8px;
}

.kraft-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero {
    min-height: 600px;
  }

  .hero-figure {
    display: none;
  }

  .about-grid,
  .kraft-intro {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  #mobile-toggle {
    display: flex;
  }

  #nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
    box-shadow: var(--shadow-hover);
  }

  #nav.open {
    transform: translateX(0);
  }

  #nav > li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  #nav > li > a {
    display: block;
    padding: 16px 0;
    font-size: 16px;
  }

  #nav .subnav {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    padding: 0 0 12px 12px;
    display: block;
  }

  #nav > li.open .subnav {
    display: block;
  }

  #nav .subnav a {
    padding: 10px 0;
  }

  .section {
    padding: 60px 0;
  }

  .section-lg {
    padding: 80px 0;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 36px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 16px;
  }

  .news-item {
    grid-template-columns: 1fr;
  }

  .news-item .body {
    padding: 20px;
  }

  .news-item .thumb {
    aspect-ratio: 16 / 9;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .hero {
    min-height: 520px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* ==================================================
   新增：弹窗 / 灯箱 / 工艺配图 / 优势九宫格 / 微信二维码
   ================================================== */

/* 修复水洗牛皮纸介绍白字看不清问题 */
.kraft-intro .text p {
  color: var(--text);
}

/* 工艺配图（数字改为配图） */
.process-item .pimg {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 16px;
  background: var(--bg-cream);
  transition: transform var(--transition);
}
.process-item:hover .pimg {
  transform: scale(1.04);
}
.process-grid .process-item:hover .pimg {
  transform: scale(1);
}

.process-item h3 {
  margin-top: 4px;
}

/* 可点击元素 */
.zoomable { cursor: zoom-in; }
[data-detail] { cursor: pointer; }

/* 灯箱（单图放大） */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(18, 18, 18, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 30px;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 92%;
  max-height: 84%;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox img.square {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: auto;
  max-width: 80vh;
  max-height: 80vh;
}
.lightbox .lb-close {
  position: absolute;
  top: 24px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  font-size: 24px;
  cursor: pointer;
  transition: background 0.3s;
}
.lightbox .lb-close:hover { background: var(--primary); }
.lightbox .lb-caption {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-size: 15px;
  padding: 0 20px;
}

/* 详情弹窗（产品 / 新闻 / 工艺 / 水洗牛皮纸） */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(18, 18, 18, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 30px;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-box {
  background: #fff;
  border-radius: var(--radius);
  width: 100%;
  max-width: 880px;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-hover);
  animation: modalIn 0.35s ease;
}
@keyframes modalIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--dark);
  border: none;
  font-size: 22px;
  cursor: pointer;
  transition: all 0.3s;
}
.modal-close:hover { background: var(--primary); color: #fff; }
.modal-hero { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--bg-cream); }
.modal-hero img { width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: 32px; }
.modal-body h3 { font-size: 24px; color: var(--dark); margin-bottom: 12px; }
.modal-body .date { color: var(--primary); font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.modal-body p { color: var(--text); margin-bottom: 14px; line-height: 1.85; }
.modal-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.modal-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  cursor: zoom-in;
  transition: transform 0.3s;
  background: var(--bg-cream);
}
.modal-gallery img:hover { transform: scale(1.04); }

/* 隐藏的详情内容容器 */
.detail-content { display: none; }

/* 我们的优势 九宫格 */
.advantages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.adv-item {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.adv-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.adv-item .img-wrap { 
  /* aspect-ratio: 1 / 1;  */
  overflow: hidden; }
.adv-item .img-wrap img { margin:30px auto 0; 
  width: 65%; height: 65%; object-fit: cover; transition: transform 0.3s; }
.adv-item:hover .img-wrap img { transform: scale(1.05); }
.adv-item .body { padding: 22px; text-align: center; }
.adv-item h3 { font-size: 19px; color: var(--dark); margin-bottom: 4px; }
.adv-item .sub { font-size: 13px; color: var(--primary); font-weight: 600; margin-bottom: 10px; }
.adv-item p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* 微信二维码 */
.weixin-box { text-align: center; }
.weixin-box img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 8px;
  display:inline;
}
.weixin-box p { margin-top: 14px; font-size: 15px; color: var(--dark); font-weight: 600; }

/* 为什么选择我们 原图 */
.why-image { text-align: center; margin: 6px 0 48px; }
.why-image img { max-width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); display: inline; }

/* 详情页通用：导语 + 方形图集 */
.detail-lead {
  max-width: 880px;
  margin: 0 auto 40px;
  font-size: 17px;
  line-height: 1.9;
  color: var(--text);
  text-align: center;
}
.detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.detail-gallery .gitem {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-cream);
  cursor: zoom-in;
}
.detail-gallery .gitem img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform var(--transition);
}
.detail-gallery .gitem:hover img { transform: scale(1.05); }

/* 详情页正文（工艺/新闻长文） */
.article-body { max-width: 860px; margin: 0 auto; }
.article-body p {
  font-size: 16px;
  line-height: 1.95;
  color: var(--text);
  margin-bottom: 18px;
}
.article-body h3.tech-sub {
  font-size: 20px;
  color: var(--primary);
  font-weight: 700;
  margin: 32px 0 12px;
}
.article-body figure.article-fig {
  margin: 28px auto;
  text-align: center;
}
.article-body figure.article-fig img {
  display: block;
  max-width: 100%;
  margin: 0 auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.news-detail-date {
  text-align: center;
  color: var(--primary);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 22px;
  letter-spacing: 1px;
}
.article-body .news-source {
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px dashed var(--border);
  padding-top: 16px;
  margin-top: 26px;
}
@media (max-width: 768px) {
  .detail-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .advantages-grid { grid-template-columns: 1fr; }
  .modal-gallery { grid-template-columns: repeat(2, 1fr); }
  .modal-body { padding: 24px; }
  .contact-grid { grid-template-columns: 1fr; }
}
