/* TIMEHOME Clearance — 全站样式 */
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background:#faf8f5; color:#2a2a28; line-height:1.6; }

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

.header { background:#2a2a28; color:#fff; padding:16px 0; }
.header .container { display:flex; justify-content:space-between; align-items:center; }
.logo a { color:#fff; text-decoration:none; font-size:20px; font-weight:700; }
.nav a { color:#ccc; text-decoration:none; margin-left:20px; font-size:14px; }
.nav a:hover { color:#fff; }

.hero { background:linear-gradient(135deg,#3a3a38,#2a2a28); color:#fff; padding:60px 0; text-align:center; }
.hero h1 { font-size:36px; margin-bottom:16px; }
.hero p { font-size:16px; opacity:0.85; max-width:600px; margin:0 auto 24px; }

.btn { display:inline-block; background:#c9a96e; color:#fff; padding:12px 28px; border-radius:6px; text-decoration:none; font-weight:600; }
.btn:hover { background:#b8965a; }

.grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:24px; }

.cat-cards { display:grid; grid-template-columns:repeat(4, 1fr); gap:20px; }
.cat-card { background:#fff; border-radius:8px; padding:32px 16px; text-align:center; text-decoration:none; color:#2a2a28; box-shadow:0 2px 8px rgba(0,0,0,0.06); transition:transform 0.2s; }
.cat-card:hover { transform:translateY(-4px); }
.cat-icon { font-size:40px; margin-bottom:12px; }
.cat-label { font-weight:600; font-size:16px; }

.product-detail { display:grid; grid-template-columns:1fr 1fr; gap:32px; align-items:start; }
.main-img img { width:100%; border-radius:8px; border:1px solid #ece5d8; }
.thumbs { display:flex; gap:8px; margin-top:12px; flex-wrap:wrap; }
.thumbs img { width:60px; height:60px; object-fit:cover; border-radius:4px; border:1px solid #ddd; cursor:pointer; }
.thumbs img:hover { border-color:#c9a96e; }

.specs { list-style:none; margin:16px 0; }
.specs li { padding:6px 0; border-bottom:1px solid #f0f0f0; font-size:14px; }
.specs li b { display:inline-block; min-width:100px; color:#666; }

.condition-note { background:#fff8e1; border-left:4px solid #ffc107; padding:12px 16px; border-radius:4px; font-size:14px; }

.footer { background:#2a2a28; color:#fff; padding:32px 0; margin-top:60px; text-align:center; }

/* ===== 产品列表卡片（render.js 专用） ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  display: block;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-decoration: none;
  color: #2a2a28;
  transition: transform 0.2s;
}
.product-card:hover { transform: translateY(-4px); }

.product-card .img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f5f5f5;
}
.product-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card .badge-save {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #d32f2f;
  color: #fff;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 4px;
}

.product-card h3 {
  font-size: 16px;
  margin: 12px 16px 4px;
}
.product-card .sku {
  font-size: 12px;
  color: #999;
  margin: 0 16px 8px;
}
.product-card .price {
  margin: 0 16px 8px;
  color: #c9a96e;
  font-size: 18px;
  font-weight: 700;
}
.product-card .price s {
  color: #999;
  font-size: 13px;
  font-weight: 400;
  margin-left: 6px;
}
.product-card .meta {
  font-size: 12px;
  color: #888;
  margin: 0 16px 16px;
}

/* ===== 移动端适配 ===== */
@media (max-width:768px) {
  .container { padding:0 16px; }

  .header { padding:12px 0; }
  .header .container { flex-direction:column; gap:10px; }
  .logo a { font-size:18px; }
  .nav { display:flex; flex-wrap:wrap; justify-content:center; gap:6px; }
  .nav a { margin:0; font-size:13px; }

  .hero { padding:40px 0; }
  .hero h1 { font-size:24px; line-height:1.3; }
  .hero p { font-size:14px; padding:0 8px; }
  .btn { padding:10px 20px; font-size:14px; }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .product-card .img-wrap { height: 140px; }
  .product-card h3 { font-size:14px; margin:10px 12px 4px; }
  .product-card .sku { font-size:11px; margin:0 12px 6px; }
  .product-card .price { font-size:16px; margin:0 12px 6px; }
  .product-card .price s { font-size:12px; }
  .product-card .meta { font-size:11px; margin:0 12px 10px; }

  .cat-cards { grid-template-columns:repeat(2, 1fr); gap:12px; }
  .cat-card { padding:20px 10px; }
  .cat-icon { font-size:32px; margin-bottom:8px; }
  .cat-label { font-size:14px; }

  .product-detail { grid-template-columns:1fr; gap:20px; }
  .thumbs img { width:50px; height:50px; }
  .specs li { font-size:13px; }
  .specs li b { min-width:80px; }

  .footer { padding:24px 0; margin-top:40px; font-size:13px; }
  .footer div { padding:0 8px; }
}

@media (max-width:480px) {
  .hero h1 { font-size:20px; }
  .hero p { font-size:13px; }
  .product-grid { gap: 10px; }
  .product-card .img-wrap { height: 120px; }
  .product-card h3 { font-size:13px; margin:8px 10px 3px; }
  .product-card .price { font-size:15px; margin:0 10px 5px; }
  .product-card .meta { font-size:10px; margin:0 10px 8px; }
  .nav a { font-size:12px; margin:0 4px; }
}