/**
 * 首页专用样式
 */

/* Hero Banner - 首页横幅 */
.hero-banner {
    background: linear-gradient(135deg, #ff6a00 0%, #ff8533 50%, #f093fb 100%);
    padding: 80px 24px;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
}

/* Search Box */
.search-box {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
    background: white;
    padding: 8px;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 24px;
    font-size: 15px;
    background: transparent;
}

.search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* 首页主容器 - 100%宽度 */
.home-container {
    width: 100%;
    background: #f5f7fa;
    padding: 30px 0;
}

/* 首页内容容器 - 1200px居中 */
.home-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 分类标签板块 */
.category-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 16px;
}

/* 分类卡片 */
.category-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 14px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    min-width: 0;
    overflow: hidden;
}

.category-card:hover {
    background: #f0f2f5;
    transform: translateY(-2px);
}

/* 分类图标 */
.category-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.category-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    20% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

.category-icon svg {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1;
}

/* 分类信息 */
.category-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.category-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.category-count {
    font-size: 12px;
    color: var(--text-light);
    /* 允许换行,避免长副标题撑爆 6 列 grid */
    white-space: normal;
    word-break: break-word;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 响应式 */
@media (max-width: 1240px) {
    .home-wrapper {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }
}

@media (max-width: 968px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .search-box {
        flex-direction: column;
        border-radius: 16px;
    }
    
    .search-btn {
        border-radius: 12px;
    }
    
    .home-container {
        padding: 20px 0;
    }
    
    .category-section {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 10px;
    }
    
    .category-card {
        padding: 12px 10px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .category-icon {
        width: 44px;
        height: 44px;
        margin: 0 auto;
    }
    
    .category-info {
        width: 100%;
    }
    
    .category-name {
        font-size: 13px;
        white-space: normal;
        line-height: 1.3;
        max-height: 2.6em;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    .category-count {
        font-size: 11px;
    }
}

/* 公告栏板块 */
.notice-section {
    background: white;
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.notice-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.notice-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.notice-badge {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

/* 公告文字滚动容器 */
.notice-text-wrapper {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    position: relative;
    height: 24px;
}

.notice-text-slider {
    display: flex;
    flex-direction: column;
    transition: transform 0.5s ease;
}

.notice-text-item {
    color: var(--text-dark);
    font-size: 15px;
    line-height: 26px;
    height: 26px;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
    display: block;
    transition: color 0.3s;
}

.notice-text-item:hover {
    color: var(--primary-color);
}

/* 暂停动画 */
.notice-text-wrapper:hover .notice-text-slider {
    animation-play-state: paused;
}

.notice-text {
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.notice-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.notice-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.notice-btn svg {
    width: 16px;
    height: 16px;
}

/* 响应式 - 公告栏 */
@media (max-width: 768px) {
    .notice-section {
        padding: 12px 16px;
    }
    
    .notice-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .notice-left {
        width: 100%;
    }
    
    .notice-text-wrapper {
        height: 24px;
        overflow: hidden;
    }
    
    .notice-text-slider {
        display: flex;
        flex-direction: column;
    }
    
    .notice-text-item {
        white-space: nowrap;
        height: 24px;
        line-height: 24px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .notice-text {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .notice-right {
        width: 100%;
        justify-content: flex-start;
    }
    
    .notice-btn {
        flex: 1;
        justify-content: center;
    }
}

/* 内容板块：头条 + 动态 */
.content-section {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 16px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

/* 通用区块头部 */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
}

.section-nav {
    display: flex;
    gap: 8px;
}

.nav-arrow {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-arrow:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* 头条区域 */
.headline-area {
    padding: 0;
}

.headline-content {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 16px;
}

/* 大图展示 - 轮播 */
.headline-featured {
    position: relative;
    height: 100%;
    min-height: 280px;
}

.featured-slider {
    position: relative;
    height: 100%;
    min-height: 280px;
    overflow: hidden;
    border-radius: 12px;
}

.featured-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.featured-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.featured-card {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
}

.featured-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-card:hover img {
    transform: scale(1.05);
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}

.featured-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.featured-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 轮播指示器 */
.featured-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.dot.active {
    width: 24px;
    border-radius: 4px;
    background: white;
}

/* 文章列表 */
.headline-list {
    position: relative;
}

.headline-list-wrapper {
    position: relative;
    height: 420px;
    overflow: hidden;
}

.headline-group {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.headline-group.active {
    opacity: 1;
    visibility: visible;
}

.headline-item {
    padding: 14px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: background 0.3s ease, transform 0.3s ease;
    display: block;
}

.headline-item:hover {
    background: #f0f2f5;
    transform: translateX(4px);
}

.item-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-meta {
    margin-bottom: 8px;
}

.meta-text {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
}

.item-tag {
    color: var(--primary-color);
    background: rgba(255, 106, 0, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.item-time {
    color: var(--text-light);
}

/* 动态区域 */
.activity-area {
    padding: 0;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    background: rgb(248, 249, 250);
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: #e9ecef;
}

.activity-badge {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.activity-title {
    font-size: 15px;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.4;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-time {
    font-size: 12px;
    color: var(--text-light);
    flex-shrink: 0;
}

/* 响应式 - 内容板块 */
@media (max-width: 1024px) {
    .content-section {
        /* minmax(0, 1fr) 允许 grid track 缩小至小于 min-content
           修复 .activity-title 的 white-space:nowrap 把 track 撑出右内边距、
           导致活动条目"贴到右边 / 超出盒子"的问题 */
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
    
    .headline-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .headline-featured {
        min-height: 240px;
    }
    
    .activity-area {
        padding-top: 20px;
        border-top: 1px solid var(--border-color);
    }
}

@media (max-width: 768px) {
    .content-section {
        padding: 16px;
        margin-bottom: 12px;
    }
    
    .headline-area,
    .activity-area {
        padding: 0;
    }
    
    .section-header {
        margin-bottom: 12px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .section-nav {
        gap: 6px;
    }
    
    .nav-arrow {
        width: 28px;
        height: 28px;
    }
    
    /* 大图轮播 - 手机端优化 */
    .headline-content {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .headline-featured {
        min-height: 200px;
        height: 200px;
    }
    
    .featured-slider {
        min-height: 200px;
        height: 200px;
    }
    
    .featured-overlay {
        padding: 12px 16px;
    }
    
    .featured-title {
        font-size: 16px;
        margin-bottom: 6px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .featured-desc {
        font-size: 12px;
        -webkit-line-clamp: 1;
    }
    
    .featured-dots {
        bottom: 8px;
        gap: 6px;
    }
    
    .dot {
        width: 6px;
        height: 6px;
    }
    
    .dot.active {
        width: 18px;
    }
    
    /* 文章列表 - 手机端优化 */
    .headline-list-wrapper {
        height: auto;
        min-height: auto;
    }
    
    .headline-group {
        position: static !important;
        height: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: none;
    }
    
    .headline-group.active {
        display: flex;
    }
    
    .headline-item {
        padding: 12px;
    }
    
    .item-title {
        font-size: 15px;
        -webkit-line-clamp: 2;
    }
    
    .meta-text {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }
    
    .item-footer {
        font-size: 11px;
    }
    
    /* 动态区域 - 手机端优化 */
    .activity-area {
        padding-top: 16px;
        margin-top: 16px;
    }
    
    .activity-item {
        padding: 8px 10px;
    }
    
    .activity-badge {
        padding: 3px 6px;
        font-size: 10px;
    }
    
    .activity-title {
        font-size: 14px;
    }
    
    .activity-time {
        font-size: 11px;
    }
}

/* 三栏推荐板块 */
.recommend-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.recommend-column {
    padding: 0;
}

.column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.column-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.title-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 14px;
}

.column-more {
    font-size: 13px;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.column-more:hover {
    color: var(--primary-color);
}

.column-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.column-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.column-item:hover {
    background: #f0f2f5;
    transform: translateX(4px);
}

.item-title {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-views {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-light);
    flex-shrink: 0;
}

.item-views svg {
    opacity: 0.6;
}

/* 响应式 - 三栏推荐 */
@media (max-width: 1024px) {
    .recommend-section {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .recommend-column:not(:last-child) {
        padding-bottom: 20px;
        margin-bottom: 20px;
        border-bottom: 1px solid var(--border-color);
    }
}

@media (max-width: 768px) {
    .recommend-section {
        padding: 16px;
        margin-bottom: 12px;
    }
    
    .column-header {
        margin-bottom: 12px;
        padding-bottom: 10px;
    }
    
    .column-title {
        font-size: 16px;
    }
    
    .column-list {
        gap: 10px;
    }
    
    .column-item {
        padding: 8px 10px;
    }
    
    .item-title {
        font-size: 14px;
    }
    
    .item-views {
        font-size: 11px;
    }
}

/* 主内容区：文章列表 + 排行榜 */
.main-content-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

/* 文章列表区域 */
.posts-area {
    background: white;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

/* 标签导航 */
.tabs-nav {
    display: flex;
    gap: 32px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.tab-item {
    font-size: 16px;
    color: var(--text-gray);
    font-weight: 500;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-item:hover {
    color: var(--primary-color);
}

.tab-item.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* 文章列表 */
.posts-list {
    padding: 0;
    position: relative;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.post-item {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

.post-item:last-child {
    border-bottom: none;
}

.post-item:hover {
    background: #fafbfc;
}

.post-header {
    margin-bottom: 12px;
}

.post-title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-title a {
    color: var(--text-dark);
}

.post-title a:hover {
    color: var(--primary-color);
}

.hot-icon {
    font-size: 16px;
}

.post-excerpt {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.75;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 1~2 张图:左图右文布局 */
.post-item--side {
    display: flex;
    align-items: stretch;
    gap: 18px;
}

.post-item--side .post-side-image {
    flex: 0 0 220px;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    /* background: #f1f3f5; */
    align-self: stretch;
    max-height: 170px;
}

.post-item--side .post-side-image img {
    width: 100%;
    height: 100%;
    min-height: 140px;
    object-fit: contain;
    display: block;
    padding: 6px;
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

.post-item--side .post-side-image:hover img {
    transform: scale(1.05);
}

.post-item--side .post-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.post-item--side .post-body .post-meta {
    margin-top: auto;
}

.post-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.post-images img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.post-images img:hover {
    transform: scale(1.05);
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-light);
}

.meta-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.author-name {
    color: var(--text-dark);
    font-weight: 500;
}

.post-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.post-category {
    color: var(--text-gray);
}

.post-time {
    color: var(--text-light);
}

.meta-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-light);
}

.meta-item svg {
    opacity: 0.6;
}

/* 注意：侧边栏样式已移至 sidebar.css 公共文件 */

/* 响应式 - 主内容区 */
@media (max-width: 1024px) {
    .main-content-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .posts-area {
        border-radius: 12px;
        margin-bottom: 12px;
    }
    
    .tabs-nav {
        gap: 20px;
        padding: 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .tabs-nav::-webkit-scrollbar {
        display: none;
    }
    
    .tab-item {
        font-size: 15px;
        white-space: nowrap;
    }
    
    .post-item {
        padding: 16px;
    }
    
    .post-title {
        font-size: 17px;
    }
    
    .post-excerpt {
        font-size: 14px;
        line-height: 1.65;
        margin-bottom: 12px;
    }
    
    .post-images {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .post-images img {
        height: 100px;
        border-radius: 6px;
    }

    /* 移动端:左图右文 → 改为竖排堆叠,图片在上、内容在下 */
    .post-item--side {
        flex-direction: column;
        gap: 12px;
    }

    .post-item--side .post-side-image {
        flex: none;
        width: 100%;
        max-height: 200px;
    }

    .post-item--side .post-side-image img {
        min-height: 0;
        height: 200px;
        object-fit: contain;
    }
    
    .post-meta {
        font-size: 12px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .meta-left {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .meta-right {
        gap: 12px;
    }
    
    .author-avatar {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .post-images {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .post-images img {
        height: 80px;
    }
}

