/* ----- 全局重置 & 基础 ----- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif; background-color: #faf9f7; color: #1e1e1e; line-height: 1.5; }
.firbeauty-blog-wrapper { max-width: 1440px; margin: 0 auto; padding: 0 20px; }

/* ----- 头部 ----- */
.blog-header { padding: 20px 0 12px; border-bottom: 1px solid #e6e4e0; }
.blog-header .top-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.blog-header h1 { font-size: 1.8rem; font-weight: 500; letter-spacing: -0.3px; }
.blog-header h1 a { text-decoration: none; color: #1e1e1e; cursor: pointer; }
.blog-header .header-links { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.blog-header .header-links a { color: #1e1e1e; text-decoration: none; font-size: 0.95rem; font-weight: 450; border-bottom: 1px solid transparent; transition: border 0.2s; }
.blog-header .header-links a:hover { border-bottom-color: #1e1e1e; }
.search-row { margin-top: 12px; width: 100%; }
.search-bar { display: flex; align-items: center; background: white; border: 1px solid #d2cec8; border-radius: 60px; padding: 8px 18px; width: 100%; transition: 0.2s; }
.search-bar:focus-within { border-color: #1e1e1e; box-shadow: 0 0 0 2px rgba(0,0,0,0.05); }
.search-bar svg { width: 18px; height: 18px; color: #5e5a54; flex-shrink: 0; }
.search-bar input { border: none; background: transparent; padding: 6px 10px 6px 6px; font-size: 0.95rem; width: 100%; outline: none; font-family: inherit; }
.search-bar input::placeholder { color: #8a8680; }

/* ----- 分类导航 ----- */
.category-pills { display: flex; flex-wrap: wrap; gap: 10px 16px; padding: 24px 0 20px; border-bottom: 1px solid #e6e4e0; margin-bottom: 32px; }
.category-pills a { background: white; padding: 8px 22px; border-radius: 60px; text-decoration: none; font-size: 0.9rem; font-weight: 460; color: #1e1e1e; border: 1px solid #d2cec8; transition: all 0.15s; background-color: #ffffff; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.category-pills a:hover { border-color: #1e1e1e; background: #f2f0ed; }
.category-pills a.active { background: #1e1e1e; color: white; border-color: #1e1e1e; }
.category-pills .count-badge { background: rgba(0,0,0,0.06); border-radius: 40px; padding: 0 10px; font-size: 0.7rem; font-weight: 500; line-height: 1.8; color: #3d3a35; transition: 0.15s; }
.category-pills a.active .count-badge { background: rgba(255,255,255,0.2); color: white; }

/* ----- 精选横幅 ----- */
.hero-card { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; background: white; border-radius: 24px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.02); margin-bottom: 48px; border: 1px solid #ece9e4; cursor: pointer; }
.hero-card .hero-image { background: #eae7e1; min-height: 220px; background-size: cover; background-position: center; }
.hero-card .hero-content { padding: 32px 32px 32px 0; display: flex; flex-direction: column; gap: 12px; }
.hero-content .label-tag { background: #eae7e1; padding: 4px 14px; border-radius: 30px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.3px; text-transform: uppercase; color: #3d3a35; display: inline-block; width: fit-content; }
.hero-content h2 { font-size: 1.9rem; font-weight: 500; line-height: 1.2; letter-spacing: -0.3px; }
.hero-content p { color: #4d4943; line-height: 1.5; font-size: 0.98rem; }
.hero-content .read-more { margin-top: 8px; background: #1e1e1e; color: white; padding: 10px 28px; border-radius: 60px; border: none; font-weight: 500; font-size: 0.9rem; cursor: pointer; width: fit-content; }

/* ----- 文章网格 ----- */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; margin: 36px 0 48px; }
.article-card { background: white; border-radius: 20px; overflow: hidden; border: 1px solid #efebe6; transition: 0.2s; box-shadow: 0 2px 6px rgba(0,0,0,0.01); display: flex; flex-direction: column; cursor: pointer; }
.article-card:hover { border-color: #cbc4bb; box-shadow: 0 8px 18px rgba(0,0,0,0.03); }
.article-card .card-image { background: #eae7e1; height: 180px; background-size: cover; background-position: center; }
.article-card .card-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.card-body .category-badge { font-size: 0.7rem; font-weight: 600; color: #5e5a54; text-transform: uppercase; letter-spacing: 0.4px; }
.card-body h3 { font-size: 1.15rem; font-weight: 500; line-height: 1.3; margin: 4px 0 4px; }
.card-body .date { font-size: 0.8rem; color: #8a8680; margin-top: 6px; }
.card-body .read-link { margin-top: 12px; color: #1e1e1e; font-weight: 500; font-size: 0.9rem; text-decoration: none; border-bottom: 1px solid #d2cec8; width: fit-content; padding-bottom: 2px; cursor: pointer; }
.card-body .read-link:hover { border-bottom-color: #1e1e1e; }

/* ----- 分页 ----- */
.pagination { display: flex; justify-content: center; gap: 6px; padding: 30px 0 50px; flex-wrap: wrap; }
.pagination a { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; border-radius: 40px; padding: 0 12px; background: transparent; border: 1px solid #d2cec8; text-decoration: none; color: #1e1e1e; font-weight: 450; transition: 0.15s; cursor: pointer; }
.pagination a:hover { background: #f2f0ed; border-color: #1e1e1e; }
.pagination a.active-page { background: #1e1e1e; color: white; border-color: #1e1e1e; pointer-events: none; }

/* ----- 文章详情 ----- */
.article-detail-wrapper { max-width: 1400px; margin: 0 auto 40px; padding: 20px 0; display: none; }
.detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.articleTypography { background: white; border-radius: 24px; padding: 40px 48px; box-shadow: 0 4px 20px rgba(0,0,0,0.02); border: 1px solid #ece9e4; }
.articleTypography .back-row { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; font-weight: 450; color: #1e1e1e; cursor: pointer; width: fit-content; border-bottom: 1px solid transparent; transition: 0.15s; }
.articleTypography .back-row:hover { border-bottom-color: #1e1e1e; }
.articleTypography .back-row svg { width: 18px; height: 18px; }
.articleTypography h1 { font-size: 2.2rem; font-weight: 500; letter-spacing: -0.3px; line-height: 1.2; margin-bottom: 12px; }
.articleTypography .meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 0.9rem; color: #757575; margin-bottom: 24px; border-bottom: 1px solid #e6e4e0; padding-bottom: 16px; }
.articleTypography .meta-line .category-tag { background: #eae7e1; padding: 2px 14px; border-radius: 30px; font-size: 0.75rem; font-weight: 600; color: #3d3a35; }
.articleTypography .meta-line .stat-separator { color: #d2cec8; }
.articleTypography .featured-image { width: 100%; border-radius: 16px; margin: 16px 0 28px; background: #eae7e1; aspect-ratio: 16/9; background-size: cover; background-position: center; }
.articleTypography .content-body { font-size: 1rem; line-height: 1.7; color: #1e1e1e; }
.articleTypography .content-body h2 { font-size: 1.6rem; font-weight: 500; margin: 32px 0 12px; letter-spacing: -0.2px; }
.articleTypography .content-body h3 { font-size: 1.2rem; font-weight: 500; margin: 24px 0 8px; }
.articleTypography .content-body p { margin-bottom: 16px; }
.articleTypography .content-body ul, .articleTypography .content-body ol { margin: 12px 0 20px 24px; }
.articleTypography .content-body li { margin-bottom: 8px; }
.articleTypography .footer-note { margin-top: 32px; padding-top: 20px; border-top: 1px solid #e6e4e0; font-size: 0.95rem; }

/* ----- 侧边栏 ----- */
.detail-sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-card { background: white; border-radius: 16px; padding: 20px 22px; border: 1px solid #ece9e4; box-shadow: 0 2px 8px rgba(0,0,0,0.02); }
.sidebar-card h3 { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #9ca3af; margin-bottom: 14px; }
.hot-item { padding: 8px 0; border-bottom: 1px solid #f0eeea; }
.hot-item:last-child { border-bottom: none; }
.hot-item .hot-category { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #d4a373; margin-bottom: 2px; }
.hot-item .hot-title { font-size: 0.9rem; font-weight: 600; color: #1e1e1e; line-height: 1.3; transition: color 0.15s; }
.hot-item .hot-title:hover { color: #d4a373; }
.hot-item a { text-decoration: none; color: inherit; }
.view-all-link { display: block; margin-top: 14px; text-align: center; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #d4a373; text-decoration: none; transition: color 0.15s; }
.view-all-link:hover { color: #b8895e; text-decoration: underline; }
.product-item { display: flex; gap: 14px; padding: 6px 0; align-items: center; border-bottom: 1px solid #f0eeea; }
.product-item:last-child { border-bottom: none; }
.product-item .product-img { width: 56px; height: 56px; background: #f0eeea; border-radius: 12px; flex-shrink: 0; overflow: hidden; background-size: cover; background-position: center; }
.product-item .product-info h4 { font-size: 0.85rem; font-weight: 600; color: #1e1e1e; }
.product-item .product-info span { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #9ca3af; }
.product-item a { text-decoration: none; color: inherit; }
.product-item a:hover h4 { color: #d4a373; }
.sidebar-cta { background: #f5f0ea; border-radius: 16px; padding: 24px 20px; text-align: center; position: relative; overflow: hidden; }
.sidebar-cta h3 { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; color: #1e1e1e; margin-bottom: 4px; }
.sidebar-cta p { font-size: 0.85rem; color: #4d4943; margin-bottom: 16px; }
.sidebar-cta .cta-btn { display: block; background: #1e1e1e; color: white; font-weight: 700; padding: 12px 0; border-radius: 12px; text-decoration: none; font-size: 0.85rem; transition: background 0.15s; }
.sidebar-cta .cta-btn:hover { background: #3d3a35; }
.sidebar-cta .cta-deco { position: absolute; top: 12px; right: 16px; font-size: 3rem; font-weight: 900; opacity: 0.08; transform: rotate(10deg); pointer-events: none; }

/* ----- 响应式 ----- */
@media (max-width: 900px) {
    .hero-card { grid-template-columns: 1fr; }
    .hero-card .hero-content { padding: 24px; }
    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-layout { grid-template-columns: 1fr; }
    .articleTypography { padding: 28px 20px; }
    .articleTypography h1 { font-size: 1.8rem; }
}
@media (max-width: 640px) {
    .blog-header .top-row { flex-direction: column; align-items: flex-start; }
    .article-grid { grid-template-columns: 1fr; gap: 24px; }
    .category-pills { gap: 8px 10px; }
    .articleTypography { padding: 20px 16px; }
    .articleTypography .meta-line { gap: 6px 14px; font-size: 0.8rem; }
    .detail-sidebar { padding: 0 4px; }
}