/* ============================================================
   HodaEle · 公用样式 (home.css)
   适用于：首页、产品列表、产品详情、关于我们
   ============================================================ */

/* ===== 全局重置 & 基础 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: #ffffff;
  color: #1f2a44;
  line-height: 1.6;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== 头部 ===== */
.header {
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(10, 37, 64, 0.04);
  position: sticky;
  top: 0;
  z-index: 50;
  height: 70px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eef2f8;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0a2540;
  letter-spacing: -0.02em;
}
.logo span {
  color: #e05a2a;
}
.nav-links {
  display: none;
  gap: 2rem;
  font-weight: 500;
}
.nav-links a {
  color: #1e3349;
  transition: 0.2s;
  font-size: 0.95rem;
}
.nav-links a:hover,
.nav-links a.active {
  color: #0a2540;
  font-weight: 600;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.search-box {
  display: none;
  align-items: center;
  background: #f0f4fe;
  border-radius: 999px;
  padding: 0.15rem 0.15rem 0.15rem 1rem;
  border: 1px solid #e2e9f5;
}
.search-box input {
  border: none;
  background: transparent;
  padding: 0.4rem 0;
  outline: none;
  width: 140px;
  font-size: 0.9rem;
  color: #1a2f4a;
}
.search-box input::placeholder {
  color: #6a7f9a;
}
.search-box button {
  background: #0a2540;
  border: none;
  color: white;
  border-radius: 999px;
  padding: 0.4rem 1.2rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: 0.2s;
}
.search-box button:hover {
  background: #1e3a5f;
}
.menu-toggle {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #1f2937;
  cursor: pointer;
  display: block;
}
/* 移动端导航菜单 */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: #ffffff;
  padding: 1rem 1.5rem;
  border-top: 1px solid #eef2f8;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  z-index: 49;
}
.mobile-nav.open {
  display: flex;
}
.mobile-nav a {
  padding: 0.6rem 0;
  color: #1e3349;
  font-weight: 500;
  border-bottom: 1px solid #f0f4fe;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover {
  color: #0a2540;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  .search-box {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
  .mobile-nav {
    display: none !important;
  }
}

/* ===== 页面标题 & 面包屑 ===== */
.page-header {
  padding: 1.5rem 0 1rem;
  background: #f8faff;
  border-bottom: 1px solid #eef2f8;
}
.page-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #0a1e33;
}
.page-header p {
  color: #3a5a7a;
  margin-top: 0.2rem;
}
.breadcrumb {
  font-size: 0.85rem;
  color: #5a7a9a;
  margin-bottom: 0.5rem;
}
.breadcrumb a {
  color: #0a2540;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb span {
  color: #1a2f4a;
  font-weight: 500;
}

/* ===== 轮播图 ===== */
.carousel {
  position: relative;
  overflow: hidden;
  background: #dce6f5;
  width: 100%;
}
.carousel-track {
  display: flex;
  transition: transform 0.6s ease;
  width: 100%;
}
.carousel-slide {
  min-width: 100%;
  position: relative;
  overflow: hidden;
  height: 0;
  padding-bottom: 42%;
  background: #dce6f5;
}
.carousel-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (min-width: 1920px) {
  .carousel-slide {
    padding-bottom: 35%;
  }
}
@media (max-width: 768px) {
  .carousel-slide {
    padding-bottom: 56%;
  }
}
@media (max-width: 480px) {
  .carousel-slide {
    padding-bottom: 66%;
  }
}
/* 轮播图指示器 */
.carousel-indicators {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 5;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.carousel-indicators span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: 0.2s;
}
.carousel-indicators span.active {
  background: #e05a2a;
  width: 24px;
}

/* ===== Section ===== */
.section {
  padding: 3.5rem 0;
  background: #ffffff;
}
.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #0a1e33;
  margin-bottom: 0.3rem;
}
.section-title p {
  color: #2a405a;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== 卡片网格 ===== */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
}
@media (min-width: 640px) {
  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== 卡片 ===== */
.card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(10, 37, 64, 0.04);
  transition: 0.3s;
  border: 1px solid #eef2f8;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px -8px rgba(10, 37, 64, 0.08);
}
.card-img {
  width: 100%;
  padding-top: 80%;
  position: relative;
  background: #eef3fc;
  overflow: hidden;
}
.card-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s;
}
.card:hover .card-img img {
  transform: scale(1.04);
}
.card-body {
  padding: 1.2rem 1.2rem 0.6rem;
  flex: 1;
}
.card-body .category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #2a4a6a;
  margin-bottom: 0.2rem;
}
.card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0a1e33;
  margin-bottom: 0.2rem;
}
.card-body .sub-title {
  font-size: 0.9rem;
  color: #3a5a7a;
  line-height: 1.4;
  margin-bottom: 0.4rem;
}
.card-body .price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e05a2a;
  margin: 0.4rem 0 0.2rem;
}
.card-footer {
  padding: 0.2rem 1.2rem 1.2rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 2rem;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: 0.2s;
}
.btn-primary {
  background: #e05a2a;
  color: white;
  box-shadow: 0 4px 14px rgba(224, 90, 42, 0.35);
}
.btn-primary:hover {
  background: #c94d1f;
  transform: scale(1.02);
}
.btn-outline-light {
  background: white;
  border: 2px solid #0a2540;
  color: #0a2540;
}
.btn-outline-light:hover {
  background: #eef4ff;
}
.btn-sm {
  padding: 0.45rem 1.2rem;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: 0.2s;
  justify-content: center;
}
.btn-view {
  background: #e05a2a;
  color: white;
  flex: 2;
}
.btn-view:hover {
  background: #c94d1f;
}
.btn-quote {
  background: transparent;
  border: 1.5px solid #0a2540;
  color: #0a2540;
  flex: 1;
}
.btn-quote:hover {
  background: #eef4ff;
}
.btn-lg {
  padding: 0.8rem 2.5rem;
  border-radius: 40px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: 0.2s;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.btn-secondary {
  background: #0a2540;
  color: white;
}
.btn-secondary:hover {
  background: #1e3a5f;
}

/* ===== 特色 ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
  text-align: center;
}
@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.feature-icon {
  background: #eef4fc;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.6rem;
  color: #0a2540;
  font-size: 1.8rem;
}
.feature-title {
  font-weight: 700;
  color: #0a1e33;
}
.feature-desc {
  color: #2a4a6a;
  font-size: 0.9rem;
}

/* ===== 信任区 ===== */
.trust-section {
  background: #0b1a2e;
  color: white;
  padding: 3.5rem 0;
}
.trust-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
  text-align: center;
}
@media (min-width: 640px) {
  .trust-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}
.stat-number {
  font-size: 2.6rem;
  font-weight: 800;
  color: #f06a38;
  line-height: 1.2;
}
.stat-label {
  color: #a0b8d0;
  font-weight: 400;
}
.cert-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}
.cert-tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.4rem 1.6rem;
  border-radius: 30px;
  font-weight: 700;
  color: white;
  font-size: 0.9rem;
}

/* ===== CTA ===== */
.cta {
  background: #f5f9ff;
  color: #0a1e33;
  padding: 3.5rem 0;
  text-align: center;
  border-top: 1px solid #e2ebf6;
}
.cta h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.cta p {
  color: #1a3a5a;
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 1.8rem;
}

/* ===== 产品详情 ===== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 2.5rem 0;
}
.gallery .main-image {
  width: 100%;
  border-radius: 20px;
  border: 1px solid #eef2f8;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: #f5f8fe;
}
.gallery .thumbnails {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.gallery .thumbnails img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.2s;
}
.gallery .thumbnails img:hover,
.gallery .thumbnails img.active {
  border-color: #0a2540;
}
.info .product-name {
  font-size: 2rem;
  font-weight: 700;
  color: #0a1e33;
  margin-bottom: 0.2rem;
}
.info .sku {
  color: #5a7a9a;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.info .rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: #f59e0b;
  font-size: 0.9rem;
}
.info .rating span {
  color: #5a7a9a;
}
.info .price-detail {
  font-size: 2rem;
  font-weight: 700;
  color: #e05a2a;
  margin-bottom: 0.3rem;
}
.info .price-note {
  font-size: 0.85rem;
  color: #5a7a9a;
  margin-bottom: 0.8rem;
}
.info .short-desc {
  color: #2a4a6a;
  margin: 0.8rem 0 1rem;
  font-size: 1.05rem;
  line-height: 1.7;
  border-left: 4px solid #e05a2a;
  padding-left: 1rem;
}
/* 规格表格 */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: 0.95rem;
}
.specs-table tr {
  border-bottom: 1px solid #eef2f8;
}
.specs-table td {
  padding: 0.6rem 0.5rem;
}
.specs-table .label {
  color: #3a5a7a;
  font-weight: 500;
  width: 35%;
}
.specs-table .value {
  color: #0a1e33;
  font-weight: 500;
}
.actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

@media (max-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .gallery .thumbnails img {
    width: 60px;
    height: 60px;
  }
  .info .product-name {
    font-size: 1.5rem;
  }
  .info .price-detail {
    font-size: 1.6rem;
  }
  .specs-table td {
    padding: 0.4rem 0.3rem;
    font-size: 0.85rem;
  }
  .btn-lg {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* ===== 上一篇 / 下一篇 ===== */
.prev-next {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
  border-top: 1px solid #eef2f8;
  border-bottom: 1px solid #eef2f8;
  margin: 0.5rem 0 2rem;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.prev-next a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #0a2540;
  font-weight: 500;
  transition: 0.2s;
  font-size: 0.95rem;
}
.prev-next a:hover {
  color: #e05a2a;
}
.prev-next .disabled {
  color: #b0c4d8;
  cursor: default;
  pointer-events: none;
}
.prev-next .position {
  color: #5a7a9a;
  font-size: 0.85rem;
}

/* ===== 同类产品横向滑动 ===== */
.related-section {
  padding: 0.5rem 0 1.5rem;
}
.related-section .section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.related-section .section-title h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0a1e33;
}
.related-section .section-title .controls {
  display: flex;
  gap: 0.6rem;
}
.related-section .section-title .controls button {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #dce6f5;
  background: white;
  color: #0a2540;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.related-section .section-title .controls button:hover {
  background: #0a2540;
  color: white;
  border-color: #0a2540;
}
.related-section .section-title .controls button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.related-scroll {
  overflow: hidden;
  position: relative;
}
.related-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.4s ease;
  will-change: transform;
}
.related-track .card {
  min-width: 220px;
  max-width: 220px;
  flex-shrink: 0;
}
.related-track .card .card-footer .btn-sm {
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
}
.related-track .card .card-footer .btn-view {
  flex: 1;
}
.related-track .card .card-footer .btn-quote {
  flex: 1;
}
@media (max-width: 600px) {
  .related-track .card {
    min-width: 165px;
    max-width: 165px;
  }
  .related-section .section-title h2 {
    font-size: 1.2rem;
  }
}

/* ===== 产品详情描述区 ===== */
.detail-description-section {
  padding: 2rem 0 2.5rem;
}
.detail-description-section .detail-content {
  max-width: 1400px;
  margin: 0 auto;
}
.detail-description-section h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0a1e33;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #eef2f8;
}
.detail-description-section h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0a1e33;
  margin: 1rem 0 0.4rem;
}
.detail-description-section p {
  color: #2a4a6a;
  line-height: 1.9;
  margin-bottom: 0.8rem;
}
.detail-description-section ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem;
}
.detail-description-section ul li {
  padding: 0.3rem 0 0.3rem 1.5rem;
  position: relative;
  color: #2a4a6a;
}
.detail-description-section ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #28a55a;
  font-weight: 700;
}
.detail-description-section .feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.detail-description-section .feature-grid .item {
  background: #f8faff;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid #eef2f8;
  text-align: center;
  font-weight: 500;
  color: #0a1e33;
}
.detail-description-section .feature-grid .item i {
  color: #e05a2a;
  margin-right: 0.4rem;
}

/* ===== 关于我们 ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 2rem 0;
}
.about-grid img {
  width: 100%;
  border-radius: 24px;
  border: 1px solid #eef2f8;
}
.about-grid h2 {
  font-size: 2rem;
  color: #0a1e33;
  margin-bottom: 0.5rem;
}
.about-grid p {
  color: #2a4a6a;
  margin-bottom: 1rem;
}
.about-grid .stats-mini {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
}
.about-grid .stats-mini div {
  text-align: center;
}
.about-grid .stats-mini .num {
  font-size: 2rem;
  font-weight: 700;
  color: #e05a2a;
}
.about-grid .stats-mini .label {
  color: #5a7a9a;
  font-size: 0.85rem;
}
.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid #eef2f8;
  margin-top: 2rem;
}
.about-features .icon {
  font-size: 2.5rem;
  color: #0a2540;
}
.about-features h4 {
  margin: 0.5rem 0 0.2rem;
}
.about-features p {
  color: #5a7a9a;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-grid .stats-mini {
    justify-content: center;
  }
}

/* ===== 筛选条 ===== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid #eef2f8;
  margin-bottom: 2rem;
}
.filter-bar .filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.filter-bar .filter-group label {
  font-size: 0.85rem;
  color: #3a5a7a;
  font-weight: 500;
}
.filter-bar select {
  padding: 0.3rem 1.8rem 0.3rem 0.8rem;
  border-radius: 30px;
  border: 1px solid #dce6f5;
  background: white;
  font-size: 0.85rem;
  color: #1a2f4a;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233a5a7a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  cursor: pointer;
}
.filter-bar .view-options {
  display: flex;
  gap: 0.4rem;
  margin-left: auto;
}
.filter-bar .view-options button {
  background: transparent;
  border: 1px solid #dce6f5;
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  color: #5a7a9a;
  transition: 0.2s;
}
.filter-bar .view-options button.active {
  background: #0a2540;
  color: white;
  border-color: #0a2540;
}
.filter-bar .view-options button:hover {
  background: #eef4ff;
}
@media (max-width: 480px) {
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-bar .view-options {
    margin-left: 0;
  }
}

/* ===== 分页 ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}
.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #dce6f5;
  color: #1a2f4a;
  font-weight: 500;
  transition: 0.2s;
}
.pagination a:hover {
  background: #eef4ff;
  border-color: #0a2540;
}
.pagination a.active {
  background: #0a2540;
  color: white;
  border-color: #0a2540;
}

/* ===== Footer ===== */
.footer {
  background: #0b1a2e;
  color: #cbd5e1;
  padding: 3rem 0 1.8rem;
  border-top: 1px solid #1a2f4a;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}
.footer h4 {
  color: white;
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.footer ul {
  list-style: none;
}
.footer ul li {
  margin-bottom: 0.4rem;
}
.footer ul a {
  transition: 0.2s;
}
.footer ul a:hover {
  color: white;
}
.footer .social {
  display: flex;
  gap: 1.2rem;
  font-size: 1.2rem;
  margin-top: 0.8rem;
}
.footer .social a {
  color: #94a3b8;
  transition: 0.2s;
}
.footer .social a:hover {
  color: white;
}
.footer-bottom {
  border-top: 1px solid #1a2f4a;
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #5a7a9a;
}

/* ===== 响应式微调 ===== */
@media (max-width: 480px) {
  .carousel-indicators {
    bottom: 0.6rem;
    padding: 0.3rem 0.6rem;
  }
  .carousel-indicators span {
    width: 8px;
    height: 8px;
  }
  .carousel-indicators span.active {
    width: 18px;
  }
  .section-title h2 {
    font-size: 1.6rem;
  }
  .grid-4 {
    gap: 1rem;
  }
  .card-body h3 {
    font-size: 0.95rem;
  }
  .card-body .sub-title {
    font-size: 0.8rem;
  }
  .btn-sm {
    font-size: 0.75rem;
    padding: 0.35rem 0.8rem;
  }
}

    .nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    position: relative;
}
.nav-item {
    position: relative;
}
.nav-item > a {
    color: #1e3349;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    display: block;
    transition: 0.2s;
}
.nav-item > a:hover {
    color: #0a2540;
}
.nav-item.active > a {
    color: #0a2540;
    font-weight: 600;
}
.nav-item .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #eef2f8;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease;
    list-style: none;
    z-index: 99;
}
.nav-item.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-item .dropdown-menu li a {
    display: block;
    padding: 0.5rem 1.2rem;
    color: #1e3349;
    font-size: 0.9rem;
    transition: 0.2s;
}
.nav-item .dropdown-menu li a:hover {
    background: #f5f8fe;
    color: #0a2540;
}
.nav-item > a .arrow-icon {
    font-size: 0.6rem;
    margin-left: 0.3rem;
    transition: transform 0.25s ease;
    color: #7a8a9a;
}
.nav-item.has-dropdown:hover > a .arrow-icon {
    transform: rotate(180deg);
    color: #0a2540;
}

/* ===== 产品列表 ===== */
.product-layout {
      display: flex;
      gap: 2.5rem;
      align-items: flex-start;
    }
    .product-sidebar {
      min-width: 220px;
      max-width: 220px;
      flex-shrink: 0;
    }
    .sidebar-box {
      background: #f8faff;
      border-radius: 16px;
      border: 1px solid #eef2f8;
      padding: 1.2rem 0;
    }
    .sidebar-box .box-title {
      font-size: 1rem;
      font-weight: 700;
      color: #0a1e33;
      padding: 0 1.2rem 0.8rem;
      border-bottom: 1px solid #eef2f8;
    }
    .sidebar-cat-list {
      list-style: none;
      padding: 0.5rem 0;
      margin: 0;
    }
    .sidebar-cat-list li a {
      display: block;
      padding: 0.5rem 1.2rem;
      color: #2a4a6a;
      font-size: 0.9rem;
      transition: 0.2s;
      border-left: 3px solid transparent;
    }
    .sidebar-cat-list li a:hover {
      background: #eef4fc;
      border-left-color: #e05a2a;
      color: #0a1e33;
    }
    .sidebar-cat-list li a.active {
      background: #eef4fc;
      border-left-color: #e05a2a;
      color: #0a1e33;
      font-weight: 600;
    }
    .sidebar-cat-list li a .count {
      float: right;
      color: #999;
      font-size: 0.75rem;
    }
    .sidebar-box .rand-list {
      padding: 0.5rem 1.2rem;
    }
    .rand-item {
      display: flex;
      gap: 0.8rem;
      padding: 0.6rem 0;
      border-bottom: 1px solid #f0f4fe;
      align-items: center;
    }
    .rand-item:last-child {
      border-bottom: none;
    }
    .rand-item img {
      width: 48px;
      height: 48px;
      border-radius: 8px;
      object-fit: cover;
      flex-shrink: 0;
      background: #eef3fc;
    }
    .rand-item .info {
      flex: 1;
      min-width: 0;
    }
    .rand-item .info .name {
      font-size: 0.85rem;
      font-weight: 500;
      color: #0a1e33;
      display: block;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .rand-item .info .price {
      font-size: 0.8rem;
      color: #e05a2a;
      font-weight: 600;
    }
    .product-main {
      flex: 1;
      min-width: 0;
    }
    .filter-bar-right {
      border-bottom: 1px solid #eef2f8;
      padding: 0 0 1rem 0;
      margin-bottom: 1.5rem;
      display: flex;
      justify-content: flex-end;
    }
    @media (max-width: 768px) {
      .product-layout {
        flex-direction: column;
      }
      .product-sidebar {
        min-width: 100%;
        max-width: 100%;
      }
    }
      /* ===== 联系页 ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.contact-icon {
    background: #eef4fc;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #e05a2a;
    font-size: 1.2rem;
}
.contact-info-item h4 {
    font-weight: 600;
    color: #0a1e33;
    margin-bottom: 0.2rem;
}
.contact-info-item p {
    color: #2a4a6a;
}
.contact-social a {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: #0a2540;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: 0.2s;
}
.contact-social a:hover {
    background: #e05a2a;
}
.contact-card {
    background: #f8faff;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid #eef2f8;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}
.contact-card .icon {
    font-size: 3rem;
    color: #e05a2a;
    margin-bottom: 1rem;
}
.contact-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0a1e33;
    margin-bottom: 0.5rem;
}
.contact-card p {
    color: #2a4a6a;
    margin-bottom: 1.5rem;
}
.contact-card .quick-response {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #eef2f8;
}
.contact-card .quick-response .label {
    color: #0a1e33;
    font-weight: 500;
}
.contact-card .quick-response .desc {
    color: #5a7a9a;
    font-size: 0.9rem;
}
.contact-map {
    margin-top: 3rem;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #ffffff;
    min-height: 280px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5a7a9a;
}
.contact-map i {
    font-size: 3rem;
    margin-right: 1rem;
    opacity: 0.5;
}
.contact-map span {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}