@charset "UTF-8";
/*!
 * ============================================================
 * HKCMS 全静态响应式模板 - 主样式表
 * 主题名：custom
 * 目录  ：public/static/module/index/custom/css/style.css
 * 说明  ：模板中通过 __static__/css/style.css 引用
 *
 * 目录索引：
 *   01. CSS 变量与重置
 *   02. 通用布局与工具类
 *   03. 头部与导航
 *   04. 首页 - 轮播
 *   05. 首页 - 区块与卡片
 *   06. 内页 - 横幅与面包屑
 *   07. 内页 - 列表
 *   08. 内页 - 详情
 *   09. 侧边栏
 *   10. 分页
 *   11. 搜索页
 *   12. 页脚与返回顶部
 *   13. 响应式适配
 * ============================================================
 */

/* ============================================================
   01. CSS 变量与重置
   ============================================================ */
:root {
    --color-primary: #1677ff;
    --color-primary-dark: #0958d9;
    --color-text: #333;
    --color-text-light: #666;
    --color-muted: #999;
    --color-border: #e8e8e8;
    --color-bg: #f5f7fa;
    --color-white: #fff;
    --radius: 6px;
    --shadow: 0 2px 12px rgba(0, 0, 0, .06);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, .12);
    --transition: all .3s ease;
    --container: 1200px;
}

/* 盒模型统一，避免 padding 撑破布局 */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    /* 移动端字体不随横竖屏自动缩放 */
    -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
}

p { margin: 0 0 10px; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}
a:hover { color: var(--color-primary); text-decoration: none; }

img {
    max-width: 100%;
    height: auto;
    border: 0;
    vertical-align: middle;
}

button { font-family: inherit; cursor: pointer; }

/* ============================================================
   02. 通用布局与工具类
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 15px;
}

.section { padding: 50px 0; }

/* 主内容 + 侧边栏的两栏布局（Flex 实现，IE11 亦可用） */
.layout-with-sidebar {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}
.layout-with-sidebar > .layout-main {
    flex: 1 1 0;
    min-width: 0; /* 关键：防止 flex 子项内容溢出 */
    padding: 0 15px;
}
.layout-with-sidebar > .sidebar {
    flex: 0 0 300px;
    max-width: 300px;
    padding: 0 15px;
}

/* 区块标题栏 */
.section-head {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}
.section-title {
    position: relative;
    padding-left: 12px;
    font-size: 22px;
}
.section-title::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 4px;
    height: 18px;
    background: var(--color-primary);
    border-radius: 2px;
    transform: translateY(-50%);
}
.section-desc {
    margin: 0 0 0 16px;
    color: var(--color-muted);
    font-size: 13px;
}
.section-more {
    margin-left: auto;
    color: var(--color-muted);
    font-size: 13px;
}
.section-more:hover { color: var(--color-primary); }

.empty-tip {
    padding: 40px 0;
    color: var(--color-muted);
    text-align: center;
}
.text-muted { color: var(--color-muted); }

/* ============================================================
   03. 头部与导航
   ============================================================ */
.topbar {
    background: #2b3442;
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 36px;
}
.topbar-contact { display: flex; }
.topbar-contact li { margin-left: 20px; }

.navbar-wrap {
    background: var(--color-white);
    box-shadow: var(--shadow);
}
/* 滚动吸顶：由 JS 添加 .is-sticky */
.navbar-wrap.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    animation: slideDown .3s ease;
}
@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.navbar-custom {
    display: flex;
    align-items: center;
    height: 70px;
}
.navbar-logo { display: flex; align-items: center; }
.navbar-logo img { max-height: 46px; }
.navbar-logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
}

.navbar-collapse {
    display: flex;
    flex: 1;
    align-items: center;
}
.navbar-nav {
    display: flex;
    margin-left: 40px;
}
.nav-item { position: relative; }
.nav-link {
    display: block;
    padding: 0 18px;
    line-height: 70px;
    font-size: 15px;
    white-space: nowrap;
}
.nav-item:hover > .nav-link,
.nav-item.active > .nav-link {
    color: var(--color-primary);
}
/* 当前项下划线指示 */
.nav-item.active > .nav-link::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    height: 2px;
    background: var(--color-primary);
}

/* 二级下拉菜单 */
.dropdown-menu-custom {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 160px;
    padding: 8px 0;
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}
/* 无子栏目时（ul 为空）不显示，配合模板中的空 ul 使用 */
.dropdown-menu-custom:empty { display: none; }
.nav-item:hover > .dropdown-menu-custom {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu-custom li a {
    display: block;
    padding: 8px 18px;
    font-size: 14px;
    white-space: nowrap;
}
.dropdown-menu-custom li a:hover {
    background: var(--color-bg);
    color: var(--color-primary);
}

/* 顶部搜索框 */
.navbar-search {
    display: flex;
    margin-left: auto;
}
.search-input {
    width: 160px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--color-border);
    border-right: 0;
    border-radius: var(--radius) 0 0 var(--radius);
    outline: none;
    transition: var(--transition);
}
.search-input:focus { width: 200px; border-color: var(--color-primary); }
.search-btn {
    width: 44px;
    height: 36px;
    border: 0;
    background: var(--color-primary);
    color: #fff;
    border-radius: 0 var(--radius) var(--radius) 0;
}
.search-btn:hover { background: var(--color-primary-dark); }

/* 移动端汉堡按钮：默认隐藏，小屏显示 */
.navbar-toggle {
    display: none;
    width: 40px;
    height: 40px;
    margin-left: auto;
    padding: 8px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: transparent;
}
.toggle-bar {
    display: block;
    height: 2px;
    margin: 4px 0;
    background: var(--color-text);
    transition: var(--transition);
}

/* ============================================================
   04. 首页 - 轮播
   ============================================================ */
.hero-slider {
    position: relative;
    overflow: hidden;
    background: #ddd;
}
.hero-track { position: relative; }
.hero-item {
    display: none;
    position: relative;
}
.hero-item.is-active {
    display: block;
    animation: fadeIn .6s ease;
}
@keyframes fadeIn {
    from { opacity: .3; }
    to { opacity: 1; }
}
.hero-item img {
    width: 100%;
    height: 480px;
    object-fit: cover; /* 保证不同尺寸图片统一裁切显示 */
    display: block;
}
.hero-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 60px 0 40px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .65));
    color: #fff;
}
.hero-title { font-size: 32px; margin-bottom: 8px; }
.hero-desc { font-size: 16px; opacity: .9; margin: 0; }

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .3);
    color: #fff;
    font-size: 22px;
    opacity: 0;
    transition: var(--transition);
}
.hero-slider:hover .hero-arrow { opacity: 1; }
.hero-arrow:hover { background: var(--color-primary); }
.hero-prev { left: 20px; }
.hero-next { right: 20px; }

.hero-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    text-align: center;
}
.hero-dots span {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .5);
    cursor: pointer;
    transition: var(--transition);
}
.hero-dots span.is-active {
    width: 24px;
    border-radius: 5px;
    background: #fff;
}

/* ============================================================
   05. 首页 - 区块与卡片
   ============================================================ */
.channel-block { margin-bottom: 40px; }
.channel-block:last-child { margin-bottom: 0; }

/* 卡片网格：Flex 实现四列，配合响应式断点降列 */
.card-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}
.card-item {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 10px;
    margin-bottom: 20px;
}
.card-link {
    display: block;
    height: 100%;
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.card-link:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.card-thumb {
    position: relative;
    /* 16:9 等比占位，防止图片加载时布局抖动（CLS 优化） */
    padding-top: 60%;
    overflow: hidden;
    background: #f0f2f5;
}
.card-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.card-link:hover .card-thumb img { transform: scale(1.06); }
.card-thumb-holder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #c8ccd4;
    font-size: 32px;
}
.card-body { padding: 14px 16px 16px; }
.card-title {
    font-size: 15px;
    margin-bottom: 8px;
    /* 两行截断 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-desc {
    color: var(--color-text-light);
    font-size: 13px;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-meta {
    display: flex;
    justify-content: space-between;
    color: var(--color-muted);
    font-size: 12px;
}

/* 首页最新资讯列表 */
.news-list {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}
.news-item {
    display: flex;
    flex: 0 0 50%;
    max-width: 50%;
    padding: 18px 10px;
}
.news-date {
    flex: 0 0 72px;
    height: 72px;
    margin-right: 16px;
    background: var(--color-white);
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
}
.news-day {
    display: block;
    padding-top: 8px;
    font-size: 26px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
}
.news-month {
    display: block;
    font-size: 12px;
    color: var(--color-muted);
}
.news-body { flex: 1; min-width: 0; }
.news-title {
    font-size: 16px;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.news-desc {
    color: var(--color-text-light);
    font-size: 13px;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   06. 内页 - 横幅与面包屑
   ============================================================ */
.page-banner {
    position: relative;
    padding: 60px 0;
    background: var(--color-primary) center/cover no-repeat;
    color: #fff;
}
.page-banner-mask {
    position: absolute;
    inset: 0;
    background: rgba(20, 40, 80, .55);
}
.page-banner-inner { position: relative; z-index: 1; }
.page-banner-title { font-size: 30px; margin-bottom: 10px; }
.page-banner-desc {
    max-width: 700px;
    opacity: .9;
    margin-bottom: 12px;
}
.breadcrumb-nav { font-size: 13px; opacity: .9; }
.breadcrumb-nav a:hover { color: #fff; text-decoration: underline; }
.crumb-sep { margin: 0 6px; font-size: 12px; }

/* ============================================================
   07. 内页 - 列表
   ============================================================ */
.list-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}
.list-heading { font-size: 20px; }
.list-order { margin-left: auto; }
.list-order a {
    margin-left: 12px;
    padding: 3px 12px;
    border-radius: 20px;
    color: var(--color-text-light);
    font-size: 13px;
}
.list-order a:hover,
.list-order a.active {
    background: var(--color-primary);
    color: #fff;
}

.article-item {
    display: flex;
    padding: 20px;
    margin-bottom: 16px;
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.article-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-hover);
}
.article-thumb {
    position: relative;
    flex: 0 0 220px;
    height: 140px;
    margin-right: 20px;
    border-radius: var(--radius);
    overflow: hidden;
    background: #f0f2f5;
}
.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.article-item:hover .article-thumb img { transform: scale(1.06); }
.article-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.article-title {
    font-size: 18px;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.article-desc {
    flex: 1;
    color: var(--color-text-light);
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    color: var(--color-muted);
    font-size: 12px;
}
.article-meta > span { margin-right: 16px; }
.article-more {
    margin-left: auto;
    color: var(--color-primary);
}

/* 栏目页子栏目卡片 */
.subcate-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px 30px;
}
.subcate-card {
    flex: 0 0 20%;
    max-width: 20%;
    margin: 0 0 16px;
    padding: 18px 10px;
    text-align: center;
}
.subcate-card {
    background-clip: content-box;
}
.subcate-thumb img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 8px;
}
.subcate-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
}
.subcate-desc {
    display: block;
    color: var(--color-muted);
    font-size: 12px;
}
.subcate-card:hover .subcate-name { color: var(--color-primary); }

/* ============================================================
   08. 内页 - 详情
   ============================================================ */
.article-detail {
    padding: 30px;
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.detail-head {
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
    text-align: center;
}
.detail-title {
    font-size: 26px;
    margin-bottom: 12px;
}
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    color: var(--color-muted);
    font-size: 13px;
}
.detail-meta > span { margin: 0 10px; }
.detail-summary {
    padding: 12px 16px;
    margin-bottom: 20px;
    background: var(--color-bg);
    border-left: 3px solid var(--color-primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--color-text-light);
    font-size: 13px;
}

/* 富文本正文样式 */
.article-content {
    font-size: 15px;
    line-height: 1.9;
    color: #444;
    word-wrap: break-word;
}
.article-content p { margin-bottom: 16px; }
/* 正文图片自适应，避免撑破容器 */
.article-content img {
    max-width: 100%;
    height: auto !important;
    border-radius: var(--radius);
    margin: 10px 0;
}
.article-content h2,
.article-content h3,
.article-content h4 { margin: 24px 0 12px; }
.article-content a { color: var(--color-primary); text-decoration: underline; }
.article-content blockquote {
    margin: 16px 0;
    padding: 12px 16px;
    background: var(--color-bg);
    border-left: 3px solid var(--color-primary);
    color: var(--color-text-light);
}
.article-content pre {
    padding: 14px;
    background: #2b3442;
    color: #e6e6e6;
    border-radius: var(--radius);
    overflow-x: auto;
}
/* 表格横向滚动，解决移动端宽表格溢出 */
.article-content table {
    width: 100%;
    margin: 16px 0;
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
}
.article-content table td,
.article-content table th {
    padding: 8px 12px;
    border: 1px solid var(--color-border);
}
.article-content video,
.article-content iframe {
    max-width: 100%;
}

.detail-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding-top: 20px;
    margin-top: 24px;
    border-top: 1px solid var(--color-border);
}
.detail-tags a {
    display: inline-block;
    padding: 2px 10px;
    margin: 0 6px 6px 0;
    background: var(--color-bg);
    border-radius: 20px;
    font-size: 12px;
    color: var(--color-text-light);
}
.detail-tags a:hover { background: var(--color-primary); color: #fff; }
.detail-share { margin-left: auto; display: flex; align-items: center; }
.detail-share-label { color: var(--color-muted); font-size: 13px; }
.detail-share a {
    width: 30px;
    height: 30px;
    margin-left: 8px;
    border-radius: 50%;
    background: var(--color-bg);
    color: var(--color-text-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.detail-share a:hover { background: var(--color-primary); color: #fff; }

.detail-prenext {
    display: flex;
    flex-wrap: wrap;
    padding: 16px 0;
    margin-top: 16px;
    border-top: 1px dashed var(--color-border);
    font-size: 13px;
}
.prenext-item { flex: 0 0 50%; max-width: 50%; }
.prenext-next { text-align: right; }
.prenext-none { color: var(--color-muted); }

.detail-related { margin-top: 30px; }
.related-list {
    display: flex;
    flex-wrap: wrap;
    margin-top: 16px;
}
.related-list li {
    display: flex;
    flex: 0 0 50%;
    max-width: 50%;
    padding: 6px 12px 6px 0;
    font-size: 14px;
}
.related-list li a {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.related-date { color: var(--color-muted); font-size: 12px; }

/* ============================================================
   09. 侧边栏
   ============================================================ */
.widget {
    margin-bottom: 20px;
    padding: 20px;
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.widget-title {
    position: relative;
    padding-left: 12px;
    margin-bottom: 14px;
    font-size: 17px;
}
.widget-title::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 4px;
    height: 16px;
    background: var(--color-primary);
    border-radius: 2px;
    transform: translateY(-50%);
}
.widget-menu li a {
    display: block;
    padding: 9px 12px;
    border-radius: var(--radius);
    font-size: 14px;
    border-bottom: 1px dashed var(--color-border);
}
.widget-menu li:last-child a { border-bottom: 0; }
.widget-menu li a:hover,
.widget-menu li.active a {
    background: var(--color-primary);
    color: #fff;
    border-bottom-color: transparent;
}

.widget-search-form { display: flex; }
.widget-search-form input {
    flex: 1;
    min-width: 0;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--color-border);
    border-right: 0;
    border-radius: var(--radius) 0 0 var(--radius);
    outline: none;
}
.widget-search-form input:focus { border-color: var(--color-primary); }
.widget-search-form button {
    width: 46px;
    border: 0;
    background: var(--color-primary);
    color: #fff;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.widget-hot-list li { padding: 10px 0; border-bottom: 1px dashed var(--color-border); }
.widget-hot-list li:last-child { border-bottom: 0; }
.widget-hot-list li a { display: flex; align-items: center; }
.hot-thumb {
    flex: 0 0 74px;
    height: 54px;
    margin-right: 10px;
    border-radius: var(--radius);
    overflow: hidden;
}
.hot-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hot-info { flex: 1; min-width: 0; }
.hot-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
}
.hot-meta { color: var(--color-muted); font-size: 12px; }

.widget-tag-cloud a {
    display: inline-block;
    padding: 3px 12px;
    margin: 0 6px 8px 0;
    background: var(--color-bg);
    border-radius: 20px;
    font-size: 12px;
    color: var(--color-text-light);
}
.widget-tag-cloud a:hover { background: var(--color-primary); color: #fff; }

/* ============================================================
   10. 分页
   ============================================================ */
.pagination-wrap { margin-top: 30px; text-align: center; }
.pagination-wrap ul {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
}
.pagination-wrap li { margin: 0 4px 8px; }
.pagination-wrap a,
.pagination-wrap span {
    display: block;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    line-height: 34px;
    font-size: 13px;
    color: var(--color-text-light);
}
.pagination-wrap a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.pagination-wrap li.active span,
.pagination-wrap .active a {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}
.pagination-wrap .disabled span { color: #ccc; cursor: not-allowed; }

/* ============================================================
   11. 搜索页
   ============================================================ */
.search-banner { padding: 50px 0; }
.search-hero-form {
    display: flex;
    max-width: 600px;
    margin: 20px 0 16px;
}
.search-hero-form input {
    flex: 1;
    min-width: 0;
    height: 46px;
    padding: 0 16px;
    border: 0;
    border-radius: var(--radius) 0 0 var(--radius);
    outline: none;
    font-size: 15px;
}
.search-hero-form button {
    padding: 0 24px;
    border: 0;
    background: var(--color-primary);
    color: #fff;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 15px;
}
.search-hero-form button:hover { background: var(--color-primary-dark); }

.search-summary {
    padding: 12px 16px;
    margin-bottom: 16px;
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-size: 14px;
}
.search-keyword { color: var(--color-primary); font-style: normal; font-weight: 600; }
.search-filter { flex-direction: column; align-items: flex-start; }
.filter-group { display: flex; flex-wrap: wrap; align-items: center; margin-bottom: 6px; }
.filter-group .filter-label { color: var(--color-muted); font-size: 13px; }
.search-filter .list-order { margin-left: 0; }
.filter-group a {
    margin-left: 10px;
    padding: 3px 12px;
    border-radius: 20px;
    color: var(--color-text-light);
    font-size: 13px;
}
.filter-group a:hover,
.filter-group a.active { background: var(--color-primary); color: #fff; }

/* 搜索关键词高亮（hkcms:color 标签输出 <font color> 或 span） */
.search-list font,
.search-list .keyword { color: #e6412d !important; font-weight: 600; }

.search-empty {
    padding: 60px 20px;
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    color: var(--color-muted);
}
.search-empty i { font-size: 46px; margin-bottom: 12px; color: #d0d4dc; }
.search-empty p { font-size: 17px; color: var(--color-text); margin-bottom: 6px; }

/* ============================================================
   12. 页脚与返回顶部
   ============================================================ */
.site-footer {
    background: #2b3442;
    color: rgba(255, 255, 255, .65);
    font-size: 13px;
}
.footer-main { padding: 40px 0 30px; }
.footer-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}
.footer-col {
    flex: 1;
    min-width: 0;
    padding: 0 15px;
    margin-bottom: 20px;
}
.footer-about { flex: 0 0 30%; max-width: 30%; }
.footer-logo { max-height: 42px; margin-bottom: 12px; }
.footer-desc {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.footer-social { display: flex; margin-top: 12px; }
.footer-social li { margin-right: 10px; }
.footer-social a {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .8);
}
.footer-social a:hover { background: var(--color-primary); color: #fff; }

.footer-title {
    margin-bottom: 14px;
    font-size: 16px;
    color: #fff;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a:hover,
.footer-contact-list a:hover { color: #fff; }
.footer-contact-list li { display: flex; margin-bottom: 8px; }
.footer-contact-list i { width: 20px; margin-top: 4px; }

.footer-friend {
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
}
.friend-links { display: flex; flex-wrap: wrap; }
.friend-links li { margin-right: 14px; }
.friend-label { color: rgba(255, 255, 255, .85); }

.footer-copyright {
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
    text-align: center;
}
.footer-copyright p { margin: 0; }
.copyright-extra { margin-left: 8px; }

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 60px;
    z-index: 999;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: var(--radius);
    background: var(--color-primary);
    color: #fff;
    font-size: 22px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--color-primary-dark); }

/* ============================================================
   13. 响应式适配
   断点：1199px（小桌面）/ 991px（平板）/ 767px（手机横）/ 575px（手机竖）
   ============================================================ */
@media (max-width: 1199px) {
    .nav-link { padding: 0 12px; }
    .search-input { width: 130px; }
}

@media (max-width: 991px) {
    .section { padding: 36px 0; }

    /* 侧边栏下沉为整行 */
    .layout-with-sidebar > .sidebar {
        flex: 0 0 100%;
        max-width: 100%;
        margin-top: 20px;
    }

    /* 卡片由四列降为两列 */
    .card-item { flex: 0 0 50%; max-width: 50%; }
    .subcate-card { flex: 0 0 25%; max-width: 25%; }
    .news-item { flex: 0 0 100%; max-width: 100%; }

    .hero-item img { height: 340px; }
    .hero-title { font-size: 24px; }

    /* ---- 移动端导航：改为折叠面板 ---- */
    .navbar-toggle { display: block; }
    .navbar-custom { height: 60px; flex-wrap: wrap; }
    .navbar-collapse {
        display: none;
        flex: 0 0 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 10px 0;
        border-top: 1px solid var(--color-border);
    }
    /* JS 切换 .is-open 控制展开 */
    .navbar-collapse.is-open { display: flex; }
    .navbar-nav { flex-direction: column; margin-left: 0; }
    .nav-link { line-height: 42px; padding: 0 8px; }
    .nav-item.active > .nav-link::after { display: none; }

    /* 二级菜单在移动端改为常驻展开的缩进列表 */
    .dropdown-menu-custom {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0 0 0 16px;
        border-left: 2px solid var(--color-border);
        margin-bottom: 6px;
    }
    .navbar-search { margin: 10px 0 0; }
    .search-input { flex: 1; width: auto; }
    .search-input:focus { width: auto; }

    .article-detail { padding: 20px; }
    .detail-title { font-size: 21px; }
}

@media (max-width: 767px) {
    .hero-item img { height: 220px; }
    .hero-title { font-size: 18px; }
    .hero-desc { display: none; }
    .hero-arrow { display: none; }

    .page-banner { padding: 36px 0; }
    .page-banner-title { font-size: 22px; }

    /* 列表项改为上下结构 */
    .article-item { flex-direction: column; padding: 14px; }
    .article-thumb {
        flex: none;
        width: 100%;
        height: 180px;
        margin: 0 0 12px;
    }
    .article-title { font-size: 16px; white-space: normal; }

    .subcate-card { flex: 0 0 33.333%; max-width: 33.333%; }

    /* 上下篇、相关推荐改为单列 */
    .prenext-item,
    .related-list li {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: left;
    }
    .prenext-next { text-align: left; margin-top: 8px; }

    .detail-share { margin: 12px 0 0; width: 100%; }
    .footer-about,
    .footer-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .back-to-top { right: 12px; bottom: 40px; width: 38px; height: 38px; font-size: 18px; }
}

@media (max-width: 575px) {
    .card-item { flex: 0 0 100%; max-width: 100%; }
    .subcate-card { flex: 0 0 50%; max-width: 50%; }
    .section-title { font-size: 18px; }
    .detail-meta > span { margin: 0 6px; }
    .article-detail { padding: 14px; }
    .search-hero-form input { height: 40px; }
}

/* ============================================================
   14. 新版三行式头部结构
   ============================================================ */
.site-header { background: #fff; }

.header-topbar {
    background: #f5f7fa;
    border-bottom: 1px solid #eef2f7;
    font-size: 13px;
    color: #6b7280;
}
.header-topbar a { color: #6b7280; }
.header-topbar a:hover { color: var(--color-primary); }
.topbar-city .city-switch {
    color: var(--color-primary);
    font-size: 12px;
    margin-left: 4px;
}
.topbar-contact i { color: var(--color-primary); }

.header-logo { padding: 18px 0; }
.brand-wrap { display: flex; align-items: center; }
.brand-logo img { max-height: 58px; }
.brand-info { margin-left: 14px; }
.brand-name {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}
.brand-slogan {
    margin: 4px 0 0;
    font-size: 13px;
    color: #6b7280;
}
.header-hotline .hotline-label {
    font-size: 13px;
    color: #6b7280;
}
.header-hotline .hotline-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 1px;
    line-height: 1.2;
    margin: 2px 0;
    font-family: Arial, sans-serif;
}
.header-hotline .hotline-tip {
    font-size: 12px;
    color: #9ca3af;
}

.header-navbar .navbar { min-height: 52px; }
.header-navbar .navbar-nav .nav-link {
    color: rgba(255,255,255,0.95);
    padding: 0 18px;
    line-height: 52px;
    font-size: 15px;
    font-weight: 500;
}
.header-navbar .navbar-nav .nav-link:hover,
.header-navbar .navbar-nav .nav-item.active .nav-link,
.header-navbar .navbar-nav .nav-item.dropdown.active > .nav-link {
    color: #fff;
    background: rgba(255,255,255,0.12);
}
.header-navbar .dropdown-menu {
    border: 0;
    border-radius: 0 0 6px 6px;
    padding: 6px 0;
    margin-top: 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.header-navbar .dropdown-item {
    padding: 8px 20px;
    font-size: 14px;
    color: #374151;
}
.header-navbar .dropdown-item:hover,
.header-navbar .dropdown-item.active {
    background: #f0f6ff;
    color: var(--color-primary);
}
.header-navbar .dropdown-submenu { position: relative; }
.header-navbar .dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-left: 1px;
    border-radius: 0 6px 6px 6px;
}
.header-navbar .dropdown-submenu:hover > .dropdown-menu { display: block; }
.nav-search-form .input-group { width: 230px; }
.nav-search-form .form-control {
    height: 36px;
    border: 0;
    border-radius: 18px 0 0 18px;
    font-size: 13px;
    padding-left: 16px;
}
.nav-search-form .btn-light {
    height: 36px;
    border: 0;
    border-radius: 0 18px 18px 0;
    padding: 0 14px;
    color: var(--color-primary);
    background: #fff;
}

/* ============================================================
   15. 新版首页区块
   ============================================================ */
.hero-section { overflow: hidden; }
.home-banner .swiper-button-prev:after,
.home-banner .swiper-button-next:after { font-size: 18px; font-weight: 700; }
.home-banner .swiper-pagination-bullet {
    width: 24px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.5);
    opacity: 1;
}
.home-banner .swiper-pagination-bullet-active {
    background: #fff;
}

.news-block-head h3 i { font-size: 16px; }
.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(22,119,255,0.15) !important;
}
.course-card:hover .course-more { font-weight: 600; }
.info-item:hover {
    border-color: #dbeafe !important;
    box-shadow: 0 4px 14px rgba(22,119,255,0.08);
}
.info-day { font-family: Arial, sans-serif; }
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.1) !important;
}
.product-card:hover .product-img img { transform: scale(1.08); }
.product-img img { transition: transform .4s ease; }
.partner-swiper .partner-item:hover {
    border-color: var(--color-primary) !important;
    box-shadow: 0 4px 14px rgba(22,119,255,0.1);
}
.partner-swiper .partner-item img { transition: filter .3s; }
.partner-swiper .partner-item:hover img { filter: none !important; }

/* ============================================================
   16. 新版内页横幅（蓝天白云风）
   ============================================================ */
.page-banner {
    position: relative;
    overflow: hidden;
    min-height: 200px;
    padding: 0 !important;
    background: #fff;
}
.page-banner .banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.banner-overlay { position: absolute; inset: 0; }
.banner-inner { padding: 56px 0; }
.banner-title {
    font-size: 30px;
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.banner-subtitle { font-size: 15px; }
.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: rgba(255,255,255,0.6);
    font-size: 16px;
    padding: 0 8px;
}

/* ============================================================
   17. 浮动咨询栏 & 返回顶部
   ============================================================ */
.fc-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #6b7280;
    color: #fff;
    font-size: 22px;
    position: relative;
    transition: all .3s;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.fc-item:hover {
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}
.fc-item .fc-text {
    position: absolute;
    right: 66px;
    top: 50%;
    transform: translateY(-50%);
    background: #1f2937;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all .25s;
    pointer-events: none;
}
.fc-item .fc-text::after {
    content: "";
    position: absolute;
    right: -4px;
    top: 50%;
    margin-top: -4px;
    border: 4px solid transparent;
    border-left-color: #1f2937;
}
.fc-item:hover .fc-text {
    opacity: 1;
    visibility: visible;
    right: 70px;
}
.fc-qq { background: #12b7f5; }
.fc-wx { background: #07c160; }
.fc-msg { background: #f59e0b; }

/* ============================================================
   18. 搜索页新版样式
   ============================================================ */
.search-banner { min-height: 240px; }
.search-banner .breadcrumb-item a,
.search-banner .breadcrumb-item { color: #6b7280; }
.search-banner .breadcrumb-item.active { color: #9ca3af; }
.search-result-wrap .article-more { color: var(--color-primary); }
.search-result-wrap .article-more:hover { text-decoration: underline; }
.service-menu .nav-link:hover { background: #f0f6ff; }

/* ============================================================
   19. 新版响应式适配
   ============================================================ */
@media (max-width: 991px) {
    .header-logo { padding: 12px 0; }
    .brand-name { font-size: 18px; }
    .brand-info { margin-left: 10px; }
    .brand-slogan { display: none; }
    .nav-search-form .input-group { width: 100%; margin: 10px 0; }
    .header-navbar .navbar-nav { padding: 6px 0; }
    .header-navbar .navbar-nav .nav-link { line-height: 42px; }
    .header-navbar .dropdown-menu {
        background: rgba(255,255,255,0.08);
        box-shadow: none;
    }
    .header-navbar .dropdown-item {
        color: rgba(255,255,255,0.9);
        padding-left: 32px;
    }
    .header-navbar .dropdown-item:hover {
        background: rgba(255,255,255,0.15);
        color: #fff;
    }
    .float-consult { right: 6px; }
    .fc-item { width: 46px; height: 46px; font-size: 18px; }
    .fc-item .fc-text { display: none; }
}
@media (max-width: 767px) {
    .banner-title { font-size: 22px; }
    .banner-inner { padding: 36px 0; }
    .brand-name { font-size: 16px; }
    .brand-logo img { max-height: 42px; }
    .hero-title { font-size: 20px !important; line-height: 1.35 !important; }
    .hero-caption { max-width: 100% !important; padding-right: 20px; }
}

/* ============================================================
   打印样式：去除导航、侧栏等非内容元素，优化打印效果
   ============================================================ */
@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .back-to-top,
    .float-consult,
    .page-banner,
    .detail-share,
    .pagination-wrap { display: none !important; }
    body { background: #fff; }
    .article-detail { box-shadow: none; padding: 0; }
}
