* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.header {
    background: #222;
    color: white;
    padding: 0.3rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-bottom: 3px solid #dc2626;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.logo a::before {
    content: "🎓";
    margin-right: 8px;
    font-size: 1.6rem;
}

/* 添加搜索框 */
.header-search {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 3px 10px;
    margin: 0 15px;
    flex: 0 0 250px;
}

.header-search input {
    background: transparent;
    border: none;
    color: white;
    padding: 3px;
    width: 100%;
    outline: none;
    font-size: 0.9rem;
}

.header-search input::placeholder {
    color: rgba(255,255,255,0.7);
}

.header-search button {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1rem;
}

.nav {
    display: flex;
    gap: 1.2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid transparent;
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    background: #dc2626;
    transform: translateY(-2px);
    border-color: #dc2626;
}

/* 添加热点话题滚动条 */
.breaking-news {
    background: #f0f0f0;
    padding: 6px 0;
    border-bottom: 1px solid #eaeaea;
    overflow: hidden;
}

.breaking-news-container {
    display: flex;
    align-items: center;
}

.breaking-news-label {
    background: #dc2626;
    color: white;
    padding: 3px 8px;
    margin-right: 10px;
    font-weight: bold;
    border-radius: 3px;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.breaking-news-items {
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    flex: 1;
}

.news-ticker {
    display: inline-block;
    animation: ticker 30s linear infinite;
    padding-right: 50px;
    font-size: 0.9rem;
}

.news-ticker a {
    margin-right: 30px;
    color: #333;
    text-decoration: none;
    position: relative;
}

.news-ticker a::after {
    content: "•";
    position: absolute;
    right: -15px;
    color: #dc2626;
}

.news-ticker a:hover {
    color: #dc2626;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Loading */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #dc2626;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Main Layout */
.main-layout {
    display: grid;
    grid-template-columns: minmax(0, 800px) minmax(0, 330px);
    gap: 1.5rem;
    align-items: start;
    max-width: 1200px;
    margin: 1rem auto;
}

.content-area {
    background: white;
    border-radius: 10px;
    padding: 1.5rem 0.8rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    max-width: 800px;
    width: 100%;
}

/* 优化后的焦点图轮播 - 无图片版本 */
.featured-slider {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 160px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.1);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.slider-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateX(100px);
}

.slider-item.active {
    opacity: 1;
    transform: translateX(0);
}

.slider-item:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.slider-item:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.slider-item:nth-child(4) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.slider-item:nth-child(5) {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.slider-content {
    text-align: center;
    padding: 1rem 1.5rem;
    max-width: 600px;
    color: white;
    position: relative;
    z-index: 2;
}

.slider-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    z-index: -1;
}

.slider-content h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slider-content p {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    opacity: 0.95;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 轮播中的按钮样式 */
.slider-content .btn-primary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.slider-content .btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.slider-content .btn-primary::after {
    content: "→";
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.slider-content .btn-primary:hover::after {
    transform: translateX(4px);
}

.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.slider-dot.active {
    background: white;
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* 轮播动画增强 */
.slider-item:nth-child(odd) {
    transform: translateX(-100px);
}

.slider-item:nth-child(odd).active {
    transform: translateX(0);
}

/* 轮播内容动画 */
.slider-item.active .slider-content {
    animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ad Banners */
.main-ad-banner {
    text-align: center;
    background: transparent;
    border-radius: 8px;
    padding: 1rem 0;
    border: none;
    position: relative;
    clear: both;
    max-width: 1200px;
}

/* 首页整齐和谐的广告卡片样式 */
div[class^="_yfwgtodzbpi_hot_ad"],
div[class^="_yfwgtodzbpi_sidebar_ad"] {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.04);
}

/* 让广告与内容更融合的上下留白与分隔线 */
.news-section ._yfwgtodzbpi_hot_ad3,
.news-section ._yfwgtodzbpi_hot_ad4,
.main-ad-banner ._yfwgtodzbpi_hot_ad1,
.main-ad-banner ._yfwgtodzbpi_hot_ad2,
.main-ad-banner ._yfwgtodzbpi_hot_ad5 {
    margin: 8px auto;
}

/* 侧边栏广告与模块一致性 */
._yfwgtodzbpi_sidebar_ad1,
._yfwgtodzbpi_sidebar_ad2,
._yfwgtodzbpi_sidebar_ad3,
._yfwgtodzbpi_sidebar_ad4,
._yfwgtodzbpi_sidebar_ad5,
._yfwgtodzbpi_sidebar_ad6,
._yfwgtodzbpi_sidebar_ad7,
._yfwgtodzbpi_sidebar_ad8,
._yfwgtodzbpi_sidebar_ad9,
._yfwgtodzbpi_sidebar_ad10 {
    background: #fff;
    border: 1px solid #f3f4f6;
}

/* News Section */
.news-section {
    width: 100%;
    max-width: 800px;
}

.news-list {
    width: 100%;
    max-width: 800px;
}

.news-section h3 {
    color: #dc2626;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #dc2626;
    padding-left: 1rem;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    padding: 0.75rem;
    border-radius: 5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.news-section h3::after {
    content: "";
    height: 2px;
    background: linear-gradient(90deg, #dc2626, transparent);
    flex: 1;
    margin-left: 15px;
}

.news-card {
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    padding: 0.6rem 0.7rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    gap: 10px;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.news-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transform: translateY(-1px);
}

.news-card-thumbnail {
    width: 140px;
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 缩略图内的广告容器和 iframe 固定尺寸，避免撑高 */
.news-card-thumbnail [class^="_yfwgtodzbpi_news_"] {
    width: 140px !important;
    height: 120px !important;
}
.news-card-thumbnail iframe {
    width: 140px !important;
    height: 120px !important;
}

.news-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-thumbnail img {
    transform: scale(1.05);
}

.news-card-content-wrapper {
    flex: 1;
    min-width: 0;
    color: #6b7280;
}

.news-card-header h4 {
    color: #374151;
    font-size: 1rem;
    margin-bottom: 0.4rem;
    line-height: 1.25;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.news-card-header h4 a {
    color: inherit;
    text-decoration: none;
}

.news-card-header h4 a:hover {
    color: #ef4444;
}

.category-tag {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 0.15rem 0.45rem;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}

.category-policy { background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%); }
.category-admission { background: linear-gradient(135deg, #991b1b 0%, #7f1d1d 100%); }
.category-volunteer { background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%); }
.category-method { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }
.category-exam { background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%); }

.news-card-content {
    margin: 0.4rem 0;
    color: #6b7280;
    line-height: 1.4;
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #9ca3af;
    padding-top: 0.4rem;
}

.news-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 0.6rem;
}

.tag-item {
    background: #f3f4f6;
    color: #374151;
    padding: 0.2rem 0.4rem;
    border-radius: 10px;
    font-size: 0.75rem;
    display: inline-block;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.tag-item:hover {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

/* Inline Ad Styling */
div[class*="_yfwgtodzbpi_news_"] {
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 0;
    margin: 0.5rem 0;
    text-align: center;
    position: relative;
    clear: both;
    transition: all 0.3s ease;
}

/* 广告容器布局优化 */
div[class*="_yfwgtodzbpi_news_"],
div[class*="_yfwgtodzbpi_hot_ad"],
div[class*="_yfwgtodzbpi_sidebar"] {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

/* Categories Grid - 现代化分类展示区域 */
.categories-widget {
    margin-bottom: 1.5rem;
}

.categories-widget h3 {
    margin-bottom: 1.25rem;
    color: #dc2626;
    font-size: 1.1rem;
    border-bottom: 2px solid #fecaca;
    padding-bottom: 0.5rem;
    position: relative;
}

.categories-widget h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #dc2626, transparent);
}

.categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.625rem;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #fecaca transparent;
}

.categories-grid::-webkit-scrollbar {
    width: 4px;
}

.categories-grid::-webkit-scrollbar-track {
    background: transparent;
}

.categories-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #fecaca, #dc2626);
    border-radius: 2px;
}

.category-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.875rem;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transition: width 0.3s ease;
    border-radius: 12px 0 0 12px;
}

.category-card:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.12);
    border-color: #fecaca;
}

.category-card:hover::before {
    width: 4px;
}

/* 为不同分类设置独特的渐变边框和悬停效果 */
.category-card:nth-child(1) { border-left: 3px solid #dc2626; }
.category-card:nth-child(2) { border-left: 3px solid #059669; }
.category-card:nth-child(3) { border-left: 3px solid #7c3aed; }
.category-card:nth-child(4) { border-left: 3px solid #ea580c; }
.category-card:nth-child(5) { border-left: 3px solid #0d9488; }
.category-card:nth-child(6) { border-left: 3px solid #6366f1; }
.category-card:nth-child(7) { border-left: 3px solid #f59e0b; }
.category-card:nth-child(8) { border-left: 3px solid #ec4899; }
.category-card:nth-child(9) { border-left: 3px solid #8b5cf6; }
.category-card:nth-child(10) { border-left: 3px solid #10b981; }
.category-card:nth-child(11) { border-left: 3px solid #f97316; }
.category-card:nth-child(12) { border-left: 3px solid #84cc16; }

.category-card:nth-child(1):hover { box-shadow: 0 8px 25px rgba(220, 38, 38, 0.15); }
.category-card:nth-child(2):hover { box-shadow: 0 8px 25px rgba(5, 150, 105, 0.15); }
.category-card:nth-child(3):hover { box-shadow: 0 8px 25px rgba(124, 58, 237, 0.15); }
.category-card:nth-child(4):hover { box-shadow: 0 8px 25px rgba(234, 88, 12, 0.15); }
.category-card:nth-child(5):hover { box-shadow: 0 8px 25px rgba(13, 148, 136, 0.15); }
.category-card:nth-child(6):hover { box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15); }
.category-card:nth-child(7):hover { box-shadow: 0 8px 25px rgba(245, 158, 11, 0.15); }
.category-card:nth-child(8):hover { box-shadow: 0 8px 25px rgba(236, 72, 153, 0.15); }
.category-card:nth-child(9):hover { box-shadow: 0 8px 25px rgba(139, 92, 246, 0.15); }
.category-card:nth-child(10):hover { box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15); }
.category-card:nth-child(11):hover { box-shadow: 0 8px 25px rgba(249, 115, 22, 0.15); }
.category-card:nth-child(12):hover { box-shadow: 0 8px 25px rgba(132, 204, 22, 0.15); }

.category-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,250,252,0.9) 100%);
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.category-content {
    flex: 1;
    min-width: 0;
}

.category-card h4 {
    color: #1e293b;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.category-card:hover h4 {
    color: #dc2626;
}

.category-card p {
    display: none; /* 在侧边栏视图中隐藏描述文本，保持紧凑布局 */
}

.category-card .news-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    display: inline-block;
}

.category-card:hover .news-count {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #dc2626;
    border-color: #fecaca;
    transform: scale(1.05);
}

.load-more-container {
    text-align: center;
    margin: 2rem 0;
    max-width: 800px;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-width: 320px;
    max-width: 330px;
    width: 100%;
}

.sidebar-widget {
    background: #fff;
    border-radius: 8px;
    padding: 0.3rem 0.6rem;
    box-shadow: none;
    border: 1px solid #f3f4f6;
    margin-bottom: 0.3rem;
}

.sidebar-widget h3 {
    color: #dc2626;
    margin-bottom: 0.875rem;
    font-size: 1.1rem;
    border-bottom: 2px solid #fecaca;
    padding-bottom: 0.5rem;
    font-weight: 600;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-widget h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #dc2626, transparent);
}

/* Sidebar Ads - 信息流广告优化 */
div[class*="_yfwgtodzbpi_sidebar"] {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0.5rem 0;
    text-align: left;
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

/* 确保信息流广告能够适应侧边栏宽度 */
.sidebar div[class*="_yfwgtodzbpi_sidebar"] {
    width: 100%;
    max-width: none;
}

/* Hot Topics */
.hot-topic-item-compact {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
}

.hot-topic-item-compact:hover {
    background: #f9fafb;
    padding-left: 8px;
}

.topic-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.topic-rank {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.topic-info h5 {
    color: #1f2937;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.topic-count {
    color: #6b7280;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.topic-count::before {
    content: "👁️";
    font-size: 0.8rem;
}

/* Featured News - 优化后的头条新闻样式 */
.featured-card-compact {
    display: flex;
    gap: 0.75rem;
    padding: 0.875rem 0.5rem;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    margin-bottom: 0.125rem;
    position: relative;
    overflow: hidden;
}

.featured-card-compact::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    transition: width 0.3s ease;
}

.featured-card-compact:hover {
    background: linear-gradient(135deg, #fef7f7 0%, #fdf2f2 100%);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.08);
    border-color: #fecaca;
    cursor: pointer;
}

.featured-card-compact:hover::before {
    width: 4px;
}

.featured-card-compact:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.featured-rank {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
    position: relative;
    z-index: 1;
}

.featured-rank::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 100%);
}

.featured-content-compact {
    flex: 1;
    min-width: 0;
}

.featured-content-compact h5 {
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1f2937;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.featured-content-compact h5 a {
    color: inherit;
    text-decoration: none;
}

.featured-content-compact h5 a:hover {
    color: #dc2626;
}

.category-badge-small {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    margin-bottom: 0.375rem;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
}

.category-badge-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.category-policy {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
}

.category-admission {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
}

.category-volunteer {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: white;
}

.category-method {
    background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
    color: white;
}

.category-exam {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: white;
}

.news-meta-compact {
    display: flex;
    gap: 0.75rem;
    font-size: 0.7rem;
    color: #64748b;
    align-items: center;
    margin-top: 0.375rem;
}

.news-meta-compact span {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    transition: color 0.2s ease;
    opacity: 0.8;
}

.news-meta-compact .read-count::before {
    content: "👁️";
    font-size: 0.75rem;
}

.news-meta-compact .publish-time::before {
    content: "🕐";
    font-size: 0.7rem;
}

.news-meta-compact span:hover {
    color: #dc2626;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .featured-card-compact {
        gap: 0.625rem;
        padding: 0.75rem 0.375rem;
    }

    .featured-rank {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }

    .featured-content-compact h5 {
        font-size: 0.8rem;
        line-height: 1.35;
        margin-bottom: 0.375rem;
    }

    .news-meta-compact {
        font-size: 0.65rem;
        gap: 0.625rem;
        margin-top: 0.25rem;
    }

    .category-badge-small {
        font-size: 0.6rem;
        padding: 0.15rem 0.4rem;
        margin-bottom: 0.25rem;
    }
}

/* Tag Cloud */
.tag-cloud-item {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    padding: 0.35rem 0.75rem;
    border-radius: 15px;
    margin: 0.25rem;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #fecaca;
}

.tag-cloud-item:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    transform: translateY(-2px);
    border-color: #dc2626;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* 侧边栏标签云专用样式 */
.sidebar .tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-start;
    padding: 0.5rem 0;
}

.sidebar .tag-cloud-item {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: #0369a1;
    border: 1px solid #bae6fd;
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    margin: 0;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 100%;
    flex-shrink: 0;
}

.sidebar .tag-cloud-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.sidebar .tag-cloud-item:hover::before {
    left: 100%;
}

.sidebar .tag-cloud-item:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: white;
    transform: translateY(-2px) scale(1.05);
    border-color: #0284c7;
    box-shadow: 0 8px 25px rgba(3, 105, 161, 0.3);
}

.sidebar .tag-cloud-item:active {
    transform: translateY(0) scale(0.98);
}

/* 不同大小的标签样式 */
.sidebar .tag-cloud-item[data-size="small"] {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
}

.sidebar .tag-cloud-item[data-size="medium"] {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
}

.sidebar .tag-cloud-item[data-size="large"] {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    font-weight: 600;
}

/* 标签计数样式 */
.sidebar .tag-cloud-item .tag-count {
    opacity: 0.7;
    margin-left: 0.25rem;
    font-size: 0.8em;
}

.sidebar .tag-cloud-item:hover .tag-count {
    opacity: 0.9;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar .tag-cloud {
        gap: 0.4rem;
        padding: 0.5rem 0;
    }

    .sidebar .tag-cloud-item {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }

    .sidebar .tag-cloud-item[data-size="small"] {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    .sidebar .tag-cloud-item[data-size="medium"] {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    .sidebar .tag-cloud-item[data-size="large"] {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Reading Ranking */
.ranking-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
}

.ranking-item:hover {
    background: #f9fafb;
    padding-left: 8px;
}

.rank-number {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    flex-shrink: 0;
}

.ranking-item.top-rank .rank-number {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.rank-content h5 {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.rank-content h5 a {
    color: #1f2937;
    text-decoration: none;
}

.rank-content h5 a:hover {
    color: #dc2626;
}

.rank-reads {
    color: #6b7280;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.rank-reads::before {
    content: "👁️";
    font-size: 0.8rem;
}

/* Stats */
.stats-item {
    margin-bottom: 1.2rem;
    transition: all 0.2s ease;
    padding: 0.5rem;
    border-radius: 6px;
}

.stats-item:hover {
    background: #f9fafb;
}

.stats-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

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

.stats-name {
    flex: 1;
    margin-left: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.stats-count {
    font-weight: bold;
    color: #dc2626;
}

.stats-bar {
    background: #f3f4f6;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.stats-progress {
    height: 100%;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transition: width 0.3s ease;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 3px solid #dc2626;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: left;
}

.footer-column h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #dc2626;
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 0.3rem 0;
}

.footer-links a:hover {
    color: #dc2626;
}

.footer-bottom {
    border-top: 1px solid #374151;
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: #9ca3af;
}

/* 标签页样式 (tags.html) */
.search-header {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
}

.search-title {
    font-size: 1.8rem;
    color: #1f2937;
    margin-bottom: 1rem;
    font-weight: 700;
}

.search-bar {
    display: flex;
    margin-bottom: 1rem;
    max-width: 600px;
}

.search-bar input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 25px 0 0 25px;
    font-size: 1rem;
    outline: none;
}

.search-bar button {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-bar button:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
}

.search-results-count {
    color: #6b7280;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.tag-cloud-section {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
}

.tag-cloud-section h3 {
    color: #dc2626;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    border-left: 4px solid #dc2626;
    padding-left: 1rem;
}

.tag-categories {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.tag-category {
    margin-bottom: 1rem;
}

.tag-category h4 {
    color: #1f2937;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    border-left: 3px solid #dc2626;
    padding-left: 0.75rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-item.small {
    padding: 0.1rem 0.25rem;
    font-size: 0.65rem;
}

.tag-item.active {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

.related-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* 新闻详情页样式 (news.html) */
.news-detail {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
}

.article-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1.5rem;
}

.article-title {
    font-size: 2rem;
    color: #1f2937;
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 700;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #6b7280;
    font-size: 0.9rem;
    align-items: center;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.article-content {
    font-family: 'Microsoft YaHei', '微软雅黑', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.125rem;
    line-height: 1.75;
    color: #374151;
    font-weight: 400;
    letter-spacing: 0.025em;
}

.article-content p {
    margin-bottom: 1.25rem;
    text-align: justify;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    color: #1f2937;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    line-height: 1.3;
}

.article-content h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.article-content h3 {
    font-size: 1.25rem;
    color: #dc2626;
}

.article-content ul,
.article-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.article-content blockquote {
    border-left: 4px solid #dc2626;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: linear-gradient(135deg, #fef7f7 0%, #fdf2f2 100%);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #7f1d1d;
}

.article-content strong {
    font-weight: 600;
    color: #1f2937;
}

.article-content em {
    font-style: italic;
    color: #4b5563;
}

.content-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #1f2937;
    margin-bottom: 2rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-left: 5px solid #dc2626;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.08);
    position: relative;
    font-weight: 500;
}

.content-intro::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 3rem;
    color: #fecaca;
    font-family: Georgia, serif;
}

.content-conclusion {
    font-size: 1.1rem;
    line-height: 1.75;
    color: #374151;
    margin-top: 2.5rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-left: 5px solid #10b981;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
    position: relative;
    font-weight: 500;
    font-style: italic;
}

.content-conclusion::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 3rem;
    color: #a7f3d0;
    font-family: Georgia, serif;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.article-content th,
.article-content td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.article-content th {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    font-weight: 600;
    color: #374151;
}

.article-content tr:hover {
    background: #f8fafc;
}

.related-news {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.related-news h3 {
    color: #dc2626;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #dc2626;
    padding-left: 1rem;
}

.related-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.topic-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* 分类页样式 (category.html) */
.category-header {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #fecaca;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.category-header::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, transparent 50%, rgba(220, 38, 38, 0.1) 50%);
    z-index: 0;
}

.category-info {
    flex: 1;
}

.category-title {
    font-size: 1.8rem;
    color: #991b1b;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.category-description {
    color: #4b5563;
    font-size: 1rem;
    max-width: 80%;
}

.category-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.category-icon {
    font-size: 2.5rem;
    color: #dc2626;
    background: rgba(255, 255, 255, 0.7);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.2);
}

.news-count {
    font-size: 0.9rem;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.7);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-weight: 500;
}

.category-nav {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
}

.category-nav h3 {
    color: #1f2937;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.category-item {
    background: #f3f4f6;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-block;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    cursor: pointer;
}

.category-item:hover,
.category-item.active {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* 补充新闻的样式 */
.news-card-supplemental {
    border-left: 3px solid #4f46e5;
    background: linear-gradient(to right, rgba(79, 70, 229, 0.05), transparent);
}

.supplemental-tag {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    display: inline-block;
    margin-left: 0.5rem;
    margin-bottom: 8px;
}

/* Lazy loading placeholder */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-image.loaded {
    opacity: 1;
}

/* Optimize animations for performance */
* {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Reduce paint on scroll */
.sidebar-widget {
    will-change: auto;
}

/* 文章分类高亮样式 */
.article-category-highlight {
    display: inline-block;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid #fca5a5;
    position: relative;
    z-index: 1;
}

/* 标签搜索页面的推荐内容样式 */
.search-results-recommendation {
    background: linear-gradient(135deg, #fef7f7 0%, #fdf2f2 100%);
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #dc2626;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-results-recommendation::before {
    content: "💡";
    font-size: 1.2rem;
}

.search-results-recommendation span {
    color: #666;
    font-size: 0.85rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .main-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .content-area {
        max-width: 100%;
    }
    
    .news-section {
        max-width: 100%;
    }
    
    .news-list {
        max-width: 100%;
    }
    
    .load-more-container {
        max-width: 100%;
    }
    
    .sidebar {
        min-width: 100%;
        max-width: 100%;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .categories-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.5rem;
        max-height: 350px;
    }

    .category-card {
        display: flex;
        align-items: center;
        padding: 0.75rem;
        gap: 0.75rem;
        border-radius: 10px;
    }

    .category-icon {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        flex-shrink: 0;
    }

    .category-card h4 {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }

    .category-card .news-count {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }

    .featured-slider {
        height: 140px;
        margin: 1rem auto;
        max-width: 100%;
    }

    .slider-content {
        padding: 0.75rem 1rem;
    }

    .slider-content h2 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .slider-content p {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
        -webkit-line-clamp: 2;
    }

    .slider-content .btn-primary {
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
    }

    .news-card {
        flex-direction: column;
    }

    .news-card-thumbnail {
        width: 100%;
        height: 180px;
    }
    
    /* 新添加的响应式样式 */
    .search-bar {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .search-bar input,
    .search-bar button {
        border-radius: 25px;
        width: 100%;
    }
    
    .article-title {
        font-size: 1.5rem;
    }

    .article-content {
        font-size: 1rem;
        line-height: 1.6;
    }

    .content-intro,
    .content-conclusion {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .content-intro::before,
    .content-conclusion::before {
        font-size: 2rem;
        top: -5px;
        left: 15px;
    }

    .article-content h2 {
        font-size: 1.25rem;
    }

    .article-content h3 {
        font-size: 1.125rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .category-header {
        flex-direction: column;
        text-align: center;
    }
    
    .category-description {
        max-width: 100%;
    }
    
    .category-meta {
        margin-top: 1rem;
    }
    
    .related-list {
        grid-template-columns: 1fr;
    }
} 