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

/* 新闻容器 */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    animation: fadeIn 0.6s ease-out;
}

/* 新闻大图 */
.article-hero {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.article-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.article-hero:hover img {
    transform: scale(1.03);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 60px 30px 30px;
}

.image-caption {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 10px;
}

/* 新闻内容 */
.article-content {
    padding: 40px;
}

/* 标题区域 */
.article-header {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e2e8f0;
}

.article-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.article-tag {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.tag-market {
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
}

.article-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #0f172a;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #64748b;
    font-size: 14px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

/* 正文内容 */
.article-body {
    font-size: 17px;
    color: #334155;
}

.article-body p {
    margin-bottom: 24px;
}

.article-body h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 40px 0 20px;
    color: #0f172a;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.article-body h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 30px 0 15px;
    color: #1e293b;
}

/* 特色内容块 */
.feature-box {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-left: 4px solid #0ea5e9;
    padding: 25px;
    margin: 30px 0;
    border-radius: 0 10px 10px 0;
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-title i {
    color: #0ea5e9;
}

/* 数据图表 */
.data-chart {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-title {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
}

.chart-container {
    height: 200px;
    background: #f8fafc;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.chart-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #0ea5e9;
}

.chart-point {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #0ea5e9;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.4);
}

/* 引用块 */
.quote-block {
    border-left: 4px solid #f7931a;
    padding-left: 25px;
    margin: 30px 0;
    font-style: italic;
    color: #475569;
    font-size: 18px;
}

.quote-author {
    margin-top: 15px;
    font-style: normal;
    font-weight: 600;
    color: #0f172a;
    font-size: 15px;
}

/* 互动区域 */
.article-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    margin-top: 40px;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.action-buttons {
    display: flex;
    gap: 15px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #f1f5f9;
    border: none;
    border-radius: 10px;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 15px;
}

.action-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: translateY(-2px);
}

.action-btn.liked {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.action-btn.bookmarked {
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-twitter:hover {
    background: #1da1f2;
    color: white;
}

.share-telegram:hover {
    background: #0088cc;
    color: white;
}

.share-wechat:hover {
    background: #07c160;
    color: white;
}

/* 相关新闻 */
.related-articles {
    margin-top: 40px;
}

.related-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #0f172a;
}

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

.related-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #0ea5e9;
}

.related-image {
    height: 150px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.related-card:hover .related-image img {
    transform: scale(1.05);
}

.related-content {
    padding: 20px;
}

.related-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.related-title-small {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    color: #0f172a;
}

.related-time {
    font-size: 12px;
    color: #64748b;
}

/* 评论区域 */
.comments-section {
    margin-top: 50px;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.comments-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
}

.comment-form {
    background: #f8fafc;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.comment-input {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    margin-bottom: 15px;
    resize: vertical;
}

.comment-input:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.comment-submit {
    padding: 12px 30px;
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.comment-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.3);
}

/* 阅读进度条 */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    z-index: 1000;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, #0ea5e9, #8b5cf6);
    width: 0%;
    transition: width 0.3s ease;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0ea5e9;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #0ea5e9;
    color: white;
    transform: translateY(-5px);
}

/* 响应式设计 */
@media (max-width: 768px) {

    .article-container {
        border-radius: 16px;
    }

    .article-hero {
        height: 300px;
    }

    .image-overlay {
        padding: 40px 20px 20px;
    }

    .article-content {
        padding: 25px;
    }

    .article-title {
        font-size: 28px;
    }

    .article-body {
        font-size: 16px;
    }

    .article-body h2 {
        font-size: 24px;
    }

    .article-body h3 {
        font-size: 20px;
    }

    .article-actions {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .action-buttons {
        width: 100%;
        justify-content: space-between;
    }

    .action-btn {
        flex: 1;
        justify-content: center;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .article-hero {
        height: 250px;
    }

    .article-title {
        font-size: 24px;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .article-body {
        font-size: 15px;
    }

    .feature-box,
    .data-chart {
        padding: 20px;
        margin: 20px 0;
    }

    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .action-btn {
        width: 100%;
    }
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 代码块样式 */
.code-block {
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    overflow-x: auto;
}

.code-comment {
    color: #64748b;
}

.code-keyword {
    color: #0ea5e9;
}

.code-string {
    color: #10b981;
}
