﻿* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: system-ui, -apple-system, 'Inter', sans-serif; background: #fefcf9; color: #1f2937; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* Stripes */
.top-stripes { display: flex; height: 4px; width: 100%; }
.stripe1 { background: #f86700; flex: 1; }
.stripe2 { background: #f99b00; flex: 1; }
.stripe3 { background: #00a4d8; flex: 1; }
.stripe4 { background: #007abf; flex: 1; }
.stripe5 { background: #034760; flex: 1; }

/* Header */
.site-header { background: white; border-bottom: 1px solid #f0ede8; position: sticky; top: 0; z-index: 1000; }
.header-main { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; gap: 12px; }
.logo-area { display: flex; flex-direction: column; }
.logo-area .logo-image { height: 42px; width: auto; display: block; object-fit: contain; }
.desktop-nav { display: flex; gap: 1.5rem; }
.nav-dropdown { position: relative; }
.nav-dropdown > span { font-weight: 600; font-size: 0.85rem; cursor: pointer; padding: 8px 0; display: inline-block; }
.dropdown-menu { position: absolute; top: 32px; left: -20px; background: white; border-radius: 20px; padding: 12px 0; min-width: 180px; opacity: 0; visibility: hidden; transition: 0.2s; border: 1px solid #f0e7df; z-index: 200; }
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; }
.dropdown-menu a { display: block; padding: 8px 24px; text-decoration: none; color: #3a352c; font-size: 0.8rem; }
.user-actions { display: flex; gap: 10px; align-items: center; }
.search-icon { background: #f5f2ef; border-radius: 40px; padding: 5px 12px; display: flex; gap: 6px; }
.search-icon input { border: none; background: transparent; outline: none; width: 130px; }
.user-btn { background: transparent; border: 1px solid #e3dbd0; padding: 5px 14px; border-radius: 40px; cursor: pointer; }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; }

/* 移动端分类折叠 */
.mobile-category-collapse { display: none; background: white; border-bottom: 1px solid #f0e7df; position: sticky; top: 60px; z-index: 105; }
.collapse-trigger { display: flex; justify-content: space-between; padding: 12px 20px; cursor: pointer; font-weight: 600; }
.collapse-trigger .arrow-icon { transition: transform 0.25s; }
.collapse-trigger.open .arrow-icon { transform: rotate(180deg); }
.collapse-content { max-height: 0; overflow: hidden; transition: max-height 0.35s; background: white; }
.collapse-content.open { max-height: 500px; }
.cat-section-title { font-size: 0.7rem; font-weight: 600; color: #e05a1c; margin: 8px 20px 4px; }
.cat-chip-group { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 12px; }
.cat-chip { background: #f4f0ea; border-radius: 40px; padding: 6px 16px; font-size: 0.75rem; cursor: pointer; }

/* 筛选栏 */
.activity-bar { background: white; border-bottom: 1px solid #f0e7df; padding: 10px 0; position: sticky; top: 68px; z-index: 100; }
.filter-row { display: flex; gap: 10px; overflow-x: auto; padding: 4px 20px; }
.filter-pill { background: #f4f0ea; border-radius: 40px; padding: 6px 18px; font-size: 0.8rem; cursor: pointer; border: none; white-space: nowrap; }
.filter-pill.active { background: #1e293b; color: white; }

/* 文章区域 */
.section-title { margin: 24px 0 16px; font-size: 1.2rem; }
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-bottom: 40px; }
.article-card { display: flex; gap: 16px; background: white; border-radius: 20px; padding: 16px; border: 1px solid #f1ebe5; }
.article-img { width: 100px; height: 100px; object-fit: cover; border-radius: 12px; }
.article-info h4 { font-size: 1rem; margin-bottom: 6px; }
.article-info p { font-size: 0.75rem; color: #6b5e4f; }
.article-meta { display: flex; gap: 12px; margin-top: 8px; font-size: 0.7rem; color: #9c8d7a; }

/* 产品网格 */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin: 20px 0; }
.product-card { background: white; border-radius: 24px; overflow: hidden; border: 1px solid #f1ebe5; transition: 0.2s; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 15px 25px -12px rgba(0,0,0,0.1); }
.card-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card-body { padding: 16px; }
.card-title { font-weight: 700; font-size: 1rem; margin-bottom: 6px; }
.card-desc { font-size: 0.75rem; color: #6b5e4f; margin: 6px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-tags { display: flex; gap: 6px; margin: 6px 0; }
.product-tags span { background: #f4f0ea; padding: 2px 10px; border-radius: 20px; font-size: 0.65rem; }
.price { font-weight: 700; font-size: 1.1rem; color: #dc5a1a; margin: 8px 0; }
.card-footer { display: flex; justify-content: space-between; align-items: center; }
.save-btn { background: none; border: 1px solid #e2d8cf; border-radius: 40px; padding: 5px 14px; font-size: 0.7rem; cursor: pointer; }
.save-btn.saved { background: #e8f5e9; border-color: #4caf50; color: #2e7d32; }
.check-btn { background: #f15a24; border: none; color: white; border-radius: 40px; padding: 5px 16px; font-size: 0.7rem; text-decoration: none; }
.saves-stat { font-size: 0.65rem; color: #9c8d7a; margin-top: 8px; }
.loading-trigger { text-align: center; padding: 30px; color: #bfaa99; }
.hidden { display: none; }

/* 侧边栏 */
.sidebar-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); z-index: 1999; opacity: 0; visibility: hidden; transition: 0.2s; }
.sidebar-overlay.active { opacity: 1; visibility: visible; }
.mobile-sidebar { position: fixed; top: 0; left: -100%; width: 85%; max-width: 320px; height: 100vh; background: white; z-index: 2000; transition: left 0.3s; padding: 20px 0; overflow-y: auto; }
.mobile-sidebar.open { left: 0; }
.mobile-nav-section { padding: 12px 20px; border-bottom: 1px solid #f0e7df; }
.mobile-nav-section h4 { font-size: 0.9rem; color: #e55a1e; margin-bottom: 12px; }
.mobile-nav-section a { display: block; padding: 8px 0; text-decoration: none; color: #3a352c; }
.close-sidebar { text-align: right; padding: 12px 20px; font-size: 1.4rem; cursor: pointer; }

/* Footer */
footer { border-top: 2px solid #f4ede6; margin-top: 48px; padding: 32px 0; background: white; }
.footer-flex { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.social-links a, .footer-links a { margin-right: 20px; text-decoration: none; color: #6b5c4b; font-size: 0.8rem; }
.aff-note { text-align: center; margin-top: 24px; font-size: 0.7rem; color: #af9e8c; }

/* 响应式 */
@media (max-width: 880px) {
    .desktop-nav { display: none !important; }
    .mobile-menu-btn { display: block; }
    .mobile-category-collapse { display: block; }
    .activity-bar { top: 106px; }
}