﻿/* article.css - 内容页特有样式 */
/* 文章头部 */
.article-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
}

.article-header h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

/* 作者信息 */
.author-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding: 20px;
    background: var(--surface);
    border-radius: var(--radius);
}

.author-info img {
    border-radius: 50%;
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.author-details {
    flex: 1;
}

.author-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.author-title {
    color: var(--primary-color);
    font-size: 0.875rem;
    margin: 5px 0;
}

.author-bio {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* 文章摘要 */
.article-summary {
    background: #f0f7ff;
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.article-summary p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-primary);
}

/* 文章正文 */
.article-body {
    line-height: 1.8;
    font-size: 1.125rem;
}

.article-body h2 {
    margin-top: 40px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}

.article-body h3 {
    margin-top: 30px;
    color: var(--text-secondary);
    font-size: 1.3rem;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.article-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 30px 0;
    background: var(--surface);
    font-style: italic;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.article-body blockquote p {
    margin: 0;
    color: var(--text-secondary);
}
.article-body pre {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}
/* 数据表格 */
.data-table {
    margin: 30px 0;
    overflow-x: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 600px;
}

.data-table caption {
    caption-side: top;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: left;
    color: var(--text-primary);
    padding: 10px 0;
    font-size: 1.1rem;
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    border: 1px solid var(--border);
    text-align: left;
}

.data-table th {
    background: var(--surface);
    font-weight: 600;
    color: var(--text-primary);
    position: sticky;
    top: 0;
}

.data-table tr:nth-child(even) {
    background: #f9f9f9;
}

.data-table tr:hover {
    background: #f0f7ff;
}

/* 投资建议 */
.investment-tips {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.investment-tips h3 {
    color: #e65100;
    margin-top: 0;
}

.investment-tips ul {
    list-style: none;
    margin: 15px 0 0 0;
}

.investment-tips li {
    padding: 8px 0;
    position: relative;
    padding-left: 20px;
    line-height: 1.6;
}

.investment-tips li:before {
    content: "→";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* FAQ部分 */
.faq-section {
    margin: 50px 0;
    padding: 30px;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.faq-section h2 {
    color: var(--primary-color);
    border-bottom: none;
    margin-top: 0;
}

.faq-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-item h3:before {
    content: "Q:";
    font-weight: bold;
    color: var(--accent-color);
}

.faq-item p {
    margin: 0;
    padding-left: 30px;
    position: relative;
}

.faq-item p:before {
    content: "A:";
    position: absolute;
    left: 0;
    font-weight: bold;
    color: var(--secondary-color);
}

/* 文章底部 */
.article-footer {
	/*
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--border);
	*/
}
.article-tags {
    margin-bottom: 30px;
}

.article-tags strong {
    display: block;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.article-tags a {
    display: inline-block;
    background: var(--surface);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.article-tags a:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* 分享功能 */
.article-share {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.article-share strong {
    color: var(--text-secondary);
    font-weight: 500;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 8px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.share-btn.wechat:hover {
    background: #07c160;
    color: white;
    border-color: #07c160;
}

.share-btn.weibo:hover {
    background: #e6162d;
    color: white;
    border-color: #e6162d;
}

.share-btn.copy:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
    /* 文章导航链接样式 */
    .article-navigation {
        margin-top: 40px;
        padding-top: 20px;
        border-top: 1px solid var(--border);
    }
    
    .nav-links {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .prev-article, .next-article {
        display: block;
        padding: 12px 20px;
        background: var(--surface);
        border-radius: var(--radius);
        color: var(--text-primary);
        transition: all 0.2s;
        flex: 1;
        min-width: 200px;
        text-align: center;
    }
    
    .prev-article:hover, .next-article:hover {
        background: var(--primary-color);
        color: white;
        text-decoration: none;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

/* 目录导航 */
.table-of-contents {
    position: sticky;
    top: 100px;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.toc-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.toc-list {
    list-style: none;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

.toc-list li {
    margin-bottom: 8px;
}

.toc-list a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: block;
    padding: 5px 0;
    border-left: 3px solid transparent;
    padding-left: 10px;
    transition: all 0.2s;
}

.toc-list a:hover {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    text-decoration: none;
    background: rgba(26, 115, 232, 0.05);
}

.toc-list a.active {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 500;
    background: rgba(26, 115, 232, 0.1);
}


/* 推荐文章列表 */
.recommended-list {
    list-style: none;
}

.recommended-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    transition: padding-left 0.2s;
}

.recommended-list li:hover {
    padding-left: 5px;
}

.recommended-list li:last-child {
    border-bottom: none;
}

.recommended-list a {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.recommended-list a:hover {
    color: var(--primary-color);
    text-decoration: none;
}
/* 响应式调整 */
@media (max-width: 768px) {
    .article-header h1 {
        font-size: 1.8rem;
    }
    
    .author-info {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .article-share {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .share-buttons {
        width: 100%;
    }
    
    .share-btn {
        flex: 1;
        justify-content: center;
    }
    
    .author-detail .author-content {
        flex-direction: column;
        text-align: center;
    }
    
    .author-links {
        justify-content: center;
    }
    
    .table-of-contents {
        position: static;
    }
    
        .nav-links {
            flex-direction: column;
        }
}