/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fafbff;
}

.page-scale-root {
    width: 1920px;
    min-height: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1550px;
    width: 100%;
    margin: 0 auto;
}

html.is-page-scaled,
html.is-page-scaled body {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

html.is-page-scaled body {
    position: relative;
    min-height: var(--scaled-page-height, 100vh);
}

html.is-page-scaled .page-scale-root {
    position: absolute;
    top: 0;
    left: 0;
    width: 1920px;
    transform: scale(var(--page-scale, 1));
    transform-origin: top left;
}

/* Header */
.top-header {
    background-color: #385b9b;
    background-image: url('images/head-bg.png');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 20px 0;
    height: 120px; /* Increased height to show background logo */
    border-bottom: 1px solid #6280cc;
}

.top-header .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
}

.top-header .top-links {
    align-self: flex-start;
}

.logo img {
    height: 50px;
}

.top-links {
    font-size: 14px;
}

.top-links a {
    color: #fff;
    margin: 0 10px;
}

.top-links svg {
    vertical-align: middle;
}

/* Main Nav */
.main-nav {
    background-image: url('images/menu-bg.png');
    background-size: cover;
    background-position: center;
    background-color: #1a4b9c;
}

.nav-list {
    display: flex;
    justify-content: space-around;
}

.nav-list > li {
    position: relative;
    padding: 15px 30px;
    transition: background-color 0.25s ease;
}

.nav-list > li > a {
    display: block;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

.nav-list > li:hover, .nav-list > li.active {
    background-color: rgba(255, 255, 255, 0.26);
}

.sub-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    box-shadow: 0 12px 28px rgba(9, 36, 84, 0.16);
    min-width: 100%;
    width: max-content;
    max-width: 320px;
    z-index: 100;
    /*padding: 8px 0;*/
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}

.nav-list > li:hover .sub-nav {
    display: block;
}

.sub-nav li {
    border-bottom: 1px solid #eee;
}

.sub-nav li:last-child {
    border-bottom: none;
}

.sub-nav li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 22px;
    color: #333;
    font-size: 14px;
    text-align: center;
    white-space: nowrap;
    line-height: 1.2;
    transition: background-color 0.22s ease, color 0.22s ease, padding-left 0.22s ease, padding-right 0.22s ease;
}

.sub-nav li a:hover {
    background-color: #1a4b9c;
    color: #fff;
    padding-left: 28px;
    padding-right: 28px;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.banner-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.banner-slides .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.banner-slides .slide.active {
    opacity: 1;
    z-index: 1;
}

.banner-slides .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 50px;
    z-index: 2;
    pointer-events: none;
}

.banner-controls button {
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    width: 40px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.3s;
}

.banner-controls button:hover {
    background: rgba(0,0,0,0.7);
}

.banner-indicators {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.banner-indicators span {
    display: block;
    width: 30px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.banner-indicators span.active {
    background: #fff;
}

/* Main Layout */
.main-layout {
    background: #fafbff;
    padding: 40px 10px;
    position: relative;
    z-index: 10;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 5px;
}

.section-header h2 {
    display: flex;
    align-items: center;
}

.section-header h2 img {
    height: 38px;
}

.section-header h2 .en-title {
    font-size: 14px;
    color: #999;
    margin-left: 10px;
    font-weight: normal;
    font-style: italic;
    font-family: serif;
}

.section-header .more {
    color: #666;
    font-size: 14px;
}

/* News & Notice */
.news-notice-section {
    display: flex;
    gap: 36px;
    margin-bottom: 40px;
    align-items: stretch;
}

.news-block {
    flex: 0 0 calc(65% - 18px);
    display: flex;
    flex-direction: column;
}

.notice-block {
    flex: 0 0 calc(35% - 55px);
    display: flex;
    flex-direction: column;
}

/* --- News Section Header --- */
.news-block .section-header,
.notice-block .section-header {
    border-bottom: none;
    margin-bottom: 15px;
    padding-bottom: 0;
}

/* --- Shared content box border --- */
.news-content,
.notice-content {
    border: 2px solid #d6e6f7;
    background: #fff;
    box-shadow: 0 0 18px rgba(26, 75, 156, 0.12), 0 2px 8px rgba(26, 75, 156, 0.08);
    flex: 1;
}

/* =====================
   NEWS CONTENT LAYOUT
   ===================== */
.news-content {
    display: flex;
    padding: 36px 40px 18px 40px;
    min-height: 420px;
    gap: 0;
max-width: 1012px;
}

/* Left: Featured news column */
.news-main {
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    padding: 0;
}

/* Cover image */
.news-main .news-cover {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

/* Info block below cover image */
.news-main-info {
    /*padding: 0px 16px 0px 0px;*/
    flex-shrink: 0;
}

/* Title row: title text + date on same line */
.news-main-title-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
    margin-top: 10px;
}

.news-main-title {
    font-size: 18px;
    font-weight: bold;
    color: #1a4b9c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /*max-width: 68%;*/
    transition: color 0.2s;
}
.news-main-title:hover { color: #0d3070; }

.news-main-date {
    font-size: 18px;
    color: #1a4b9c;
    font-weight: bold;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 8px;
}

/* Description text */
.news-main-desc {
    font-size: 14px;
    color: #777;
    line-height: 1.75;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Divider: blue circle icon + blue horizontal line */
.news-main-divider {
    display: flex;
    align-items: center;
    margin-top: 16px;
    margin-bottom: 17px;
}

.news-main-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 10px;
}

.news-main-line {
    flex: 1;
    height: 27px;
    background: url('images/xinwen-fenge-line.png') left center no-repeat;
    background-size: 100% auto;
}

/* Sub-news list below divider */
.news-sub-list {
    /*padding: 0 16px;*/
    flex: 1;
}

.news-sub-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.news-sub-list li a {
    font-size: 17px;
    color: #444;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 83%;
    transition: color 0.2s;
}
.news-sub-list li a:hover { color: #1a4b9c; }

.news-sub-list li .date {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Right: News list column */
.news-list {
    flex: 1;
    min-width: 0;
    padding: 0 30px 0 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    width: 450px;
}
.news-list li:first-child { border-top: 1px solid #f0f0f0; }

.news-list li a {
    font-size: 17px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 83%;
    transition: color 0.2s;
}
.news-list li a:hover { color: #1a4b9c; }

.news-list li .date {
    font-size: 16px;
    color: #999;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ========================
   NOTICE CONTENT LAYOUT
   ======================== */
.notice-content {
    padding: 0;
    padding-left: 23px;
    flex: 1;
    display: flex;
    flex-direction: column;
    border-top: 3px solid #1a4b9c !important;
}

.notice-list {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.notice-list li {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 22px 0 24px;
    border-bottom: 1px solid #bbb;
    border-left: 1px solid #bbb;
    position: relative;
    min-height: 62px;
    transition: background 0.2s;
}
.notice-list li:last-child { border-bottom: none; }
/*.notice-list li:hover { background: #f5f8fd; }*/

.notice-list li::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 25px;
    background-color: #bbb;
    border-radius: 1px;
    transition: background-color 0.2s;
}
.notice-list li:hover::before {
    background-color: #1a4b9c;
}

/* First (active/highlighted) item */
.notice-list li.notice-active::before {
    background-color: #1a4b9c;
}
.notice-list li.notice-active a {
    color: #1a4b9c;
    font-weight: bold;
}
.notice-list li.notice-active .date.blue {
    color: #1a4b9c;
    font-weight: bold;
}

/* All items base style */
.notice-list li a {
    font-size: 17px;
    color: #333;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 12px;
    transition: color 0.2s;
    line-height: 1.4;
}
.notice-list li:hover a { color: #1a4b9c; }
.notice-list li a:hover { color: #1a4b9c; }

/* All dates are blue */
.notice-list li .date.blue {
    font-size: 14px;
    color: #1a4b9c;
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: normal;
}

/* Three Columns */
.three-columns-section {
    display: flex;
    justify-content: flex-start;
    gap: 30px;
    margin-bottom: 40px;
}

.column-block {
    flex: 0 0 calc((100% - 60px) / 3);
    min-width: 0;
}

.section-header.small {
    /*border-bottom: 2px solid #e0e8f5;*/
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.section-header.small h3 {
    display: flex;
    align-items: center;
    font-size: 18px;
    color: #1a4b9c;
    font-weight: bold;
}

.section-header.small h3 img {
    height: 56px;
}

.section-header.small .more {
    display: flex;
    align-items: center;
}

.section-header.small .more .more-icon {
    height: 14px;
    display: block;
    transition: opacity 0.2s;
}
.section-header.small .more:hover .more-icon {
    opacity: 0.7;
}

.col-featured {
    display: flex;
    margin-bottom: 15px;
}

.col-featured img {
    width: 220px;
    height: 150px;
    object-fit: cover;
    margin-right: 15px;
    flex-shrink: 0;
}

.col-featured-text h4 {
    font-size: 18px;
    margin-bottom: 5px;
    line-height: 1.5;
}

.col-featured-text h4 .date {
    color: #1a4b9c;
}

.col-featured-text p {
    font-size: 15px;
    color: #666;
}

.col-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid #f0f0f0;
}
.col-list li:last-child { border-bottom: none; }

.col-list li a {
    position: relative;
    padding-left: 18px;
    font-size: 16px;
    color: #444;
    width: 75%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}
.col-list li a:hover { color: #1a4b9c; }

.col-list li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: url('images/list-item-icon.png') center/contain no-repeat;
}

.col-list li .date {
    font-size: 16px;
    color: #999;
    flex-shrink: 0;
}

/* ========================
   QUICK NAV
   ======================== */
.column-block:last-child {
    flex-basis: calc((100% - 60px) / 3);
    margin-left: 15px;
    border-radius: 4px;
    overflow: hidden;
}

.column-block:last-child .section-header.small {
    padding-bottom: 10px;
    margin-bottom: 10px;
    /* border-bottom: 2px solid #e0e8f5; */
}

.quick-nav-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
    /* padding-top: 10px; */
}

.quick-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: #fff;
    color: #1a4b9c;
    padding: 13px 16px;
    font-size: 15px;
    font-weight: bold;
    border: 1px solid #d6e4f5;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(26, 75, 156, 0.08);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
    gap: 0;
}
.quick-btn:hover {
    box-shadow: 0 8px 24px rgba(26, 75, 156, 0.15);
    transform: translateY(-2px);
}

/* Active/first item: blue background */
.quick-btn.quick-btn-active {
    background: #1a4b9c;
    color: #fff;
}
.quick-btn.quick-btn-active .btn-icon-color { display: none; }
.quick-btn.quick-btn-active .btn-icon-white { display: block; }
.quick-btn.quick-btn-active .btn-line { background: white; }

/* Hover */
.quick-btn:hover {
    background: #1a4b9c;
    color: #fff;
}
.quick-btn:hover .btn-icon-color { display: none; }
.quick-btn:hover .btn-icon-white { display: block; }
.quick-btn:hover .btn-line { background: rgba(255,255,255,0.5); }

/* Icon */
.btn-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Default: blue icons shown as-is */
.btn-icon-color {
    display: block;
    filter: none;
}

/* Special: white icon needs to be filtered to blue in default state */
.btn-icon-color.btn-icon-invert {
    filter: brightness(0) invert(27%) sepia(84%) saturate(712%) hue-rotate(199deg) brightness(89%) contrast(95%);
}

/* Hover/active: all icons turned white */
.btn-icon-white {
    display: none;
    filter: brightness(0) invert(1);
}

/* Horizontal line between icon and label */
.btn-line {
    flex: 1;
    height: 3px;
    background: #05529e;
    margin: 0 10px;
    transition: background 0.2s;
}

/* Label */
.btn-label {
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 2px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Links */
.links-grid {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.link-item {
    flex: 1;
    height: 60px;
    border-radius: 6px;
    background-color: #1a4b9c;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
    overflow: hidden;
    transition: opacity 0.2s, transform 0.2s;
}

.link-item:hover {
    opacity: 0.88;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background-color: #1a4b9c;
    padding: 0;
    /* height: 275px; */
    position: relative;
    overflow: hidden;
}

.footer .footer-bg-img {
    width: 100%;
    object-fit: cover;
    display: block;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-pic {
    max-width: 100%;
    height: auto;
    display: block;
}