/* 复古风格全局变量 */
:root {
    --vintage-color-primary: #8B4513;
    --vintage-color-secondary: #CD853F;
    --vintage-color-accent: #D2691E;
    --vintage-paper: #F5F5DC;
    --vintage-border: #8B4513;
    --vintage-text-color: #4A4A4A;
    --vintage-shadow: 4px 4px 0 rgba(139, 69, 19, 0.2);
    --vintage-hover-shadow: 6px 6px 0 rgba(139, 69, 19, 0.3);
}

/* 页面横幅 */
.page-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://19174191.s61i.faiusr.com/2/AD0Ir6aSCRACGAAghYe25QUonJaOiQEw_g44oAY.jpg.webp') center/cover;
    opacity: 0.1;
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner-content h1 {
    font-size: 36px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 内容容器 */
.content-container {
    padding: 60px 0;
    background-color: var(--bg-color);
}

.vintage-content {
    background-color: var(--vintage-paper);
    background-image: url('https://19174191.s61i.faiusr.com/2/AD0Ir6aSCRACGAAghYe25QUonJaOiQEw_g44oAY.jpg.webp');
    background-size: cover;
    background-attachment: fixed;
}

/* 文章样式 */
.content-article {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 40px;
    margin-bottom: 30px;
}

.vintage-article {
    background-color: var(--vintage-paper);
    border: 2px solid var(--vintage-border);
    border-radius: 0;
    box-shadow: var(--vintage-shadow);
}

.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.vintage-header {
    border-bottom: 2px solid var(--vintage-border);
}

.article-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 16px;
    line-height: 1.3;
}

.vintage-title {
    font-family: 'Times New Roman', serif;
    color: var(--vintage-text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-meta {
    display: flex;
    gap: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.vintage-meta {
    font-family: 'Times New Roman', serif;
    color: var(--vintage-color-secondary);
}

/* 文章内容样式 */
.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
}

.vintage-content {
    font-family: 'Times New Roman', serif;
    color: var(--vintage-text-color);
    background: var(--vintage-paper);
}

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

.article-content h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 40px 0 20px;
    color: var(--text-color);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.vintage-content h2 {
    font-family: 'Times New Roman', serif;
    color: var(--vintage-text-color);
    border-bottom: 2px solid var(--vintage-border);
}

.article-content ul, .article-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.vintage-content ul, .vintage-content ol {
    font-family: 'Times New Roman', serif;
    color: var(--vintage-text-color);
}

.notice-box {
    background-color: rgba(var(--primary-rgb), 0.05);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.vintage-notice {
    background-color: var(--vintage-paper);
    border-left: 4px solid var(--vintage-color-primary);
    border-radius: 0;
}

.notice-box h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 10px;
}

.vintage-notice h3 {
    font-family: 'Times New Roman', serif;
    color: var(--vintage-color-primary);
}

.article-signature {
    font-style: italic;
    text-align: right;
    margin-top: 40px;
    color: var(--text-secondary);
}

.vintage-signature {
    font-family: 'Times New Roman', serif;
    color: var(--vintage-color-secondary);
}

/* 文章底部 */
.article-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.article-tags, .article-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.article-tags span, .article-share span {
    color: #777;
}

.article-tags a {
    display: inline-block;
    padding: 5px 12px;
    background-color: #f0f0f0;
    border-radius: 20px;
    color: #666;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-tags a:hover {
    background-color: var(--primary-color);
    color: white;
}

.share-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-link:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 相关文章 */
.content-related {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.related-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color);
    padding-bottom: 10px;
    border-bottom: 1px solid #eaeaea;
}

.related-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.related-item {
    border-bottom: 1px solid #f0f0f0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.related-item:last-child {
    border-bottom: none;
}

.related-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    text-decoration: none;
    color: #444;
    transition: color 0.3s ease;
}

.related-item a:hover {
    color: var(--primary-color);
}

.related-item-title {
    flex-grow: 1;
    margin-right: 15px;
}

.related-item-date {
    color: #999;
    font-size: 0.85rem;
    white-space: nowrap;
}

.related-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* 侧边栏样式 */
.content-sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 30px;
    margin-bottom: 30px;
}

.widget-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

/* 分类列表 */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vintage-list {
    border: 1px solid var(--vintage-border);
    padding: 10px;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    display: block;
    padding: 12px 16px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: var(--bg-color);
}

.vintage-link {
    font-family: 'Times New Roman', serif;
    color: var(--vintage-text-color);
    border: 1px solid var(--vintage-border);
    border-radius: 0;
    transition: all 0.3s ease;
}

.vintage-link:hover, .vintage-link.active {
    background-color: var(--vintage-color-primary);
    color: var(--vintage-paper);
    transform: translate(2px, 2px);
    box-shadow: var(--vintage-hover-shadow);
}

/* 热门列表 */
.popular-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.popular-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.popular-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-index {
    width: 28px;
    height: 28px;
    background-color: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    margin-right: 12px;
    flex-shrink: 0;
}

.popular-item:nth-child(1) .popular-index {
    background-color: #ffcc00;
    color: white;
}

.popular-item:nth-child(2) .popular-index {
    background-color: #c0c0c0;
    color: white;
}

.popular-item:nth-child(3) .popular-index {
    background-color: #cd7f32;
    color: white;
}

.popular-item a {
    text-decoration: none;
    color: #444;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.popular-item a:hover {
    color: var(--primary-color);
}

/* 联系客服 */
.contact-info {
    color: #666;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-item i {
    width: 30px;
    height: 30px;
    background-color: rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-right: 10px;
}

.contact-qr {
    text-align: center;
    margin-top: 20px;
}

.contact-qr img {
    width: 150px;
    height: 150px;
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.contact-qr p {
    font-size: 0.9rem;
    color: #777;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .container {
        grid-template-columns: 1fr !important;
    }
    
    .content-sidebar {
        position: static;
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .content-article {
        padding: 30px 20px;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .notice-box {
        padding: 16px;
    }
}

@media (max-width: 576px) {
    .content-container {
        padding: 40px 0;
    }
    
    .content-article, .sidebar-widget {
        padding: 24px 16px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .article-content {
        font-size: 15px;
    }
}

/* 阅读进度条 */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background-color: var(--primary-color);
    width: 0;
    z-index: 1000;
    transition: width 0.1s ease, opacity 0.3s ease;
    opacity: 0;
}

.reading-progress-bar.visible {
    opacity: 1;
}

/* 微信分享弹窗 */
.share-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.share-overlay.show {
    opacity: 1;
}

.wechat-qr-container {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    max-width: 300px;
    width: 100%;
    text-align: center;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.wechat-qr-container.show {
    transform: scale(1);
}

.wechat-qr-container h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: var(--text-color);
}

.wechat-qr-container .qr-code {
    margin-bottom: 20px;
}

.wechat-qr-container .qr-code img {
    width: 200px;
    height: 200px;
    display: block;
    margin: 0 auto;
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.wechat-qr-container p {
    margin-bottom: 20px;
    color: #666;
}

.wechat-qr-container .close-qr {
    padding: 10px 25px;
} 