:root {
    --primary: #00f2ea;
    --secondary: #ff0050;
    --bg-dark: #0f0f13;
    --glass: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
}

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

body {
    background-color: var(--bg-dark);
    color: white;
    min-height: 100vh;
    position: relative;
    padding: 20px;
}

/* 动态背景光斑 */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    animation: float 10s infinite ease-in-out;
    opacity: 0.3;
    pointer-events: none;
}
.orb-1 { width: 300px; height: 300px; background: var(--secondary); top: -50px; left: -50px; }
.orb-2 { width: 400px; height: 400px; background: var(--primary); bottom: -100px; right: -100px; animation-delay: -5s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 50px); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

header {
    text-align: center;
    padding: 30px 0;
}

h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, var(--primary), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.keyword-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 15px;
}

.keyword-tag {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
}

/* 统计信息显示区域（在header内） */
.analytics-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px 0 0 0;
    padding: 0;
}

.loading {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.6);
}

.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.news-item {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    overflow: hidden;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 242, 234, 0.2);
    border-color: var(--primary);
}

/* PC端和移动端都使用竖版布局（上图下文） */
.news-item {
    display: flex;
    flex-direction: column;
}

.news-item .news-thumbnail-wrapper {
    width: 100%;
    height: auto;
    min-height: 200px;
}

.news-item .news-content {
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* PC端图片区域固定高度，图片居中，文字对齐 */
@media (min-width: 769px) {
    .news-item .news-thumbnail-wrapper {
        height: 220px;
        min-height: 220px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .news-item .news-thumbnail {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .news-item .news-content {
        min-height: 100px;
    }
}

.news-thumbnail-wrapper {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, rgba(0, 242, 234, 0.2), rgba(255, 0, 80, 0.2));
    overflow: hidden;
}

.news-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 移动端图片完整显示 */
@media (max-width: 768px) {
    .news-item .news-thumbnail {
        height: auto;
        max-height: none;
        object-fit: contain;
    }
}

.news-thumbnail-wrapper.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.news-thumbnail-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    color: white;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    padding: 10px;
}

.news-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 如果有图片，图片区标题隐藏，内容区显示标题 */
.news-item .news-thumbnail-wrapper:not(.no-image) .news-thumbnail-title {
    display: none;
}

/* 如果没有图片，内容区标题隐藏 */
.news-item .news-thumbnail-wrapper.no-image ~ .news-content .news-title {
    display: none;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 12px;
}

.news-source {
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-source-logo {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.news-views {
    color: var(--primary);
}

.news-time {
    color: rgba(255, 255, 255, 0.5);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

#dateNav {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 20px;
    margin: 0 -20px 20px -20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    #dateNav {
        margin: 0 -20px 20px -20px;
        padding: 12px 15px;
    }
}

.load-more {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}

.load-more-btn {
    padding: 12px 30px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.load-more-btn:hover {
    border-color: var(--primary);
    background: rgba(0, 242, 234, 0.1);
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.loading-more {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.page-btn {
    padding: 10px 20px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.page-btn:hover {
    border-color: var(--primary);
    background: rgba(0, 242, 234, 0.1);
}

.page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-dark);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


.featured-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary);
    text-align: center;
}

/* 统计信息显示区域（在header内） */
.analytics-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px 0 0 0;
    padding: 0;
}

.stats-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stats-item:hover {
    border-color: var(--primary);
    box-shadow: 0 6px 25px rgba(0, 242, 234, 0.2);
    transform: translateY(-2px);
}

.stats-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.stats-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.stats-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Arial', sans-serif;
    letter-spacing: 0.5px;
}

.featured-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.featured-item {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    overflow: hidden;
}

.featured-item:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 242, 234, 0.2);
}

.featured-item {
    display: flex;
    flex-direction: column;
}

.featured-item .featured-thumbnail-wrapper {
    width: 100%;
    height: auto;
    min-height: 180px;
    position: relative;
}

.featured-item .featured-content {
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

@media (min-width: 769px) {
    .featured-item .featured-thumbnail-wrapper {
        height: 180px;
        min-height: 180px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        position: relative;
    }

    .featured-item .featured-thumbnail {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .featured-item .featured-content {
        min-height: 80px;
    }
}

.featured-thumbnail-wrapper {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, rgba(0, 242, 234, 0.2), rgba(255, 0, 80, 0.2));
    overflow: hidden;
    min-height: 180px;
}

.featured-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-width: 100%;
}

.featured-thumbnail-wrapper.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.featured-thumbnail-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    color: white;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    padding: 8px;
}

.featured-item-title {
    font-size: 0.9rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-item .featured-thumbnail-wrapper:not(.no-image) .featured-thumbnail-title {
    display: none;
}

.featured-item .featured-thumbnail-wrapper.no-image ~ .featured-content .featured-item-title {
    display: none;
}

@media (max-width: 768px) {
    .analytics-stats {
        margin: 15px 0 20px 0;
        padding: 15px;
    }

    .stats-item {
        padding: 12px 20px;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

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

    .stats-label {
        font-size: 0.85rem;
    }

    .stats-value {
        font-size: 1.1rem;
    }

    .featured-item .featured-thumbnail {
        height: auto;
        max-height: none;
        object-fit: contain;
    }

    .featured-list {
        grid-template-columns: 1fr;
    }

    .featured-item .featured-thumbnail-wrapper {
        min-height: 150px;
    }

    .featured-thumbnail-title {
        font-size: 0.85rem;
        -webkit-line-clamp: 5;
    }
}

footer {
    text-align: center;
    padding: 30px 20px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    margin-top: 60px;
}

@media (max-width: 768px) {
    .news-list {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 1.5rem;
    }

    .news-item .news-thumbnail-wrapper {
        min-height: 200px;
    }

    .news-thumbnail-title {
        font-size: 0.95rem;
        -webkit-line-clamp: 6;
    }
}

