* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}
:root {
  --primary: #8B5A2B;
  --light-brown: #D2B48C;
  --dark: #222;
  --light: #f8f5f2;
  --gray: #999;
  --white: #fff;
}
body {
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}
/* Header */
header {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 999;
}
.header-top {
  background: var(--primary);
  color: var(--white);
  padding: 8px 0;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
}
.header-top-left span {
  margin-right: 20px;
}
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}
.logo {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
}
.nav-list {
  display: flex;
  gap: 30px;
}
.nav-list a {
  font-weight: 500;
  transition: color 0.3s;
}
.nav-list a:hover {
  color: var(--primary);
}
.header-actions {
  display: flex;
  gap: 18px;
  align-items: center;
}
.icon-btn {
  font-size: 22px;
  cursor: pointer;
  position: relative;
}
.badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--primary);
  color: white;
  font-size: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
/* Banner */
.banner {
  height: 500px;
  background: linear-gradient(rgba(0,0,0,0.3),rgba(0,0,0,0.3)), url('../static/pitures/1.webp') center/cover no-repeat;
  display: flex;
  align-items: center;
  color: white;
}
.banner-content h1 {
  font-size: 52px;
  margin-bottom: 16px;
}
.banner-content p {
  font-size: 18px;
  margin-bottom: 24px;
  max-width: 500px;
}
.btn {
  padding: 12px 32px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 2px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}
.btn:hover {
  background: #6d4420;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: white;
}
/* Section通用 */
.section-title {
  text-align: center;
  margin: 60px 0 40px;
}
.section-title h2 {
  font-size: 34px;
  color: var(--primary);
  margin-bottom: 10px;
}
.section-title p {
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}
/* 产品卡片 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}
.product-card {
  background: white;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s;
}
.product-card:hover {
  transform: translateY(-6px);
}
.product-img-box {
  height: 260px;
  overflow: hidden;
  position: relative;
}
.product-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.4s;
}
.product-card:hover .product-img-box img {
  scale: 1.08;
}
.wish-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 18px;
  color: #999;
}
.wish-icon.active {
  color: #e74c3c;
}
.product-info {
  padding: 18px;
}
.product-name {
  font-size: 17px;
  margin-bottom: 8px;
}
.product-price {
  font-size: 20px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 14px;
}
.add-cart-btn {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--primary);
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.3s;
}
.add-cart-btn:hover {
  background: var(--primary);
  color: white;
}
/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 40px 0;
}
.page-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.page-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
/* 详情页 */
.detail-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin: 50px 0;
}
.detail-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}
.detail-name {
  font-size: 32px;
  color: var(--dark);
  margin-bottom: 12px;
}
.detail-price {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 20px;
}
.desc-title {
  font-size: 18px;
  margin: 20px 0 10px;
}
.quantity-box {
  display: flex;
  align-items: center;
  margin: 20px 0;
}
.quantity-box button {
  width: 36px;
  height: 36px;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
}
.quantity-box input {
  width: 60px;
  height: 36px;
  text-align: center;
  border: 1px solid #ddd;
  border-left: none;
  border-right: none;
}
.detail-btns {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}
/* 购物车弹窗 */
.cart-modal {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100vh;
  background: white;
  box-shadow: -3px 0 15px rgba(0,0,0,0.15);
  transition: right 0.4s;
  z-index: 1000;
  padding: 25px;
  overflow-y: auto;
}
.cart-modal.open {
  right: 0;
}
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  font-size: 22px;
  font-weight: 600;
}
.close-cart {
  cursor: pointer;
  font-size: 26px;
}
.cart-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}
.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
}
.cart-item-info h4 {
  font-size: 15px;
  margin-bottom: 4px;
}
.cart-item-price {
  color: var(--primary);
  font-weight: 600;
}
.cart-footer {
  margin-top: 30px;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  margin-bottom: 20px;
}
/* 页脚 */
footer {
  background: var(--dark);
  color: #ccc;
  padding: 60px 0 30px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h3 {
  color: white;
  font-size: 20px;
  margin-bottom: 20px;
}
.footer-col li {
  margin-bottom: 10px;
}
.footer-col a:hover {
  color: var(--light-brown);
}
.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #333;
}
/* 内页通用容器 */
.page-wrap {
  padding: 60px 0;
  min-height: calc(100vh - 320px);
}
.page-title {
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 30px;
  text-align: center;
}
/* 联系表单 */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
}
.form-row {
  margin-bottom: 20px;
}
.form-row label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}
.form-row input, .form-row textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 2px;
  font-size: 16px;
}
/* 政策页面文本 */
.policy-text h3 {
  margin: 25px 0 12px;
  color: var(--primary);
}
.policy-text p {
  margin-bottom: 12px;
  line-height: 1.8;
}