/* 文章页面专用样式 */

/* 文章搜索 */
.article-search {
    padding: 30px 0;
    background: rgba(10, 14, 23, 0.6);
}

/* 热门文章区域 */
.popular-articles {
    padding: 80px 0;
    background: rgba(0, 168, 255, 0.05);
}

.popular-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.popular-article-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    height: 100%;
}

.popular-article-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

.popular-article-image {
    height: 200px;
    width: 100%;
    overflow: hidden;
}

.popular-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.popular-article-card:hover .popular-article-image img {
    transform: scale(1.1);
}

.popular-article-content {
    padding: 25px;
}

.popular-article-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.popular-article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.popular-article-views {
    color: var(--accent-color);
    font-weight: 600;
}

.popular-article-title {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.popular-article-excerpt {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 文章列表区域 */
.article-list-section {
    padding: 80px 0;
    background: rgba(10, 14, 23, 0.8);
}

.article-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.article-list-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    color: white;
}

/* 文章列表 */
.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.article-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.article-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

.article-item-image {
    height: 200px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.article-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-item:hover .article-item-image img {
    transform: scale(1.1);
}

.article-item-content {
    padding: 25px;
}

.article-item-title {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.article-item-excerpt {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.7;
    height: 80px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* 加载状态 */
.loading-articles {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
}

.loading-articles .loading {
    margin: 0 auto 20px;
}

.loading-articles p {
    color: rgba(255, 255, 255, 0.7);
}

/* 无限滚动加载提示 */
.load-more-trigger {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 0;
}

.loading-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.loading-more .loading {
    width: 40px;
    height: 40px;
}

.loading-more p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.loading-more.error p {
    color: #e74c3c;
    cursor: pointer;
}

.loading-more.error p:hover {
    text-decoration: underline;
}

/* 专题报道区域 */
.featured-reports {
    padding: 80px 0;
    background: rgba(0, 168, 255, 0.05);
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.report-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.report-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.report-image {
    height: 220px;
    width: 100%;
    overflow: hidden;
}

.report-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.report-card:hover .report-image img {
    transform: scale(1.1);
}

.report-content {
    padding: 30px;
}

.report-category {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(255, 159, 67, 0.1);
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.report-card h3 {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.report-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* 订阅区域 */
.subscribe-section {
    padding: 80px 0;
    background: var(--gradient-dark);
    text-align: center;
}

.subscribe-content h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 20px;
}

.subscribe-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.subscribe-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.form-group input {
    flex: 1;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: white;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group button {
    padding: 16px 30px;
    white-space: nowrap;
}

.form-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* 空状态 */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 60px;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.empty-state h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.empty-state p {
    color: rgba(255, 255, 255, 0.5);
    max-width: 400px;
    margin: 0 auto;
}

/* 文章详情页样式 */
.article-detail {
    padding: 160px 0 80px;
    background: white;
    color: #333;
    min-height: 100vh;
}

.article-detail-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.article-detail-header {
    margin-bottom: 40px;
}

.article-detail-category {
    display: inline-block;
    padding: 6px 15px;
    background: rgba(0, 168, 255, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.article-detail-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
    line-height: 1.3;
}

.article-detail-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    color: #666;
    font-size: 0.95rem;
}

.article-detail-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-detail-meta i {
    color: var(--primary-color);
}

.article-detail-image {
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 30px;
}

.article-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-detail-body {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #333;
}

.article-detail-body img {
    max-width: 100%;
}

.article-detail-body h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: #333;
    margin: 40px 0 20px;
}

.article-detail-body h3 {
    font-size: 1.4rem;
    color: #333;
    margin: 30px 0 15px;
}

.article-detail-body p {
    margin-bottom: 20px;
}

.article-detail-body ul,
.article-detail-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-detail-body li {
    margin-bottom: 10px;
}

.article-detail-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #666;
}

.article-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 40px 0;
}

.article-tag {
    display: inline-block;
    padding: 6px 15px;
    background: rgba(0, 0, 0, 0.05);
    color: #666;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
}

.article-tag:hover {
    background: var(--primary-color);
    color: white;
}

.article-detail-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.article-detail-share {
    display: flex;
    align-items: center;
    gap: 15px;
}

.article-detail-share span {
    color: #666;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    text-decoration: none;
    transition: var(--transition);
}

.share-button:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* 相关文章区域 */
.related-articles {
    padding: 80px 0;
    background: rgba(10, 14, 23, 0.8);
}

/* 响应式设计 */
@media (max-width: 768px) {

    .popular-articles-grid,
    .article-list,
    .reports-grid {
        grid-template-columns: 1fr;
    }

    .article-detail-content {
        padding: 20px;
    }

    .article-detail-title {
        font-size: 2rem;
    }

    .article-detail-image {
        height: 250px;
    }

    .article-detail-meta {
        flex-direction: column;
        gap: 10px;
    }

    .article-detail-footer {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .form-group {
        flex-direction: column;
    }

    .form-group button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .article-detail-title {
        font-size: 1.8rem;
    }

    .article-detail-body {
        font-size: 1rem;
    }
}