/* ============================================
   News Page Styles - Optimized for News Site
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Georgia, "Times New Roman", "PingFang SC", "Microsoft YaHei", serif;
    background: #f6f7f9;
    color: #1a1a1a;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   Reading Progress Bar
   ============================================ */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #25d366 0%, #128c7e 100%);
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* ============================================
   Article Container
   ============================================ */
.article {
    background: #ffffff;
    max-width: 760px;
    margin: 40px auto;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.article-container {
    padding: 56px 64px 48px;
    max-width: 100%;
}

/* ============================================
   Title
   ============================================ */
.article-title {
    font-size: 36px;
    line-height: 1.25;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    text-align: left;
}

.article-title-cn {
    font-size: 32px;
    line-height: 1.35;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.3px;
    margin: 48px 0 24px;
    text-align: left;
    padding-top: 36px;
    border-top: 1px solid #e5e7eb;
}

/* ============================================
   Article Body
   ============================================ */
.article p {
    font-size: 17px;
    line-height: 1.85;
    color: #1a1a1a;
    margin-bottom: 22px;
}

.article p:last-child {
    margin-bottom: 0;
}

.article p strong {
    color: #0f172a;
    font-weight: 700;
}

/* Lead paragraph - magazine style */
.article > .article-container > p:first-of-type {
    font-size: 19px;
    line-height: 1.75;
    color: #0f172a;
    font-weight: 400;
}

.article > .article-container > p:first-of-type::first-letter {
    font-size: 3.8em;
    float: left;
    line-height: 0.9;
    font-weight: 700;
    color: #0f172a;
    padding: 6px 10px 0 0;
    font-family: Georgia, serif;
}

/* ============================================
   Headings
   ============================================ */
.article-h2 {
    font-size: 26px;
    line-height: 1.3;
    font-weight: 700;
    color: #0f172a;
    margin: 40px 0 18px;
    padding-top: 8px;
    position: relative;
}

.article-h2::before {
    content: "";
    display: block;
    width: 36px;
    height: 3px;
    background: #25d366;
    margin-bottom: 14px;
    border-radius: 2px;
}

.article-h3 {
    font-size: 20px;
    line-height: 1.4;
    font-weight: 700;
    color: #0f172a;
    margin: 32px 0 14px;
}

/* ============================================
   Article Figures (Images)
   ============================================ */
.article-figure {
    margin: 32px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    background: #f3f4f6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-figure:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.article-figure img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ============================================
   Event Info Box
   ============================================ */
.event-info-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfeff 100%);
    border-left: 4px solid #25d366;
    padding: 24px 28px;
    margin: 36px 0 28px;
    border-radius: 0 8px 8px 0;
}

.event-info-box p {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.7;
}

.event-info-box p:last-child {
    margin-bottom: 0;
}

.event-info-box strong {
    color: #128c7e;
    font-weight: 700;
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: #25d366;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.5);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: #1f2937;
    color: #d1d5db;
    padding: 40px 24px 28px;
    margin-top: 0;
}

.footer-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-link {
    background: none;
    border: none;
    color: #25d366;
    font-size: 14px;
    cursor: pointer;
    padding: 6px 10px;
    font-family: inherit;
    transition: color 0.2s ease;
    text-decoration: underline;
}

.footer-link:hover {
    color: #4ade80;
}

.footer-link-sep {
    color: #4b5563;
}

.footer-bottom {
    padding-top: 4px;
    font-size: 13px;
    line-height: 1.6;
}

.footer-copyright {
    color: #9ca3af;
    margin-bottom: 8px;
}

.footer-address {
    color: #9ca3af;
    margin-bottom: 0;
}

.footer-divider {
    border: none;
    border-top: 1px solid #4b5563;
    margin: 24px 0 20px;
    width: 100%;
}

.footer-policy {
    text-align: left;
    max-width: 640px;
    margin: 0 auto;
}

.footer-policy-title {
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    margin-bottom: 2px;
    text-align: center;
    letter-spacing: 0.3px;
}

.footer-policy-subtitle {
    text-align: center;
    color: #6b7280;
    font-size: 10px;
    margin-bottom: 18px;
}

.footer-policy h4 {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    margin: 12px 0 4px;
    letter-spacing: 0.2px;
}

.footer-policy p {
    font-size: 11px;
    line-height: 1.65;
    color: #9ca3af;
    margin-bottom: 8px;
}

.footer-policy-effective {
    margin-top: 14px;
    font-style: italic;
    color: #6b7280 !important;
    text-align: center;
    font-size: 10px !important;
}

.footer-bottom p {
    margin-bottom: 6px;
}

.footer-bottom p:last-child {
    margin-bottom: 0;
}

.footer-address {
    color: #9ca3af;
}

/* ============================================
   Modal
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 24px;
}

.modal-overlay.show {
    display: flex;
    animation: fadeIn 0.25s ease;
}

.modal-overlay.show {
    display: flex;
}

.modal-box {
    background: #ffffff;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    line-height: 1;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
    background: #e5e7eb;
    color: #0f172a;
}

.modal-body {
    padding: 24px 28px;
    overflow-y: auto;
    color: #374151;
    line-height: 1.7;
    font-size: 15px;
}

.modal-body p {
    margin-bottom: 14px;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

.modal-body h4 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 18px 0 8px;
}

.modal-body h4:first-child {
    margin-top: 0;
}

.modal-body ul {
    padding-left: 22px;
    margin-bottom: 14px;
}

.modal-body li {
    margin-bottom: 8px;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .article {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .article-container {
        padding: 32px 20px 28px;
    }

    .article-title {
        font-size: 26px;
        line-height: 1.3;
    }

    .article-title-cn {
        font-size: 22px;
        line-height: 1.4;
        margin: 36px 0 18px;
        padding-top: 28px;
    }

    .article p {
        font-size: 16px;
        line-height: 1.75;
    }

    .article > .article-container > p:first-of-type {
        font-size: 17px;
    }

    .article > .article-container > p:first-of-type::first-letter {
        font-size: 2.8em;
        padding: 4px 8px 0 0;
    }

    .article-h2 {
        font-size: 22px;
        margin: 32px 0 14px;
    }

    .article-h2::before {
        width: 28px;
        height: 2px;
        margin-bottom: 10px;
    }

    .article-h3 {
        font-size: 18px;
        margin: 24px 0 12px;
    }

    .article-figure {
        margin: 24px 0;
    }

    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .modal-box {
        max-height: 90vh;
    }

    .modal-header {
        padding: 16px 20px;
    }

    .modal-body {
        padding: 18px 20px;
    }
}