/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f6f8;
}

a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

a:hover {
    color: #0066cc;
}

ul {
    list-style: none;
}

.container {
    width: 1200px;
    margin: 0 auto;
    max-width: 100%;
    padding: 0 15px;
}

/* Utility Strip */
.top-bar {
    background-color: #f0f2f5;
    border-bottom: 1px solid #e1e4e8;
    height: 36px;
    line-height: 36px;
    font-size: 13px;
    color: #666;
}

.top-bar .top-links {
    text-align: right;
}

.top-bar .top-links a {
    color: #666;
    margin: 0 8px;
}

.top-bar .top-links a:hover {
    color: #0066cc;
}

/* Header */
.site-header {
    background-color: #fff;
    padding: 25px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    max-width: 100%;
    display: flex;
    justify-content: center;
}

.logo img {
    height: auto;
    max-height: 70px;
    width: auto;
    max-width: 100%;
    display: block;
}

.logo {
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 100%;
}

.brand-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 18px;
    border-left: 1px solid #d8e5f3;
}

.brand-title strong {
    color: #0052a3;
    font-size: 28px;
    letter-spacing: 2px;
    line-height: 1.2;
}

.brand-title span {
    color: #4d7ea8;
    font-size: 14px;
    letter-spacing: 4px;
}

.search-box {
    display: flex;
    align-items: center;
    border: 2px solid #0066cc;
    border-radius: 4px;
    overflow: hidden;
    max-width: 100%;
}

.search-box input {
    border: none;
    padding: 10px 15px;
    width: 250px;
    max-width: 100%;
    flex: 1;
    outline: none;
    font-size: 14px;
}

.search-box button {
    background-color: #0066cc;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.3s;
}

.search-box button:hover {
    background-color: #0052a3;
}

/* Navigation */
.main-nav {
    background-color: #0066cc;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    flex: 1;
    text-align: center;
}

.main-nav a {
    display: block;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    padding: 15px 0;
    transition: background-color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: #0052a3;
}

/* Hero Banner */
.hero-banner {
    width: 100%;
    max-height: 260px;
    overflow: hidden;
    background-color: #fff;
    text-align: center;
}

.hero-banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Main Content */
.main-content {
    margin: 40px auto;
}

.content-row {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.content-col {
    background-color: #fff;
    border: 1px solid #eaeaea;
    border-top: 3px solid #0066cc;
    padding: 24px;
    flex: 0 0 calc((100% - 48px) / 3);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    border-radius: 4px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 18px;
    color: #0066cc;
    position: relative;
    padding-left: 12px;
}

.section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 18px;
    width: 4px;
    background-color: #0066cc;
    border-radius: 2px;
}

.section-header .more {
    font-size: 13px;
    color: #888;
}

.section-header .more:hover {
    color: #0066cc;
}

/* News List */
.news-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.news-list li:last-child {
    border-bottom: none;
}

.news-list li::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background-color: #0066cc;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}

.news-list a {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    margin-right: 15px;
    color: #444;
}

.news-list a:hover {
    color: #0066cc;
}

.news-list .date {
    font-size: 13px;
    color: #999;
    flex-shrink: 0;
}

/* Intro Content */
.intro-content p {
    font-size: 14px;
    color: #555;
    text-indent: 2em;
    margin-bottom: 15px;
    line-height: 1.8;
}

/* Specialty List */
.specialty-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.specialty-list li {
    background-color: #f4f8fc;
    color: #0066cc;
    padding: 12px 16px;
    border-radius: 4px;
    border-left: 4px solid #0066cc;
    font-size: 15px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
}

.specialty-list li:hover {
    background-color: #0066cc;
    color: #fff;
    transform: translateX(5px);
}

.specialty-list a {
    display: block;
    color: inherit;
    text-decoration: none;
}

/* Footer */
.site-footer {
    background-color: #004080;
    color: #fff;
    padding: 40px 0;
    text-align: center;
    margin-top: 40px;
    border-top: 5px solid #0052a3;
}

.site-footer p {
    margin-bottom: 8px;
    font-size: 14px;
    color: #d1e0f0;
}

/* Responsive */
@media (max-width: 1200px) {
    .content-row {
        flex-direction: column;
    }
    
    .content-col {
        flex: auto;
    }
}
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo {
        flex-direction: column;
        text-align: center;
    }
    
    .brand-title {
        padding-left: 0;
        border-left: none;
    }
    
    .search-box {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* --- Inner Page Styles --- */

.inner-page-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Sidebar */
.sidebar {
    width: 250px;
    flex-shrink: 0;
    background-color: #fff;
    border: 1px solid #eaeaea;
    border-top: 3px solid #0066cc;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.sidebar h3 {
    font-size: 18px;
    color: #0066cc;
    border-bottom: 2px solid #f0f0f0;
    border-left: 4px solid #0066cc;
    padding-bottom: 12px;
    margin-bottom: 15px;
    padding-left: 12px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-nav a {
    display: block;
    padding: 10px 15px;
    color: #444;
    border-radius: 4px;
    font-size: 15px;
    background-color: #f8f9fa;
    transition: all 0.3s;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background-color: #0066cc;
    color: #fff;
    padding-left: 20px;
}

/* Main Panel */
.main-panel {
    flex: 1;
    background-color: #fff;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    min-width: 0;
}

.breadcrumb {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb a:hover {
    color: #0066cc;
}

.page-title {
    font-size: 22px;
    color: #333;
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 4px solid #0066cc;
}

/* List with Date */
.list-with-date {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.list-with-date li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #eee;
    padding-bottom: 10px;
}

.list-with-date li::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background-color: #0066cc;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}

.list-with-date a {
    font-size: 16px;
    color: #444;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 20px;
}

.list-with-date a:hover {
    color: #0066cc;
}

.list-with-date .date {
    font-size: 14px;
    color: #999;
    flex-shrink: 0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #555;
    font-size: 14px;
}

.pagination a:hover {
    background-color: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

.pagination .current {
    background-color: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

/* Specialty Cards Layout */
.specialty-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.specialty-card {
    border: 1px solid #eaeaea;
    border-radius: 6px;
    padding: 20px;
    background-color: #f9fbfc;
    transition: all 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.specialty-card:hover {
    box-shadow: 0 8px 20px rgba(0,102,204,0.1);
    transform: translateY(-5px);
    border-color: #0066cc;
}

.specialty-icon {
    width: 60px;
    height: 60px;
    background-color: #0066cc;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 15px;
}

.specialty-card h4 {
    font-size: 18px;
    color: #0066cc;
    margin-bottom: 10px;
}

.specialty-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.specialty-card .btn-more {
    display: inline-block;
    padding: 6px 15px;
    background-color: #fff;
    border: 1px solid #0066cc;
    color: #0066cc;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.3s;
}

.specialty-card:hover .btn-more {
    background-color: #0066cc;
    color: #fff;
}

/* Article Page */
.article-title {
    font-size: 24px;
    color: #0052a3;
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
}

/* 文章详情页 meta 信息（修正版） */
.article-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
    /* 让外层居中对齐 */
    display: flex;
    justify-content: center;
    align-items: center;
}

.article-meta > span {
    margin: 0 10px;
    /* 让里面的文字和数字处于同一行 */
    display: flex;
    align-items: center;
    white-space: nowrap; 
}

/* ！！极其重要：强制隐藏所有 script 脚本标签，绝对不能让它显示出来 ！！ */
.article-meta script {
    display: none !important;
}

/* 专门针对 SiteServer 回填数字的那个 span 容器 */
.article-meta span span {
    display: inline-block !important;
    margin-left: 5px !important;
}

.article-content {
    font-size: 15px;
    color: #444;
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 15px;
    text-indent: 2em;
}

.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
}

/* 上一篇、下一篇 链接区域修复 */
.prev-next-links {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 14px;
    line-height: 2; /* 增加行高，让上下两行不要太挤 */
}

/* 强制让 SiteServer 生成的提示文字和链接在同一行 */
.prev-next-links span,
.prev-next-links a {
    display: inline-block !important; /* 强制转换为行内块，禁止独自占满一行 */
    vertical-align: middle;
}

.prev-next-links a {
    color: #0066cc;
    margin-left: 5px; /* 让链接和“上一篇：”之间稍微有点距离 */
    text-decoration: none;
    /* 如果标题太长，允许在这里截断显示省略号（可选） */
    max-width: 80%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prev-next-links a:hover {
    text-decoration: underline;
}

/* Responsive updates for inner pages */
@media (max-width: 768px) {
    .inner-page-layout {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
    .main-panel {
        width: 100%;
    }
}

/* Homepage Banner Height Override */
.hero-banner.home-banner {
    max-height: 450px;
}

/* Search Results */
.search-result-list {
    list-style: none;
}
.search-result-item {
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
    margin-bottom: 15px;
}
.search-result-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.search-result-title {
    font-size: 18px;
    font-weight: bold;
    color: #0052a3;
}
.search-result-date {
    font-size: 13px;
    color: #999;
    flex-shrink: 0;
}
.search-result-category-wrap {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}
.search-result-category {
    display: inline-block;
    background-color: #f0f2f5;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    color: #0066cc;
}
.search-result-summary {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}
.search-highlight {
    background-color: #fff3b0;
    color: #c8472c;
    padding: 0 2px;
    border-radius: 2px;
}
.search-empty {
    text-align: center;
    padding: 50px 0;
    color: #888;
}
.search-empty p {
    font-size: 16px;
}
.search-empty-hint {
    font-size: 14px;
    margin-top: 10px;
}
.search-empty .highlight {
    color: #e74c3c;
}

/* H5 Mobile Navigation Overrides */
.mobile-nav-toggle {
    display: none;
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: #0066cc;
        color: #fff;
        padding: 12px 20px;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
        width: 100%;
        border: none;
    }
    .mobile-nav-toggle .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 18px;
        width: 24px;
    }
    .mobile-nav-toggle .hamburger i {
        display: block;
        height: 3px;
        width: 100%;
        background-color: #fff;
        border-radius: 2px;
    }
    
    .main-nav {
        position: relative;
    }
    
    .main-nav .container > ul {
        display: none !important; /* hide default */
        flex-direction: column;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.85); /* dark translucent */
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 999;
        flex-wrap: nowrap !important;
        padding: 0;
        margin: 0;
    }
    
    .main-nav.is-open .container > ul {
        display: flex !important;
    }
    
    .main-nav li {
        flex: none !important;
        text-align: left !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .main-nav a {
        color: #fff !important;
        font-size: 18px;
        padding: 15px 20px !important;
        background-color: transparent !important;
        display: flex !important;
        justify-content: space-between;
        align-items: center;
    }
    
    .main-nav li:not(:first-child) a::after {
        content: '+';
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: 28px;
        height: 28px;
        background-color: rgba(255, 255, 255, 0.2);
        border-radius: 3px;
        font-size: 20px;
        font-weight: normal;
        line-height: 1;
    }
}
/* ====================== Footer 底部优化 ========================= */
.site-footer {
    width: 100%;
    background-color: #015b95; /* 使用您网站的主题深蓝色 */
    padding: 35px 0; /* 上下增加 35px 的内边距，让内容有呼吸感 */
    margin-top: 40px; /* 与上方内容隔开距离 */
    text-align: center; /* 文字居中对齐 */
}

.site-footer p {
    color: #e5e5e5; /* 使用浅灰色而不是纯白，看起来更柔和高级 */
    font-size: 14px;
    line-height: 28px; /* 增加行高，让三行字不会挤在一起 */
    margin: 0; /* 清除默认的段落外边距 */
}

/* 专门修复底部链接的颜色，解决暗背景下看不清的问题 */
.site-footer a {
    color: #ffffff; /* 链接设为纯白色，突出显示 */
    text-decoration: none; /* 去除默认下划线 */
    transition: all 0.3s ease; /* 增加鼠标悬停的平滑过渡动画 */
}

/* 鼠标悬停在链接上时的效果 */
.site-footer a:hover {
    color: #ffd700; /* 悬停时变成淡金色/黄色，或者可以改成浅蓝色 #66b1ff */
    text-decoration: underline; /* 悬停时显示下划线 */
}

/* 针对底部的容器约束（如果您已经在全局定义了 .container，这里可以省略宽度设置） */
.site-footer .container {
    width: 1100px;
    margin: 0 auto;
}

