/* ============ 多页导航 / 下拉菜单 ============ */
.site-nav .nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.site-nav .nav-item > a::after {
  content: none;
}

.site-nav .nav-item .nav-top {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 0;
}

.site-nav .nav-item .nav-top::after {
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0;
  height: 2px;
  content: "";
  background: var(--brand-red);
  transition: width 180ms ease;
}

.site-nav .nav-item:hover .nav-top::after,
.site-nav .nav-item .nav-top.is-active::after {
  width: 100%;
}

.site-nav .nav-item .caret {
  width: 8px;
  height: 8px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms ease;
}

.site-nav .nav-item:hover .caret {
  transform: translateY(1px) rotate(225deg);
}

.sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 188px;
  padding: 10px 0;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 22px 44px rgba(17, 17, 17, 0.14);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-nav .nav-item:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.sub-menu a {
  display: block;
  padding: 10px 22px;
  font-size: 14px;
  color: #303030;
  white-space: nowrap;
  transition: background 150ms ease, color 150ms ease;
}

.sub-menu a::after {
  content: none;
}

.sub-menu a:hover {
  background: var(--soft-red);
  color: var(--brand-red);
}

/* ============ 语言切换 ============ */
.lang-switch .nav-top {
  font-size: 13px;
  letter-spacing: 0.5px;
}

.lang-switch .sub-menu {
  min-width: 132px;
}

.lang-switch .sub-menu a.is-active {
  color: var(--brand-red);
  font-weight: 600;
}

.lang-switch .globe {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: -3px;
  background: no-repeat center/contain;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.6'><circle cx='12' cy='12' r='9'/><path d='M3 12h18M12 3c2.5 3 2.5 15 0 18M12 3c-2.5 3-2.5 15 0 18'/></svg>");
}

/* ============ 内页通用页头 ============ */
.page-hero {
  position: relative;
  padding: 150px 64px 70px;
  color: #ffffff;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(17, 17, 17, 0.82), rgba(125, 7, 16, 0.62));
  z-index: 1;
}

.page-hero img.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-hero .page-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.page-hero .breadcrumb {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  letter-spacing: 1px;
}

.page-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.78);
}

.page-hero .breadcrumb a:hover {
  color: #ffffff;
}

.page-hero h1 {
  margin: 0;
  font-size: 46px;
  font-weight: 600;
  line-height: 1.18;
}

.page-hero p.lead {
  max-width: 720px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
}

/* ============ 业务二级导航锚点条 ============ */
.sub-nav {
  position: sticky;
  top: 78px;
  z-index: 15;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.sub-nav-inner {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 0;
}

.sub-nav-inner a {
  padding: 8px 16px;
  font-size: 14px;
  color: #444;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all 160ms ease;
}

.sub-nav-inner a:hover {
  color: #ffffff;
  background: var(--brand-red);
  border-color: var(--brand-red);
}

/* ============ 业务产品区块 ============ */
.product-block {
  scroll-margin-top: 140px;
  padding: 90px 0;
  border-bottom: 1px solid var(--line);
}

.product-block:nth-child(even) {
  background: #ffffff;
}

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.product-block:nth-child(even) .product-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.product-block:nth-child(even) .product-media {
  order: 2;
}

.product-media {
  overflow: hidden;
  border-top: 4px solid var(--brand-red);
  box-shadow: 0 20px 44px rgba(17, 17, 17, 0.1);
}

.product-media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.product-copy .section-kicker {
  margin-bottom: 12px;
}

.product-copy h2 {
  margin: 0 0 18px;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
}

.product-copy > p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 16px;
}

.spec-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spec-list li {
  position: relative;
  padding-left: 22px;
  color: #3a3a3a;
  font-size: 15px;
}

.spec-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--brand-red);
}

.product-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 26px;
}

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

.product-thumbs img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border: 1px solid var(--line);
}

/* ============ 首页概览板块（盒袋杯套 / 菜单海报） ============ */
.overview {
  background: var(--paper);
}

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

.overview-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.overview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(17, 17, 17, 0.12);
}

.overview-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.overview-card .overview-text {
  padding: 26px 28px 30px;
}

.overview-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.overview-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ============ 行业应用画廊 ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}

.gallery-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 400ms ease;
}

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

.gallery-card figcaption {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
}

.gallery-card figcaption span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

figure {
  margin: 0;
}

/* ============ 合作伙伴 ============ */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.partner-cell {
  min-height: 120px;
  display: grid;
  place-items: center;
  padding: 22px;
  text-align: center;
  background: #fff;
  font-weight: 600;
  font-size: 16px;
  color: #333;
}

.partner-cell:nth-child(2n) {
  background: var(--soft-red);
}

.value-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 16px;
}

.value-card {
  padding: 30px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand-red);
}

.value-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.value-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ============ 关于智禾数据条 ============ */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 16px;
}

.stat-cell {
  padding: 34px 28px;
  background: #fff;
  text-align: center;
}

.stat-cell strong {
  display: block;
  font-size: 40px;
  color: var(--brand-red);
  font-weight: 700;
  line-height: 1;
}

.stat-cell span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.full-banner {
  width: 100%;
  margin: 0;
}

.full-banner img {
  width: 100%;
  height: auto;
}

/* 副标题 专业/开放/合作/共赢 */
.hero-values {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 30px 0 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--ink);
}

.hero-values span {
  color: var(--brand-red);
}

.hero-values i {
  width: 1px;
  height: 18px;
  background: var(--line);
  font-style: normal;
}

@media (max-width: 1120px) {
  .product-grid,
  .product-block:nth-child(even) .product-grid {
    grid-template-columns: 1fr;
  }
  .product-block:nth-child(even) .product-media {
    order: 0;
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid,
  .value-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .partner-grid,
  .stat-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-hero {
    padding: 130px 22px 56px;
  }
}

@media (max-width: 760px) {
  .page-hero h1 {
    font-size: 30px;
  }
  .sub-nav {
    top: 68px;
  }
  .gallery-grid,
  .value-cards,
  .partner-grid,
  .stat-row {
    grid-template-columns: 1fr;
  }
  .product-media img {
    height: 280px;
  }
  .hero-values {
    font-size: 18px;
    gap: 12px;
  }
  .site-nav .nav-item {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
  .site-nav .nav-item .nav-top {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .site-nav .nav-item .caret {
    display: none;
  }
  .sub-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    min-width: 0;
    width: 100%;
    padding: 0 0 8px;
    border: 0;
    box-shadow: none;
  }
  .sub-menu a {
    padding: 12px 14px;
    color: var(--muted);
  }
}

/* ============ 首页全屏背景式 Hero ============ */
.home-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 126px 64px 80px;
  overflow: hidden;
}

.home-hero .home-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(20, 14, 12, 0.82) 0%, rgba(20, 14, 12, 0.6) 42%, rgba(20, 14, 12, 0.15) 72%, rgba(20, 14, 12, 0.05) 100%);
}

.home-hero .home-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto;
  color: #fff;
}

.home-hero .eyebrow {
  color: #f3b6bb;
}

.home-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 54px;
  font-weight: 600;
  line-height: 1.18;
  color: #fff;
}

.home-hero .hero-subtitle {
  max-width: 760px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 1px;
}

.home-hero .hero-values {
  color: #fff;
}

.home-hero .hero-values span {
  color: #ff5a64;
}

.home-hero .hero-values i {
  background: rgba(255, 255, 255, 0.4);
}

.home-hero .hero-lead {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.88);
}

.home-hero .button.ghost {
  color: #fff;
  border-color: #fff;
}

.home-hero .button.ghost:hover {
  color: var(--brand-red);
  background: #fff;
}

/* ============ 不干胶 材质种类 / 应用画廊 ============ */
.mat-band {
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.mat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.mat-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.mat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(17, 17, 17, 0.12);
}

.mat-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.mat-card .mat-name {
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

@media (max-width: 1120px) {
  .mat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .home-hero h1 {
    font-size: 38px;
  }
}

@media (max-width: 760px) {
  .home-hero {
    min-height: auto;
    padding: 110px 22px 60px;
  }
  .home-hero h1 {
    font-size: 30px;
  }
  .home-hero::after {
    background: linear-gradient(180deg, rgba(20, 14, 12, 0.78), rgba(20, 14, 12, 0.55));
  }
  .mat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============ 生产实力 - 视频与车间实景 ============ */
.factory-video-section {
  background: #ffffff;
}

.factory-video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.factory-video {
  margin: 0;
  background: var(--ink);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 18px 38px rgba(20, 14, 12, 0.08);
}

.factory-video video {
  display: block;
  width: 100%;
  height: 380px;
  object-fit: cover;
  background: #000;
}

.factory-video figcaption {
  padding: 14px 18px;
  color: #ffffff;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.factory-floor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.factory-floor-grid .floor-card {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  background: #f4f0ec;
  aspect-ratio: 4 / 3;
}

.factory-floor-grid .floor-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 480ms ease;
}

.factory-floor-grid .floor-card:hover img {
  transform: scale(1.04);
}

.factory-floor-grid .floor-card:first-child {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

@media (max-width: 1120px) {
  .factory-video-grid {
    grid-template-columns: 1fr;
  }
  .factory-video video {
    height: 320px;
  }
  .factory-floor-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .factory-floor-grid .floor-card:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }
}

@media (max-width: 760px) {
  .factory-video video {
    height: 240px;
  }
  .factory-floor-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .factory-floor-grid .floor-card:first-child {
    grid-column: span 2;
    grid-row: auto;
  }
}
