/* ========== 统一页面 Hero ========== */
.page-hero {
  padding: calc(var(--section-py) + 4vw) 0 var(--section-py);
  background: var(--bg-white);
  color: var(--text-main);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.page-hero .section-eyebrow {
  color: var(--primary-color);
}

.page-hero h1 {
  font-size: var(--fs-h1);
  font-weight: 800;
  margin: var(--stack-sm) 0;
  line-height: 1.3;
}

.page-hero-lead {
  font-size: var(--fs-body);
  color: var(--text-gray);
  max-width: 40em;
  margin: 0 auto;
  line-height: 1.8;
}

.page-content {
  padding: var(--section-py) 0;
  background: var(--bg-body);
}

.page-content--white {
  background: var(--bg-white);
}

/* ========== 导航下拉 & 商务合作 ========== */
.nav-has-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-toggle::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-top: -2px;
  border: none;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.2s ease, margin-top 0.2s ease;
}

.nav-has-dropdown:hover .nav-dropdown-toggle::after,
.nav-has-dropdown.open .nav-dropdown-toggle::after {
  transform: rotate(-135deg);
  margin-top: 2px;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  z-index: 1100;
}

.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: var(--fs-small);
  color: var(--text-main);
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

/* 透明顶栏下 .nav-main a 为白字，下拉白底须强制深色文字 */
body.has-page-banner .site-header:not(.scrolled) .nav-dropdown a,
body[data-page="home"] .site-header:not(.scrolled) .nav-dropdown a {
  color: var(--text-main);
}

body.has-page-banner .site-header:not(.scrolled) .nav-dropdown a:hover,
body.has-page-banner .site-header:not(.scrolled) .nav-dropdown a.active,
body[data-page="home"] .site-header:not(.scrolled) .nav-dropdown a:hover,
body[data-page="home"] .site-header:not(.scrolled) .nav-dropdown a.active {
  color: var(--primary-color);
  background: var(--bg-body);
}

.nav-dropdown a:hover,
.nav-dropdown a.active {
  background: var(--bg-body);
  color: var(--primary-color);
}

/* ========== 商务合作弹窗 ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: #fff;
  border-radius: 12px;
  padding: 36px 32px 32px;
  width: min(100%, 480px);
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15);
  transform: translateY(20px);
  transition: transform 0.3s;
}

.modal-overlay.is-open .modal-dialog {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #999;
  cursor: pointer;
}

.modal-dialog h2 {
  font-size: var(--fs-h2);
  color: var(--text-main);
  margin-bottom: 8px;
  font-weight: 800;
}

.modal-desc {
  font-size: var(--fs-body);
  color: var(--text-gray);
  margin-bottom: 24px;
}

.cooperation-form label {
  display: block;
  margin-bottom: 12px;
}

.cooperation-form label span {
  display: none;
}

.cooperation-form input,
.cooperation-form textarea,
.cooperation-form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: var(--fs-body);
  font-family: inherit;
  box-sizing: border-box;
}

.cooperation-form input:focus,
.cooperation-form textarea:focus,
.cooperation-form select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(232, 68, 10, 0.12);
}

.cooperation-form__error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 4px;
  background: #fff7f6;
  color: #c0392b;
  font-size: var(--fs-small);
  line-height: 1.5;
}

.cooperation-form__hint {
  margin: -8px 0 12px;
  font-size: var(--fs-small);
  color: var(--text-gray);
  line-height: 1.5;
}

.cooperation-form__hint--error {
  color: #c0392b;
}

.cooperation-captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cooperation-captcha-row input {
  flex: 1;
  min-width: 0;
}

.cooperation-captcha-img-btn {
  flex-shrink: 0;
  padding: 0;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: #f7f8fa;
  cursor: pointer;
  overflow: hidden;
  line-height: 0;
}

.cooperation-captcha-img-btn img {
  display: block;
  width: 120px;
  height: 40px;
  object-fit: contain;
}

.btn-primary {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: var(--fs-body);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
  margin-top: 8px;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

/* ========== 新闻 — 新布局（首页预览 + 列表页） ========== */
.section-news {
  background: #fafbfc;
}

.news-header {
  text-align: center;
  margin-bottom: clamp(36px, 4vw, 64px);
}

.news-header h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  color: var(--text-main);
}

.news-grid-new {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-item-new {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: box-shadow 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.news-item-new:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.news-item-new:hover .news-item-new__img img {
  transform: scale(1.04);
}

.news-item-new__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-body);
}

.news-item-new__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-item-new__body {
  padding: 22px 22px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-item-new__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.news-item-new__date {
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--text-gray);
}

.news-item-new__tag {
  font-size: 11px;
  padding: 2px 8px;
  background: var(--primary-light);
  color: var(--primary-color);
  border-radius: 3px;
}

.news-item-new__title {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.45;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item-new__excerpt {
  font-size: var(--fs-body);
  color: var(--text-gray);
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item-new__link {
  margin-top: 16px;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--primary-color);
}

.news-footer-more {
  text-align: center;
  margin-top: 48px;
}

.news-home-loading,
.news-home-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: var(--text-gray);
  font-size: var(--fs-body);
}

.news-home-empty a {
  color: var(--primary-color);
}

/* 新闻列表页 */
.news-list-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.news-list-row {
  display: grid;
  grid-template-columns: 120px 240px 1fr;
  gap: 28px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px 24px;
  transition: box-shadow 0.3s;
}

.news-list-row:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.news-list-row__date {
  text-align: center;
  border-right: 1px solid var(--border-color);
  padding-right: 28px;
}

.news-list-row__day {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
}

.news-list-row__ym {
  font-size: var(--fs-small);
  color: var(--text-gray);
  margin-top: 4px;
}

.news-list-row__thumb {
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-body);
}

.news-list-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-list-row__title {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.news-list-row__excerpt {
  font-size: var(--fs-body);
  color: var(--text-gray);
  line-height: 1.65;
}

/* ========== 内页通用模块 ========== */
.content-card {
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  padding: 36px 40px;
  margin-bottom: 28px;
}

.content-card h2 {
  font-size: var(--fs-h2);
  color: var(--text-main);
  margin-bottom: 16px;
  font-weight: 800;
}

.content-card p {
  font-size: var(--fs-body);
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 12px;
}

.feature-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.feature-box {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 28px 24px;
  text-align: center;
}

.feature-box h3 {
  font-size: var(--fs-h3);
  color: var(--text-main);
  margin: 16px 0 8px;
  font-weight: 700;
}

.feature-box p {
  font-size: var(--fs-body);
  color: var(--text-gray);
  line-height: 1.6;
}

.warehouse-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.warehouse-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.warehouse-card__img {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.warehouse-card__body {
  padding: 24px;
}

.warehouse-card__body h3 {
  font-size: var(--fs-h3);
  color: var(--text-main);
  margin-bottom: 8px;
  font-weight: 700;
}

.warehouse-card__body p {
  font-size: var(--fs-body);
  color: var(--text-gray);
  line-height: 1.6;
}

.warehouse-card__meta {
  margin-top: 16px;
  font-size: var(--fs-small);
  color: var(--primary-color);
  font-weight: 600;
  padding-top: 16px;
  border-top: 1px dashed var(--border-color);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info-item strong {
  display: block;
  color: var(--text-main);
  margin-bottom: 4px;
}

.service-hero-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 40px;
}

.text-center {
  text-align: center;
}

.mt-32 {
  margin-top: 32px;
}

@media (max-width: 992px) {
  .news-grid-new {
    grid-template-columns: 1fr;
  }

  .news-list-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .news-list-row__date {
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 12px;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-right: 0;
    padding-bottom: 12px;
  }

  .feature-grid-3,
  .warehouse-cards {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .nav-dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 0 16px;
    display: none;
  }

  .nav-has-dropdown.open .nav-dropdown {
    display: block;
  }

  .nav-dropdown a {
    padding: 8px 0;
    color: var(--text-gray);
  }

  .nav-cooperation-btn {
    width: 100%;
    margin-top: 8px;
  }
}
