/* ===== SHIHAO News Article Detail Page Styles ===== */

/* Reset and Base Styles */
.news_article_detail_page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.news_article_detail_page {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: #ffffff;
}

/* Reading Progress Bar */
.news_article_detail_page .reading_progress_bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.news_article_detail_page .reading_progress_fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

/* Hero Banner Section */
.news_article_detail_page .site_banner_1 {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.news_article_detail_page .site_banner_1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(255,255,255,0.1), transparent);
    z-index: 1;
}

.news_article_detail_page .site_banner_1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.news_article_detail_page .banner_content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.news_article_detail_page .yyx-hero-subtitle {
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.news_article_detail_page .yyx-hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.news_article_detail_page .yyx-text-medium {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Container */
.news_article_detail_page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Breadcrumb */
.news_article_detail_page .breadcrumb {
    padding: 30px 0;
    font-size: 14px;
    color: #6c757d;
    background: #f8f9fa;
}

.news_article_detail_page .breadcrumb a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news_article_detail_page .breadcrumb a:hover {
    color: #0056b3;
}

.news_article_detail_page .breadcrumb span {
    margin: 0 8px;
}

/* Article Layout */
.news_article_detail_page .article_layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    padding: 40px 0 80px;
}

/* Main Article */
.news_article_detail_page .article_main {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.news_article_detail_page .news_article {
    padding: 40px;
}

/* Article Header */
.news_article_detail_page .article_header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f1f3f4;
}

.news_article_detail_page .article_meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
}

.news_article_detail_page .article_date {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 500;
}

.news_article_detail_page .article_category {
    background: #e3f2fd;
    color: #1976d2;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 500;
}

.news_article_detail_page .article_title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    color: #2c3e50;
    margin-bottom: 20px;
}

.news_article_detail_page .article_info {
    display: flex;
    gap: 30px;
    font-size: 14px;
    color: #6c757d;
}

.news_article_detail_page .article_author,
.news_article_detail_page .article_views {
    display: flex;
    align-items: center;
    gap: 8px;
}

.news_article_detail_page .article_author::before {
    content: '👤';
    font-size: 16px;
}

.news_article_detail_page .article_views::before {
    content: '👁';
    font-size: 16px;
}

/* Article Content */
.news_article_detail_page .article_content {
    font-size: 16px;
    line-height: 1.8;
    color: #2c3e50;
    margin-bottom: 40px;
}

/* Article Share */
.news_article_detail_page .article_share {
    margin-bottom: 50px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e9ecef;
}

.news_article_detail_page .share_title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.news_article_detail_page .share_buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.news_article_detail_page .share_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.news_article_detail_page .share_btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
    z-index: 1;
}

.news_article_detail_page .share_btn svg {
    position: relative;
    z-index: 2;
}

.news_article_detail_page .share_btn:hover::before {
    transform: scale(1);
}

.news_article_detail_page .share_btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.news_article_detail_page .share_twitter {
    background: #1da1f2;
}

.news_article_detail_page .share_twitter::before {
    background: #0d8bd9;
}

.news_article_detail_page .share_facebook {
    background: #4267b2;
}

.news_article_detail_page .share_facebook::before {
    background: #365899;
}

.news_article_detail_page .share_linkedin {
    background: #0077b5;
}

.news_article_detail_page .share_linkedin::before {
    background: #005885;
}

.news_article_detail_page .share_copy {
    background: #6c757d;
}

.news_article_detail_page .share_copy::before {
    background: #545b62;
}

.news_article_detail_page .article_content p {
    margin-bottom: 20px;
}

.news_article_detail_page .article_content h2,
.news_article_detail_page .article_content h3 {
    margin: 30px 0 15px;
    color: #2c3e50;
}

.news_article_detail_page .article_content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Article Navigation */
.news_article_detail_page .article_navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding-top: 30px;
    border-top: 2px solid #f1f3f4;
}

.news_article_detail_page .nav_link {
    display: block;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.news_article_detail_page .nav_link:hover {
    background: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.news_article_detail_page .nav_label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6c757d;
    margin-bottom: 8px;
    font-weight: 600;
}

.news_article_detail_page .nav_title {
    display: block;
    font-weight: 600;
    line-height: 1.4;
}

.news_article_detail_page .prev_article .nav_label::before {
    content: '← ';
}

.news_article_detail_page .next_article .nav_label::after {
    content: ' →';
}

.news_article_detail_page .next_article {
    text-align: right;
}

/* Sidebar */
.news_article_detail_page .article_sidebar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.news_article_detail_page .sidebar_widget {
    padding: 30px;
}

.news_article_detail_page .widget_title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
    position: relative;
}

.news_article_detail_page .widget_title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.news_article_detail_page .category_list {
    list-style: none;
}

.news_article_detail_page .category_list li {
    margin-bottom: 12px;
}

.news_article_detail_page .category_list a {
    display: block;
    padding: 12px 16px;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 2px solid transparent;
}

.news_article_detail_page .category_list a:hover,
.news_article_detail_page .category_list a.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateX(5px);
}

/* Contact CTA Section */
.news_article_detail_page .contact_cta {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    padding: 80px 0;
    color: white;
}

.news_article_detail_page .contact_cta_content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.news_article_detail_page .contact_cta_title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.news_article_detail_page .contact_cta_subtitle {
    font-size: 18px;
    opacity: 0.9;
}

.news_article_detail_page .btn_contact_cta {
    display: inline-block;
    padding: 16px 32px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.news_article_detail_page .btn_contact_cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .news_article_detail_page .article_layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .news_article_detail_page .article_sidebar {
        order: -1;
        position: static;
    }

    .news_article_detail_page .yyx-hero-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .news_article_detail_page .container {
        padding: 0 15px;
    }

    .news_article_detail_page .news_article {
        padding: 25px;
    }

    .news_article_detail_page .sidebar_widget {
        padding: 20px;
    }

    .news_article_detail_page .yyx-hero-title {
        font-size: 28px;
    }

    .news_article_detail_page .article_title {
        font-size: 28px;
    }

    .news_article_detail_page .article_navigation {
        grid-template-columns: 1fr;
    }

    .news_article_detail_page .next_article {
        text-align: left;
    }

    .news_article_detail_page .contact_cta_content {
        flex-direction: column;
        text-align: center;
    }

    .news_article_detail_page .contact_cta_title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .news_article_detail_page .site_banner_1 {
        height: 300px;
    }

    .news_article_detail_page .yyx-hero-title {
        font-size: 24px;
    }

    .news_article_detail_page .yyx-text-medium {
        font-size: 16px;
    }

    .news_article_detail_page .article_meta {
        flex-direction: column;
        gap: 10px;
    }

    .news_article_detail_page .article_info {
        flex-direction: column;
        gap: 15px;
    }

    .news_article_detail_page .share_buttons {
        gap: 10px;
    }

    .news_article_detail_page .share_btn {
        width: 45px;
        height: 45px;
    }

    .news_article_detail_page .article_share {
        padding: 20px;
        margin-bottom: 30px;
    }
}

/* Animation Effects */
.news_article_detail_page .news_article {
    animation: fadeInUp 0.6s ease-out;
}

.news_article_detail_page .article_sidebar {
    animation: fadeInRight 0.6s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll Behavior */
.news_article_detail_page {
    scroll-behavior: smooth;
}

/* Focus States for Accessibility */
.news_article_detail_page .nav_link:focus,
.news_article_detail_page .category_list a:focus,
.news_article_detail_page .btn_contact_cta:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* Modern Card Hover Effects */
.news_article_detail_page .article_main {
    transition: all 0.3s ease;
}

.news_article_detail_page .article_main:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.news_article_detail_page .article_sidebar {
    transition: all 0.3s ease;
}

.news_article_detail_page .article_sidebar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Floating Animation for Hero */
.news_article_detail_page .banner_content {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Pulse Animation for CTA Button */
.news_article_detail_page .btn_contact_cta {
    position: relative;
    overflow: hidden;
}

.news_article_detail_page .btn_contact_cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.news_article_detail_page .btn_contact_cta:hover::before {
    width: 300px;
    height: 300px;
}

/* Gradient Text Effect */
.news_article_detail_page .article_title {
    background: linear-gradient(135deg, #2c3e50, #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Shimmer Effect for Loading */
.news_article_detail_page .article_main::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Page Loading Animation */
.news_article_detail_page .page_loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: all 0.5s ease;
}

.news_article_detail_page .page_loader.hide {
    opacity: 0;
    visibility: hidden;
}

.news_article_detail_page .loader_content {
    text-align: center;
    color: white;
}

.news_article_detail_page .loader_spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.news_article_detail_page .loader_text {
    font-size: 18px;
    font-weight: 500;
}

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

/* Smooth Reveal Animation */
.news_article_detail_page .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.news_article_detail_page .reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Hover States */
.news_article_detail_page .breadcrumb a:hover {
    transform: translateX(3px);
    transition: transform 0.2s ease;
}

.news_article_detail_page .article_date:hover,
.news_article_detail_page .article_category:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Enhanced Typography */
.news_article_detail_page .article_content h2 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    position: relative;
    padding-left: 20px;
}

.news_article_detail_page .article_content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

.news_article_detail_page .article_content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #34495e;
}

/* Quote Styling */
.news_article_detail_page .article_content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 20px 30px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    position: relative;
}

.news_article_detail_page .article_content blockquote::before {
    content: '"';
    font-size: 60px;
    color: #667eea;
    position: absolute;
    top: -10px;
    left: 15px;
    font-family: serif;
}

/* List Styling */
.news_article_detail_page .article_content ul,
.news_article_detail_page .article_content ol {
    padding-left: 30px;
    margin: 20px 0;
}

.news_article_detail_page .article_content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.news_article_detail_page .article_content ul li::marker {
    color: #667eea;
}

/* Link Styling */
.news_article_detail_page .article_content a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.news_article_detail_page .article_content a:hover {
    border-bottom-color: #667eea;
    color: #764ba2;
}

/* Code Styling */
.news_article_detail_page .article_content code {
    background: #f1f3f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 14px;
    color: #e91e63;
}

.news_article_detail_page .article_content pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.news_article_detail_page .article_content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* Table Styling */
.news_article_detail_page .article_content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.news_article_detail_page .article_content th,
.news_article_detail_page .article_content td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f1f3f4;
}

.news_article_detail_page .article_content th {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: 600;
}

.news_article_detail_page .article_content tr:hover {
    background: #f8f9fa;
}

/* Loading Animation */
.news_article_detail_page .article_main,
.news_article_detail_page .article_sidebar {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.news_article_detail_page .article_sidebar {
    animation-delay: 0.2s;
}

/* Print Styles */
@media print {
    .news_article_detail_page .site_banner_1,
    .news_article_detail_page .breadcrumb,
    .news_article_detail_page .article_sidebar,
    .news_article_detail_page .article_navigation,
    .news_article_detail_page .contact_cta {
        display: none;
    }

    .news_article_detail_page .article_layout {
        grid-template-columns: 1fr;
    }

    .news_article_detail_page .article_main {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Back to Top Button */
.news_article_detail_page .back_to_top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
}

.news_article_detail_page .back_to_top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.news_article_detail_page .back_to_top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

.news_article_detail_page .back_to_top:active {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .news_article_detail_page .back_to_top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}