/* ===================================================
   新闻页面现代化样式表 - News Article Modern Styles
   =================================================== */

/* --------------------------
   基础变量定义
   -------------------------- */
:root {
    --primary-color: #257dff;
    --secondary-color: #0070d9;
    --accent-color: #00c4ff;
    --text-dark: #1a1a2e;
    --text-light: #666;
    --text-muted: #999;
    --bg-light: #f8f9fa;
    --bg-white: #fff;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(37, 125, 255, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------
   页面Banner - Modern Banner
   -------------------------- */
.page-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-banner .banner-inner {
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-banner .banner-title {
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out;
}

.page-banner .banner-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 8px;
    text-transform: uppercase;
    font-weight: 500;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* --------------------------
   面包屑导航 - Breadcrumb
   -------------------------- */
.breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-smooth);
    padding: 4px 8px;
    border-radius: 4px;
}

.breadcrumb a:hover {
    background: rgba(37, 125, 255, 0.1);
}

.breadcrumb span {
    color: var(--text-dark);
    font-weight: 500;
}

/* --------------------------
   阅读进度条 - Reading Progress
   -------------------------- */
.reading-progress {
    position: fixed;
    top: 70px;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    z-index: 1000;
    transition: width 0.1s ease-out;
}

/* --------------------------
   文章容器 - Article Container
   -------------------------- */
.page-container {
    padding: 40px 0 80px;
    background: var(--bg-light);
}

.article-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

/* --------------------------
   文章内容卡片 - Article Content Card
   -------------------------- */
.article-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.article-content:hover {
    box-shadow: var(--shadow-hover);
}

/* --------------------------
   文章头部 - Article Header
   -------------------------- */
.article-header {
    padding: 40px 50px 30px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #fafbff 0%, #f0f4ff 100%);
}

.article-title {
    font-size: 32px;
    line-height: 1.4;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--text-muted);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-meta span::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

.article-meta .author {
    color: var(--primary-color);
    font-weight: 500;
}

.article-meta .category a {
    color: var(--secondary-color);
    background: rgba(0, 112, 217, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.article-meta .category a:hover {
    background: var(--secondary-color);
    color: white;
}

/* --------------------------
   文章主体 - Article Body
   -------------------------- */
.article-body {
    padding: 40px 50px;
}

.article-cover {
    margin-bottom: 30px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.article-cover img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.article-content:hover .article-cover img {
    transform: scale(1.02);
}

.article-text {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-light);
}

.article-text p {
    margin-bottom: 20px;
    text-align: justify;
}

.article-text h2 {
    font-size: 24px;
    color: var(--text-dark);
    margin: 40px 0 20px;
    padding-left: 15px;
    border-left: 4px solid var(--primary-color);
    font-weight: 600;
}

.article-text h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin: 30px 0 15px;
}

.article-text ul, .article-text ol {
    margin: 20px 0;
    padding-left: 25px;
}

.article-text li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

.article-text li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.article-text strong {
    color: var(--text-dark);
    font-weight: 600;
}

.article-text a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition-smooth);
}

.article-text a:hover {
    border-bottom-color: var(--primary-color);
}

/* --------------------------
   文章底部 - Article Footer
   -------------------------- */
.article-footer {
    padding: 30px 50px;
    border-top: 1px solid #eee;
    background: #fafbff;
}

.back-to-list {
    display: flex;
    justify-content: flex-start;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(37, 125, 255, 0.3);
}

.btn-back:hover {
    background: var(--secondary-color);
    transform: translateX(-5px);
    box-shadow: 0 6px 16px rgba(37, 125, 255, 0.4);
}

/* --------------------------
   侧边栏 - Sidebar
   -------------------------- */
.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-section {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.sidebar-section:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.sidebar-title {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
    font-weight: 600;
    position: relative;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

/* --------------------------
   相关文章 - Related News
   -------------------------- */
.related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: var(--transition-smooth);
}

.related-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-list li:hover {
    transform: translateX(5px);
}

.related-list a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    font-size: 15px;
    line-height: 1.6;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: var(--transition-smooth);
    border-left: 3px solid transparent;
}

.related-list a:hover {
    background: rgba(37, 125, 255, 0.08);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

/* --------------------------
   联系区域 - Contact Section
   -------------------------- */
.contact-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
}

.contact-section .sidebar-title {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.contact-section .sidebar-title::after {
    background: white;
}

.contact-section p {
    margin-bottom: 15px;
    opacity: 0.9;
}

.contact-phone {
    font-size: 28px;
    font-weight: 700;
    margin: 20px 0;
    letter-spacing: 2px;
}

.btn-contact {
    display: inline-block;
    width: 100%;
    padding: 14px 24px;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* --------------------------
   动画 - Animations
   -------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* --------------------------
   响应式设计 - Responsive Design
   -------------------------- */
@media screen and (max-width: 1024px) {
    .article-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }

    .sidebar-section {
        margin-bottom: 0;
    }
}

@media screen and (max-width: 768px) {
    .page-banner {
        padding: 100px 0 60px;
        margin-top: 60px;
    }

    .page-banner .banner-title {
        font-size: 32px;
    }

    .page-banner .banner-subtitle {
        font-size: 14px;
        letter-spacing: 4px;
    }

    .article-header {
        padding: 30px 25px 20px;
    }

    .article-title {
        font-size: 24px;
    }

    .article-meta {
        font-size: 13px;
        gap: 15px;
    }

    .article-body {
        padding: 30px 25px;
    }

    .article-text {
        font-size: 15px;
        line-height: 1.8;
    }

    .article-text h2 {
        font-size: 20px;
    }

    .article-footer {
        padding: 25px;
    }

    .btn-back {
        width: 100%;
        justify-content: center;
    }

    .sidebar-section {
        padding: 25px;
    }

    .contact-phone {
        font-size: 24px;
    }
}

@media screen and (max-width: 480px) {
    .page-container {
        padding: 20px 0 60px;
    }

    .breadcrumb {
        font-size: 13px;
        padding: 15px 0;
    }

    .article-header {
        padding: 25px 20px 20px;
    }

    .article-title {
        font-size: 20px;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .article-meta span::before {
        display: none;
    }

    .article-body {
        padding: 25px 20px;
    }

    .article-text h2 {
        font-size: 18px;
        margin: 30px 0 15px;
    }

    .btn-back {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* --------------------------
   加载动画 - Loading Animation
   -------------------------- */
.article-content {
    animation: fadeInUp 0.6s ease-out;
}

.sidebar-section:nth-child(1) {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.sidebar-section:nth-child(2) {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* --------------------------
   打印样式 - Print Styles
   -------------------------- */
@media print {
    .page-banner,
    .sidebar,
    .article-footer,
    .breadcrumb {
        display: none;
    }

    .article-wrapper {
        display: block;
    }

    .article-content {
        box-shadow: none;
    }

    .article-text {
        font-size: 12pt;
        line-height: 1.6;
    }
}
