/* JewDIY 成品商城样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #2c3e2d;
  background: #faf8f5;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }

/* 顶部导航 */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e8e4dd;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, #3d6b4f, #5a8c6e);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 16px;
}
.logo-text { font-size: 22px; font-weight: 600; color: #2c3e2d; }
.main-nav { display: flex; gap: 32px; }
.main-nav a {
  font-size: 15px;
  color: #5a6b5c;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.main-nav a:hover, .main-nav a.active {
  color: #3d6b4f;
  border-bottom-color: #3d6b4f;
}
.btn-diy {
  background: #3d6b4f;
  color: #fff;
  padding: 10px 22px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}
.btn-diy:hover { background: #2d5a3f; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.cart-link {
  display: flex; align-items: center; justify-content: center;
  color: #5a6b5c; transition: color 0.2s;
  width: 36px; height: 36px; border-radius: 50%;
}
.cart-link:hover { color: #3d6b4f; background: #f0ebe3; }

/* 页面标题 */
.page-hero {
  background: linear-gradient(135deg, #f5f0e8, #ebe5d9);
  padding: 48px 24px;
  text-align: center;
}
.hero-content { max-width: 700px; margin: 0 auto; }
.page-hero h1 { font-size: 32px; font-weight: 700; color: #2c3e2d; margin-bottom: 12px; }
.page-hero p { font-size: 15px; color: #6b7a6d; }

/* 筛选栏 */
.filter-bar {
  background: #fff;
  border-bottom: 1px solid #e8e4dd;
  padding: 16px 24px;
}
.filter-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.filter-group { display: flex; align-items: center; gap: 10px; }
.filter-label { font-size: 14px; color: #6b7a6d; font-weight: 500; }
.filter-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tag {
  padding: 6px 16px;
  border: 1px solid #d8d4cc;
  border-radius: 18px;
  background: #fff;
  font-size: 13px;
  color: #5a6b5c;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-tag:hover { border-color: #3d6b4f; color: #3d6b4f; }
.filter-tag.active {
  background: #3d6b4f;
  color: #fff;
  border-color: #3d6b4f;
}
.sort-select {
  padding: 8px 14px;
  border: 1px solid #d8d4cc;
  border-radius: 8px;
  font-size: 13px;
  color: #5a6b5c;
  background: #fff;
  cursor: pointer;
}

/* 商品列表 */
.product-list-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.product-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.card-image {
  position: relative;
  aspect-ratio: 1;
  background: #f5f0e8;
  overflow: hidden;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #c9a96e;
  color: #fff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}
.card-info { padding: 16px; }
.card-title {
  font-size: 15px;
  font-weight: 600;
  color: #2c3e2d;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #8a9a8c;
  margin-bottom: 10px;
}
.card-benefits {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.benefit-tag {
  font-size: 11px;
  color: #3d6b4f;
  background: #eef4f0;
  padding: 3px 8px;
  border-radius: 6px;
}
.card-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
}
.price-current {
  font-size: 22px;
  font-weight: 700;
  color: #c0392b;
}
.price-original {
  font-size: 13px;
  color: #b0b0b0;
  text-decoration: line-through;
}
.card-actions {
  display: flex;
  gap: 8px;
}
.btn-detail, .btn-diy-small {
  flex: 1;
  text-align: center;
  padding: 9px 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}
.btn-detail {
  background: #f5f0e8;
  color: #5a6b5c;
}
.btn-detail:hover { background: #ebe5d9; }
.btn-diy-small {
  background: #3d6b4f;
  color: #fff;
}
.btn-diy-small:hover { background: #2d5a3f; }

.empty-tip {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px;
  color: #8a9a8c;
  font-size: 15px;
}

/* 底部 */
.site-footer {
  background: #2c3e2d;
  color: #b0c0b2;
  padding: 40px 24px 24px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 16px;
}
.footer-brand .logo-mark {
  width: 32px; height: 32px;
  font-size: 13px;
  background: rgba(255,255,255,0.15);
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 20px;
}
.footer-links a { font-size: 14px; color: #b0c0b2; }
.footer-links a:hover { color: #fff; }
.copyright { font-size: 12px; color: #6b7a6d; }

/* 响应式 */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .page-hero h1 { font-size: 24px; }
  .page-hero { padding: 32px 16px; }
  .filter-inner { flex-direction: column; align-items: flex-start; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-list-section { padding: 16px 12px 48px; }
  .card-info { padding: 12px; }
  .card-title { font-size: 13px; }
  .price-current { font-size: 18px; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* 官方logo样式 - 强选择器确保生效 */
body .logo-img {
  height: 28px !important;
  width: auto !important;
  object-fit: contain;
  display: block;
}
body .footer-logo-img {
  height: 20px !important;
  width: auto !important;
  object-fit: contain;
  display: inline-block;
}
/* 多屏幕响应式适配 */
@media (max-width: 1024px) {
  body .logo-img { height: 24px !important; max-width: 150px !important; }
}
@media (max-width: 768px) {
  body .logo-img { height: 22px !important; max-width: 130px !important; }
}
@media (max-width: 540px) {
  body .logo-img { height: 20px !important; max-width: 110px !important; }
}
@media (max-width: 380px) {
  body .logo-img { height: 18px !important; max-width: 100px !important; }
}
