/* Firbeauty Blog Styles v3.0.0 */

.firbeauty-blog-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== Header ========== */
.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.4rem;
    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: .95rem;
    font-weight: 450;
    border-bottom: 1px solid transparent;
    transition: border .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: #fff;
    border: 1px solid #d2cec8;
    border-radius: 60px;
    padding: 8px 18px;
    width: 100%;
    transition: .2s;
    cursor: text;
}

.search-bar:focus-within {
    border-color: #1e1e1e;
    box-shadow: 0 0 0 2px rgba(0,0,0,.05);
    outline: none;
}

.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: .95rem;
    width: 100%;
    outline: none;
    font-family: inherit;
    cursor: text;
    flex: 1;
    min-width: 0;
    box-shadow: none;
}

.search-bar input::placeholder {
    color: #8a8680;
}

/* ========== Category Pills ========== */
.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: #fff;
    padding: 8px 22px;
    border-radius: 60px;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 460;
    color: #1e1e1e;
    border: 1px solid #d2cec8;
    transition: all .15s;
    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: #fff;
    border-color: #1e1e1e;
}

.category-pills .count-badge {
    background: rgba(0,0,0,.06);
    border-radius: 40px;
    padding: 0 10px;
    font-size: .7rem;
    font-weight: 500;
    line-height: 1.8;
    color: #3d3a35;
    transition: .15s;
}

.category-pills a.active .count-badge {
    background: rgba(255,255,255,.2);
    color: #fff;
}

/* ========== Hero Card ========== */
.hero-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,.02);
    margin-bottom: 48px;
    border: 1px solid #ece9e4;
    cursor: pointer;
}

.hero-card .hero-image {
    background: #eae7e1;
    min-height: 350px;
    background-size: cover;
    background-position: center center; /* ✅ 居中显示 */
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

.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: .75rem;
    font-weight: 600;
    letter-spacing: .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: -.3px;
}

.hero-content p {
    color: #4d4943;
    line-height: 1.5;
    font-size: .98rem;
}

.hero-content .read-more {
    margin-top: 8px;
    background: #1e1e1e;
    color: #fff;
    padding: 10px 28px;
    border-radius: 60px;
    border: none;
    font-weight: 500;
    font-size: .9rem;
    cursor: pointer;
    width: fit-content;
}

/* ========== Article Grid ========== */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 24px;
    margin: 36px 0 48px;
}

.article-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #efebe6;
    transition: .2s;
    box-shadow: 0 2px 6px rgba(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,.03);
}

.article-card .card-image {
    background: #eae7e1;
    height: 280px;
    background-size: cover;
    background-position: center top; /* ✅ 从顶部开始显示，适合人像/产品图 */
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

.article-card .card-body {
    padding: 18px 20px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-body .category-badge {
    font-size: .7rem;
    font-weight: 600;
    color: #5e5a54;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.card-body h3 {
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.3;
    margin: 4px 0 4px;
}

.card-body p {
    font-size: 0.9rem;
    color: #4d4943;
    line-height: 1.4;
}

.card-body .date {
    font-size: .8rem;
    color: #8a8680;
    margin-top: 6px;
}

.card-body .read-link {
    margin-top: 12px;
    color: #1e1e1e;
    font-weight: 500;
    font-size: .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 ========== */
.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: .15s;
    cursor: pointer;
}

.pagination a:hover {
    background: #f2f0ed;
    border-color: #1e1e1e;
}

.pagination a.active-page {
    background: #1e1e1e;
    color: #fff;
    border-color: #1e1e1e;
    pointer-events: none;
}

/* ========== Sidebar ========== */
.blog-sidebar-wrapper {
    margin-top: 20px;
}

.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px 22px;
    border: 1px solid #ece9e4;
    box-shadow: 0 2px 8px rgba(0,0,0,.02);
}

.sidebar-card h3 {
    font-size: .85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #1e1e1e;
    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: .6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #d4a373;
    margin-bottom: 2px;
}

.hot-item .hot-title {
    font-size: .9rem;
    font-weight: 600;
    color: #1e1e1e;
    line-height: 1.3;
    transition: color .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: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #d4a373;
    text-decoration: none;
    transition: color .15s;
}

.view-all-link:hover {
    color: #b8895e;
    text-decoration: underline;
}

/* ========== Product Items ========== */
.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 {
    flex: 1;
    min-width: 0;
}

.product-item .product-info h4 {
    font-size: .85rem;
    font-weight: 600;
    color: #1e1e1e;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.6em;
    line-height: 1.3;
    word-break: break-word;
}

.product-item .product-meta {
    font-size: .8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.product-item .product-meta .price-text,
.product-item .product-meta .price-text * {
    color: #D64000 !important;
    font-weight: 700 !important;
}

.product-item .product-meta .price-text del,
.product-item .product-meta .price-text del * {
    color: #999 !important;
    font-weight: 400 !important;
    font-size: 0.75rem;
}

.product-item .product-meta .sales-text {
    color: #D64000 !important;
    font-weight: 700 !important;
}

.product-item .product-meta .sep {
    color: #ccc;
}

.product-item a {
    text-decoration: none;
    color: inherit;
}

.product-item a:hover h4 {
    color: #d4a373;
}

/* ========== Sidebar CTA ========== */
.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: -.02em;
    color: #1e1e1e;
    margin-bottom: 4px;
}

.sidebar-cta p {
    font-size: .85rem;
    color: #4d4943;
    margin-bottom: 16px;
}

.sidebar-cta .cta-btn {
    display: block;
    background: #1e1e1e;
    color: #fff;
    font-weight: 700;
    padding: 12px 0;
    border-radius: 12px;
    text-decoration: none;
    font-size: .85rem;
    transition: background .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: .08;
    transform: rotate(10deg);
    pointer-events: none;
}

/* ========== Article Detail ========== */
.article-detail-wrapper {
    max-width: 1400px;
    margin: 0 auto 40px;
    padding: 20px 0;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

.articleTypography {
    background: #fff;
    border-radius: 24px;
    padding: 40px 48px;
    box-shadow: 0 4px 20px rgba(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: .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: -.3px;
    line-height: 1.2;
    margin-bottom: 12px;
}

.articleTypography .meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
    font-size: .9rem;
    color: #757575;
    margin-bottom: 24px;
    border-bottom: 1px solid #e6e4e0;
    padding-bottom: 16px;
}

.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 center;
    background-repeat: no-repeat;
    min-height: 300px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.articleTypography .content-body {
    font-size: 1.05rem;
    line-height: 2;
    color: #2d2d2d;
    word-wrap: break-word;
}

.articleTypography .content-body h1 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.6;
    margin: 56px 0 24px;
    color: #1a1a1a;
    border-bottom: 3px solid #eaeaea;
    padding-bottom: 16px;
    letter-spacing: -0.5px;
}

.articleTypography .content-body h2 {
    font-size: 1.7rem;
    font-weight: 600;
    line-height: 1.6;
    margin: 44px 0 20px;
    color: #1a1a1a;
    padding-left: 16px;
    border-left: 4px solid #1e1e1e;
    letter-spacing: -0.3px;
}

.articleTypography .content-body h3 {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.6;
    margin: 36px 0 16px;
    color: #333;
    padding-left: 8px;
    border-left: 3px solid #d0d0d0;
}

.articleTypography .content-body p {
    margin-bottom: 24px;
}

.articleTypography .content-body ul,
.articleTypography .content-body ol {
    margin: 20px 0 24px 28px;
    padding: 0;
}

.articleTypography .content-body ul li,
.articleTypography .content-body ol li {
    margin-bottom: 12px;
    line-height: 2;
}

.articleTypography .content-body ul {
    list-style-type: none;
}

.articleTypography .content-body ul li {
    position: relative;
    padding-left: 20px;
}

.articleTypography .content-body ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: #1e1e1e;
    border-radius: 50%;
}

.articleTypography .content-body ol {
    counter-reset: item;
}

.articleTypography .content-body ol li {
    counter-increment: item;
}

.articleTypography .content-body ol li::marker {
    font-weight: 700;
    color: #1e1e1e;
}

.articleTypography .content-body blockquote {
    margin: 24px 0;
    padding: 20px 24px;
    background: #f8f9fa;
    border-left: 4px solid #1e1e1e;
    border-radius: 0 8px 8px 0;
    color: #555;
    font-style: italic;
}

.articleTypography .content-body code {
    background: #f4f4f4;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #d63384;
    font-family: monospace;
}

.articleTypography .content-body pre {
    background: #1e1e1e;
    color: #e0e0e0;
    padding: 20px 24px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 20px 0;
    line-height: 1.6;
    font-size: 0.9em;
}

.articleTypography .content-body pre code {
    background: none;
    color: inherit;
    padding: 0;
    font-size: inherit;
}

.articleTypography .content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.articleTypography .content-body a {
    color: #1e1e1e;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: all 0.2s;
}

.articleTypography .content-body a:hover {
    color: #d4a373;
    text-decoration-thickness: 2px;
}

.articleTypography .content-body hr {
    margin: 32px 0;
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #d0d0d0, transparent);
}

.articleTypography .footer-note {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #e6e4e0;
    font-size: .95rem;
}

/* ============================================================
   响应式设计 - 完整优化版
   ============================================================ */

/* 平板设备 (1024px - 769px) */
@media (max-width: 1024px) {
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .detail-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .article-card .card-image {
        height: 240px;
    }
    
    .hero-card .hero-image {
        min-height: 300px;
    }
    
    .articleTypography .featured-image {
        min-height: 260px;
    }
    
    .articleTypography {
        padding: 32px 28px;
    }
    
    .articleTypography h1 {
        font-size: 1.8rem;
    }
}

/* 小平板/大手机 (900px - 641px) */
@media (max-width: 900px) {
    .hero-card {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 32px;
    }
    
    .hero-card .hero-image {
        min-height: 220px;
        height: 220px;
    }
    
    .hero-card .hero-content {
        padding: 24px 24px 28px;
    }
    
    .hero-card .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .articleTypography {
        padding: 28px 24px;
    }
    
    .articleTypography h1 {
        font-size: 1.6rem;
    }
    
    .articleTypography .content-body {
        font-size: 1rem;
    }
    
    .articleTypography .content-body h2 {
        font-size: 1.4rem;
    }
    
    .articleTypography .content-body h3 {
        font-size: 1.15rem;
    }
    
    .article-card .card-body h3 {
        font-size: 1.05rem;
    }
    
    .detail-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .sidebar-cta {
        grid-column: 1 / -1;
    }
}

/* ============================================================
   响应式设计 - 完整优化版
   ============================================================ */

/* 平板设备 (1024px - 769px) */
@media (max-width: 1024px) {
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .detail-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .article-card .card-image {
        height: 200px;
    }
    
    .hero-card .hero-image {
        min-height: 260px;
    }
    
    .articleTypography .featured-image {
        min-height: 260px;
    }
    
    .articleTypography {
        padding: 32px 28px;
    }
    
    .articleTypography h1 {
        font-size: 1.8rem;
    }
}

/* 小平板/大手机 (900px - 641px) */
@media (max-width: 900px) {
    .hero-card {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 32px;
    }
    
    .hero-card .hero-image {
        min-height: 220px;
        height: 220px;
    }
    
    .hero-card .hero-content {
        padding: 24px 24px 28px;
    }
    
    .hero-card .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .articleTypography {
        padding: 28px 24px;
    }
    
    .articleTypography h1 {
        font-size: 1.6rem;
    }
    
    .articleTypography .content-body {
        font-size: 1rem;
    }
    
    .articleTypography .content-body h2 {
        font-size: 1.4rem;
    }
    
    .articleTypography .content-body h3 {
        font-size: 1.15rem;
    }
    
    .article-card .card-body h3 {
        font-size: 1.05rem;
    }
    
    .detail-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .sidebar-cta {
        grid-column: 1 / -1;
    }
}

/* ============================================================
   手机 (640px 及以下) - 统一列表页和详情页样式
   ============================================================ */
@media (max-width: 640px) {
    /* ===== 容器统一：列表页和详情页使用相同的容器样式 ===== */
    .firbeauty-blog-wrapper,
    body.single-blog_post .firbeauty-blog-wrapper {
        padding: 0 6px !important; /* ✅ 统一为6px */
        max-width: 100% !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }
    
    /* ===== 文章卡片统一边框和圆角 ===== */
    .article-card,
    .hero-card,
    body.single-blog_post .articleTypography {
        border: 1px solid #ece9e4 !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 20px rgba(0,0,0,.02) !important;
        overflow: hidden !important;
    }
    
    /* ===== 列表页 - 头部 ===== */
    .blog-header {
        padding: 6px 0 8px;
    }
    
    .blog-header h1 {
        font-size: 1.5rem;
        font-weight: 600;
        margin-bottom: 2px;
    }
    
    .blog-header .top-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    /* ===== 导航链接 ===== */
    .blog-header .header-links {
        gap: 14px;
        flex-wrap: wrap;
        margin-top: 2px;
    }
    
    .blog-header .header-links a {
        font-size: 0.95rem;
        font-weight: 500;
        padding: 2px 0;
        border-bottom: 1px solid transparent;
        transition: border .2s;
    }
    
    .blog-header .header-links a:hover {
        border-bottom-color: #1e1e1e;
    }
    
    /* ===== 搜索栏 ===== */
    .search-row {
        margin-top: 8px;
    }
    
    .search-bar {
        padding: 6px 14px;
        border-radius: 30px;
    }
    
    .search-bar input {
        font-size: 0.85rem;
        padding: 4px 8px 4px 4px;
    }
    
    .search-bar svg {
        width: 16px;
        height: 16px;
    }
    
    /* ===== 分类标签 ===== */
    .category-pills {
        gap: 6px 8px;
        padding: 12px 0 14px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .category-pills::-webkit-scrollbar {
        display: none;
    }
    
    .category-pills a {
        padding: 5px 14px;
        font-size: 0.75rem;
        white-space: nowrap;
        flex-shrink: 0;
        border-radius: 30px;
    }
    
    .category-pills .count-badge {
        font-size: 0.65rem;
        padding: 0 8px;
    }
    
    /* ===== 文章网格 ===== */
    .article-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        margin: 16px 0 24px !important;
    }
    
    .article-card {
        border-radius: 12px !important; /* ✅ 统一圆角 */
        overflow: hidden;
    }
    
    .article-card .card-image {
        height: 220px;
        border-radius: 12px 12px 0 0; /* ✅ 顶部圆角匹配 */
    }
    
    .article-card .card-body {
        padding: 14px 14px 18px;
    }
    
    .article-card .card-body h3 {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .article-card .card-body p {
        font-size: 0.85rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    /* ===== 主打卡片 ===== */
    .hero-card {
        border-radius: 12px !important;
        margin-bottom: 20px;
        overflow: hidden;
    }
    
    .hero-card .hero-image {
        min-height: 220px;
        height: 220px;
    }
    
    .hero-card .hero-content {
        padding: 16px 16px 20px;
    }
    
    .hero-card .hero-content h2 {
        font-size: 1.2rem;
        line-height: 1.3;
    }
    
    .hero-card .hero-content p {
        font-size: 0.88rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .hero-content .read-more {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
    
    /* ===== 分页 ===== */
    .pagination {
        gap: 4px !important;
        padding: 16px 0 24px !important;
        flex-wrap: wrap;
    }
    
    .pagination a {
        min-width: 30px !important;
        height: 30px !important;
        font-size: 0.75rem !important;
        padding: 0 6px !important;
        border-radius: 30px !important;
    }
    
    /* ===== 侧边栏统一边框和圆角 ===== */
    .detail-sidebar {
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }
    
    .sidebar-card {
        padding: 14px 14px !important;
        border-radius: 12px !important;
        border: 1px solid #ece9e4 !important;
        box-shadow: 0 2px 8px rgba(0,0,0,.02) !important;
        background: #fff !important;
    }
    
    .sidebar-card h3 {
        font-size: 0.8rem !important;
        margin-bottom: 10px !important;
    }
    
    .hot-item {
        padding: 6px 0 !important;
    }
    
    .hot-item .hot-title {
        font-size: 0.85rem !important;
    }
    
    .view-all-link {
        font-size: 0.6rem !important;
        margin-top: 10px !important;
    }
    
    /* ===== 产品卡片 ===== */
    .product-item {
        padding: 6px 0 !important;
        gap: 10px !important;
    }
    
    .product-item .product-img {
        width: 44px !important;
        height: 44px !important;
        border-radius: 8px !important;
    }
    
    .product-item .product-info h4 {
        font-size: 0.8rem !important;
        -webkit-line-clamp: 2 !important;
    }
    
    .product-item .product-meta {
        font-size: 0.7rem !important;
    }
    
    /* ===== 侧边栏 CTA ===== */
    .sidebar-cta {
        padding: 16px !important;
        border-radius: 12px !important;
        background: #f5f0ea !important;
    }
    
    .sidebar-cta h3 {
        font-size: 1.1rem !important;
    }
    
    .sidebar-cta p {
        font-size: 0.8rem !important;
        margin-bottom: 12px !important;
    }
    
    .sidebar-cta .cta-btn {
        padding: 10px 0 !important;
        font-size: 0.8rem !important;
        border-radius: 8px !important;
    }
    
    .sidebar-cta .cta-deco {
        font-size: 2.5rem !important;
        top: 8px !important;
        right: 12px !important;
    }
    
    /* ===== 目录 ===== */
    .table-of-contents {
        padding: 14px 16px !important;
        margin-bottom: 16px !important;
        border-radius: 12px !important;
        border: 1px solid #e9ecef !important;
        background: #f8f9fa !important;
    }
    
    .table-of-contents .toc-title {
        font-size: 1rem !important;
        padding-bottom: 6px !important;
        margin-bottom: 10px !important;
    }
    
    .table-of-contents .toc-item a {
        font-size: 0.85rem !important;
        padding: 3px 0 3px 10px !important;
    }
    
    /* ===== 脚注 ===== */
    .articleTypography .footer-note {
        margin-top: 20px !important;
        padding-top: 14px !important;
        font-size: 0.85rem !important;
    }
}

/* ============================================================
   【统一】移动端详情页 - 与列表页样式完全一致
   ============================================================ */

@media (max-width: 640px) {
    /* 详情页主容器 - 与列表页一致 */
    body.single-blog_post .firbeauty-blog-wrapper {
        padding: 0 6px !important;
        max-width: 100% !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }

    body.single-blog_post .article-detail-wrapper {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    body.single-blog_post .detail-layout {
        grid-template-columns: 1fr !important;
        gap: 16px !important; /* ✅ 与列表页卡片间距一致 */
        padding: 0 !important;
        width: 100% !important;
    }

    /* 主要内容区域 - 与列表页卡片样式一致 */
    body.single-blog_post .articleTypography {
        padding: 16px 14px !important;
        border-radius: 12px !important;
        border: 1px solid #ece9e4 !important;
        box-shadow: 0 4px 20px rgba(0,0,0,.02) !important;
        width: 100% !important;
        max-width: 100% !important;
        background: #fff !important;
        margin: 0 !important;
    }

    body.single-blog_post .articleTypography h1 {
        font-size: 1.4rem !important;
        line-height: 1.3;
        margin-bottom: 10px !important;
    }

    body.single-blog_post .articleTypography .meta-line {
        gap: 4px 12px !important;
        font-size: 0.75rem !important;
        padding-bottom: 12px !important;
        margin-bottom: 16px !important;
        flex-wrap: wrap;
    }

    /* 特色图片 - 与卡片内边距对齐 */
    body.single-blog_post .articleTypography .featured-image {
        width: calc(100% + 28px) !important;
        max-width: calc(100% + 28px) !important;
        margin: 12px -14px 20px -14px !important;
        border-radius: 12px !important;
        min-height: 200px !important;
    }

    /* 内容区域 - 防止文字截断 */
    body.single-blog_post .articleTypography .content-body {
        font-size: 0.95rem !important;
        line-height: 1.8 !important;
        max-width: 100%;
        overflow-x: hidden;
        word-wrap: break-word !important;
        padding: 0 !important;
    }

    body.single-blog_post .articleTypography .content-body p {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        margin-bottom: 16px !important;
    }

    body.single-blog_post .articleTypography .content-body img {
        max-width: 100% !important;
        height: auto !important;
        border-radius: 8px !important;
        margin: 12px 0 !important;
    }

    body.single-blog_post .articleTypography .content-body pre {
        border-radius: 8px !important;
        margin: 12px 0 !important;
        font-size: 0.8rem !important;
        overflow-x: auto;
        white-space: pre-wrap !important;
        word-wrap: break-word !important;
    }

    body.single-blog_post .articleTypography .content-body table {
        display: block !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        font-size: 0.8rem !important;
        margin: 16px 0 !important;
    }

    body.single-blog_post .articleTypography .content-body ul,
    body.single-blog_post .articleTypography .content-body ol {
        padding-left: 20px !important;
        margin: 12px 0 16px 0 !important;
    }

    body.single-blog_post .articleTypography .content-body ul li,
    body.single-blog_post .articleTypography .content-body ol li {
        margin-bottom: 8px !important;
        line-height: 1.8 !important;
        word-wrap: break-word !important;
    }

    body.single-blog_post .articleTypography .content-body blockquote {
        margin: 16px 0 !important;
        padding: 14px 16px !important;
        word-wrap: break-word !important;
    }

    body.single-blog_post .articleTypography .footer-note {
        margin-top: 20px !important;
        padding-top: 14px !important;
        font-size: 0.85rem !important;
        word-wrap: break-word !important;
    }

    /* 侧边栏 - 与列表页样式一致 */
    body.single-blog_post .detail-sidebar {
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 16px !important;
    }

    body.single-blog_post .sidebar-card {
        padding: 14px 14px !important;
        border-radius: 12px !important;
        border: 1px solid #ece9e4 !important;
        box-shadow: 0 2px 8px rgba(0,0,0,.02) !important;
        background: #fff !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body.single-blog_post .sidebar-card h3 {
        font-size: 0.8rem !important;
        margin-bottom: 10px !important;
    }

    body.single-blog_post .sidebar-cta {
        padding: 16px !important;
        border-radius: 12px !important;
        background: #f5f0ea !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body.single-blog_post .sidebar-cta h3 {
        font-size: 1.1rem !important;
    }

    body.single-blog_post .sidebar-cta p {
        font-size: 0.8rem !important;
        margin-bottom: 12px !important;
    }

    body.single-blog_post .sidebar-cta .cta-btn {
        padding: 10px 0 !important;
        font-size: 0.8rem !important;
        border-radius: 8px !important;
    }

    body.single-blog_post .sidebar-cta .cta-deco {
        font-size: 2.5rem !important;
        top: 8px !important;
        right: 12px !important;
    }

    /* 目录组件 - 与列表页一致 */
    body.single-blog_post .table-of-contents {
        margin: 0 0 16px 0 !important;
        padding: 14px 16px !important;
        border-radius: 12px !important;
        border: 1px solid #e9ecef !important;
        background: #f8f9fa !important;
    }

    body.single-blog_post .table-of-contents .toc-title {
        font-size: 1rem !important;
        padding-bottom: 6px !important;
        margin-bottom: 10px !important;
    }

    body.single-blog_post .table-of-contents .toc-item a {
        font-size: 0.85rem !important;
        padding: 3px 0 3px 10px !important;
        word-wrap: break-word !important;
    }

    /* 返回按钮 */
    body.single-blog_post .articleTypography .back-row {
        margin-bottom: 12px !important;
    }
}

/* 小屏手机 (480px 及以下) */
@media (max-width: 480px) {
    /* 列表页 */
    .firbeauty-blog-wrapper,
    body.single-blog_post .firbeauty-blog-wrapper {
        padding: 0 4px !important; /* ✅ 小屏进一步缩小 */
    }
    
    .blog-header h1 {
        font-size: 1.3rem !important;
    }
    
    .blog-header .header-links a {
        font-size: 0.85rem !important;
    }
    
    .article-card .card-image {
        height: 180px !important;
    }
    
    .hero-card .hero-image {
        min-height: 180px !important;
        height: 180px !important;
    }
    
    .article-card .card-body {
        padding: 12px 12px 16px !important;
    }
    
    .article-card .card-body h3 {
        font-size: 0.9rem !important;
    }
    
    .article-card .card-body p {
        font-size: 0.8rem !important;
    }
    
    .hero-card .hero-content h2 {
        font-size: 1.1rem !important;
    }
    
    .hero-card .hero-content p {
        font-size: 0.82rem !important;
    }
    
    .hero-card .hero-content {
        padding: 14px 14px 18px !important;
    }
    
    .category-pills a {
        font-size: 0.68rem !important;
        padding: 4px 10px !important;
    }
    
    .pagination a {
        min-width: 26px !important;
        height: 26px !important;
        font-size: 0.7rem !important;
    }
    
    .sidebar-card {
        padding: 12px !important;
    }
    
    .product-item .product-img {
        width: 36px !important;
        height: 36px !important;
    }
    
    .product-item .product-info h4 {
        font-size: 0.75rem !important;
    }
    
    .sidebar-cta {
        padding: 14px 12px !important;
    }
    
    .sidebar-cta h3 {
        font-size: 1rem !important;
    }

    /* 详情页 - 小屏进一步优化 */
    body.single-blog_post .articleTypography {
        padding: 14px 12px !important;
        border-radius: 10px !important;
    }

    body.single-blog_post .articleTypography .featured-image {
        width: calc(100% + 24px) !important;
        max-width: calc(100% + 24px) !important;
        margin: 10px -12px 16px -12px !important;
        min-height: 150px !important;
        border-radius: 10px !important;
    }

    body.single-blog_post .articleTypography h1 {
        font-size: 1.2rem !important;
    }

    body.single-blog_post .articleTypography .content-body {
        font-size: 0.9rem !important;
    }

    body.single-blog_post .articleTypography .content-body h1 {
        font-size: 1.4rem !important;
    }

    body.single-blog_post .articleTypography .content-body h2 {
        font-size: 1.15rem !important;
    }

    body.single-blog_post .articleTypography .content-body h3 {
        font-size: 1rem !important;
    }

    body.single-blog_post .table-of-contents {
        padding: 12px 14px !important;
        margin: 0 0 12px 0 !important;
    }

    body.single-blog_post .sidebar-card {
        padding: 12px 12px !important;
    }

    body.single-blog_post .detail-sidebar {
        padding: 0 4px !important;
    }
}

/* ===== 公用 ===== */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 1.1rem;
}

@media (max-width: 640px) {
    .no-posts {
        padding: 40px 16px;
        font-size: 0.95rem;
    }
}