/* app/static/css/modern.css */
:root {
    --bg-page: #D9ECFF;
    --primary-blue: #1A5276;
    --primary-red: #C0392B;
    --header-gradient-start: #2471A3;
    --header-gradient-end: #1B4F72;
    --nav-bg: #C0392B;
    --nav-hover: #962D22;
    --text-main: #2C3E50;
    --text-muted: #7F8C8D;
    --card-bg: #FFFFFF;
    --border-color: #BDC3C7;
    --border-soft: #EAEDED;
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    width: 100%;
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-red);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* --- Top Bar --- */
.top-bar {
    background-color: #F8F9FA;
    border-bottom: 1px solid #E2E8F0;
    font-size: 12px;
    padding: 6px 0;
    color: #64748B;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-links a {
    color: #475569;
    margin: 0 5px;
}

.top-links a:hover {
    color: var(--primary-red);
}

.top-links .admin-link {
    color: var(--primary-red);
    font-weight: bold;
}

/* --- Header --- */
.site-header {
    background: #FFFFFF;
    border-bottom: 2px solid var(--primary-red);
    box-shadow: var(--shadow-soft);
}

.header-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.site-title {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-blue);
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.site-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

.header-contact {
    display: flex;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    background: #F8FAFC;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #E2E8F0;
}

.contact-item .icon {
    font-size: 24px;
    margin-right: 10px;
}

.contact-label {
    font-size: 11px;
    color: #64748B;
}

.contact-val {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-red);
}

.site-logo-img {
    height: 90px;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.header-right-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

/* --- Main Nav (Classic 2-Tier Style) --- */
.main-nav {
    background: #1375B4;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 8px;
}

.nav-toggle {
    display: none;
    color: #FFF;
    padding: 10px 15px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.nav-menu-wrapper {
    display: flex;
    flex-direction: column;
    padding: 4px 0;
}

.nav-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    list-style: none;
    padding: 2px 10px;
    margin: 0;
}

.nav-row li {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-row li a {
    display: inline-block;
    width: 68px;
    text-align: left;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    padding: 4px 0;
    text-decoration: underline;
    transition: color 0.15s;
    white-space: nowrap;
}

.nav-row li:hover a {
    color: #FFFF00;
}

.nav-row li.active a {
    color: #FFFF00;
    font-weight: bold;
}



.header-search {
    margin-left: 20px;
}

.search-form {
    display: flex;
}

.search-form input {
    padding: 5px 10px;
    border: 1px solid #CBD5E1;
    border-radius: 4px 0 0 4px;
    font-size: 12px;
    outline: none;
    width: 180px;
}

.search-form button {
    background: var(--primary-blue);
    color: #FFF;
    border: none;
    padding: 5px 12px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 12px;
}

.search-form button:hover {
    background: #154360;
}

/* --- Main Container --- */
.main-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 15px 0 30px;
    overflow-x: hidden;
}

/* --- Authentic Home 2-Column Layout --- */
.home-layout-grid {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 15px;
    align-items: start;
    width: 100%;
    min-width: 0;
}

/* --- Left Column Sidebar Modules --- */
.home-left-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
}

.side-module {
    background: #FFFFFF;
    border: 1px solid #84C5FF;
    border-radius: 4px;
    margin-bottom: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.side-module-header {
    background: #1F52A5;
    background: linear-gradient(to right, #1F52A5, #3172C6);
    color: #FFFFFF;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: bold;
}

.module-icon {
    margin-right: 6px;
    vertical-align: middle;
}

.module-title {
    flex: 1;
    color: #FFFFFF;
}

.module-more {
    color: #E2E8F0;
    font-size: 12px;
    font-weight: normal;
    text-decoration: none;
}

.module-more:hover {
    color: #FFFF00;
}

.side-module-body {
    padding: 8px 10px;
    font-size: 12px;
    min-width: 0;
}

/* Left Sidebar Article List */
.side-article-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 12px;
    width: 100%;
    min-width: 0;
}

.side-article-list li {
    display: flex;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px dotted #CBD5E1;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.side-bullet {
    color: #000080;
    font-weight: bold;
    margin-right: 5px;
    flex-shrink: 0;
}

.side-article-list a {
    color: #1E293B;
    text-decoration: none;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.side-article-list a:hover {
    color: #DC2626;
    text-decoration: underline;
}

/* Left Sidebar Links */
.links-side-body {
    padding: 12px 10px;
    background-color: #DBE7FF;
}

.links-dropdown-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.links-select {
    width: 100%;
    height: 28px;
    padding: 3px 6px;
    font-size: 12px;
    border: 1px solid #7BA6E0;
    border-radius: 2px;
    background-color: #FFFFFF;
    color: #1E293B;
    outline: none;
    cursor: pointer;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.06);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.links-select:hover {
    border-color: #1F52A5;
}

.links-select:focus {
    border-color: #1F52A5;
    box-shadow: 0 0 0 2px rgba(31, 82, 165, 0.2);
}

.contact-side-body {
    font-size: 12px;
    line-height: 1.7;
    color: #334155;
}

.contact-side-body p {
    margin-bottom: 4px;
}

.contact-side-body a {
    color: #1F52A5;
}

/* --- Right Column: Top Headline Box --- */
.home-right-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
}

.content-box {
    background: #FFFFFF;
    border: 1px solid #84C5FF;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.top-headline-box {
    background: #FFFFFF;
    min-width: 0;
    width: 100%;
}

.headline-header {
    background: #F8FAFC;
    border-bottom: 1px solid #84C5FF;
    padding: 5px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.headline-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.headline-sub {
    color: #1F52A5;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
}

.headline-right {
    flex-shrink: 0;
}

.headline-ticker {
    flex: 1;
    min-width: 0;
    margin: 0 15px;
    height: 24px;
    line-height: 24px;
    font-size: 12px;
    overflow: hidden;
    position: relative;
}

.ticker-slider {
    position: relative;
    width: 100%;
    height: 100%;
    min-width: 0;
}

.ticker-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 24px;
    line-height: 24px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    opacity: 0;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
    pointer-events: none;
    box-sizing: border-box;
}

.ticker-item.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.ticker-item.leaving {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

.ticker-text {
    color: #00488C;
    text-decoration: none;
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.ticker-text:hover {
    color: #DC2626;
}

.headline-body {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Carousel Container */
.carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 310px;
    overflow: hidden;
    background: #0F172A;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Top Notice Headlines List beside Carousel */
.notice-articles-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.notice-articles-wrapper .classic-article-list {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.notice-articles-wrapper .classic-article-list li {
    padding: 3.5px 0;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75) 25%, rgba(0, 0, 0, 0.92));
    color: #FFFFFF;
    padding: 26px 12px 28px;
    font-size: 13px;
    font-weight: 500;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.carousel-indicators {
    position: absolute;
    bottom: 8px;
    right: 10px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.carousel-dot.active {
    background: #FFFFFF;
    transform: scale(1.2);
}

/* Classic Article List (Bullet + Title + Date) */
.classic-article-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    width: 100%;
    min-width: 0;
}

.classic-article-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px dotted #E2E8F0;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.classic-article-list li:last-child {
    border-bottom: none;
}

.item-bullet {
    color: #000080;
    font-weight: bold;
    margin-right: 6px;
    flex-shrink: 0;
}

.item-title {
    color: #1E293B;
    text-decoration: none;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin-right: 8px;
}

.item-title:hover {
    color: #DC2626;
    text-decoration: underline;
}

.item-date {
    color: #94A3B8;
    font-size: 12px;
    flex-shrink: 0;
    white-space: nowrap;
}

/* --- Core Categories 2x2 Grid --- */
.core-categories-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    width: 100%;
    min-width: 0;
}

.category-module {
    background: #FFFFFF;
    border: 1px solid #84C5FF;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.cat-module-header {
    background: #1F52A5;
    background: linear-gradient(to right, #1F52A5, #2B6CB0);
    color: #FFFFFF;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cat-name a {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
}

.cat-more {
    color: #86EFAC;
    font-size: 12px;
    text-decoration: none;
    font-weight: bold;
}

.cat-more:hover {
    color: #FFFF00;
}

.cat-module-body {
    padding: 8px 12px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* --- Article Lists --- */
.article-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    min-width: 0;
}

.article-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px dashed #E2E8F0;
    font-size: 13px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

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

.article-link {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 10px;
}

.article-link::before {
    content: "•";
    color: var(--primary-red);
    margin-right: 6px;
    font-weight: bold;
}

.article-date {
    color: var(--text-muted);
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* --- Article Reading View --- */
.article-detail-card {
    background: #FFF;
    border-radius: 6px;
    border: 1px solid #CBD5E1;
    padding: 30px;
    box-shadow: var(--shadow-soft);
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.article-breadcrumbs {
    font-size: 13px;
    color: var(--text-muted);
    padding-bottom: 15px;
    border-bottom: 1px solid #E2E8F0;
    margin-bottom: 25px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.article-title-main {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    color: #0F172A;
    margin-bottom: 15px;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: break-word;
}

.article-meta {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    padding-bottom: 20px;
    border-bottom: 1px solid #E2E8F0;
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
    line-height: 1.6;
}

.article-meta span {
    margin: 0;
    white-space: nowrap;
}

.article-body-content {
    font-size: 16px;
    line-height: 1.8;
    color: #334155;
    word-break: break-word;
    overflow-wrap: break-word;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.article-body-content table {
    max-width: 100% !important;
    width: 100% !important;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 15px 0;
    border-collapse: collapse;
}

.article-body-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 15px auto;
    border-radius: 4px;
}

.article-body-content pre {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.article-body-content iframe,
.article-body-content embed,
.article-body-content video {
    max-width: 100% !important;
}

.article-body-content p {
    margin-bottom: 16px;
}

/* --- Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 25px;
    padding: 10px 0;
    width: 100%;
    box-sizing: border-box;
}

.pagination a, .pagination span {
    padding: 6px 12px;
    border: 1px solid #CBD5E1;
    background: #FFF;
    border-radius: 4px;
    font-size: 13px;
    white-space: nowrap;
}

.pagination .current {
    background: var(--primary-blue);
    color: #FFF;
    border-color: var(--primary-blue);
    font-weight: bold;
}

/* --- Secondary Page Layout (Categories, Search, Articles) --- */
.home-main-grid {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 15px;
    align-items: start;
    width: 100%;
    min-width: 0;
}

.sidebar {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
}

.category-content-area,
.article-content-area {
    min-width: 0;
    width: 100%;
}

/* --- Universal Card Styling (White Background over Blue Page) --- */
.card {
    background: #FFFFFF;
    border: 1px solid #84C5FF;
    border-radius: 4px;
    margin-bottom: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.card-header {
    background: #1F52A5;
    background: linear-gradient(to right, #1F52A5, #2B6CB0);
    color: #FFFFFF;
    padding: 7px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: bold;
}

.card-title {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.card-icon {
    margin-right: 6px;
    vertical-align: middle;
}

.card-more {
    color: #E2E8F0;
    font-size: 12px;
    font-weight: normal;
}

.card-body {
    background: #FFFFFF;
    padding: 16px 20px;
    font-size: 13px;
    color: #334155;
    min-width: 0;
    box-sizing: border-box;
}

/* --- Search Results Presentation --- */
.search-results-card {
    background: #FFFFFF;
    border: 1px solid #84C5FF;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.search-summary-box {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.search-summary-text {
    font-size: 13px;
    color: #334155;
}

.search-page-form {
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-page-input {
    padding: 5px 10px;
    border: 1px solid #94A3B8;
    border-radius: 3px;
    font-size: 12px;
    width: 220px;
    max-width: 100%;
    outline: none;
    box-sizing: border-box;
}

.search-page-input:focus {
    border-color: #1F52A5;
}

.search-page-btn {
    background: #1F52A5;
    color: #FFFFFF;
    border: none;
    padding: 5px 14px;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
}

.search-page-btn:hover {
    background: #154360;
}

.search-breadcrumbs {
    font-size: 12px;
    color: #64748B;
    padding-bottom: 10px;
    border-bottom: 1px solid #E2E8F0;
    margin-bottom: 12px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.search-breadcrumbs a {
    color: #1F52A5;
}

.search-breadcrumbs a:hover {
    color: #DC2626;
    text-decoration: underline;
}

.article-item-main {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    margin-right: 12px;
}

.article-cat-badge {
    color: #1F52A5;
    font-size: 12px;
    margin-right: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.search-article-list {
    background: #FFFFFF;
}

.search-article-list li {
    padding: 9px 4px;
    border-bottom: 1px dashed #E2E8F0;
}

.search-article-list li:hover {
    background: #F8FAFC;
}

.search-article-list .article-link {
    font-size: 14px;
}

.search-article-list .article-link::before {
    display: none;
}

.search-no-results {
    text-align: center;
    padding: 40px 20px;
    background: #F8FAFC;
    border: 1px dashed #CBD5E1;
    border-radius: 4px;
    margin-top: 10px;
}

/* --- Sidebar Columns --- */
.sidebar-menu {
    list-style: none;
}

.sidebar-menu li a {
    display: block;
    padding: 10px 14px;
    border-bottom: 1px solid #F1F5F9;
    font-size: 14px;
    transition: background 0.2s, padding-left 0.2s;
}

.sidebar-menu li a:hover,
.sidebar-menu li.active a {
    background: #EFF6FF;
    color: var(--primary-blue);
    font-weight: bold;
    padding-left: 20px;
    border-left: 3px solid var(--primary-blue);
}

/* --- Footer --- */
.site-footer {
    background: #1E293B;
    color: #94A3B8;
    padding: 30px 0 20px;
    font-size: 13px;
    border-top: 3px solid var(--primary-red);
}

.footer-nav {
    text-align: center;
    margin-bottom: 15px;
}

.footer-nav a {
    color: #CBD5E1;
    margin: 0 8px;
}

.footer-nav a:hover {
    color: #FFFFFF;
}

.footer-info {
    text-align: center;
    line-height: 1.9;
}

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

.footer-brand-link {
    color: #F87171 !important;
    font-weight: bold;
    text-decoration: none;
}

.footer-brand-link:hover {
    text-decoration: underline;
}

.footer-info a {
    color: #94A3B8;
}

.footer-info a:hover {
    color: #FFFFFF;
}

.footer-beian-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    gap: 12px;
    text-align: left;
}

.beian-badge {
    display: inline-block;
    flex-shrink: 0;
}

.beian-badge img {
    width: 47px;
    height: 48px;
    display: block;
}

.beian-text {
    font-size: 13px;
    line-height: 1.6;
    color: #94A3B8;
}

.beian-text span {
    color: #E2E8F0;
    font-weight: 500;
}

.beian-text a {
    color: #CBD5E1;
}

.beian-text a:hover {
    color: #FFFFFF;
}


/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
    .home-layout-grid,
    .home-main-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }
    .headline-body {
        grid-template-columns: minmax(0, 1fr);
        padding: 10px;
        gap: 10px;
    }
    .carousel-wrapper {
        height: 240px;
    }
    .core-categories-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }
    .nav-toggle {
        display: block;
    }
    .nav-menu-wrapper {
        display: none;
    }
    .nav-menu-wrapper.open {
        display: flex;
    }
    .nav-row {
        grid-template-columns: 1fr;
    }
    .nav-row li {
        justify-content: flex-start;
        padding-left: 15px;
    }
    .nav-row li a {
        width: 100%;
        padding: 6px 0;
    }
    .header-banner {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        text-align: center;
    }
    .header-right-side {
        align-items: center;
    }
    .header-search {
        margin-left: 0;
    }
}

/* --- Site Map / Navigation Directory Page --- */
.sitemap-page-container {
    width: 100%;
}

.sitemap-breadcrumb-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 4px;
    padding: 10px 16px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    font-size: 13px;
}

.sitemap-breadcrumb-bar .breadcrumb-location a {
    color: #1F52A5;
    text-decoration: none;
}

.sitemap-breadcrumb-bar .breadcrumb-location a:hover {
    text-decoration: underline;
}

.sitemap-search-mini form {
    display: flex;
    align-items: center;
}

.sitemap-search-mini input {
    padding: 5px 10px;
    border: 1px solid #94A3B8;
    border-radius: 4px 0 0 4px;
    font-size: 12px;
    width: 200px;
    outline: none;
}

.sitemap-search-mini input:focus {
    border-color: #1F52A5;
}

.sitemap-search-mini button {
    background: #1F52A5;
    color: #FFFFFF;
    border: 1px solid #1F52A5;
    padding: 5px 12px;
    border-radius: 0 4px 4px 0;
    font-size: 12px;
    cursor: pointer;
}

.sitemap-search-mini button:hover {
    background: #154360;
}

.sitemap-main-card {
    background: #FFFFFF;
    border: 1px solid #84C5FF;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sitemap-card-title-header {
    background: linear-gradient(to right, #1F52A5, #3172C6);
    color: #FFFFFF;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.sitemap-subtitle-note {
    font-size: 12px;
    color: #FEF08A;
}

.sitemap-body {
    padding: 20px;
}

.sitemap-shortcuts-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 13px;
}

.shortcuts-label {
    font-weight: bold;
    color: #334155;
}

.shortcut-pill {
    padding: 3px 10px;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 12px;
    color: #1F52A5;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.15s ease;
}

.shortcut-pill:hover {
    background: #1F52A5;
    color: #FFFFFF;
    border-color: #1F52A5;
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.sitemap-category-box {
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.sitemap-category-box:hover {
    border-color: #7BA6E0;
    box-shadow: 0 3px 8px rgba(31, 82, 165, 0.08);
}

.sitemap-box-header {
    background: #EBF3FB;
    border-bottom: 1px solid #D1E3F8;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.box-header-title {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sitemap-bullet {
    color: #1F52A5;
    font-size: 10px;
}

.box-main-link {
    font-size: 14px;
    font-weight: bold;
    color: #1F52A5;
    text-decoration: none;
}

.box-main-link:hover {
    text-decoration: underline;
    color: #DC2626;
}

.box-count-badge {
    font-size: 11px;
    background: #DBEAFE;
    color: #1D4ED8;
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: normal;
}

.box-more-link {
    font-size: 12px;
    color: #64748B;
    text-decoration: none;
}

.box-more-link:hover {
    color: #DC2626;
}

.sitemap-box-content {
    padding: 12px;
    flex: 1;
}

.sitemap-subcat-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.subcat-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 9px;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 3px;
    color: #334155;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.subcat-tag:hover {
    background: #1F52A5;
    color: #FFFFFF;
    border-color: #1F52A5;
}

.subcat-tag:hover .tag-count {
    color: #FEF08A;
}

.tag-name {
    font-size: 12px;
}

.tag-count {
    font-size: 11px;
    color: #94A3B8;
}

.sitemap-empty-sub {
    padding: 8px 0;
}

.direct-category-btn {
    color: #1F52A5;
    font-size: 12px;
    text-decoration: none;
}

.direct-category-btn:hover {
    text-decoration: underline;
    color: #DC2626;
}

.sitemap-service-box .service-header {
    background: #FEF3C7;
    border-bottom: 1px solid #FDE68A;
}

.sitemap-service-box .box-main-link {
    color: #92400E;
}

.sitemap-contact-inline {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed #CBD5E1;
    font-size: 12px;
    color: #475569;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sitemap-contact-inline a {
    color: #1F52A5;
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    .main-container {
        padding: 10px 0 20px;
    }
    .headline-header {
        padding: 6px 10px;
    }
    .headline-ticker {
        margin: 0 8px;
    }
    .carousel-wrapper {
        height: 200px;
    }
    .article-detail-card {
        padding: 18px 12px;
    }
    .article-title-main {
        font-size: 20px;
        margin-bottom: 12px;
    }
    .article-meta {
        padding-bottom: 12px;
        margin-bottom: 18px;
        font-size: 11px;
        gap: 6px 10px;
    }
    .article-body-content {
        font-size: 15px;
        line-height: 1.7;
    }
    .search-summary-box {
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
    }
    .search-page-form {
        width: 100%;
        display: flex;
    }
    .search-page-input {
        width: 100%;
        flex: 1;
        min-width: 0;
    }
    .sitemap-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }
    .sitemap-breadcrumb-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .sitemap-search-mini {
        width: 100%;
    }
    .sitemap-search-mini form {
        width: 100%;
    }
    .sitemap-search-mini input {
        width: 100%;
        flex: 1;
        min-width: 0;
    }
    .sitemap-body {
        padding: 12px 10px;
    }
    .sitemap-shortcuts-bar {
        padding: 8px 10px;
        gap: 6px;
    }
    .sitemap-card-title-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .card-body {
        padding: 12px 14px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 8px;
    }
    .carousel-wrapper {
        height: 170px;
    }
    .carousel-caption {
        padding: 16px 8px 20px;
        font-size: 12px;
    }
    .headline-sub {
        font-size: 13px;
    }
    .headline-ticker {
        font-size: 11px;
        margin: 0 4px;
    }
    .headline-right img {
        width: 42px;
        height: auto;
    }
    .pagination {
        gap: 3px;
    }
    .pagination a, .pagination span {
        padding: 4px 6px;
        font-size: 11px;
    }
    .card-header {
        padding: 6px 8px;
    }
    .card-title {
        font-size: 13px;
    }
    .cat-module-header {
        padding: 6px 8px;
    }
    .cat-name a {
        font-size: 13px;
    }
    .cat-module-body {
        padding: 6px 8px;
    }
    .classic-article-list li {
        font-size: 12px;
    }
    .article-title-main {
        font-size: 18px;
    }
    .article-detail-card {
        padding: 14px 10px;
    }
    .article-breadcrumbs {
        font-size: 12px;
        padding-bottom: 10px;
        margin-bottom: 15px;
    }
    .footer-beian-row {
        flex-wrap: wrap;
        text-align: center;
        justify-content: center;
    }
}

