* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif; background: #faf9f7; color: #333; line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 顶部联系栏 */
.top-bar { background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%); padding: 8px 0; }
.top-bar .contact-info { color: #fff; font-size: 14px; }
.top-bar .contact-info strong { color: #f5c518; }

/* Navbar */
.navbar { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 100; }
.navbar-content { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { font-size: 24px; font-weight: 800; color: #1a1a2e; text-decoration: none; letter-spacing: 1px; }
.logo:hover { color: #e94560; }
.nav-links a { color: #555; text-decoration: none; margin-left: 32px; font-size: 15px; transition: color 0.2s; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: #e94560; }

/* Hero */
.hero { 
    position: relative; 
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 500"><defs><linearGradient id="g1" x1="0%25" y1="0%25" x2="100%25" y2="100%25"><stop offset="0%25" stop-color="%23ff6b6b"/><stop offset="100%25" stop-color="%23ee5a5a"/></linearGradient></defs><rect fill="url(%23g1)" width="1200" height="500"/><circle cx="200" cy="150" r="300" fill="%23fff" opacity="0.1"/><circle cx="1000" cy="400" r="200" fill="%23fff" opacity="0.1"/></svg>') center/cover; 
    padding: 100px 0;
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(238,90,90,0.92) 0%, rgba(255,107,107,0.85) 100%);
}
.hero-content { 
    position: relative; 
    z-index: 1; 
    text-align: center; 
}
.hero h1 { 
    font-size: 52px; 
    color: #fff; 
    margin-bottom: 16px; 
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero p { 
    font-size: 20px; 
    color: rgba(255,255,255,0.8); 
    margin-bottom: 28px;
}
.hero-tags { display: flex; gap: 20px; justify-content: center; }
.hero-tags span { 
    padding: 8px 20px; 
    background: rgba(255,255,255,0.1); 
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 25px; 
    color: #fff; 
    font-size: 14px;
}

/* Categories */
.categories { padding: 32px 0 0; }
.category-tabs { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.category-tab { padding: 10px 24px; background: #fff; border-radius: 25px; color: #555; text-decoration: none; font-size: 14px; border: 1px solid #e8e6e3; transition: all 0.25s; font-weight: 500; }
.category-tab:hover { border-color: #e94560; color: #e94560; transform: translateY(-2px); }
.category-tab.active { background: linear-gradient(135deg, #e94560 0%, #c73e54 100%); color: #fff; border-color: #e94560; }

/* Grid */
.furniture-grid { padding: 40px 0 60px; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 32px; color: #1a1a2e; margin-bottom: 8px; font-weight: 700; }
.section-header p { font-size: 16px; color: #888; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.empty-msg { text-align: center; color: #999; padding: 80px 0; grid-column: 1 / -1; font-size: 16px; }

/* Card */
.card { 
    background: #fff; 
    border-radius: 16px; 
    overflow: hidden; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.06); 
    transition: transform 0.3s, box-shadow 0.3s; 
    position: relative;
}
.card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 12px 40px rgba(0,0,0,0.12); 
}
.card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #4caf50 0%, #43a047 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    z-index: 10;
}
.card-img { width: 100%; height: 240px; overflow: hidden; background: linear-gradient(135deg, #f5f5f5 0%, #eee 100%); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card:hover .card-img img { transform: scale(1.08); }
.card-body { padding: 20px; }
.card-category { display: inline-block; padding: 4px 14px; background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%); color: #e94560; border-radius: 15px; font-size: 12px; font-weight: 600; margin-bottom: 10px; }
.card-title { font-size: 18px; font-weight: 700; color: #1a1a2e; margin-bottom: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-desc { font-size: 14px; color: #777; margin-bottom: 16px; line-height: 1.6; height: 44px; overflow: hidden; }
.card-footer { display: flex; align-items: center; justify-content: space-between; }
.card-price { font-size: 24px; font-weight: 800; color: #e94560; }
.card-price span { font-size: 14px; font-weight: 500; }
.card-btn { padding: 10px 20px; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); color: #fff; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 600; transition: all 0.2s; }
.card-btn:hover { background: linear-gradient(135deg, #e94560 0%, #c73e54 100%); transform: scale(1.02); }

/* Contact Banner */
.contact-banner { 
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%); 
    padding: 60px 0;
    border-top: 1px solid #ffe8e8;
}
.contact-content { text-align: center; }
.contact-content h3 { font-size: 28px; color: #1a1a2e; margin-bottom: 8px; font-weight: 700; }
.contact-content p { font-size: 16px; color: #777; margin-bottom: 20px; }
.contact-phone { 
    display: inline-block; 
    padding: 16px 32px; 
    background: linear-gradient(135deg, #e94560 0%, #c73e54 100%);
    color: #fff; 
    border-radius: 12px; 
    font-size: 20px; 
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(233,69,96,0.3);
}

/* Footer */
.footer { background: #1a1a2e; padding: 32px 0; text-align: center; }
.footer p { color: rgba(255,255,255,0.7); font-size: 14px; }
.footer-contact { margin-top: 8px; color: rgba(255,255,255,0.5) !important; font-size: 13px !important; }
.footer-icp { margin-top: 10px; font-size: 12px; color: rgba(255,255,255,0.55); }
.footer-icp a { color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.2s; }
.footer-icp a:hover { color: rgba(255,255,255,0.85); }

/* Detail */
.detail-section { padding: 40px 0 80px; }
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }

/* Gallery */
.detail-gallery { position: relative; }
.gallery-main { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.08); position: relative; }
.gallery-main img { width: 100%; height: 500px; object-fit: cover; display: block; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.4); color: #fff; border: none; width: 44px; height: 44px; border-radius: 50%; font-size: 18px; cursor: pointer; transition: background 0.2s; z-index: 5; display: flex; align-items: center; justify-content: center; }
.gallery-nav:hover { background: rgba(0,0,0,0.7); }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-counter { position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,0.5); color: #fff; padding: 4px 12px; border-radius: 12px; font-size: 12px; z-index: 5; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs::-webkit-scrollbar { height: 4px; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }
.thumb-item { flex-shrink: 0; width: 72px; height: 54px; border-radius: 8px; overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: border-color 0.2s, opacity 0.2s; opacity: 0.7; }
.thumb-item:hover { opacity: 1; }
.thumb-item.active { border-color: #e94560; opacity: 1; }
.thumb-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-info h1 { font-size: 32px; margin: 16px 0; color: #1a1a2e; font-weight: 700; }
.detail-price { font-size: 36px; font-weight: 800; color: #e94560; margin-bottom: 24px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.meta-item { display: flex; align-items: center; gap: 8px; }
.meta-label { font-size: 13px; color: #999; }
.meta-value { font-size: 14px; color: #555; background: #f5f5f5; padding: 6px 14px; border-radius: 6px; }
.detail-desc h3 { font-size: 18px; color: #1a1a2e; margin-bottom: 12px; font-weight: 700; }
.detail-desc p { font-size: 15px; color: #666; line-height: 1.9; margin-bottom: 32px; }
.back-btn { display: inline-block; padding: 12px 28px; background: #f5f5f5; color: #555; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 600; transition: all 0.2s; }
.back-btn:hover { background: #1a1a2e; color: #fff; }

/* Detail Contact */
.detail-contact { 
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%); 
    padding: 24px; 
    border-radius: 12px; 
    margin-bottom: 24px;
    text-align: center;
    border: 1px solid #ffe8e8;
}
.detail-contact p { color: #777; margin-bottom: 12px; font-size: 14px; }
.contact-btn { 
    display: inline-block; 
    padding: 14px 28px; 
    background: linear-gradient(135deg, #e94560 0%, #c73e54 100%);
    color: #fff; 
    border-radius: 8px; 
    text-decoration: none; 
    font-size: 16px; 
    font-weight: 700;
    transition: all 0.2s;
}
.contact-btn:hover { 
    transform: scale(1.02); 
    box-shadow: 0 4px 20px rgba(233,69,96,0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; }
    .hero-tags { flex-direction: column; align-items: center; gap: 10px; }
    .detail-layout { grid-template-columns: 1fr; gap: 32px; }
    .gallery-main img { height: 300px; }
    .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
    .card-img { height: 160px; }
    .card-body { padding: 12px; }
    .card-title { font-size: 15px; }
    .card-price { font-size: 18px; }
    .contact-phone { font-size: 16px; padding: 12px 20px; }
}
