/* 全局样式重置和基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Serif SC', serif, 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4efe9 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

/* 搜索区域样式 */
.search-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-box {
    max-width: 900px;
    margin: 0 auto;
}

.search-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .search-row {
        flex-direction: column;
    }
}

.search-input {
    flex: 3;
    padding: 16px 25px;
    border: 2px solid #e8f0fe;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8fafc;
    font-family: inherit;
}

.search-input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.15);
    background: white;
}

.author-input {
    flex: 2;
    padding: 16px 25px;
    border: 2px solid #e8f0fe;
    border-radius: 12px;
    font-size: 16px;
    background: #f8fafc;
    font-family: inherit;
}

.author-input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.15);
    background: white;
}

.search-btn {
    flex: 1;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 1px;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(106, 17, 203, 0.25);
}

.search-btn:active {
    transform: translateY(0);
}

.search-options {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.search-options label {
    cursor: pointer;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.search-options label:hover {
    background: #f0f7ff;
}

.search-options input[type="radio"] {
    margin-right: 5px;
    accent-color: #4a90e2;
}

/* 分类区域样式 */
.categories-section {
    margin-bottom: 50px;
}

.section-title {
    font-family: 'Ma Shan Zheng', cursive, 'Microsoft YaHei', sans-serif;
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid;
    border-image: linear-gradient(to right, #6a11cb, #2575fc) 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.category-card {
    background: white;
    padding: 35px 30px;
    border-radius: 16px;
    text-decoration: none;
    color: #333;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(135deg, var(--card-color) 0%, var(--card-color) 100%);
}

.category-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.category-card:hover::after {
    opacity: 1;
}

.category-icon {
    font-size: 56px;
    color: var(--card-color);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

.category-card h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: 700;
}

.category-card p {
    color: #666;
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.6;
    min-height: 48px;
}

.category-count {
    display: inline-block;
    background: linear-gradient(135deg, rgba(var(--card-color-rgb), 0.1), rgba(var(--card-color-rgb), 0.05));
    color: var(--card-color);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(var(--card-color-rgb), 0.2);
    transition: all 0.3s ease;
}

.category-card:hover .category-count {
    background: var(--card-color);
    color: white;
    transform: translateY(-2px);
}

/* 热门文章样式 */
.hot-articles {
    margin-bottom: 50px;
}

.hot-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.hot-article-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.hot-article-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(to bottom, #ff416c, #ff4b2b);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hot-article-card:hover::before {
    opacity: 1;
}

.hot-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.hot-article-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.hot-tag {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
}

.read-count {
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hot-article-card h4 {
    font-size: 18px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.hot-article-card h4 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hot-article-card h4 a:hover {
    color: #4a90e2;
}

.hot-article-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #666;
    flex-wrap: wrap;
}

.hot-article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 最新文章样式 */
.latest-articles {
    margin-bottom: 50px;
}

.article-list {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.article-item {
    padding: 30px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.article-item:hover {
    background: linear-gradient(90deg, rgba(248, 249, 250, 0.8), rgba(248, 249, 250, 0.4));
}

.article-item:last-child {
    border-bottom: none;
}

.article-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e3f2fd;
    color: #4a90e2;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.article-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-item h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-item h3 a:hover {
    color: #4a90e2;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-meta {
    display: flex;
    gap: 25px;
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-meta i {
    color: #4a90e2;
}

.article-excerpt {
    color: #555;
    line-height: 1.8;
    font-size: 15.5px;
    margin-bottom: 0;
}

/* 无数据提示 */
.no-data {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .section-title {
        font-size: 28px;
    }
    
    .hot-articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .search-section {
        padding: 20px;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .category-card {
        padding: 25px 20px;
    }
    
    .hot-articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-item {
        padding: 20px;
    }
    
    .article-meta {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .search-row {
        gap: 10px;
    }
    
    .search-input,
    .author-input,
    .search-btn {
        padding: 14px 20px;
    }
    
    .search-options {
        gap: 15px;
    }
    
    .article-meta {
        font-size: 12px;
        gap: 10px;
    }
    
    .article-item h3 {
        font-size: 18px;
    }
}