.news-container {
    position: relative;
    gap: 40px;
    padding: 50px 0;
    align-items: flex-start;
}

.news-content-area {
    flex: 1;
    min-height: 650px;
    display: flex;
    flex-direction: column;
    margin-left: 240px;
}

/* --- Sidebar specific to News page --- */
#news-page .news-sidebar {
    width: 200px;
    color: white;
    position: absolute;
    top: -69px;
    left: 0;
    display: block !important; /* Force show on PC */
}

.news-sidebar-title {
    font-size: 1.5rem;
    font-weight: 500;
    text-align: center;
    padding: 15px 20px;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(164, 32, 19, 0.6); /* Semi-transparent red */
}

.news-sidebar-menu {
    list-style: none;
    box-sizing: border-box;
    padding: 20px 0;
    margin: 0;
    background-color: #a42013;
}

.news-sidebar-menu li a {
    display: block;
    padding: 12px 25px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.news-sidebar-menu li:first-child a {
    border-top: none;
}

.news-sidebar-menu li a.active {
    background-color: #ffd79e;
    color: #333;
}

.news-sidebar-menu li a:not(.active) {
    color: white;
    background-color: transparent;
}

.news-sidebar-menu li a:not(.active):hover {
    background-color: #c83c2e;
}

/* --- Mobile Tags Container (Hidden on PC) --- */
#news-page .news-tags-container {
    display: none !important; /* Hidden on PC by default */
}

/* PC Media Query - Ensure mobile layout is hidden on PC */
@media (min-width: 769px) {
    #news-page .news-tags-container {
        display: none !important; /* Force hide mobile layout on PC */
    }
    
    #news-page .news-sidebar {
        display: block !important; /* Force show PC sidebar */
    }

    .main-nav {
        display: block !important;
        position: static !important;
        background: transparent !important;
        transform: none !important;
        height: auto !important;
        width: auto !important;
    }
    
    .main-nav > ul {
        display: flex !important;
        flex-direction: row !important;
        gap: 36px !important;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    
    .mobile-menu-panel {
        display: none !important;
    }
    
    .mobile-menu-close {
        display: none !important;
    }
    
    .mobile-menu-btn {
        display: none !important;
    }
}

/* --- News Content --- */
.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1; /* Match announcement style to push footer down */
}

.news-list li {
    background-color: #fff;
    margin-bottom: 20px;
    border: 1px solid #fdf2f2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden; /* Ensure child elements conform to border-radius */
}

.news-list li:hover {
    box-shadow: 0 0 15px rgba(212, 126, 126, 0.5); /* Re-use red hover shadow */
    transform: translateY(-2px);
}

.news-list li a {
    display: flex;
    padding: 20px;
    text-decoration: none;
    color: #333;
    gap: 25px; /* Space between image and text */
    align-items: flex-start; /* Align items to the top */
}

.news-image {
    width: 200px;
    height: 130px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.news-text {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.5;
}

.news-date {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 12px;
}

.news-summary {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #666;
    margin: 0;
    /* Truncate long text to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Pagination --- */
.pagination {
    margin-top: 50px;
    text-align: center;
    padding-bottom: 30px;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 2px;
    border: 1px solid #ddd;
    background-color: transparent;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    min-width: 38px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination a.active {
    border-color: #A42013;
    color: #A42013;
    font-weight: bold;
}

.pagination .ellipsis {
    border: none;
    background: none;
    padding: 8px 5px;
}

.pagination a.disabled {
    color: #ccc;
    pointer-events: none;
    border-color: #eee;
}

/* =================================== */
/* News Page Mobile Navigation (Hamburger Menu) */
/* =================================== */
.mobile-menu-btn,
.mobile-menu-close,
.mobile-menu-overlay {
    display: none;
}

@media (max-width: 768px) {

    .news-container {
        flex-direction: column;
        padding-top: 85px; /* Add padding to offset fixed header */
        gap: 20px;
        padding-top: 0px;
    }
    .page-header{
        height: 30vh;
    }
    
    .news-content-area {
        margin-left: 0 !important; 
    }

    /* Hide PC sidebar on mobile */
    #news-page .news-sidebar {
        display: none !important; /* Force hide on mobile */
    }

    /* Show mobile tags layout */
    #news-page .news-tags-container {
        display: flex !important; /* Force show on mobile */
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 18px 12px 16px;
        border-bottom: 1px solid #e8e8e8;
        background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
        margin-bottom: 8px;
        position: relative;
    }

    #news-page .news-tags-container::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 12px;
        right: 12px;
        height: 1px;
        background: linear-gradient(90deg, transparent, #a42013, transparent);
    }

    .news-tags-title {
        font-size: 1.2rem;
        font-weight: 600;
        color: #2c3e50;
        margin: 0;
        letter-spacing: -0.01em;
    }

    .news-tags {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }

    .news-tag {
        display: inline-block;
        padding: 8px 16px;
        background-color: rgba(255, 255, 255, 0.8);
        color: #5a6c7d;
        text-decoration: none;
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: 500;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border: 1px solid rgba(164, 32, 19, 0.1);
        backdrop-filter: blur(10px);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }

    .news-tag:hover {
        background-color: rgba(164, 32, 19, 0.05);
        color: #a42013;
        border-color: rgba(164, 32, 19, 0.2);
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(164, 32, 19, 0.15);
    }

    .news-tag.active {
        background: linear-gradient(135deg, #a42013, #c83c2e);
        color: white;
        border-color: #a42013;
        box-shadow: 0 2px 8px rgba(164, 32, 19, 0.3);
    }

    .news-tag.active:hover {
        background: linear-gradient(135deg, #8a1b10, #a42013);
        color: white;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(164, 32, 19, 0.4);
    }

    /* Override header for mobile view */
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: rgba(164, 32, 19, 0.7); /* Semi-transparent red */
        z-index: 1000;
        box-sizing: border-box;
        padding-right: 26px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .main-nav > ul {
        display: none !important; /* Hide horizontal nav on mobile */
    }

    /* Hamburger Button */
    .mobile-menu-btn {
        display: block;
        width: 40px;
        height: 40px;
        background: url('../images/btn-r.png') no-repeat center center;
        background-size: contain;
        border: none;
        cursor: pointer;
        padding: 0;
        transition: transform 0.3s ease;
    }
    
    .mobile-menu-btn.active {
        transform: rotate(90deg);
    }

    /* Dropdown Menu */
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(164,32,19,0.97);
        z-index: 2000;
        transform: translateY(-100%);
        transition: transform 0.4s ease;
        overflow-y: auto;
    }
    
    .main-nav.active {
        transform: translateY(0);
    }
    
    .mobile-menu-panel {
        width: 100vw;
        min-height: 50vh;
        padding: 60px 20px 40px 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        box-sizing: border-box;
        transform: translateY(0);

    }

    .mobile-menu-close {
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        color: #fff;
        font-size: 2.5rem;
        z-index: 999999;
        display: block;
        line-height: 1;
        cursor: pointer;
        font-weight: 300;
    }

    .mobile-menu-search {
        width: 90%;
        max-width: 350px;
        margin: 0 auto 12px auto;
        display: flex;
        align-items: center;
        background: rgba(255,255,255,0.1);
        border-radius: 25px;
        padding: 0 15px;
        height: 50px;
        box-sizing: border-box;
        border: 1px solid rgba(255,255,255,0.2);
    }

    .mobile-menu-search-input {
        flex: 1;
        border: none;
        background: transparent;
        color: #fff;
        font-size: 16px;
        outline: none;
        padding: 0 10px;
        height: 48px;
    }
    
    .mobile-menu-search-input::placeholder {
        color: rgba(255,255,255,0.8);
    }

    .mobile-menu-search-btn {
        background: none;
        border: none;
        outline: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        padding: 5px;
    }

    .mobile-menu-search-btn svg {
        display: block;
    }

    .mobile-menu-title {
        color: #fff;
        font-size: 24px;
        font-weight: bold;
        text-align: center;
        margin: 0 0 15px 0;
        letter-spacing: 2px;
    }

    /* 竖向列表布局 */
    .mobile-menu-list {
        width: 90%;
        max-width: 400px;
        margin: 0 auto;
        padding: 0;
        list-style: none;
        background: none;
    }

    .mobile-menu-list li {
        border-bottom: 1px solid rgba(255,255,255,0.2);
        margin: 0;
        padding: 0;
        position: relative;
    }

    .mobile-menu-list li:last-child {
        border-bottom: none;
    }

    .mobile-menu-list a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: #fff;
        font-size: 18px;
        font-weight: 500;
        padding: 10px 15px;
        text-decoration: none;
        transition: background 0.2s;
        text-align: left;
        min-height: 20px;
    }

    .mobile-menu-list a:active,
    .mobile-menu-list a:hover {
        background: rgba(255,255,255,0.1);
    }

    .mobile-menu-list .arrow {
        font-size: 18px;
        color: #fff;
        font-weight: bold;
        margin-left: 10px;
    }

    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.4);
        z-index: 1999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Mobile News List Adaptations */
    .news-list {
        padding: 0 12px;
        margin-top: 10px;
    }

    .news-list li {
        margin-bottom: 16px;
        border-radius: 16px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
        border: none;
        overflow: hidden;
        background: #fff;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
    }

    .news-list li::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #a42013, #c83c2e);
        z-index: 1;
    }

    .news-list li:hover {
        box-shadow: 0 8px 25px rgba(164, 32, 19, 0.12);
        transform: translateY(-2px);
    }

    .news-list li a {
        flex-direction: column;
        padding: 0;
        gap: 0;
        align-items: stretch;
        text-align: left;
        position: relative;
    }

    .news-image {
        width: 100%;
        height: 180px;
        border-radius: 0;
        object-fit: cover;
        position: relative;
        z-index: 0;
    }

    .news-text {
        width: 100%;
        padding: 16px 18px 20px;
        background: #fff;
        position: relative;
    }

    .news-title {
        font-size: 1.05rem;
        font-weight: 600;
        margin-bottom: 8px;
        line-height: 1.4;
        color: #2c3e50;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        letter-spacing: -0.01em;
    }

    .news-date {
        font-size: 0.8rem;
        margin-bottom: 10px;
        color: #a42013;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .news-date::before {
        content: '📅';
        font-size: 0.75rem;
    }

    .news-summary {
        font-size: 0.9rem;
        line-height: 1.6;
        color: #5a6c7d;
        -webkit-line-clamp: 3;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        margin: 0;
    }

    /* Add a subtle gradient overlay to images */
    .news-list li a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: linear-gradient(transparent, rgba(0,0,0,0.1));
        pointer-events: none;
        z-index: 1;
    }

    /* Pagination Mobile Adaptations */
    .pagination {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
        margin: 32px 12px 24px;
        padding: 16px 0;
        position: relative;
    }

    .pagination::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 1px;
        background: linear-gradient(90deg, transparent, #a42013, transparent);
    }

    .pagination a {
        padding: 10px 12px;
        font-size: 0.85rem;
        min-width: 36px;
        text-align: center;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(164, 32, 19, 0.1);
        color: #5a6c7d;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        backdrop-filter: blur(10px);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        font-weight: 500;
    }

    .pagination a:hover {
        background: rgba(164, 32, 19, 0.05);
        color: #a42013;
        border-color: rgba(164, 32, 19, 0.2);
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(164, 32, 19, 0.15);
    }

    .pagination a.active {
        background: linear-gradient(135deg, #a42013, #c83c2e);
        color: white;
        border-color: #a42013;
        box-shadow: 0 2px 8px rgba(164, 32, 19, 0.3);
        transform: translateY(-1px);
    }

    .pagination a.disabled {
        background: rgba(0, 0, 0, 0.05);
        color: #bdc3c7;
        border-color: rgba(0, 0, 0, 0.1);
        pointer-events: none;
        transform: none;
        box-shadow: none;
    }

    /* Mobile Footer Adaptations */
    .site-footer-section.red-footer {
        background: #a42013;
        padding: 32px 0 18px;
    }
    .footer-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .footer-top {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .footer-logo img {
        height: 40px;
    }
    .footer-info p {
        font-size: 12px;
        margin: 5px 0;
    }
    .footer-bottom p {
        font-size: 12px;
        text-align: center;
    }

    /* Extra small screens */
    @media (max-width: 480px) {
        .site-footer-section.red-footer {
            padding: 25px 0 15px;
        }

        .footer-container {
            padding: 0 12px;
        }

        .footer-top {
            gap: 15px;
            margin-bottom: 15px;
        }

        .footer-logo img {
            height: 40px;
        }

        .footer-info p {
            font-size: 12px;
        }

        .footer-bottom p {
            font-size: 11px;
        }

        .footer-divider {
            margin: 15px 0;
        }
    }
}

.news-card {
    cursor: pointer;
} 