

.nw-banner-wrap.banner-section {
    padding-top: 40px;
    padding-bottom: 40px;
}

.nw-banner-bg.banner-container {
    background-image: url('/static/images/banner-5.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: calc(100vh - 500px);
    min-height: 260px;
    width: 100%;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.banner-container::after{
    display: none;
}

.nw-banner-bg .banner-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    max-width: 800px;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(2px);
    padding: 28px 30px;
    border-radius: 10px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 5%;
    height: auto;
}

.nw-banner-bg .banner-content h2 {
    font-size: 38px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 6px;
}

.nw-banner-bg .breadcrumb-container ul {
    justify-content: flex-start;
}

.nw-banner-bg .banner-content p {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 14px 0 0;
    line-height: 1.55;
}


.breadcrumb-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumb-container ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.breadcrumb-container ul li {
    list-style: none;
    position: relative;
    padding-right: 15px;
}

.breadcrumb-container ul li::after{
    content: '/';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    font-size: 15px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-container ul li:last-child::after{
    display: none;
}

.breadcrumb-container ul li a {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-container ul li a:hover{
    color: var(--primary-color);
}

.nw-list-section {
    padding: 36px 0 56px;
}

.nw-page-intro {
    margin-bottom: 26px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8eef4;
}

.nw-heading-xl {
    margin: 0 0 10px;
    font-size: 30px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.02em;
}

.nw-page-intro p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #516273;
    max-width: 720px;
}

/* 篩選列 */
.nw-toolbar {
    margin-bottom: 28px;
    padding: 18px 20px 22px;
    background: #f6f8fb;
    border: 1px solid rgba(13, 32, 54, 0.07);
    border-radius: 12px;
}

.nw-filter-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 600;
    color: #3d5266;
}

.nw-filter-icon {
    display: flex;
    color: var(--primary-color);
    opacity: 0.9;
}

.nw-select-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 20px;
}

.nw-select-cell {
    min-width: 0;
}

.nw-select-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    letter-spacing: 0.04em;
}

/* Layui 下拉：貼合本站色 */
.nw-toolbar .layui-form-select .layui-input {
    height: 40px;
    line-height: 40px;
    border-radius: 8px;
    border-color: #dce4ec;
}

.nw-toolbar .layui-form-select dl {
    border-radius: 8px;
    padding: 0;
}

.layui-input:focus, .layui-textarea:focus{
    border-color: var(--primary-color) !important;
}

.nw-toolbar .layui-form-select dl dd.layui-this {
    background-color: rgba(1, 36, 138, 0.08);
    color: var(--primary-color);
}

/* 列表 */
.nw-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.nw-item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e7edf3;
    background: #fff;
    box-shadow: 0 4px 18px rgba(13, 32, 54, 0.05);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.nw-item:hover {
    border-color: rgba(1, 36, 138, 0.16);
    box-shadow: 0 10px 32px rgba(13, 32, 54, 0.09);
}

.nw-item-link {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    text-decoration: none;
    color: inherit;
    min-height: 0;
}

.nw-item-thumb {
    flex: 0 0 clamp(160px, 32vw, 280px);
    position: relative;
    overflow: hidden;
    background: #eef2f6;
}

.nw-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.nw-item:hover .nw-item-thumb img {
    transform: scale(1.04);
}

.nw-item-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.nw-item-titlebar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    padding: 14px 18px;
    background: linear-gradient(180deg, #eef2f7 0%, #e8edf3 100%);
    border-bottom: 1px solid #dde5ee;
}

.nw-item-badge {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(1, 36, 138, 0.12);
    padding: 4px 10px;
    border-radius: 999px;
}

.nw-item-title {
    flex: 1 1 200px;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    color: #1a2a3a;
}

.nw-item-body {
    flex: 1;
    padding: 14px 18px 18px;
    background: #fff;
}

.nw-item-date {
    margin-bottom: 8px;
    font-size: 13px;
    color: #7a8a9a;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    padding-left: 18px;
}

.nw-item-date::before {
    content: '';
    width: 13px;
    height: 13px;
    position: absolute;
    left: 0;
    top: 48%;
    transform: translateY(-50%);
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='3.5' y='5.5' width='17' height='15' rx='2.5' stroke='%235f7389' stroke-width='1.8'/%3E%3Cpath d='M7 3.8V7' stroke='%235f7389' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M17 3.8V7' stroke='%235f7389' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M3.5 10.2H20.5' stroke='%235f7389' stroke-width='1.8'/%3E%3C/svg%3E");
}

.nw-item-body p {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-tags{
    margin-top: 15px;
}

.nw-empty {
    padding: 48px 24px;
    text-align: center;
    font-size: 15px;
    color: #7a8a9a;
    background: #fafbfc;
    border: 1px dashed #dce4ec;
    border-radius: 12px;
}

.nw-empty-hint[hidden] {
    display: none !important;
}

.nw-item--hidden {
    display: none !important;
}

.nw-pagination-wrap {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

#newsPagination {
    width: 100%;
    display: flex;
    justify-content: center;
}

#newsPagination .layui-laypage {
    margin: 0;
}

#newsPagination .layui-laypage a,
#newsPagination .layui-laypage span {
    border-radius: 3px;
    margin: 0 5px;
}

.nw-pagination-tip {
    margin: 0;
    font-size: 13px;
    color: #8a9bab;
    text-align: center;
    line-height: 1.6;
    max-width: 520px;
}

.nw-pagination-tip code {
    font-size: 12px;
    padding: 1px 6px;
    background: rgba(1, 36, 138, 0.06);
    border-radius: 4px;
    color: var(--primary-color);
}

.layui-laypage a:hover{
    color: var(--primary-color);
}


/* ========== 底部 ========== */
.ip-cta-section {
    padding-top: 40px;
    padding-bottom: 80px;
 }
 
 .ip-cta-inner {
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 24px;
     flex-wrap: wrap;
     background: #fff;
     border-radius: 12px;
     padding: 32px 36px;
     border: 2px solid var(--primary-color);
 }
 
 .ip-cta-copy h2 {
     margin: 0 0 10px;
     font-size: 26px;
     font-weight: 700;
     color: var(--primary-color);
 }
 
 .ip-cta-copy p {
     margin: 0;
     font-size: 15px;
     color: #333;
     line-height: 1.6;
 }
 
 .ip-cta-btn {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     padding: 12px 28px;
     border-radius: 8px;
     background: var(--primary-color);
     color: #fff;
     font-weight: 500;
     font-size: 15px;
     transition: background-color .28s ease, transform .28s ease;
     z-index: 0;
     border: 2px solid var(--primary-color);
     text-decoration: none;
     position: relative;
     overflow: hidden;
 }
 
 .ip-cta-btn span {
     position: relative;
     z-index: 1;
     color: inherit;
     margin-bottom: 0;
     font-size: 15px;
     line-height: 15px;
 }
 
 .ip-cta-btn::before{
     content: '';
     position: absolute;
     left: 0;
     top: 0;
     width: 100%;
     height: 100%;
     background-color: #fff;
     transform: scaleX(0);
     transition: all .3s ease;
     z-index: -1;
 }
 .ip-cta-btn:hover::before{
     transform: scaleX(1);
 }
 
 .ip-cta-btn:hover {
     /* background-color: #244b74;
     transform: translateY(-2px); */
     color: var(--primary-color);
 }
 

@media (max-width: 991px) {
    .nw-banner-wrap.banner-section {
        padding-top: 0px;
        padding-bottom: 10px;
    }

    .nw-banner-bg.banner-container {
        height: 75vh;
        min-height: 320px;
        border-radius: 0;
    }

    .nw-banner-bg .banner-content {
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
        width: calc(100% - 28px);
        max-width: 36rem;
        padding: 20px 18px;
        box-sizing: border-box;
    }

    .nw-banner-bg .banner-content h2 {
        font-size: clamp(26px, 5vw, 34px);
    }

    .nw-banner-bg .banner-content p {
        font-size: 14px;
        line-height: 1.65;
        margin-top: 10px;
    }

    .nw-banner-bg .breadcrumb-container ul {
        flex-wrap: wrap;
        justify-content: flex-start;
        row-gap: 4px;
    }

    .nw-list-section {
        padding: 20px 0;
    }

    .nw-toolbar {
        padding: 14px 14px 18px;
    }
}

@media (max-width: 992px) {
    .nw-select-row {
        grid-template-columns: 1fr;
    }

    .nw-item-link {
        flex-direction: column;
        position: relative;
    }

    .nw-item-badge{
        position: absolute;
        right: 10px;
        top: 10px;
    }

    .nw-item-thumb {
        flex: none;
        aspect-ratio: 16 / 9;
        max-height: 220px;
    }

    .ip-cta-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
}

@media (max-width: 767px) {
    .nw-banner-bg.banner-container {
        height: min(62vh, 380px);
        min-height: 240px;
        max-height: 420px;
    }

    .nw-page-intro {
        margin-bottom: 20px;
    }

    .nw-item-titlebar {
        padding: 12px 14px;
    }

    .nw-item-body {
        padding: 12px 14px 16px;
    }

    .nw-pagination-wrap {
        margin-top: 24px;
    }

    .ip-cta-section {
        padding-top: 20px;
        padding-bottom: 40px;
    }
}

@media (max-width: 640px) {
    .nw-banner-bg.banner-container {
        height: auto;
        min-height: 200px;
        max-height: none;
    }

    .nw-banner-bg .banner-content h2 {
        font-size: 26px;
    }

    .nw-heading-xl {
        font-size: 22px;
    }

    .nw-item-title {
        font-size: 16px;
    }
}
