@charset "utf-8";

/* 文章详情页增强样式 */

.article-detail {
    background: #fff;
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.article-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 32px;
    margin-bottom: 32px;
}

.article-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
    margin-top: 16px;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #888;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-content {
    font-size: 17px;
    line-height: 1.85;
    color: #444;
}

.article-content p {
    margin-bottom: 24px;
    text-align: justify;
}

.article-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 28px auto;
    display: block;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
    margin: 32px 0 16px;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
}

.article-content h1 {
    font-size: 28px;
}

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

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

.article-content h4 {
    font-size: 18px;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 28px;
}

.article-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.article-content ul li {
    list-style: disc;
}

.article-content ol li {
    list-style: decimal;
}

.article-content blockquote {
    border-left: 4px solid #667eea;
    padding: 16px 24px;
    margin: 24px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #f5f7fa 100%);
    border-radius: 0 12px 12px 0;
    color: #555;
}

.article-content blockquote p:last-child {
    margin-bottom: 0;
}

.article-content a {
    color: #667eea;
    text-decoration: underline;
}

.article-content a:hover {
    color: #764ba2;
}

.article-content code {
    background: #f4f4f4;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: "SF Mono", Monaco, Inconsolata, "Roboto Mono", monospace;
    font-size: 0.9em;
    color: #e62828;
}

.article-content pre {
    background: #1a1a2e;
    color: #eee;
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 24px 0;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: 0.95em;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.article-content th,
.article-content td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.article-content th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 600;
}

.article-content tr:hover td {
    background: #f8f9ff;
}

.article-content tr:last-child td {
    border-bottom: none;
}

.article-tags {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.article-tags h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.article-tags-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.article-tags-list a {
    display: inline-block;
    padding: 6px 16px;
    background: #f5f7fa;
    color: #667eea;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.article-tags-list a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.article-share {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.article-share h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

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

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.share-btn:hover {
    background: #667eea;
    color: #fff;
}

/* 相关文章增强 */
.news-mini-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.news-mini-item:hover {
    background: #f8f9ff;
    border-color: #e0e5ff;
    transform: translateX(4px);
}

.news-mini-item strong {
    font-size: 15px;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
}

.news-mini-item span {
    font-size: 13px;
    color: #777;
    line-height: 1.5;
}

/* 热门列表增强 */
.hot-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hot-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.hot-list li:last-child {
    border-bottom: none;
}

.hot-list li a {
    font-size: 15px;
    color: #444;
    line-height: 1.5;
    display: block;
    transition: color 0.3s ease;
}

.hot-list li a:hover {
    color: #667eea;
}

/* 排行榜增强 */
.rank-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 0;
    list-style: none;
    counter-reset: rank-counter;
}

.rank-list li {
    counter-increment: rank-counter;
    padding: 10px 0 10px 36px;
    position: relative;
    border-bottom: 1px dashed #eee;
}

.rank-list li::before {
    content: counter(rank-counter);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}

.rank-list li:nth-child(1)::before {
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
}

.rank-list li:nth-child(2)::before {
    background: linear-gradient(135deg, #c0c0c0 0%, #a0a0a0 100%);
}

.rank-list li:nth-child(3)::before {
    background: linear-gradient(135deg, #cd7f32 0%, #a0522d 100%);
}

.rank-list li:last-child {
    border-bottom: none;
}

.rank-list li a {
    font-size: 15px;
    color: #444;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.rank-list li a:hover {
    color: #667eea;
}
