* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: #f9f7f5;
  color: #333333;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-solid {
  background-color: #9ca3af;
  color: #ffffff;
  width: 100%;
  margin-top: 20px;
  border-radius: 4px;
  font-size: 16px;
  padding: 14px;
}

.btn-solid:hover {
  background-color: #7c8491;
}

/* 加载提示弹窗 - 核心功能样式 */
.loading-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ffffff;
  padding: 40px 50px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  display: none;
  z-index: 9999;
  text-align: center;
  min-width: 300px;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #9ca3af;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  font-size: 16px;
  color: #333333;
  font-weight: 500;
}

/* 头部导航样式 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  z-index: 999;
  padding: 15px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: #333333;
}

.nav-menu {
  display: flex;
  gap: 30px;
  font-size: 14px;
  font-weight: 500;
}

.nav-item:hover {
  color: #9ca3af;
}

.nav-icons {
  display: flex;
  gap: 20px;
  font-size: 18px;
}

.cart-badge {
  position: relative;
}

.badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 16px;
  height: 16px;
  background-color: #9ca3af;
  color: #ffffff;
  border-radius: 50%;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn {
  display: none;
  font-size: 20px;
}

/* 面包屑导航 */
.breadcrumbs {
  margin-top: 80px;
  padding: 20px 0;
  font-size: 14px;
  color: #6b7280;
}

.breadcrumbs a {
  color: #6b7280;
}

.breadcrumbs a:hover {
  color: #9ca3af;
}

/* 商品详情核心布局 */
.product-detail {
  padding: 20px 0 60px;
}

.detail-layout {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.product-images {
  flex: 1;
  width: 100%;
}

.main-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 20px;
  cursor: zoom-in;
}

.thumbnails {
  display: flex;
  gap: 15px;
}

.thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
}

.thumbnail.active {
  border-color: #9ca3af;
}

.product-info {
  flex: 1;
  padding-top: 20px;
}

.product-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.3;
}

.product-price {
  font-size: 24px;
  font-weight: 700;
  color: #333333;
  margin-bottom: 25px;
  display: block;
}

.price-original {
  font-size: 18px;
  color: #9ca3af;
  text-decoration: line-through;
  margin-left: 10px;
  font-weight: 400;
}

.product-divider {
  height: 1px;
  background-color: #e5e7eb;
  margin: 25px 0;
}

.product-attribute {
  margin-bottom: 20px;
}

.attribute-label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

.size-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.size-option {
  padding: 8px 18px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.size-option:hover, .size-option.selected {
  border-color: #9ca3af;
  color: #9ca3af;
  font-weight: 500;
}

.color-options {
  display: flex;
  gap: 12px;
}

.color-option {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
}

.color-option.selected {
  border-color: #9ca3af;
}

.product-description {
  margin-top: 30px;
  font-size: 15px;
  color: #4b5563;
  line-height: 1.7;
}

.description-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333333;
}

.product-benefits {
  margin-top: 20px;
  padding-left: 20px;
}

.product-benefits li {
  list-style: disc;
  margin-bottom: 8px;
}

.shipping-note {
  margin-top: 20px;
  font-size: 14px;
  color: #6b7280;
  font-style: italic;
}

/* 页脚样式 */
.footer {
  background-color: #ffffff;
  padding: 60px 0 30px;
  border-top: 1px solid #f3f4f6;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  font-size: 16px;
  margin-bottom: 20px;
  color: #333333;
}

.footer-links {
  font-size: 14px;
  color: #6b7280;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a:hover {
  color: #9ca3af;
}

.social-icons {
  display: flex;
  gap: 15px;
  font-size: 18px;
  color: #6b7280;
}

.social-icons a:hover {
  color: #9ca3af;
}

.copyright {
  text-align: center;
  font-size: 13px;
  color: #6b7280;
  padding-top: 20px;
  border-top: 1px solid #f3f4f6;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .detail-layout {
	flex-direction: column !important;
	gap: 30px !important;
  }
  .main-img {
	height: 350px !important;
  }
  .footer-columns {
	grid-template-columns: repeat(2, 1fr) !important;
	gap: 30px !important;
  }
}

@media (max-width: 480px) {
  .nav-menu {
	display: none !important;
  }
  .mobile-menu-btn {
	display: block !important;
  }
  .footer-columns {
	grid-template-columns: 1fr !important;
  }
  .main-img {
	height: 280px !important;
  }
  .loading-modal {
	padding: 30px 20px !important;
	min-width: 250px !important;
  }
}
