/* 全局重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
html {
  scroll-behavior: smooth;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}
button, input, select {
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.container {
  width: 94%;
  max-width: 1400px;
  margin: 0 auto;
}

/* 顶部联系栏 */
.top-bar {
  background: #fff;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}
.top-bar-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-mail {
  font-size: 14px;
  color: #333;
}
.top-account {
  font-size: 14px;
  color: #333;
}

/* 导航栏 */
header {
  padding: 20px 0;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 998;
}
.header-wrap {
  display: grid;
  grid-template-columns: 160px 1fr 200px;
  align-items: center;
  gap: 30px;
}
.search-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  font-size: 14px;
}
.search-box {
  position: relative;
}
.search-submit {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 40px;
  background: #f5a623;
  color: #fff;
}
.header-icons {
  display: flex;
  gap: 22px;
  justify-content: flex-end;
  align-items: center;
}
.icon-item {
  font-size: 20px;
  position: relative;
  cursor: pointer;
}
.badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #f5a623;
  color: #fff;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 11px;
  display: grid;
  place-items: center;
}
.nav-row {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-list {
  display: flex;
  gap: 36px;
}
.nav-list a {
  font-size: 15px;
  font-weight: 500;
  transition: 0.2s;
}
.nav-list a:hover {
  color: #f5a623;
}
.shipping-tag {
  background: #f5a623;
  color: #fff;
  padding: 10px 18px;
  font-size: 14px;
}

/* Banner轮播首页 */
.banner {
  height: 520px;
  background: linear-gradient(rgba(255,255,255,0.3),rgba(255,255,255,0.3)), url(../pictures/1.webp) center/cover no-repeat;
  display: flex;
  align-items: center;
  padding-left: 8%;
}
.banner-text h4 {
  font-size: 18px;
  color: #333;
  margin-bottom: 12px;
}
.banner-text h1 {
  font-size: 46px;
  margin-bottom: 24px;
}
.btn-orange {
  padding: 14px 32px;
  background: #f5a623;
  color: #fff;
  font-weight: 500;
  transition: 0.3s;
}
.btn-orange:hover {
  background: #e09010;
}

/* 分类区块 */
.category-section {
  padding: 60px 0;
}
.category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.category-card {
  height: 240px;
  position: relative;
  overflow: hidden;
}
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s;
}
.category-card:hover img {
  transform: scale(1.06);
}
.category-text {
  position: absolute;
  top: 40px;
  left: 30px;
}
.category-text h3 {
  font-size: 26px;
  margin-bottom: 10px;
}
.category-text a {
  text-decoration: underline;
  font-size: 14px;
}

/* 通用区块标题 */
.section-title {
  padding: 0 0 40px;
}
.section-title h2 {
  font-size: 28px;
  color: #111;
}
.tab-switch {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}
.tab-switch span {
  font-size: 16px;
  cursor: pointer;
  color: #666;
}
.tab-switch span.active {
  color: #f5a623;
}

/* 商品卡片通用 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}
.product-card {
  border: 1px solid #eee;
  transition: 0.3s;
  position: relative;
}
.product-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}
.card-img {
  height: 300px;
  overflow: hidden;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s;
}
.product-card:hover .card-img img {
  transform: scale(1.05);
}
.card-fav {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  color: #777;
  cursor: pointer;
}
.card-fav.active {
  color: #e74c3c;
}
.card-body {
  padding: 16px;
}
.card-body h3 {
  font-size: 15px;
  margin-bottom: 8px;
  color: #222;
  min-height: 42px;
}
.card-price {
  font-size: 17px;
  font-weight: 600;
  color: #f5a623;
  margin-bottom: 12px;
}
.card-add {
  width: 100%;
  padding: 11px;
  background: #f8f8f8;
  border: 1px solid #ddd;
  font-size: 14px;
  transition: 0.2s;
}
.card-add:hover {
  background: #f5a623;
  color: #fff;
  border-color: #f5a623;
}

/* 分页控件 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 40px 0 70px;
}
.page-btn {
  width: 42px;
  height: 42px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 15px;
}
.page-btn.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* 详情页布局 */
.detail-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 50px 0;
}
.detail-main-img {
  width: 100%;
  height: 500px;
  object-fit: contain;
  background: #f9f9f9;
}
.detail-info h2 {
  font-size: 28px;
  margin-bottom: 14px;
  line-height: 1.3;
}
.detail-price {
  font-size: 28px;
  color: #f5a623;
  font-weight: 600;
  margin-bottom: 22px;
}
.detail-desc {
  line-height: 1.7;
  color: #555;
  margin-bottom: 28px;
}
.spec-group {
  margin-bottom: 26px;
}
.spec-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  font-size: 15px;
}
.spec-select {
  padding: 12px 16px;
  border: 1px solid #ddd;
  width: 280px;
  font-size: 14px;
}
.detail-btn-group {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}
.btn-wish-outline {
  padding: 0 26px;
  border: 1px solid #111;
  background: #fff;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-wish-outline.active {
  color: #e74c3c;
  border-color: #e74c3c;
}

/* 内页政策通用内容 */
.page-content {
  padding: 60px 0 90px;
}
.page-content h2 {
  font-size: 30px;
  margin-bottom: 32px;
  color: #111;
}
.page-content p {
  line-height: 1.8;
  color: #444;
  margin-bottom: 16px;
}
.page-content h3 {
  margin: 28px 0 12px;
  font-size: 20px;
}
.contact-list li {
  margin: 16px 0;
  font-size: 16px;
  line-height: 1.7;
}

/* 侧边弹窗通用遮罩 */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}
.overlay.show {
  opacity: 1;
  visibility: visible;
}
.side-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100%;
  background: #fff;
  padding: 30px;
  transition: right 0.3s ease;
  z-index: 10000;
  overflow-y: auto;
}
.side-drawer.show {
  right: 0;
}
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}
.drawer-head h3 {
  font-size: 22px;
}
.drawer-close {
  font-size: 24px;
  background: transparent;
}
.drawer-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}
.drawer-item-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
}
.drawer-item-info h4 {
  font-size: 14px;
  margin-bottom: 6px;
}
.drawer-item-price {
  color: #f5a623;
  font-weight: 500;
}
.drawer-empty {
  text-align: center;
  padding: 60px 0;
  color: #777;
}
.drawer-total {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  font-size: 18px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
}

/* 页脚 */
footer {
  background: #fff;
  border-top: 1px solid #eee;
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  margin-bottom: 50px;
}
.footer-col h4 {
  font-size: 18px;
  margin-bottom: 22px;
  color: #111;
}
.footer-col li {
  margin: 12px 0;
  font-size: 14px;
  color: #555;
}
.footer-col li a {
  transition: 0.2s;
}
.footer-col li a:hover {
  color: #f5a623;
}
.payment-img {
  margin: 30px 0;
}
.copyright {
  text-align: left;
  padding-top: 20px;
  border-top: 1px solid #eee;
  font-size: 14px;
  color: #666;
  display: flex;
  justify-content: space-between;
  align-items: center;
}