/* ===== 博客通用样式 ===== */
.blog-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* ===== 博客头部 ===== */
.blog-header {
    text-align: center;
    margin-bottom: 50px;
}

.blog-header h1 {
    font-size: 2.8rem;
    color: #D32F2F;
    margin-bottom: 10px;
}

.blog-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== 分类导航 ===== */
.blog-categories {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #f8f9fa;
    border-radius: 40px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.category-item:hover,
.category-item.active {
    background: #D32F2F;
    color: white;
    transform: translateY(-2px);
}

.category-icon {
    font-size: 1.2rem;
}

.category-name {
    font-weight: 600;
}

/* ===== 文章网格 ===== */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.post-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.post-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card-content {
    padding: 20px;
}

.post-card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: #999;
}

.post-card-category {
    color: #D32F2F;
    font-weight: 600;
}

.post-card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-card-title a {
    color: #333;
    text-decoration: none;
}

.post-card-title a:hover {
    color: #D32F2F;
}

.post-card-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.post-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.post-card-author {
    font-size: 0.8rem;
    color: #999;
}

.read-more {
    color: #D32F2F;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ===== 订阅区域 ===== */
.blog-newsletter {
    background: linear-gradient(135deg, #333, #111);
    color: white;
    padding: 60px;
    text-align: center;
    border-radius: 20px;
    margin: 60px 0;
}

.blog-newsletter h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.blog-newsletter p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 40px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 15px 30px;
    background: #D32F2F;
    color: white;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #B71C1C;
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .post-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

.loading {
    grid-column: 1/-1;
    text-align: center;
    padding: 40px;
    color: #666;
}
/* ===== 导航栏样式 ===== */
.blog-navigation {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 50px;
    padding: 10px 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #ddd;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    text-decoration: none;
    color: #555;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background: white;
    color: #D32F2F;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.nav-item.active {
    background: #D32F2F;
    color: white;
}

.nav-icon {
    font-size: 1.2rem;
}

.nav-separator {
    color: #ccc;
    font-weight: 300;
}

/* ===== 订阅表单增强 ===== */
.blog-newsletter {
    background: linear-gradient(135deg, #D32F2F, #B71C1C);
    color: white;
    padding: 60px;
    text-align: center;
    border-radius: 30px;
    margin: 60px 0;
    box-shadow: 0 20px 40px rgba(211, 47, 47, 0.3);
}

.blog-newsletter h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.blog-newsletter p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 30px;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 10px;
    background: white;
    padding: 5px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.newsletter-form input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
}

.newsletter-form button {
    padding: 15px 35px;
    background: #FFD966;
    color: #333;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: #FFC107;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.newsletter-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-note {
    font-size: 0.85rem !important;
    opacity: 0.8 !important;
    margin-top: 15px !important;
    margin-bottom: 0 !important;
}

.subscribe-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    font-weight: 600;
    animation: slideDown 0.3s ease;
}

.subscribe-message.success {
    background: rgba(46, 125, 50, 0.2);
    color: #2e7d32;
    border: 1px solid #2e7d32;
}

.subscribe-message.error {
    background: rgba(211, 47, 47, 0.2);
    color: #B71C1C;
    border: 1px solid #B71C1C;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }
    
    .countdown-wrapper {
        position: static !important;
        transform: none !important;
        margin-top: 15px;
    }
    
    .nav-container {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .nav-item {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
    
    .nav-separator {
        display: none;
    }
    
    .form-group {
        flex-direction: column;
        background: transparent;
        gap: 15px;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
        border-radius: 40px;
    }
    
    .blog-newsletter {
        padding: 40px 20px;
    }
    
    .blog-newsletter h3 {
        font-size: 1.6rem;
    }
}