:root {
  --blue: #0b2f5b;
  --deep: #071d36;
  --cyan: #1d9bd1;
  --text: #1f2937;
  --muted: #64748b;
  --light: #f4f7fb;
  --line: #e5edf5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  line-height: 1.72;
}

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

.container {
  width: min(1380px, 92%);
  margin: auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  z-index: 10;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  gap: 42px;
}

.logo {
  color: #333;
  flex: 0 0 auto;
  white-space: nowrap;
}

.logo-text strong {
  display: block;
  font-size: 38px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 1px;
  white-space: nowrap;
}

.logo-text small {
  display: block;
  margin-top: 6px;
  font-size: 20px;
  line-height: 1.2;
  color: #333;
  font-weight: 500;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.nav-right {
  flex: 1 1 auto;
  min-width: 0;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 38px;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.menu a {
  font-size: 24px;
  font-weight: 800;
  color: #1f2937;
  white-space: nowrap;
}

.menu a:hover {
  color: var(--cyan);
}

/* Home banner */
.hero {
  min-height: 660px;
  background:
    linear-gradient(
      90deg,
      rgba(7, 34, 65, 0.88) 0%,
      rgba(11, 47, 91, 0.72) 28%,
      rgba(11, 47, 91, 0.35) 55%,
      rgba(11, 47, 91, 0.08) 78%,
      rgba(11, 47, 91, 0.00) 100%
    ),
    url("../images/banner/factory-banner.png") center bottom / cover no-repeat;
  color: #fff;
  display: flex;
  align-items: center;
}

.hero-product-line {
  color: #ffffff;
  font-size: 44px;
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: 0.2px;
  white-space: nowrap;
  margin: 0 0 34px;
  max-width: none;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 20px;
  margin-right: 18px;
}

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

.btn-outline {
  border: 1px solid rgba(255, 255, 255, .6);
  color: #fff;
}

/* Sections */
.section {
  padding: 72px 0;
}

.light {
  background: var(--light);
}

.section-title {
  text-align: center;
  margin-bottom: 35px;
}

.section-title h2 {
  color: var(--blue);
  font-size: 32px;
  margin: 0 0 8px;
}

.section-title p {
  color: var(--muted);
  margin: 0;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15, 45, 80, .06);
}

.card h3 {
  color: var(--blue);
  margin-top: 0;
}

/* 产品卡片图片区域 */
.product-img {
  height: 210px;
  background: #eaf2fb;
  border-radius: 12px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  color: #789;
  overflow: hidden;
  padding: 10px;
}

/* 关键修改：contain 保证结构式图片完整显示，不裁剪 */
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.meta {
  color: #334155;
  font-size: 14px;
}

.more {
  color: var(--cyan);
  font-weight: 800;
}

/* 首页关于江盐天祥模块 */
.about-section {
  background: #ffffff;
}

.about {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.about-text {
  max-width: 760px;
}

.section-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.about-text h2 {
  margin: 0 0 22px;
  color: var(--blue);
  font-size: 34px;
  line-height: 1.25;
  font-weight: 900;
}

.about-text p {
  margin: 0 0 16px;
  color: #334155;
  font-size: 17px;
  line-height: 1.9;
  text-align: justify;
  text-indent: 2em;
}

.about-highlight {
  margin: 22px 0;
  padding: 18px 22px;
  border-left: 5px solid var(--cyan);
  background: linear-gradient(90deg, #f0f9ff, #ffffff);
  border-radius: 12px;
  color: var(--blue);
  font-size: 18px;
  line-height: 1.8;
}

.about-highlight strong {
  font-weight: 900;
}

/* 关于我们右侧：上缩略图 + 中间主图 + 下缩略图 */
.factory-showcase {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #f4f7fb;
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(15, 45, 80, 0.12);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
}

/* 中间主图：固定 900×560 比例，避免左右宽度不一致 */
.factory-main {
  width: 100%;
  aspect-ratio: 900 / 560;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
}

.factory-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 上下缩略图：与中间主图同宽 */
.factory-thumb {
  width: 100%;
  height: 92px;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  opacity: 0.58;
  filter: saturate(0.85);
}

.factory-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.factory-thumb:hover {
  opacity: 0.82;
}

/* Footer with QR on the right */
.footer {
  background: var(--deep);
  color: #dbeafe;
  padding: 38px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 80px;
}

.footer-info {
  flex: 1 1 auto;
  min-width: 0;
}

.footer h3 {
  margin-top: 0;
}

.footer p {
  color: #bdd0e5;
}

.footer a {
  color: #dbeafe;
}

.footer-qr {
  flex: 0 0 150px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.footer-qr-card {
  width: 140px;
  background: #fff;
  border-radius: 10px;
  padding: 8px;
  text-align: center;
}

.footer-qr-card img {
  display: block;
  width: 124px;
  height: 124px;
  object-fit: contain;
  border-radius: 6px;
}

.footer-qr-card p {
  margin: 6px 0 0;
  color: #0b2f5b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

/* Inner pages */
.page-hero {
  background: linear-gradient(90deg, #082442, #0d4f86);
  color: #fff;
  padding: 70px 0;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
}

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
}

.table th {
  background: #f6f9fc;
  color: var(--blue);
  width: 160px;
}

.notice {
  border-left: 4px solid var(--cyan);
  background: #f4fbff;
  padding: 14px 16px;
  border-radius: 8px;
}

/* 1280 以下适配 */
@media (max-width: 1280px) {
  .container {
    width: min(1240px, 94%);
  }

  .logo-text strong {
    font-size: 34px;
  }

  .logo-text small {
    font-size: 18px;
  }

  .menu {
    gap: 26px;
  }

  .menu a {
    font-size: 21px;
  }

  .hero-product-line {
    font-size: 38px;
  }

  .product-img {
    height: 190px;
  }
}

/* 手机端适配 */
@media (max-width: 980px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .menu {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 14px 20px;
  }

  .logo {
    white-space: normal;
  }

  .logo-text strong {
    font-size: 26px;
    white-space: normal;
  }

  .logo-text small {
    font-size: 14px;
    white-space: normal;
  }

  .hero {
    min-height: 440px;
  }

  .hero-product-line {
    white-space: normal;
    font-size: 28px;
  }

  .grid-3,
  .grid-4,
  .about {
    grid-template-columns: 1fr;
  }

  .about {
    gap: 34px;
  }

  .about-text h2 {
    font-size: 28px;
  }

  .about-text p {
    font-size: 16px;
  }

  .product-img {
    height: 190px;
    padding: 8px;
  }

  .factory-showcase {
    padding: 14px;
    gap: 10px;
  }

  .factory-thumb {
    height: 72px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .footer-qr {
    flex: none;
    justify-content: flex-start;
  }

  .section {
    padding: 50px 0;
  }
}

/* 产品详情页 */
.product-detail-section {
  background: #ffffff;
}

.product-detail {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.product-detail-image {
  background: #f4f7fb;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 18px 45px rgba(15, 45, 80, 0.10);
}

.product-detail-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.product-detail-info h2 {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 36px;
  line-height: 1.25;
  font-weight: 900;
}

.product-detail-info p {
  margin: 0 0 22px;
  color: #334155;
  font-size: 17px;
  line-height: 1.9;
  text-align: justify;
}

.product-detail-table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 45, 80, 0.05);
}

.product-detail-table th,
.product-detail-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 15px;
}

.product-detail-table tr:last-child th,
.product-detail-table tr:last-child td {
  border-bottom: none;
}

.product-detail-table th {
  width: 150px;
  color: var(--blue);
  background: #f6f9fc;
  font-weight: 900;
}

.product-detail-table td {
  color: #334155;
}

.detail-actions {
  margin-top: 12px;
}

.detail-outline {
  color: var(--blue);
  border-color: rgba(11, 47, 91, 0.35);
}

@media (max-width: 980px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .product-detail-info h2 {
    font-size: 28px;
  }

  .product-detail-info p {
    font-size: 16px;
  }

  .product-detail-table th,
  .product-detail-table td {
    padding: 12px;
    font-size: 14px;
  }
}

/* 当前菜单高亮 */
.menu a.active {
  color: var(--cyan);
  font-weight: 900;
  position: relative;
}

.menu a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 34px;
  height: 4px;
  background: var(--cyan);
  border-radius: 999px;
  transform: translateX(-50%);
}