body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f6f8fb;
  color: #1a1a1a;
}

a {
  color: inherit;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  z-index: 1000;
}

.logo {
  font-weight: bold;
  font-size: 18px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #1a1a1a;
}

.logo img {
  height: 40px;
}

.nav-links a {
  margin-left: 18px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
}

.nav-links a:hover {
  color: #000;
  font-weight: bold;
}

/* HERO */
.hero {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
}

.hero--home {
  background-image: url("../images/hero.jpg");
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(42, 33, 15, 0.2);
}

.hero-content {
  position: relative;
  color: white;
  max-width: 800px;
  padding: 20px;
}

.hero-content h1 {
  font-size: 48px;
  margin: 0 0 12px;
}

.hero-content h1 img {
  height: 75px;
  vertical-align: bottom;
}

.hero--sub {
  height: 420px;
}

.hero--sub .hero-content h1 {
  font-size: 32px;
}

.hero--detail {
  height: 180px;
}

.hero--detail .hero-content h1 {
  font-size: 28px;
}

/* 广告位占位 */
.ad-slot {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  transform: translateY(-24px);
}

.ad-slot__inner {
  /* min-height: 90px; */
  border-radius: 12px;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 14px;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.ad-slot__inner img {
  border-radius: 12px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* SECTION */
.section {
  max-width: 1100px;
  margin: auto;
  padding: 50px 20px 70px;
}

.section--after-ad {
  padding-top: 10px;
}

.title {
  font-size: 26px;
  margin-bottom: 12px;
}

.sub {
  color: #666;
  margin-bottom: 28px;
}

.breadcrumb {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 24px;
}

.breadcrumb a {
  color: #1e3a8a;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* GRID — auto-fit 可无限扩展卡片 */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* 固定三列（首页产品、产品二级列表） */
.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 6px 0;
}

.card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  display: block;
  color: #111827;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:has(> img) {
  height: 100%;
}

.card-link:hover .card {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.card:has(> img) {
  padding: 0;
}

.card:has(> img) img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: 12px 12px 0 0;
}

.card:has(> img) h3 {
  margin: 0;
  padding: 16px 20px 6px;
  font-size: 17px;
}

.card:has(> img) p {
  margin: 0;
  padding: 0 20px 8px;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

.card:has(> img) p:last-child {
  padding-bottom: 20px;
}

.card:not(:has(> img)) {
  padding: 22px;
  font-size: 16px;
  line-height: 1.5;
  height: auto;
  min-height: 0;
}

#scene .grid {
  gap: 20px;
  align-items: start;
}

.card:not(:has(> img)) h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.card:not(:has(> img)) p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.card__icon {
  font-size: 28px;
  display: block;
  margin-bottom: 10px;
}

/* DETAIL PAGE */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 36px;
  align-items: start;
}

.gallery {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.gallery-main {
  aspect-ratio: 4 / 3;
  background: #e2e8f0;
  overflow: hidden;
}

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

.gallery-thumbs {
  display: flex;
  gap: 10px;
  padding: 14px;
  overflow-x: auto;
}

.gallery-thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 54px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: none;
}

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

.gallery-thumb.is-active,
.gallery-thumb:hover {
  border-color: #1e3a8a;
}

.detail-info {
  background: white;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.detail-info h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.detail-info .price {
  color: #1e3a8a;
  font-size: 20px;
  font-weight: bold;
  margin: 0 0 20px;
}

.detail-info h3 {
  margin: 24px 0 10px;
  font-size: 16px;
}

.detail-info ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.8;
}

.detail-info p {
  line-height: 1.7;
  color: #4b5563;
}

.detail-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
}

.btn--primary {
  background: #1e3a8a;
  color: white;
}

.btn--ghost {
  background: #f1f5f9;
  color: #1e293b;
}

.content-block {
  background: white;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
}

.content-block h3 {
  margin-top: 0;
}

.content-block ul {
  line-height: 1.8;
}

/* FOOTER */
.footer {
  background: #ffffff;
  padding: 20px;
  border-top: 2px solid #e3e3e4;
  text-align: center;
}

.footer-info {
  display: inline-block;
  text-align: left;
  margin: 12px 0;
  color: #4b5563;
}

.footer a {
  text-decoration: none;
  color: #1e3a8a;
}

.footer--mini {
  padding: 28px 20px;
}

.copyright {
  margin: 0;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
}

.footer:not(.footer--mini) .copyright {
  margin-top: 35px;
}

@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px;
  }

  .nav-links a {
    margin: 0 8px;
    font-size: 13px;
  }

  .hero {
    height: 320px;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .hero--sub {
    height: 180px;
  }

  .hero--sub .hero-content h1 {
    font-size: 24px;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

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