/* 文章页面样式 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

/* 文章容器 */
.article-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* 文章头部 */
.article-header {
    padding: 40px;
    border-bottom: 1px solid #e1e5e9;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.article-category {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.article-date {
    color: #999;
}

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

.article-summary {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 400;
}

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

.article-tags span {
    background: #f8f9fa;
    color: #666;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    border: 1px solid #e1e5e9;
}

/* 封面图片 */
.article-cover {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
}

.cover-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* 文章内容 */
.article-content {
    padding: 40px;
    line-height: 1.8;
    font-size: 16px;
    color: #333;
}

.article-content h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 30px 0 15px 0;
}

.article-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 25px 0 12px 0;
}

.article-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    text-align: justify;
    word-wrap: break-word;
    hyphens: auto;
}

/* 缩进段落样式 */
.article-content p[style*="text-indent"] {
    text-indent: 2em;
    margin-bottom: 20px;
}

/* 首行缩进样式 */
.article-content p:not([style*="text-indent"]) {
    text-indent: 2em;
}

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

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

.article-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #666;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 增强列表样式 */
.article-content ul, .article-content ol {
    margin: 20px 0;
    padding-left: 30px;
    line-height: 1.6;
}

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

/* 增强引用样式 */
.article-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #666;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* 增强粗体和斜体样式 */
.article-content strong {
    font-weight: 600;
    color: #333;
}

.article-content em {
    font-style: italic;
    color: #555;
}

/* 段落间距优化 */
.article-content p + p {
    margin-top: 15px;
}

/* 标题与段落间距 */
.article-content h2 + p,
.article-content h3 + p {
    margin-top: 10px;
}

/* 文章底部 */
.article-footer {
    padding: 40px;
    border-top: 1px solid #e1e5e9;
    background: #f8f9fa;
}

.article-share {
    margin-bottom: 30px;
}

.article-share h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

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

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.share-btn.x-twitter {
    background: #000000;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.weibo {
    background: #e6162d;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.article-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-navigation a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    border: 2px solid #667eea;
    transition: all 0.3s ease;
}

.article-navigation a:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* 侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.sidebar-widget h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* 相关文章 */
.related-articles {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.related-article {
    display: flex;
    gap: 15px;
    padding: 15px;
    border: 1px solid #e1e5e9;
    border-radius: 10px;
    transition: border-color 0.3s ease;
}

.related-article:hover {
    border-color: #667eea;
}

.related-article img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.related-article-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.related-article-info p {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

/* 应用下载 */
.app-download {
    text-align: center;
    padding: 20px;
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.app-download h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.app-download p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.download-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.download-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .sidebar {
        order: -1;
    }
    
    .sidebar-widget {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 20px 15px;
    }
    
    .article-header {
        padding: 25px;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-content {
        padding: 25px;
    }
    
    .article-footer {
        padding: 25px;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .article-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .article-navigation a {
        width: 100%;
        justify-content: center;
    }
    
    .related-article {
        flex-direction: column;
        text-align: center;
    }
    
    .related-article img {
        width: 100%;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 24px;
    }
    
    .article-summary {
        font-size: 16px;
    }
    
    .article-content {
        font-size: 15px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
}

/* 状态徽章 */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.published {
    background: #d4edda;
    color: #155724;
}

.status-badge.draft {
    background: #fff3cd;
    color: #856404;
}

/* 加载动画 */
.loading-article {
    text-align: center;
    padding: 60px 20px;
}

.loading-article .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 错误状态 */
.article-error {
    text-align: center;
    padding: 60px 20px;
    color: #721c24;
}

.article-error .error-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #dc3545;
}

.article-error h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.article-error p {
    color: #666;
    margin-bottom: 25px;
}

.article-error .retry-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.article-error .retry-btn:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
} 

/* 新闻页面专用页脚样式 */
.news-footer {
    margin-top: 60px;
}

.news-footer .footer {
    background: var(--gray-900);
    color: var(--white);
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
    margin-top: 0;
}

.news-footer .footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.news-footer .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.news-footer .footer-section {
    margin-bottom: var(--spacing-lg);
}

.news-footer .footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.news-footer .footer-logo img {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
}

.news-footer .footer-logo span {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--white);
}

.news-footer .footer-section h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: var(--white);
}

.news-footer .footer-section p {
    color: var(--gray-400);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

.news-footer .footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-footer .footer-section li {
    margin-bottom: var(--spacing-sm);
}

.news-footer .footer-section a {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition-normal);
    font-size: var(--font-size-sm);
}

.news-footer .footer-section a:hover {
    color: var(--primary-color);
}

.news-footer .social-links {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.news-footer .social-links a {
    color: var(--gray-400);
    font-size: var(--font-size-xl);
    transition: var(--transition-normal);
    text-decoration: none;
}

.news-footer .social-links a:hover {
    color: var(--primary-color);
}

.news-footer .footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.news-footer .footer-bottom p {
    color: var(--gray-400);
    font-size: var(--font-size-sm);
    margin: 0;
}

.news-footer .footer-links {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.news-footer .footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: var(--transition-normal);
}

.news-footer .footer-links a:hover {
    color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-footer .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .news-footer .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .news-footer .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .news-footer .footer {
        padding: var(--spacing-2xl) 0 var(--spacing-lg);
    }
    
    .news-footer .footer .container {
        padding: 0 var(--spacing-md);
    }
} 