/* ========================================
   天目舆情监测系统 - 文章页面样式
   ======================================== */

/* CSS变量 */
:root {
    --primary: #1e3c72;
    --primary-dark: #152a52;
    --primary-light: #2a5298;
    --secondary: #4ecdc4;
    --accent: #ff6b6b;
    --text-dark: #2c3e50;
    --text-medium: #5a6c7d;
    --text-light: #8b9aab;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e8ecf1;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf9 100%);
    min-height: 100vh;
}

/* ========================================
   头部导航
   ======================================== */
.site-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.site-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.site-header .logo a {
    font-size: 24px;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-header .logo a::before {
    content: '👁️';
    font-size: 28px;
}

.main-nav {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s;
}

.main-nav a:hover {
    color: white;
}

.main-nav a:hover::after {
    width: 100%;
}

/* ========================================
   面包屑导航
   ======================================== */
.breadcrumb {
    background: white;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumb-content a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-content a:hover {
    color: var(--primary-dark);
}

.breadcrumb-content span {
    color: var(--text-light);
}

/* ========================================
   文章主体内容
   ======================================== */
.article-content {
    padding: 40px 0 80px;
}

.article-content .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

article {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* 文章头部 */
.article-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 50px 60px;
    position: relative;
}

.article-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(78,205,196,0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.article-header h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    padding: 8px 16px;
    border-radius: 20px;
}

.article-meta .publish-date::before {
    content: '📅';
}

.article-meta .category::before {
    content: '📂';
}

.article-meta .industry::before {
    content: '🏭';
}

/* 文章内容 */
.article-body {
    padding: 50px 60px;
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-dark);
}

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

.article-body h2 {
    font-size: 26px;
    font-weight: 600;
    color: var(--primary);
    margin: 40px 0 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--secondary);
    position: relative;
}

.article-body h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
}

.article-body h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 30px 0 15px;
    padding-left: 15px;
    border-left: 4px solid var(--secondary);
}

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

.article-body li {
    margin-bottom: 12px;
    position: relative;
}

.article-body ul li::marker {
    color: var(--secondary);
    font-size: 1.2em;
}

.article-body strong {
    color: var(--primary);
    font-weight: 600;
}

.article-body a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 2px solid var(--secondary);
    transition: all 0.3s;
}

.article-body a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary);
}

/* 引用块 */
.article-body blockquote {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f4f8 100%);
    border-left: 5px solid var(--secondary);
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--text-medium);
}

.article-body blockquote p {
    margin: 0;
}

/* 文章底部 */
.article-footer {
    background: var(--bg-light);
    padding: 40px 60px;
    border-top: 1px solid var(--border-color);
}

.tags {
    margin-bottom: 25px;
}

.tags-label {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
    display: block;
}

.tag {
    display: inline-block;
    background: white;
    color: var(--primary);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    margin: 0 8px 8px 0;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
}

.tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    padding: 12px 24px;
    border: 2px solid var(--primary);
    border-radius: 30px;
    transition: all 0.3s;
}

.back-home:hover {
    background: var(--primary);
    color: white;
}

.back-home::before {
    content: '←';
}

/* 分享按钮 */
.share-section {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 18px;
}

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

/* ========================================
   底部
   ======================================== */
.site-footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    padding: 50px 0 30px;
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    margin: 8px 0;
    opacity: 0.9;
}

.footer-content .copyright {
    font-size: 14px;
    opacity: 0.7;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 768px) {
    .site-header .container {
        height: 60px;
    }
    
    .site-header .logo a {
        font-size: 18px;
    }
    
    .main-nav {
        display: none;
    }
    
    .article-header {
        padding: 30px 25px;
    }
    
    .article-header h1 {
        font-size: 24px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .article-body {
        padding: 30px 25px;
        font-size: 16px;
    }
    
    .article-body h2 {
        font-size: 22px;
    }
    
    .article-body h3 {
        font-size: 18px;
    }
    
    .article-footer {
        padding: 30px 25px;
    }
    
    .navigation {
        flex-direction: column;
        gap: 20px;
    }
}

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

article {
    animation: fadeInUp 0.6s ease-out;
}

/* 打印样式 */
@media print {
    .site-header,
    .breadcrumb,
    .article-footer,
    .site-footer {
        display: none;
    }
    
    article {
        box-shadow: none;
    }
    
    .article-body {
        padding: 20px;
    }
}