* { 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;
  background: #f5f6fa;
  color: #2d3436;
  min-height: 100vh;
}

header {
  background: #fff;
  border-bottom: 1px solid #e8eaf0;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.brand {
  font-size: 20px;
  font-weight: 700;
  color: #2d3436;
  text-decoration: none;
}
.brand span { color: #6c5ce7; }

.page-title { margin: 32px 0 20px; font-size: 24px; }

/* ---- 商品列表 ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  padding-bottom: 48px;
}

.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: block;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.thumb {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  position: relative;
}

.tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: #e17055;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}

.card-body { padding: 14px 16px 16px; }
.card-body h3 { font-size: 16px; margin-bottom: 4px; }
.card-body .summary {
  font-size: 12px;
  color: #8a8f99;
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.price { color: #e17055; font-weight: 700; font-size: 18px; }
.price::before { content: "¥"; font-size: 13px; margin-right: 1px; }

/* ---- 商品详情 ---- */
.back-link {
  display: inline-block;
  margin: 24px 0 16px;
  color: #6c5ce7;
  text-decoration: none;
  font-size: 14px;
}
.back-link:hover { text-decoration: underline; }

.detail {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  margin-bottom: 48px;
}
@media (max-width: 720px) {
  .detail { grid-template-columns: 1fr; }
}

.detail-hero {
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
}

.detail-info { padding: 32px; }
.detail-info h1 { font-size: 26px; margin-bottom: 8px; }
.detail-info .summary { color: #8a8f99; font-size: 14px; margin-bottom: 16px; }
.detail-info .price { font-size: 28px; display: block; margin-bottom: 20px; }
.detail-info .desc { font-size: 14px; line-height: 1.8; margin-bottom: 24px; }

.specs { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 28px; }
.specs td { padding: 8px 0; border-bottom: 1px solid #f0f1f5; }
.specs td:first-child { color: #8a8f99; width: 100px; }

.buy-btn {
  display: inline-block;
  background: #6c5ce7;
  color: #fff;
  border: none;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 40px;
  border-radius: 8px;
  cursor: pointer;
}
.buy-btn:hover { background: #5a4bd1; }

.not-found { text-align: center; padding: 80px 0; color: #8a8f99; }

/* ---- 站点说明与页脚 ---- */
.site-intro {
  font-size: 13px;
  color: #8a8f99;
  line-height: 1.7;
  margin: -8px 0 20px;
  max-width: 760px;
}

.site-footer {
  background: #fff;
  border-top: 1px solid #e8eaf0;
  padding: 20px 0 24px;
  font-size: 13px;
  color: #636e72;
}
.site-footer p { margin-bottom: 6px; }
.site-footer .disclaimer { font-size: 12px; color: #8a8f99; line-height: 1.7; }
