/* ============ SOHO 家具 - 全局样式 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --dark: #1a1a1a;
  --gray: #666;
  --light: #f5f5f3;
  --accent: #b8935e;
  --border: #e5e2dc;
}
body { font-family: -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif; color: var(--dark); background: #fff; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- 顶部信息条 --- */
.topbar { background: var(--dark); color: #fff; font-size: 13px; }
.topbar .container { display: flex; justify-content: center; gap: 36px; padding: 8px 20px; flex-wrap: wrap; }
.topbar span { display: flex; align-items: center; gap: 6px; opacity: .92; }

/* --- 头部 --- */
header.site { border-bottom: 1px solid var(--border); position: sticky; top: 0; background: #fff; z-index: 100; }
header.site .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 24px; font-weight: 800; letter-spacing: 1px; }
.logo em { font-style: normal; color: var(--accent); }
nav.main { display: flex; gap: 28px; }
nav.main a { font-size: 15px; color: var(--gray); transition: color .2s; }
nav.main a:hover, nav.main a.active { color: var(--dark); }
.head-actions { display: flex; align-items: center; gap: 16px; }
.lang-toggle { border: 1px solid var(--border); border-radius: 20px; padding: 5px 14px; font-size: 13px; cursor: pointer; background: #fff; transition: all .2s; }
.lang-toggle:hover { background: var(--dark); color: #fff; }

/* --- 英雄区 --- */
.hero { padding: 56px 0 40px; text-align: center; }
.hero h1 { font-size: 40px; font-weight: 800; letter-spacing: 2px; margin-bottom: 14px; }
.hero p { color: var(--gray); font-size: 17px; max-width: 560px; margin: 0 auto; line-height: 1.7; }

/* --- 分类瓷砖（参考 meble） --- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; padding: 20px 0 48px; }
.tile { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; background: var(--light); display: block; transition: transform .3s, box-shadow .3s; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.12); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile .tile-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; background: linear-gradient(transparent, rgba(0,0,0,.68)); color: #fff; }
.tile .tile-body h3 { font-size: 20px; margin-bottom: 4px; }
.tile .tile-body p { font-size: 13px; opacity: .85; }
.tile .tile-cta { font-size: 13px; font-weight: 600; margin-top: 8px; display: inline-block; border-bottom: 1px solid #fff; padding-bottom: 2px; }
.tile.placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-size: 52px; background: var(--light); }
.tile.placeholder .tile-body { position: static; background: none; color: var(--dark); text-align: center; padding: 0 16px; }

/* --- 商品区 --- */
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin: 40px 0 20px; }
.section-head h2 { font-size: 26px; font-weight: 800; }
.section-head a { color: var(--gray); font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 20px; padding-bottom: 48px; }
.card { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,.1); }
.card .img-wrap { aspect-ratio: 1; background: var(--light); overflow: hidden; }
.card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .img-wrap img { transform: scale(1.04); }
.card .card-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.card h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; line-height: 1.4; }
.card .price { color: var(--accent); font-weight: 700; font-size: 17px; margin-top: auto; }
.card .price s { color: #aaa; font-weight: 400; font-size: 13px; margin-left: 8px; }
.badge { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 10px; margin-bottom: 8px; width: fit-content; }
.badge.in { background: #e7f5ec; color: #1c7c43; }
.badge.low { background: #fdf1e2; color: #b26a00; }
.badge.out { background: #fdeaea; color: #b32d2d; }

/* --- 联系 CTA 条 --- */
.cta-band { background: var(--dark); color: #fff; text-align: center; padding: 48px 20px; margin: 20px 0 0; }
.cta-band h2 { font-size: 28px; margin-bottom: 10px; }
.cta-band p { opacity: .8; margin-bottom: 24px; }
.btn { display: inline-block; background: var(--accent); color: #fff; padding: 13px 36px; border-radius: 30px; font-size: 15px; font-weight: 600; transition: opacity .2s; border: none; cursor: pointer; }
.btn:hover { opacity: .88; }
.btn.ghost { background: transparent; border: 1px solid #fff; margin-left: 12px; }

/* --- 页脚 --- */
footer.site { background: #111; color: #999; padding: 40px 0 28px; font-size: 14px; }
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 28px; }
footer.site h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
footer.site a { display: block; margin-bottom: 8px; transition: color .2s; }
footer.site a:hover { color: #fff; }
footer.site .copy { border-top: 1px solid #222; padding-top: 20px; text-align: center; font-size: 13px; color: #555; }

/* --- 详情页 --- */
.crumb { padding: 20px 0; font-size: 13px; color: var(--gray); }
.detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; padding-bottom: 56px; }
.detail .main-img { border-radius: 12px; overflow: hidden; background: var(--light); aspect-ratio: 1; }
.detail .main-img img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 10px; }
.thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; }
.thumbs img.active { border-color: var(--dark); }
.detail h1 { font-size: 30px; margin: 8px 0 14px; }
.detail .price-big { font-size: 28px; color: var(--accent); font-weight: 800; margin-bottom: 20px; }
.detail .price-big s { font-size: 16px; color: #aaa; font-weight: 400; margin-left: 10px; }
.spec { border-top: 1px solid var(--border); margin: 20px 0; }
.spec div { display: flex; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.spec dt { width: 110px; color: var(--gray); }
.spec dd { flex: 1; }
.detail .desc { color: #444; line-height: 1.8; margin: 20px 0; white-space: pre-line; }
.contact-box { background: var(--light); border-radius: 12px; padding: 22px; margin-top: 24px; }
.contact-box h3 { margin-bottom: 12px; font-size: 17px; }
.contact-box p { font-size: 14px; color: var(--gray); margin-bottom: 8px; }
.contact-box .tel { font-size: 22px; font-weight: 800; color: var(--dark); letter-spacing: 1px; }

.empty { text-align: center; color: var(--gray); padding: 60px 0; grid-column: 1/-1; }

@media (max-width: 860px) {
  nav.main { display: none; }
  .detail { grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { font-size: 28px; }
  footer.site .cols { grid-template-columns: 1fr; }
}
