/**
 * 英文站博客中心样式。
 * 文件位置：public/assets/css/blog.css
 *
 * 设计目标：
 * 1. 视觉结构追平中文站新版博客中心。
 * 2. 颜色、圆角、阴影、文字和间距统一映射到英文站 root.css 现有 token。
 * 3. 只服务博客中心与复用同结构的博客列表页，不把新版样式回写进全站 style.css。
 */

/* ========================================
   变量定义
   ======================================== */
:root {
    /* 主题色：直接映射英文站 root.css 变量，避免博客中心形成第二套独立色板。 */
    --blog-primary: var(--v2-primary-500);
    --blog-primary-dark: var(--v2-primary-600);
    --blog-dark: var(--v2-bg-dark);
    --blog-dark-secondary: var(--v2-primary-700);

    /* 分类色：用统一 token 定义首页和博客中心共享语义。 */
    --blog-category-all: var(--v2-primary-500);
    --blog-category-new-products: var(--v2-primary-500);
    --blog-category-company-news: #10B981;
    --blog-category-reviews: #F59E0B;
    --blog-category-tutorials: #8B5CF6;

    /* 文本、背景和边框统一接入站点 token。 */
    --blog-text-primary: var(--v2-text-heading);
    --blog-text-secondary: var(--v2-text-secondary);
    --blog-text-muted: var(--v2-text-body);
    --blog-bg-white: var(--v2-bg-primary);
    --blog-bg-light: var(--v2-bg-functional);
    --blog-border: var(--v2-bg-divider);
    --blog-border-light: var(--v2-bg-divider);

    /* 间距和圆角完全使用现有设计 token。 */
    --blog-gap: var(--v2-spacing-lg);
    --blog-radius: var(--v2-radius-md);
    --blog-radius-sm: var(--v2-radius-sm);
    --blog-radius-xs: var(--v2-radius-xs);
}

/* ============================================
   Blog Index / Share Banner
   说明：
   1. Banner 结构语义统一回到站点的 left-align 体系，和 /products 保持一致；
   2. 这里不再重写居中布局，只负责补 blog 背景遮罩和反白文案；
   3. 只命中 Blog 列表相关 Banner，不影响博客详情页和其它 left-align Banner。
   ============================================ */

.atf-page-heading.atf-align-left[style*='--blog-index-ban-bg'],
.atf-page-heading.atf-align-left[style*='--blog-share-ban-bg'] {
    position: relative;
    overflow: hidden;
}

.atf-page-heading.atf-align-left[style*='--blog-index-ban-bg']::before,
.atf-page-heading.atf-align-left[style*='--blog-share-ban-bg']::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(var(--v2-bg-dark-rgb), 0.24) 0%,
        rgba(var(--v2-bg-dark-rgb), 0.44) 52%,
        rgba(var(--v2-bg-dark-rgb), 0.62) 100%
    );
    z-index: 0;
}

/* Banner 主内容容器继续沿用 left-align 的布局，只补白色文案的层级和边距。 */
.atf-page-heading.atf-align-left[style*='--blog-index-ban-bg'] > .container,
.atf-page-heading.atf-align-left[style*='--blog-share-ban-bg'] > .container {
    position: relative;
    z-index: 1;
    padding-bottom: 10px;
}

.atf-page-heading.atf-align-left[style*='--blog-index-ban-bg'] .atf-page-heading-in,
.atf-page-heading.atf-align-left[style*='--blog-share-ban-bg'] .atf-page-heading-in {
    max-width: 760px;
}

.atf-page-heading.atf-align-left[style*='--blog-index-ban-bg'] .atf-page-heading-title,
.atf-page-heading.atf-align-left[style*='--blog-share-ban-bg'] .atf-page-heading-title {
    color: var(--v2-text-inverse) !important;
    text-shadow: 0 12px 30px rgba(var(--v2-bg-dark-rgb), 0.34);
    max-width: 12ch;
}

.atf-page-heading.atf-align-left[style*='--blog-index-ban-bg'] .atf-page-heading-title,
.atf-page-heading.atf-align-left[style*='--blog-products-ban-bg'] .atf-page-heading-title,
.atf-page-heading.atf-align-left[style*='--blog-news-ban-bg'] .atf-page-heading-title,
.atf-page-heading.atf-align-left[style*='--blog-share-ban-bg'] .atf-page-heading-title {
    font-size: var(--v2-h0-font-size);
    line-height: var(--v2-h0-line-height);
    font-weight: 500;
    letter-spacing: 0;
}

.atf-page-heading.atf-align-left[style*='--blog-index-ban-bg'] .atf-post-label,
.atf-page-heading.atf-align-left[style*='--blog-share-ban-bg'] .atf-post-label {
    display: inline-flex;
    align-items: center;
    gap: 0 var(--v2-spacing-sm);
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--v2-radius-pill);
    background: rgba(var(--v2-bg-dark-rgb), 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.atf-page-heading.atf-align-left[style*='--blog-index-ban-bg'] .atf-post-label > span,
.atf-page-heading.atf-align-left[style*='--blog-index-ban-bg'] .atf-post-label > span a,
.atf-page-heading.atf-align-left[style*='--blog-index-ban-bg'] .atf-post-label > span:last-child,
.atf-page-heading.atf-align-left[style*='--blog-index-ban-bg'] .atf-post-label > span:not(:last-child)::after,
.atf-page-heading.atf-align-left[style*='--blog-share-ban-bg'] .atf-post-label > span,
.atf-page-heading.atf-align-left[style*='--blog-share-ban-bg'] .atf-post-label > span a,
.atf-page-heading.atf-align-left[style*='--blog-share-ban-bg'] .atf-post-label > span:last-child,
.atf-page-heading.atf-align-left[style*='--blog-share-ban-bg'] .atf-post-label > span:not(:last-child)::after {
    color: rgba(255, 255, 255, 0.88) !important;
}

.atf-page-heading.atf-align-left[style*='--blog-index-ban-bg'] .atf-post-label > span a:hover,
.atf-page-heading.atf-align-left[style*='--blog-share-ban-bg'] .atf-post-label > span a:hover {
    color: var(--v2-text-inverse) !important;
}

.atf-page-heading.atf-align-left[style*='--blog-index-ban-bg'] .atf-post-label > span:not(:last-child)::after,
.atf-page-heading.atf-align-left[style*='--blog-share-ban-bg'] .atf-post-label > span:not(:last-child)::after {
    color: rgba(255, 255, 255, 0.68) !important;
}

@media (max-width: 991px) {
    .atf-page-heading.atf-align-left[style*='--blog-index-ban-bg'] > .container,
    .atf-page-heading.atf-align-left[style*='--blog-share-ban-bg'] > .container {
        padding-bottom: 42px;
    }

    .atf-page-heading.atf-align-left[style*='--blog-index-ban-bg'] .atf-page-heading-title,
    .atf-page-heading.atf-align-left[style*='--blog-share-ban-bg'] .atf-page-heading-title {
        max-width: 16ch;
    }
}

@media (max-width: 767px) {
    .atf-page-heading.atf-align-left[style*='--blog-index-ban-bg'] > .container,
    .atf-page-heading.atf-align-left[style*='--blog-share-ban-bg'] > .container {
        padding-bottom: 54px;
    }

    .atf-page-heading.atf-align-left[style*='--blog-index-ban-bg'] .atf-page-heading-title,
    .atf-page-heading.atf-align-left[style*='--blog-share-ban-bg'] .atf-page-heading-title {
        max-width: 100%;
        font-size: 28px;
        line-height: 36px;
        font-weight: 500;
        text-shadow: none;
    }

    .atf-page-heading.atf-align-left[style*='--blog-index-ban-bg'] .atf-post-label,
    .atf-page-heading.atf-align-left[style*='--blog-share-ban-bg'] .atf-post-label {
        min-height: 0;
        padding: 0;
        gap: 0 6px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        font-size: 16px;
        line-height: 24px;
    }

    .atf-page-heading.atf-align-left[style*='--blog-index-ban-bg'] .atf-post-label > span,
    .atf-page-heading.atf-align-left[style*='--blog-index-ban-bg'] .atf-post-label > span a,
    .atf-page-heading.atf-align-left[style*='--blog-share-ban-bg'] .atf-post-label > span,
    .atf-page-heading.atf-align-left[style*='--blog-share-ban-bg'] .atf-post-label > span a {
        color: #FFFFFF !important;
        font-size: 16px;
        line-height: 24px;
        opacity: 1;
    }

    .atf-page-heading.atf-align-left[style*='--blog-index-ban-bg'] .atf-post-label > span:last-child,
    .atf-page-heading.atf-align-left[style*='--blog-index-ban-bg'] .atf-post-label > span:last-child a,
    .atf-page-heading.atf-align-left[style*='--blog-share-ban-bg'] .atf-post-label > span:last-child,
    .atf-page-heading.atf-align-left[style*='--blog-share-ban-bg'] .atf-post-label > span:last-child a {
        color: rgba(255, 255, 255, 0.6) !important;
        font-size: 16px;
        line-height: 24px;
        opacity: 1;
    }

    .atf-page-heading.atf-align-left[style*='--blog-index-ban-bg'] .atf-post-label > span:not(:last-child)::after,
    .atf-page-heading.atf-align-left[style*='--blog-share-ban-bg'] .atf-post-label > span:not(:last-child)::after {
        margin-left: 6px;
        color: #FFFFFF !important;
    }
}

/* ========================================
   Hero Section - 精选文章大图
   ======================================== */
.blog-hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: var(--blog-dark);
}

.blog-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.blog-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: transform 0.7s ease-out;
}

.blog-hero:hover .blog-hero-img {
    transform: scale(1.05);
}

.blog-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        to top,
        rgba(10, 22, 40, 0.95) 0%,
        rgba(10, 22, 40, 0.7) 40%,
        rgba(10, 22, 40, 0.3) 70%,
        transparent 100%
    );
}

.blog-hero .container {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 60px;
}

.blog-hero-content {
    max-width: 700px;
}

.blog-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--blog-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.blog-hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.2;
}

.blog-hero-featured-title {
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.3;
}

.blog-hero-excerpt {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 550px;
}

.blog-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--blog-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--blog-radius-sm);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(85, 198, 239, 0.3);
}

.btn-hero-primary:hover {
    background: var(--blog-primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(85, 198, 239, 0.4);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--blog-radius-sm);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* ========================================
   筛选栏 - 分类 Tabs + 排序
   ======================================== */
.blog-filter-bar {
    background: var(--blog-bg-white);
    border-bottom: 1px solid var(--blog-border);
    padding: 20px 0;
    position: sticky;
    /* 预留站点主导航高度，避免筛选栏吸顶时覆盖导航 */
    top: 80px;
    z-index: 100;
}

.blog-filter-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.blog-category-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.blog-category-tabs::-webkit-scrollbar {
    display: none;
}

.blog-category-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--blog-border);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--blog-text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.blog-category-tab:hover {
    border-color: var(--blog-primary);
    color: var(--blog-primary);
}

.blog-category-tab.active {
    background: var(--blog-primary);
    border-color: var(--blog-primary);
    color: #fff;
}

.blog-category-tab i {
    font-size: 13px;
}

.blog-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.blog-filter-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: space-between;
    flex: 1;
    min-width: 420px;
}

.blog-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.blog-search-label {
    font-size: 14px;
    color: var(--blog-text-secondary);
    margin-bottom: 0;
    white-space: nowrap;
}

.blog-search-group {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--blog-border);
    border-radius: 8px;
    background: var(--blog-bg-white);
    overflow: hidden;
    width: 100%;
    max-width: 360px;
}

.blog-search-input {
    flex: 1;
    min-width: 0;
    width: auto;
    height: 38px;
    border: none;
    padding: 0 12px;
    font-size: 14px;
    color: var(--blog-text-primary);
    background: transparent;
    border-radius: 8px 0 0 8px;
}

.blog-search-input::placeholder {
    color: var(--blog-text-secondary);
}

.blog-search-input:focus {
    outline: none;
}

.blog-search-group:focus-within {
    border-color: var(--blog-primary);
    box-shadow: 0 0 0 2px rgba(85, 198, 239, 0.16);
}

.blog-search-button {
    flex-shrink: 0;
    height: 38px;
    border: none;
    border-left: 1px solid var(--blog-border);
    background: #f9fbff;
    color: var(--blog-primary-dark);
    font-size: 13px;
    font-weight: 600;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0 8px 8px 0;
}

.blog-search-button:hover {
    background: #edf5ff;
    color: var(--blog-primary);
}

.blog-search-button:active {
    transform: translateY(1px);
}

.blog-sort-label {
    font-size: 14px;
    color: var(--blog-text-secondary);
}

.blog-sort-select {
    padding: 8px 32px 8px 12px;
    background: var(--blog-bg-white);
    border: 1px solid var(--blog-border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--blog-text-primary);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.blog-sort-select:focus {
    outline: none;
    border-color: var(--blog-primary);
}

/* ========================================
   文章主区域
   ======================================== */
.blog-main {
    padding: 40px 0 60px;
    background: var(--blog-bg-light);
    min-height: 400px;
}

.blog-stats {
    margin-bottom: 24px;
}

.blog-stats-text {
    font-size: 14px;
    color: var(--blog-text-secondary);
}

.blog-stats-text strong {
    color: var(--blog-text-primary);
    font-weight: 600;
}

/* 标签筛选状态条 */
.blog-filter-status {
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid #dbe8ff;
    border-radius: var(--blog-radius-sm);
    background: #f5f9ff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.blog-filter-status__left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2f3f59;
    font-size: 14px;
}

.blog-filter-status__left strong {
    color: var(--blog-primary-dark);
    font-weight: 600;
}

.blog-filter-status__count {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(58, 151, 255, 0.15);
    color: var(--blog-primary-dark);
    font-size: 12px;
    font-weight: 600;
}

.blog-filter-status__clear {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--blog-primary-dark);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.blog-filter-status__clear:hover {
    color: var(--blog-primary);
}

/* ========================================
   文章网格 - 3列响应式
   ======================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--blog-gap);
}

/* ========================================
   文章卡片
   ======================================== */
.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--blog-bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--blog-border-light);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

/* 卡片图片 */
.blog-card-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

/* 卡片分类标签 */
.blog-card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.blog-card-category[data-category="all"] {
    color: var(--blog-category-all);
}

.blog-card-category[data-category="new_products"] {
    color: var(--blog-category-new-products);
}

.blog-card-category[data-category="company_news"] {
    color: var(--blog-category-company-news);
}

.blog-card-category[data-category="reviews"] {
    color: var(--blog-category-reviews);
}

.blog-card-category[data-category="tutorials"] {
    color: var(--blog-category-tutorials);
}

/* 卡片内容 */
.blog-card-body {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.blog-card-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--blog-text-secondary);
    margin-bottom: 12px;
}

.blog-card-date i {
    font-size: 12px;
}

.blog-card-title {
    font-size: 20px;
    font-weight: 500;
    color: var(--blog-text-primary);
    line-height: 28px;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
}

.blog-card:hover .blog-card-title {
    color: var(--blog-primary);
}

.blog-card-excerpt {
    font-size: 14px;
    color: var(--blog-text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    margin-bottom: 0;
}

/* 卡片底部 */
.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid var(--blog-border-light);
}

.blog-card-reading-time {
    font-size: 13px;
    color: var(--blog-text-secondary);
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
    color: var(--blog-primary);
    text-decoration: none;
    transition: gap 0.3s ease;
}

.blog-card-link:hover {
    gap: 8px;
    color: var(--blog-primary-dark);
}

.blog-card-link i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-link i {
    transform: translateX(2px);
}

/* ========================================
   骨架屏加载状态
   ======================================== */
.blog-skeleton {
    /* 继承网格样式 */
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--blog-radius-xs);
}

.skeleton-image {
    width: 100%;
    height: 100%;
    min-height: 150px;
}

.skeleton-text {
    height: 14px;
    margin-bottom: 10px;
}

.skeleton-text-sm {
    width: 40%;
}

.skeleton-text-md {
    width: 70%;
}

.skeleton-text-lg {
    width: 90%;
    height: 18px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ========================================
   空状态
   ======================================== */
.blog-empty {
    text-align: center;
    padding: 60px 20px;
}

.blog-empty-icon {
    font-size: 64px;
    color: var(--blog-border);
    margin-bottom: 20px;
}

.blog-empty-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--blog-text-primary);
    margin-bottom: 8px;
}

.blog-empty-text {
    font-size: 14px;
    color: var(--blog-text-secondary);
    margin-bottom: 24px;
}

/* ========================================
   分页
   ======================================== */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 40px;
}

.blog-pagination a,
.blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--blog-bg-white);
    border: 1px solid var(--blog-border);
    border-radius: var(--blog-radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--blog-text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-pagination a:hover {
    border-color: var(--blog-primary);
    color: var(--blog-primary);
}

.blog-pagination .active {
    background: var(--blog-primary);
    border-color: var(--blog-primary);
    color: #fff;
}

.blog-pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.blog-pagination-ellipsis {
    border: none;
    background: transparent;
    color: var(--blog-text-secondary);
}

/* ========================================
   Newsletter 订阅区
   ======================================== */
.blog-newsletter {
    background: var(--blog-dark);
    padding: 60px 0;
}

.blog-newsletter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.blog-newsletter-content {
    flex: 1;
    min-width: 280px;
}

.blog-newsletter-title {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.blog-newsletter-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.blog-newsletter-form {
    display: flex;
    gap: 12px;
    flex: 1;
    max-width: 480px;
    min-width: 280px;
}

.blog-newsletter-input {
    flex: 1;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--blog-radius-sm);
    font-size: 14px;
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
}

.blog-newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.blog-newsletter-input:focus {
    border-color: var(--blog-primary);
    background: rgba(255, 255, 255, 0.15);
}

.btn-newsletter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--blog-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: var(--blog-radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-newsletter:hover {
    background: var(--blog-primary-dark);
}

/* ========================================
   响应式设计 - 平板端 (≤992px)
   ======================================== */
@media (max-width: 992px) {
    .blog-hero {
        height: 400px;
    }

    .blog-hero .container {
        padding-bottom: 40px;
    }

    .blog-hero-title {
        font-size: 36px;
    }

    .blog-hero-featured-title {
        font-size: 22px;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .blog-newsletter-inner {
        flex-direction: column;
        text-align: center;
    }

    .blog-newsletter-form {
        width: 100%;
        max-width: none;
    }
}

/* ========================================
   响应式设计 - 移动端 (≤768px)
   ======================================== */
@media (max-width: 768px) {
    .blog-filter-bar {
        top: 64px;
    }

    .blog-hero {
        height: 360px;
    }

    .blog-hero .container {
        padding-bottom: 32px;
    }

    .blog-hero-tag {
        font-size: 11px;
        padding: 6px 12px;
    }

    .blog-hero-title {
        font-size: 28px;
    }

    .blog-hero-featured-title {
        font-size: 18px;
    }

    .blog-hero-excerpt {
        font-size: 14px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .blog-hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }

    .blog-filter-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .blog-category-tabs {
        order: 1;
        padding-bottom: 4px;
    }

    .blog-filter-actions {
        order: 2;
        justify-content: space-between;
        width: 100%;
        min-width: 0;
    }

    .blog-category-tab {
        padding: 8px 16px;
        font-size: 13px;
    }

    .blog-category-tab span {
        display: none;
    }

    .blog-category-tab.active span {
        display: inline;
    }

    .blog-sort {
        order: 2;
        justify-content: flex-end;
    }

    .blog-search {
        order: 1;
        flex: 1;
        min-width: 0;
    }

    .blog-search-label {
        display: none;
    }

    .blog-search-group {
        width: 100%;
    }

    .blog-search-input {
        width: 100%;
        min-width: 120px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-card-body {
        padding: 16px;
    }

    .blog-card-title {
        font-size: 20px;
        line-height: 28px;
        font-weight: 500;
    }

    .blog-newsletter-form {
        flex-direction: column;
    }

    .btn-newsletter {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   响应式设计 - 小屏移动端 (≤576px)
   ======================================== */
@media (max-width: 576px) {
    .blog-hero {
        height: 320px;
    }

    .blog-hero-title {
        font-size: 24px;
    }

    .blog-hero-featured-title {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .blog-hero-excerpt {
        display: none;
    }

    .blog-filter-bar {
        padding: 12px 0;
    }

    .blog-main {
        padding: 24px 0 40px;
    }

    .blog-filter-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        min-width: 0;
    }

    .blog-sort {
        width: 100%;
        justify-content: flex-end;
    }

    .blog-sort-select {
        width: 100%;
    }

    .blog-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .blog-card-link {
        align-self: flex-end;
    }

    .blog-pagination a,
    .blog-pagination span {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

/* ========================================
   过渡动画
   ======================================== */
.blog-card,
.blog-category-tab,
.btn-hero-primary,
.btn-hero-secondary {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 淡入动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card {
    animation: fadeInUp 0.4s ease forwards;
}

.blog-card:nth-child(1) { animation-delay: 0.05s; }
.blog-card:nth-child(2) { animation-delay: 0.1s; }
.blog-card:nth-child(3) { animation-delay: 0.15s; }
.blog-card:nth-child(4) { animation-delay: 0.2s; }
.blog-card:nth-child(5) { animation-delay: 0.25s; }
.blog-card:nth-child(6) { animation-delay: 0.3s; }
.blog-card:nth-child(7) { animation-delay: 0.35s; }
.blog-card:nth-child(8) { animation-delay: 0.4s; }
.blog-card:nth-child(9) { animation-delay: 0.45s; }

.blog-category-tab,
.blog-search-group,
.blog-search-input,
.blog-search-button,
.blog-sort-select,
.blog-card,
.blog-card-image,
.blog-card-image img,
.blog-card-link,
.blog-pagination a,
.blog-pagination span,
.atf-subscribe-panel,
.atf-subscribe-input,
.atf-subscribe-btn {
    border-radius: var(--v2-radius-sm);
}

.blog-card-image {
    overflow: hidden;
}
