/* 文章详情页专用样式 - 基于原型图设计 */

:root {
    --primary-color: #5D3FD3;
    --primary-light: #7B5FE6;
    --primary-dark: #4A2FB8;
    --secondary-color: #F8F9FA;
    --text-color: #333;
    --text-light: #666;
    --border-color: #E9ECEF;
    --hover-color: #F1F3F4;
    --shadow-light: 0 2px 8px rgba(93, 63, 211, 0.08);
    --shadow-medium: 0 4px 15px rgba(93, 63, 211, 0.12);
    --shadow-heavy: 0 8px 25px rgba(93, 63, 211, 0.15);
}

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

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* 无障碍访问 - 跳转到主内容 */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 9999;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 6px;
}

/* 主要内容容器 - 左右布局 */
.main-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: start;
}

/* 面包屑导航 */
.breadcrumb-nav {
    grid-column: 1 / -1;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.breadcrumb a:hover,
.breadcrumb a:focus {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumb .separator {
    color: var(--text-light);
    margin: 0 0.5rem;
}

.breadcrumb .current {
    color: var(--text-light);
    font-weight: 500;
}

.breadcrumb .current span {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 内容区域布局 */
.content-wrapper {
    display: contents;
}

/* 左侧边栏 */
.left-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sidebar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.sidebar-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.sidebar-title {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 当前标签卡片 */
.current-tag-section {
    margin-bottom: 15px;
    text-align: center;
}

.tag-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 20px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(37, 117, 252, 0.3);
    transition: all 0.3s ease;
}

.tag-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(37, 117, 252, 0.4);
    color: white;
    text-decoration: none;
}

.tag-badge i {
    margin-right: 8px;
    font-size: 16px;
}

/* 相关推荐卡片 */
.related-articles-card {
    min-height: 800px;
    max-height: none;
    overflow-y: visible;
}

.related-article-item {
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.related-article-link {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-article-link:hover {
    background-color: #f0f2f5;
    text-decoration: none;
    color: #2575fc;
}

.related-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    border-radius: 50%;
    margin-right: 12px;
    color: white;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.related-content {
    flex: 1;
    min-width: 0;
}

.related-title {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
    transition: color 0.3s ease;
}

.related-article-link:hover .related-title {
    color: #2575fc;
}

.related-meta {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #666;
}

.related-meta i {
    margin-right: 4px;
    color: #999;
}

/* 没有相关文章时的样式 */
.no-related {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
    color: #999;
    text-align: center;
}

.no-related i {
    font-size: 36px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.no-related p {
    margin: 0;
    font-size: 14px;
}

/* 右侧主内容区 */
.main-content {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    min-height: 600px;
}

/* 文章头部 */
.article-header {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.article-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.3;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-meta-main {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
    align-items: center;
}

.meta-item-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: var(--secondary-color);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.meta-item-main:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* 文章特色图片 */
.article-featured-image {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-featured-image-placeholder {
    height: 200px;
    background: linear-gradient(135deg, var(--secondary-color), #e8f0fe);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 3rem;
    border: 2px dashed var(--border-color);
}

/* 文章内容 */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.article-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.article-content h2 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.article-content h3 {
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin: 1.5rem 0 0.8rem;
}

.article-content strong {
    color: var(--primary-color);
}

.article-content ul,
.article-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-light);
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: var(--shadow-light);
}

/* 文章总结概述 */
.article-summary {
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, var(--secondary-color), #e8f0fe);
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.article-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.article-summary h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-summary h2::before {
    content: '\f0c9';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.summary-content {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(93, 63, 211, 0.1);
    position: relative;
}

.summary-content p {
    margin-bottom: 0;
    line-height: 1.8;
    color: var(--text-color);
    font-size: 1.05rem;
    text-align: justify;
    position: relative;
}

.summary-content::before {
    content: '\201C';
    position: absolute;
    top: -0.5rem;
    left: 0.5rem;
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.3;
    font-family: Georgia, serif;
}

.summary-content::after {
    content: '\201D';
    position: absolute;
    bottom: -1rem;
    right: 0.5rem;
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.3;
    font-family: Georgia, serif;
}

/* 文章底部交互区域 */
.article-footer {
    margin-top: 3rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8f9ff, #ffffff);
    border-radius: 20px;
    border: 1px solid rgba(93, 63, 211, 0.1);
    box-shadow: var(--shadow-light);
}

/* 文章标签区域 */
.article-tags-section {
    margin-bottom: 2rem;
    padding: 0 2rem;
}

.tags-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.tags-header i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tag-item {
    background: linear-gradient(135deg, var(--secondary-color), #f0f4ff);
    color: var(--primary-color);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tag-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.tag-item:hover::before {
    left: 100%;
}

.tag-item.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-color: var(--primary-light);
    box-shadow: 0 4px 15px rgba(93, 63, 211, 0.3);
}

.tag-item:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(93, 63, 211, 0.4);
    border-color: var(--primary-light);
    text-decoration: none;
}

/* 文章互动区域 */
.article-engagement {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    padding: 0 2rem;
    border-top: 1px solid rgba(93, 63, 211, 0.1);
    padding-top: 2rem;
}

.engagement-left {
    flex: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-card {
    background: white;
    padding: 1.2rem;
    border-radius: 15px;
    border: 1px solid rgba(93, 63, 211, 0.1);
    box-shadow: 0 2px 10px rgba(93, 63, 211, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(93, 63, 211, 0.2);
    border-color: var(--primary-color);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), #e8f0fe);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
}

.stat-icon i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.stat-icon.love {
    background: linear-gradient(135deg, #ffe6f0, #ffb3d6);
}

.stat-icon.love i {
    color: #e91e63;
}

.stat-icon.comment {
    background: linear-gradient(135deg, #e6f7ff, #bae7ff);
}

.stat-icon.comment i {
    color: #1890ff;
}

.stat-info {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.stat-card:hover .stat-icon i {
    color: white;
}

.engagement-right {
    flex-shrink: 0;
}

.share-section {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(93, 63, 211, 0.1);
    box-shadow: 0 2px 10px rgba(93, 63, 211, 0.08);
    min-width: 200px;
}

.share-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.share-header i {
    font-size: 1.1rem;
}

.share-buttons {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
}

.share-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 50px;
    position: relative;
    overflow: hidden;
}

.share-button i {
    font-size: 1.3rem;
}

.share-button span {
    font-size: 0.75rem;
    font-weight: 500;
}

.share-button.weixin { 
    background: linear-gradient(135deg, #07C160, #06A651);
    box-shadow: 0 4px 15px rgba(7, 193, 96, 0.3);
}
.share-button.weibo { 
    background: linear-gradient(135deg, #E6162D, #C41230);
    box-shadow: 0 4px 15px rgba(230, 22, 45, 0.3);
}
.share-button.qq { 
    background: linear-gradient(135deg, #12B7F5, #0FA3E0);
    box-shadow: 0 4px 15px rgba(18, 183, 245, 0.3);
}

.share-button:hover {
    transform: translateY(-3px) scale(1.05);
    text-decoration: none;
    color: white;
}

.share-button.weixin:hover { 
    box-shadow: 0 8px 25px rgba(7, 193, 96, 0.4);
}
.share-button.weibo:hover { 
    box-shadow: 0 8px 25px rgba(230, 22, 45, 0.4);
}
.share-button.qq:hover { 
    box-shadow: 0 8px 25px rgba(18, 183, 245, 0.4);
}

/* 错误页面 */
.error-container {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
}

.error-message i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.error-message h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.error-message p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    text-decoration: none;
    color: white;
}

/* 滚动条样式 */
.related-articles-card::-webkit-scrollbar {
    width: 6px;
}

.related-articles-card::-webkit-scrollbar-track {
    background: var(--secondary-color);
    border-radius: 3px;
}

.related-articles-card::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.related-articles-card::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* 响应式设计 */
/* 大屏设备优化 */
@media (min-width: 1400px) {
    .main-container {
        max-width: 1600px;
        grid-template-columns: 320px 1fr;
    }
}

/* 中等屏幕 */
@media (max-width: 1200px) {
    .main-container {
        grid-template-columns: 280px 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
}

/* 平板设备 */
@media (max-width: 992px) {
    .main-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 1.5rem auto;
    }

    .left-sidebar {
        order: 2;
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .main-content {
        order: 1;
    }

    .related-articles-card {
        min-height: auto;
        max-height: 500px;
        overflow-y: auto;
    }
}

/* 手机设备 */
@media (max-width: 768px) {
    .main-container {
        margin: 1rem auto;
        padding: 0 1rem;
        gap: 1rem;
    }

    .breadcrumb-nav {
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
    }

    .main-content {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .article-title {
        font-size: 1.6rem;
        line-height: 1.2;
    }

    .article-meta-main {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
    }

    .meta-item-main {
        padding: 0.3rem 0.6rem;
        font-size: 0.85rem;
    }

    .article-content {
        font-size: 1rem;
        line-height: 1.7;
    }

    .article-content h2 {
        font-size: 1.4rem;
        margin: 1.5rem 0 0.8rem;
    }

    .article-content h3 {
        font-size: 1.2rem;
        margin: 1.2rem 0 0.6rem;
    }

    .article-footer {
        margin-top: 2rem;
        padding: 1.5rem 0;
    }

    .article-engagement {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .share-section {
        padding: 1rem;
        min-width: auto;
    }

    .share-buttons {
        gap: 0.6rem;
    }

    .share-button {
        padding: 0.6rem;
        min-width: 45px;
    }

    .share-button i {
        font-size: 1.1rem;
    }

    .share-button span {
        font-size: 0.7rem;
    }

    .tags-container {
        gap: 0.6rem;
    }

    .tag-item {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .left-sidebar {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .sidebar-card {
        padding: 1rem;
    }

    .tag-badge {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    .related-articles-card {
        min-height: auto;
        max-height: 400px;
        overflow-y: auto;
    }

    .related-article-link {
        padding: 0.8rem;
    }

    .related-article-item {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }

    .related-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .related-title {
        font-size: 0.85rem;
    }

    .related-meta {
        font-size: 0.7rem;
    }

    .article-summary {
        margin: 1.5rem 0;
        padding: 1.5rem;
    }

    .article-summary h2 {
        font-size: 1.3rem;
    }

    .summary-content {
        padding: 1rem;
    }

    .summary-content p {
        font-size: 1rem;
    }
}

/* 小屏手机优化 */
@media (max-width: 480px) {
    .main-container {
        padding: 0 0.5rem;
    }

    .breadcrumb-nav {
        padding: 0.6rem 0.8rem;
        margin-bottom: 0.8rem;
    }

    .breadcrumb {
        font-size: 0.8rem;
        flex-wrap: wrap;
    }

    .main-content {
        padding: 1rem;
    }

    .article-title {
        font-size: 1.4rem;
    }

    .article-content {
        font-size: 0.95rem;
    }

    .article-footer {
        margin-top: 1.5rem;
        padding: 1rem 0;
    }

    .article-tags-section {
        padding: 0 1rem;
        margin-bottom: 1rem;
    }

    .tags-header {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .tags-container {
        gap: 0.4rem;
    }

    .tag-item {
        padding: 0.25rem 0.6rem;
        font-size: 0.8rem;
    }

    .article-engagement {
        padding: 0 1rem;
        padding-top: 1rem;
        gap: 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
    }

    .stat-card {
        padding: 0.6rem;
    }

    .stat-icon {
        width: 30px;
        height: 30px;
        margin-bottom: 0.4rem;
    }

    .stat-icon i {
        font-size: 0.9rem;
    }

    .stat-number {
        font-size: 1rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .share-section {
        padding: 0.8rem;
    }

    .share-header {
        font-size: 0.85rem;
        margin-bottom: 0.6rem;
    }

    .share-buttons {
        gap: 0.4rem;
    }

    .share-button {
        padding: 0.4rem;
        min-width: 35px;
    }

    .share-button i {
        font-size: 0.9rem;
    }

    .share-button span {
        font-size: 0.6rem;
    }

    .current-tag-section .tag-badge {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .related-articles-card {
        min-height: auto;
        max-height: 300px;
        overflow-y: auto;
    }

    .article-summary {
        margin: 1rem 0;
        padding: 1rem;
    }

    .article-summary h2 {
        font-size: 1.2rem;
    }

    .summary-content {
        padding: 0.8rem;
    }

    .summary-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .summary-content::before,
    .summary-content::after {
        font-size: 2rem;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .stat-card,
    .tag-item,
    .share-button,
    .related-article-link {
        min-height: 44px;
        min-width: 44px;
    }

    .stat-card:hover,
    .tag-item:hover,
    .share-button:hover {
        transform: none;
    }
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
    .article-title {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* 打印样式 */
@media print {
    .left-sidebar,
    .breadcrumb-nav,
    .article-actions {
        display: none !important;
    }

    .main-container {
        grid-template-columns: 1fr !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .main-content {
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
    }

    .article-title {
        color: #000 !important;
        background: none !important;
        -webkit-text-fill-color: #000 !important;
    }

    body {
        background: white !important;
    }
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
} 