@charset "utf-8";
/* ============ 通用/面包屑 ============ */
.page-banner {
  background: linear-gradient(120deg, #16305a, #0e2038 60%, #123f7d);
  padding: 60px 0; text-align: center; color: #fff;
}
.page-banner h2 { font-size: 32px; letter-spacing: 4px; margin-bottom: 8px; }
.page-banner p { color: #9aa5b4; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; }

.breadcrumb {
  padding: 20px 0; font-size: 13px; color: #77828f; border-bottom: 1px solid #eef2f7; margin-bottom: 40px;
}
.breadcrumb a { color: #77828f; transition: .3s; }
.breadcrumb a:hover { color: #1c60b8; }
.breadcrumb span { color: #22344f; }

/* ============ 产品列表页布局 ============ */
.product-layout { display: flex; gap: 40px; align-items: flex-start; }

/* 左侧分类侧边栏 */
.product-sidebar {
  flex: 0 0 240px; background: #f7f9fc; border: 1px solid #e8edf4; border-radius: 6px;
  overflow: hidden;
}
.product-sidebar h3 {
  background: #1c60b8; color: #fff; padding: 16px 20px; font-size: 16px; letter-spacing: 1px; margin: 0;
}
.product-sidebar ul { list-style: none; padding: 0; margin: 0; }
.product-sidebar li {
  padding: 14px 20px; font-size: 15px; color: #33455f; border-bottom: 1px solid #e8edf4;
  cursor: pointer; transition: .3s; position: relative;
}
.product-sidebar li::before {
  content: "›"; position: absolute; right: 20px; color: #d6dee9; font-size: 18px; line-height: 1; top: 14px; transition: .3s;
}
.product-sidebar li:hover, .product-sidebar li.active {
  background: #fff; color: #e87a20; padding-left: 24px;
}
.product-sidebar li.active::before { color: #e87a20; right: 16px; }
.product-sidebar li:last-child { border-bottom: none; }

/* 右侧列表区 */
.product-main { flex: 1; min-width: 0; }
.product-main .product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-main .card h4 a { color: inherit; }
.product-main .card h4 a:hover { color: #1c60b8; }

/* 分页器 */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 50px; }
.page-btn {
  min-width: 38px; height: 38px; padding: 0 12px; border: 1px solid #d6dee9;
  background: #fff; color: #556; border-radius: 4px; cursor: pointer; transition: .3s;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.page-btn:hover:not(:disabled), .page-btn.active {
  background: #1c60b8; color: #fff; border-color: #1c60b8;
}
.page-btn:disabled { opacity: .5; cursor: not-allowed; background: #f5f7fa; }

/* ============ 产品详情页布局 ============ */
.detail-layout { display: flex; gap: 50px; align-items: flex-start; margin-bottom: 50px; }

/* 左侧图片 */
.detail-img {
  flex: 0 0 45%; background: #f7f9fc; border: 1px solid #e8edf4; border-radius: 6px;
  padding: 20px; text-align: center;
}
.detail-img img { width: 100%; border-radius: 4px; }

/* 右侧信息 */
.detail-info { flex: 1; }
.detail-info h1 { font-size: 28px; color: #17335a; margin-bottom: 6px; }
.detail-info .subtitle { color: #9aa5b4; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; }
.detail-desc { color: #556; font-size: 15px; line-height: 1.8; margin-bottom: 24px; text-indent: 2em; }

.detail-specs { list-style: none; padding: 0; margin: 0 0 30px 0; border-top: 1px dashed #dde5f0; }
.detail-specs li { display: flex; border-bottom: 1px dashed #dde5f0; padding: 12px 0; font-size: 14px; }
.detail-specs li span { flex: 0 0 90px; color: #77828f; }
.detail-specs li b { color: #33455f; font-weight: normal; }

.detail-actions { display: flex; gap: 16px; }

/* 详情内容 Tabs */
.detail-tabs { border: 1px solid #e8edf4; border-radius: 6px; overflow: hidden; }
.tab-nav { display: flex; background: #f7f9fc; border-bottom: 1px solid #e8edf4; }
.tab-nav button {
  padding: 16px 36px; border: none; background: none; color: #556; font-size: 16px; cursor: pointer; transition: .3s;
  border-right: 1px solid #e8edf4;
}
.tab-nav button:hover { color: #1c60b8; }
.tab-nav button.active { background: #fff; color: #1c60b8; border-top: 2px solid #1c60b8; font-weight: bold; }
.tab-content { padding: 30px; font-size: 15px; color: #556; line-height: 1.8; }

/* 规格表格 */
.spec-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.spec-table th, .spec-table td { border: 1px solid #e8edf4; padding: 12px 16px; text-align: left; }
.spec-table th { background: #f7f9fc; color: #17335a; font-weight: bold; }
.spec-table tr:nth-child(even) td { background: #fafbfd; }

/* ============ 响应式适配 ============ */
@media (max-width: 992px) {
  .product-layout { flex-direction: column; gap: 30px; }
  .product-sidebar { width: 100%; flex: none; }
  .product-sidebar ul { display: flex; flex-wrap: wrap; }
  .product-sidebar li { flex: 1 1 33.33%; text-align: center; border-bottom: none; border-right: 1px solid #e8edf4; }
  .product-sidebar li::before { display: none; }
  .product-sidebar li:hover, .product-sidebar li.active { padding-left: 20px; }
  
  .product-main .product-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { flex-direction: column; }
  .detail-img { flex: none; width: 100%; }
  .detail-img img { max-height: 400px; object-fit: contain; }
}

@media (max-width: 768px) {
  .product-main .product-grid { grid-template-columns: 1fr; }
  .product-sidebar li { flex: 1 1 50%; }
  .page-banner { padding: 40px 0; }
  .page-banner h2 { font-size: 24px; }
  .tab-nav button { padding: 12px 20px; font-size: 15px; flex: 1; text-align: center; }
  .tab-content { padding: 20px; }
  .detail-actions { flex-direction: column; }
  .detail-actions .btn { width: 100%; text-align: center; }
}