/* Font Awesome 在线图标，无emoji */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* 全局重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
button {
  border: none;
  background: transparent;
  cursor: pointer;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.flex-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

/* 顶部通知栏 */
.top-bar {
  background: #f7f7f7;
  padding: 8px 0;
  font-size: 14px;
  color: #444;
}
.top-contact {
  display: flex;
  gap: 20px;
}
.top-contact a {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 导航头部 */
.header {
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}
.main-nav {
  display: flex;
  gap: 60px;
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.header-icons {
  display: flex;
  gap: 22px;
  align-items: center;
}
.icon-btn {
  font-size: 18px;
  position: relative;
}
.cart-badge, .wish-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #000;
  color: #fff;
  font-size: 10px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

/* 侧边抽屉遮罩 */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.overlay.active {
  opacity: 1;
  visibility: visible;
}
.drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100vh;
  background: #fff;
  z-index: 999;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}
.drawer.active {
  right: 0;
}
.drawer-head {
  padding: 20px;
  border-bottom: 1px solid #eee;
}
.drawer-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}
.drawer-foot {
  padding: 20px;
  border-top: 1px solid #eee;
}
.cart-item, .wish-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}
.cart-item img, .wish-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
}
.cart-total {
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 500;
}
.checkout-btn {
  width: 100%;
  padding: 14px;
  background: #000;
  color: #fff;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 商品卡片通用 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
  margin: 40px 0;
}
.product-card {
  position: relative;
}
.product-img-box {
  overflow: hidden;
  margin-bottom: 14px;
}
.product-img-box img {
  transition: transform 0.3s ease;
  width: 100%;
  height: 320px;
  object-fit: cover;
}
.product-card:hover .product-img-box img {
  transform: scale(1.05);
}
.product-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 8px;
}
.badge {
  padding: 4px 10px;
  font-size: 12px;
  color: #fff;
  background: #e91e63;
  border-radius: 4px;
}
.product-action {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.product-card:hover .product-action {
  opacity: 1;
}
.action-btn {
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.product-name {
  font-size: 15px;
  margin-bottom: 6px;
  line-height: 1.4;
}
.product-price {
  font-size: 16px;
  font-weight: 600;
}
.old-price {
  color: #999;
  text-decoration: line-through;
  font-size: 14px;
  margin-right: 8px;
  font-weight: 400;
}

/* 页脚样式 */
.footer {
  margin-top: 80px;
  background: #f8f8f8;
  padding: 60px 0 30px;
}
.service-row {
  margin-bottom: 50px;
  text-align: center;
}
.service-item {
  flex: 1;
  min-width: 200px;
}
.service-item i {
  font-size: 32px;
  margin-bottom: 14px;
}
.service-item h4 {
  font-size: 16px;
  margin-bottom: 8px;
}
.service-item p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}
.footer-col {
  flex: 1;
  min-width: 250px;
}
.footer-col h3 {
  font-size: 18px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-links li {
  margin-bottom: 10px;
  font-size: 14px;
  color: #555;
}
.footer-col p {
  font-size: 14px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.copyright-row {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
  text-align: center;
}
.payment-img {
  margin: 0 auto 16px;
  width: 320px;
}
.copyright-row p {
  font-size: 14px;
  color: #666;
}

/* 分页样式 */
.pagination {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 50px 0;
}
.page-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  display: grid;
  place-items: center;
}
.page-btn.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* 通用区块标题 */
.section-title {
  text-align: center;
  margin: 60px 0 10px;
}
.section-title h2 {
  font-size: 32px;
  text-transform: capitalize;
  margin-bottom: 8px;
}
.section-title p {
  color: #777;
  font-size: 16px;
}

/* 通用按钮 */
.black-btn {
  padding: 14px 32px;
  background: #000;
  color: #fff;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.5px;
  display: inline-block;
}
.outline-btn {
  padding: 12px 28px;
  border: 1px solid #000;
  text-transform: uppercase;
  font-size: 14px;
  display: inline-block;
}

/* 首页专属 */
.banner {
  height: 70vh;
  background: #f6f6f6;
  display: flex;
  align-items: center;
}
.banner-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}
.banner-text h1 {
  font-size: 56px;
  line-height: 1.2;
  margin-bottom: 30px;
}
.banner-img img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}
.category-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 60px 0;
}
.category-card {
  height: 340px;
  display: flex;
  align-items: center;
  padding: 40px;
  background: #f7f7f7;
  position: relative;
  overflow: hidden;
}
.category-card img {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 60%;
  object-fit: cover;
}
.category-text {
  position: relative;
  z-index: 2;
}
.category-text h3 {
  font-size: 36px;
  margin-bottom: 20px;
}

/* 商品列表筛选栏 */
.filter-bar {
  display: flex;
  gap: 30px;
  align-items: center;
  margin: 40px 0 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}
.filter-item select {
  padding: 10px 14px;
  border: 1px solid #ddd;
  min-width: 180px;
}

/* 商品详情页 */
.detail-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin: 60px 0;
}
.detail-img img {
  width: 100%;
  height: 580px;
  object-fit: cover;
}
.detail-info h2 {
  font-size: 32px;
  margin-bottom: 14px;
}
.detail-price {
  font-size: 28px;
  margin-bottom: 20px;
}
.detail-desc {
  margin: 30px 0;
  line-height: 1.7;
  color: #444;
}
.size-select {
  margin: 30px 0;
}
.size-select h4 {
  margin-bottom: 12px;
}
.size-list {
  display: flex;
  gap: 12px;
}
.size-btn {
  width: 44px;
  height: 44px;
  border: 1px solid #ddd;
  display: grid;
  place-items: center;
}
.size-btn.active {
  background: #000;
  color: #fff;
  border-color: #000;
}
.action-row {
  display: flex;
  gap: 16px;
  margin-top: 40px;
}
.add-cart-btn {
  flex: 1;
  padding: 16px;
  background: #000;
  color: #fff;
  font-size: 16px;
  text-transform: uppercase;
}
.wish-detail-btn {
  width: 56px;
  border: 1px solid #ddd;
  font-size: 20px;
}

/* About页面 */
.about-block {margin:80px 0;}
.about-title {text-align:center;margin-bottom:40px;}
.about-title h1 {font-size:36px;margin-bottom:10px;}
.about-content {max-width:900px;margin:0 auto;line-height:1.8;color:#333;font-size:16px;}
.about-content p {margin-bottom:20px;}

/* Contact页面 */
.contact-wrap {margin:80px 0;display:grid;grid-template-columns:1fr 1fr;gap:60px;}
.contact-title {margin-bottom:30px;}
.contact-title h1 {font-size:36px;margin-bottom:10px;}
.contact-info-item {display:flex;gap:16px;margin-bottom:24px;align-items:flex-start;}
.contact-info-item i {font-size:24px;margin-top:4px;}
.form-item {margin-bottom:20px;}
.form-item input, .form-item textarea {
  width:100%;padding:14px;border:1px solid #ddd;font-size:15px;
}
.submit-btn {padding:16px 32px;background:#000;color:#fff;text-transform:uppercase;}

/* 政策页面通用 */
.policy-block {margin:80px 0;max-width:900px;}
.policy-title {text-align:center;margin-bottom:40px;}
.policy-title h1 {font-size:36px;margin-bottom:10px;}
.policy-content h3 {font-size:22px;margin:30px 0 14px;}
.policy-content p {line-height:1.8;color:#333;margin-bottom:16px;}

/* 响应式适配 */
@media(max-width: 768px) {
  .main-nav {
    gap: 20px;
  }
  .drawer {
    width: 100%;
    right: -100%;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .banner-wrap, .detail-wrap, .contact-wrap, .category-block {
    grid-template-columns: 1fr;
  }
  .banner-text h1 {
    font-size: 36px;
  }
}