/*
Theme Name: TCM
Theme URI: 
Author: 百家
Author URI: 
Description: TCM WordPress主题
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tcm
*/

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #000;
    background: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* 页眉样式 */
.site-header {
    background: #fff;
    color: #000;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    max-width: 100vw; /* 限制最大宽度为视口宽度 */
    overflow: visible; /* 允许二级菜单显示 */
}

/* 顶部栏 */
.top-bar {
    padding: 10px 0;
}

.top-bar .container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
}

.top-bar-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* 顶部菜单列表 - 横向布局 */
.top-menu-list,
.language-dropdown {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.top-menu-list li,
.language-dropdown li {
    display: block;
}

.top-menu-list a,
.language-dropdown a {
    font-size: 14px;
    color: #000;
    text-decoration: none;
    transition: color 0.3s;
}

.top-menu-list a:hover,
.language-dropdown a:hover {
    color: #b5ae92;
}

.top-bar-nav a {
    font-size: 14px;
    color: #000;
    transition: color 0.3s;
}

.top-bar-nav a:hover {
    color: #b5ae92;
}

/* 语言切换 */
.language-switcher {
    position: relative;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 14px;
    background: none;
    border: none;
    color: #000;
    padding: 5px 10px;
}

.language-toggle:hover {
    color: #b5ae92;
}

.language-toggle i {
    transition: transform 0.3s;
}

.language-switcher.active .language-toggle i {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 120px;
    display: none;
    margin-top: 5px;
    border-radius: 0;
}

.language-switcher.active .language-dropdown {
    display: block;
}

.language-dropdown a {
    display: block;
    padding: 10px 15px;
    font-size: 14px;
    transition: background 0.3s;
}

.language-dropdown a:hover {
    background: #f5f5f5;
}

/* 搜索图标 */
.search-icon {
    font-size: 30px !important;
    cursor: pointer;
    transition: color 0.3s;
}

.search-icon:hover {
    color: #b5ae92;
}

/* 主导航栏 */
.main-nav-bar {
    padding: 20px 0;
    width: 100%;
    overflow: visible; /* 允许二级菜单显示 */
}

.main-nav-bar .container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box; /* 确保padding不会增加总宽度 */
    overflow: visible; /* 允许二级菜单溢出显示 */
}

.site-logo {
    flex-shrink: 1; /* 允许logo在空间不足时收缩 */
}

.site-logo img {
    height: 50px;
    width: auto;
    max-width: 100%; /* 防止图片溢出 */
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-shrink: 0; /* 防止压缩 */
}

.main-navigation {
    overflow: visible; /* 确保下拉菜单可以显示 */
}

/* 主菜单 */
.main-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: nowrap; /* 不换行 */
    white-space: nowrap; /* 防止文本换行 */
}

.main-menu > li {
    position: relative;
}

.main-menu > li > a {
    font-size: 18px;
    font-weight: 400;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.main-menu > li > a:hover {
    color: #b5ae92;
}

/* 菜单箭头图标 */
.menu-arrow {
    font-size: 18px !important;
    transition: transform 0.3s;
}

/* 悬停时箭头旋转 */
.main-menu li.menu-item-has-children:hover > a .menu-arrow {
    transform: rotate(180deg);
}

/* 二级菜单 */
.main-menu li.menu-item-has-children {
    position: relative;
}

.main-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 730px;
    max-width: calc(100vw - 80px); /* 防止超出视口，留出左右padding */
    max-height: calc(100vh - 120px); /* 防止超出视口底部 */
    opacity: 0;
    visibility: hidden;
    margin-top: 5px;
    margin-left: -400px; /* 居中：730px / 2 */
    border-radius: 0;
    transition: opacity 0.3s, visibility 0.3s;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    box-sizing: border-box;
    overflow-y: auto; /* 内容溢出时显示滚动条 */
    overflow-x: hidden; /* 水平方向不滚动 */
}

/* 悬停显示二级菜单 */
.main-menu li.menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
}

.main-menu .sub-menu li {
    border: none;
    margin: 0;
    min-width: 0; /* 允许grid item收缩，防止溢出 */
}

.main-menu .sub-menu a {
    display: flex;
    align-items: flex-start; /* 改为顶部对齐，适应多行文本 */
    gap: 15px;
    padding: 0;
    font-size: 16px;
    transition: all 0.3s;
    position: relative;
    width: 100%; /* 确保链接不超出父容器 */
    min-width: 0; /* 允许flex item收缩 */
}

/* 子菜单项结构 */
.sub-menu-item-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

/* 子菜单图片 */
.sub-menu-image {
    width: 120px;
    height: 90px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: #b5ae92; /* 默认背景色，如果没有图片则显示此颜色 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.sub-menu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

/* 图片中的箭头图标 */
.sub-menu-arrow-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px !important;
    color: #000;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

/* 子菜单文字内容 */
.sub-menu-content {
    flex: 1;
    min-width: 0; /* 允许文字内容收缩和换行 */
    overflow: visible; /* 允许文本正常换行显示 */
}

.sub-menu-title {
    font-size: 16px;
    font-weight: 500;
    color: #000;
    margin-bottom: 5px;
    display: block;
    word-wrap: break-word; /* 长单词换行 */
    overflow-wrap: break-word;
    white-space: normal; /* 确保文本正常换行 */
    max-width: 100%; /* 确保不超出容器 */
}

.sub-menu-desc,
.sub-menu-description {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    display: block;
    word-wrap: break-word; /* 长单词换行 */
    overflow-wrap: break-word;
    white-space: normal; /* 确保文本正常换行 */
    max-width: 100%; /* 确保不超出容器 */
}

/* 悬停效果 */
.main-menu .sub-menu a:hover .sub-menu-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #efe9d2;
    opacity: 0.8;
    z-index: 1;
}

/* 悬停时显示箭头图标 */
.main-menu .sub-menu a:hover .sub-menu-arrow-icon {
    opacity: 1;
}

.main-menu .sub-menu a:hover .sub-menu-image img {
    transform: scale(1.05);
}

/* 自定义滚动条（针对下拉菜单） */
.main-menu .sub-menu::-webkit-scrollbar {
    width: 6px;
}

.main-menu .sub-menu::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.main-menu .sub-menu::-webkit-scrollbar-thumb {
    background: #b5ae92;
    border-radius: 3px;
}

.main-menu .sub-menu::-webkit-scrollbar-thumb:hover {
    background: #a39d82;
}

/* 预约按钮 */
.book-appointment-btn {
    background: #b5ae92;
    color: #fff;
    padding: 12px 24px;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 400;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.book-appointment-btn:hover {
    background: #a39d82;
}

.book-appointment-btn i {
    font-size: 18px;
}

/* 主内容区域 */
.site-main {
    padding: 60px 0;
    min-height: 60vh;
}

.site-main .container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

/* 文章列表 */
.entry-header {
    margin-bottom: 20px;
}

.entry-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.entry-title a {
    color: #000;
    transition: color 0.3s;
}

.entry-title a:hover {
    color: #b5ae92;
}

.entry-meta {
    font-size: 14px;
    color: #666;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.entry-content,
.entry-excerpt {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

.entry-content p,
.entry-excerpt p {
    margin-bottom: 1em;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
}

.read-more {
    display: inline-block;
    padding: 10px 20px;
    background: #b5ae92;
    color: #fff;
    border-radius: 0;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s;
}

.read-more:hover {
    background: #a39d82;
}

/* 单篇文章 */
.single-post .entry-header {
    text-align: center;
    margin-bottom: 30px;
}

.single-post .entry-title {
    font-size: 42px;
}

.single-post .entry-meta {
    justify-content: center;
    margin-top: 15px;
}

.post-thumbnail {
    margin-bottom: 30px;
    border-radius: 0;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* 归档页面 */
.page-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid #b5ae92;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    color: #000;
}

.archive-description {
    margin-top: 15px;
    color: #666;
    font-size: 16px;
}

.archive-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.archive-item:last-child {
    border-bottom: none;
}

.archive-item .post-thumbnail {
    flex-shrink: 0;
    width: 300px;
    margin-bottom: 0;
}

.archive-item .post-content {
    flex: 1;
}

/* 搜索结果 */
.search-result-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.search-result-item .post-thumbnail {
    flex-shrink: 0;
    width: 150px;
    margin-bottom: 0;
}

.search-result-item .post-content {
    flex: 1;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-results p {
    font-size: 18px;
    margin-bottom: 10px;
}

/* 分页导航 */
.navigation {
    margin-top: 50px;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.page-numbers {
    padding: 8px 15px;
    background: #f5f5f5;
    color: #333;
    border-radius: 0;
    transition: all 0.3s;
}

.page-numbers:hover,
.page-numbers.current {
    background: #b5ae92;
    color: #fff;
}

.post-navigation {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.post-navigation a {
    flex: 1;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 0;
    transition: all 0.3s;
}

.post-navigation a:hover {
    background: #b5ae92;
    color: #fff;
}

.nav-subtitle {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 5px;
    opacity: 0.7;
}

.nav-title {
    display: block;
    font-weight: 600;
}

/* 页脚 */
.site-footer {
    background: #333;
    color: #fff;
    padding: 30px 0;
    margin-top: 80px;
    text-align: center;
}

.site-footer .container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

.site-footer p {
    margin: 0;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .archive-item {
        flex-direction: column;
    }
    
    .archive-item .post-thumbnail {
        width: 100%;
    }
}

@media (max-width: 768px) {
    /* 隐藏顶部栏 */
    .top-bar {
        display: none;
    }
    
    /* 简化主导航栏 */
    .main-nav-bar .container {
        padding: 15px 20px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .site-logo img {
        height: 40px;
    }
    
    /* 隐藏桌面版菜单和按钮 */
    .nav-right {
        display: none;
    }
    
    /* 显示移动端菜单按钮 */
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    /* 移动端：点击方式显示子菜单 */
    .main-menu li.menu-item-has-children:hover > .sub-menu {
        opacity: 0;
        visibility: hidden;
    }
    
    .main-menu li.menu-item-has-children.mobile-active > .sub-menu {
        opacity: 1;
        visibility: visible;
        position: relative;
        box-shadow: none;
        border: none;
        margin-top: 10px;
        min-width: 100%;
        grid-template-columns: 1fr;
        padding: 10px;
    }
    
    .main-menu li.menu-item-has-children.mobile-active > a .menu-arrow {
        transform: rotate(180deg);
    }
    
    .sub-menu-image {
        width: 100px;
        height: 75px;
    }
    
    .sub-menu-title {
        font-size: 14px;
    }
    
    .sub-menu-desc,
    .sub-menu-description {
        font-size: 12px;
    }
    
    .entry-title {
        font-size: 24px;
    }
    
    .single-post .entry-title {
        font-size: 28px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    /* 页面搜索结果保持左右结构 */
    .search-result-item {
        gap: 15px;
    }
    
    .search-result-item .post-thumbnail {
        width: 100px;
        flex-shrink: 0;
    }
    
    .post-navigation {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .top-bar-nav {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .book-appointment-btn {
        width: 100%;
        justify-content: center;
    }
}

/* 搜索弹窗样式 */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s;
    padding-top: 80px;
    overflow-y: auto;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.search-modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 0;
    max-width: 800px;
    width: 90%;
    position: relative;
    margin-bottom: 40px;
}

.search-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #000;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    transition: opacity 0.3s;
}

.search-modal-close:hover {
    opacity: 0.7;
}

.search-modal .search-form {
    margin-bottom: 30px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #b5ae92;
}

.search-input-icon {
    position: absolute;
    left: 20px;
    font-size: 20px !important;
    color: #fff;
    pointer-events: none;
}

.search-modal .search-input {
    width: 100%;
    padding: 18px 20px 18px 55px;
    border: none;
    border-radius: 0;
    font-size: 16px;
    outline: none;
    background: #b5ae92;
    color: #fff;
}

.search-modal .search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.search-result-item:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}

.result-item-icon {
    width: 80px;
    height: 80px;
    background: #b5ae92;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.3s;
}

.result-item-icon i {
    font-size: 40px !important;
    color: #fff;
    transition: all 0.3s;
}

.result-item-content {
    flex: 1;
}

.result-item-label {
    font-size: 11px;
    color: #999;
    letter-spacing: 1px;
    margin-bottom: 5px;
    font-weight: 500;
    text-transform: uppercase;
}

.result-item-title {
    font-size: 20px;
    color: #000;
    font-weight: 500;
}

.search-result-item:hover .result-item-icon {
    background: #efe9d2;
}

.search-result-item:hover .result-item-icon i {
    color: #fff;
}

/* 搜索弹窗响应式 */
@media (max-width: 768px) {
    .search-modal-content {
        padding: 30px 20px;
        width: 95%;
    }
    
    /* 移动端搜索结果保持左右结构 */
    .search-result-item {
        gap: 15px;
        padding: 15px;
    }

    .result-item-icon {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }
    
    .result-item-icon i {
        font-size: 30px !important;
    }
    
    .result-item-title {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .result-item-description {
        font-size: 13px;
        line-height: 1.4;
    }
}

/* 移动端菜单按钮（桌面端默认隐藏，移动端显示） */
.mobile-menu-toggle {
    display: none;
    background: #b5ae92;
    border: none;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: background 0.3s;
    flex-shrink: 0;
}

.mobile-menu-toggle i {
    font-size: 24px !important;
    color: #fff;
}

.mobile-menu-toggle:hover {
    background: #a39d82;
}

/* 移动端侧边栏 */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

.mobile-sidebar.active {
    visibility: visible;
    opacity: 1;
}

.mobile-sidebar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.mobile-sidebar-content {
    position: absolute;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100%;
    background: #fff;
    overflow-y: auto;
    transition: right 0.3s;
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.active .mobile-sidebar-content {
    right: 0;
}

.mobile-sidebar-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #000;
    cursor: pointer;
    padding: 5px;
    z-index: 10;
}

.mobile-sidebar-close:hover {
    opacity: 0.7;
}

/* 侧边栏搜索框 */
.mobile-sidebar-search {
    padding: 60px 20px 20px;
    border-bottom: 1px solid #eee;
}

.mobile-search-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #b5ae92;
    border: none;
    padding: 15px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.mobile-search-trigger:hover {
    background: #a59d82;
}

.mobile-search-trigger i {
    font-size: 18px !important;
    margin-right: 10px;
}

/* 侧边栏菜单 */
.mobile-sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu li a {
    display: block;
    padding: 15px 20px;
    color: #000;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.3s;
}

.mobile-menu li a:hover {
    background: #f5f5f5;
    color: #b5ae92;
}

/* 移动端子菜单 */
.mobile-menu .sub-menu {
    display: none;
    background: #f9f9f9;
    padding: 10px;
    max-height: calc(100vh - 300px); /* 防止移动端子菜单超出屏幕 */
    overflow-y: auto;
    overflow-x: hidden;
    margin: 0;
    list-style: none;
}

.mobile-menu .menu-item-has-children.active .sub-menu {
    display: block;
}

.mobile-menu .sub-menu li {
    border-bottom: none;
    margin-bottom: 10px;
}

.mobile-menu .sub-menu li:last-child {
    margin-bottom: 0;
}

/* 移动端子菜单链接（带图片的） */
.mobile-menu .sub-menu-link {
    display: block;
    padding: 0;
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s;
}

.mobile-menu .sub-menu-link:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mobile-menu .sub-menu-image {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: #b5ae92; /* 默认背景色，如果没有图片则显示此颜色 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu .sub-menu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.mobile-menu .sub-menu-link:hover .sub-menu-image img {
    transform: scale(1.05);
}

.mobile-menu .sub-menu-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #efe9d2;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.mobile-menu .sub-menu-link:hover .sub-menu-image::before {
    opacity: 0.8;
}

.mobile-menu .sub-menu-arrow-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px !important;
    color: #000;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.mobile-menu .sub-menu-link:hover .sub-menu-arrow-icon {
    opacity: 1;
}

.mobile-menu .sub-menu-content {
    padding: 15px;
}

.mobile-menu .sub-menu-title {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin: 0 0 5px 0;
}

.mobile-menu .sub-menu-description {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* 移动端简单文本子菜单 */
.mobile-menu .sub-menu li:not(.sub-menu-item) a {
    padding: 12px 20px;
    font-size: 14px;
    background: #fff;
    display: block;
}

.mobile-menu .menu-item-has-children > a {
    position: relative;
    padding-right: 45px;
}

/* 移动端菜单箭头图标 */
.mobile-menu .menu-item-has-children > a .menu-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px !important;
    transition: transform 0.3s;
}

.mobile-menu .menu-item-has-children.active > a .menu-arrow {
    transform: translateY(-50%) rotate(180deg);
}

/* 侧边栏底部按钮 */
.mobile-sidebar-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

.mobile-book-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background: #b5ae92;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    transition: background 0.3s;
}

.mobile-book-btn:hover {
    background: #a39d82;
}

.mobile-book-btn i {
    font-size: 20px !important;
}

/* 桌面端隐藏移动端元素 */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .mobile-sidebar {
        display: none !important;
    }
}

/* 联系页面样式 */
.contact-page {
    padding: 60px 0;
}

.contact-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

/* 上半部分：联系信息和特色图 */
.contact-top-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #000;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    color: #333;
}

.contact-detail i {
    font-size: 20px !important;
    color: #b5ae92;
}

.contact-detail a {
    color: #333;
    transition: color 0.3s;
}

.contact-detail a:hover {
    color: #b5ae92;
}

/* 开放时间表格 */
.opening-hours-section {
    margin-top: 30px;
}

.section-subtitle {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #000;
}

.opening-hours-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: 30px;
}

.opening-hours-table th {
    text-align: left;
    padding: 10px 15px;
    font-weight: 600;
}

.opening-hours-table td {
    padding: 12px 15px;
}

/* 联系页面特色图 */
.contact-image-section {
    position: relative;
    overflow: hidden;
}

.contact-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-height: 500px;
}

/* 下半部分：团队和内容 */
.contact-bottom-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #000;
}

/* 团队部分 */
.team-members-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.team-member-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* 团队成员链接包裹 */
.team-member-link {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.team-member-avatar {
    width: 60px;
    height: 60px;
    background: #b5ae92;
    border-radius: 50%; /* 圆形 */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
}

/* 团队成员真实图片 */
.team-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s;
}

.team-member-avatar i {
    font-size: 30px !important;
    color: #fff;
    position: absolute;
    transition: opacity 0.3s;
    z-index: 1;
}

/* 默认图标 */
.team-avatar-default {
    opacity: 1;
}

/* 悬停图标（默认隐藏） */
.team-avatar-hover {
    opacity: 0;
    z-index: 2;
}

/* 悬停时切换图标 */
.team-member-card:hover .team-avatar-default {
    opacity: 0;
}

.team-member-card:hover .team-avatar-hover {
    opacity: 1;
}

/* 悬停时头像背景变色 */
.team-member-card:hover .team-member-avatar {
    background: #efe9d2;
}

/* 有图片时悬停效果 */
.team-member-card:hover .team-avatar-image {
    opacity: 0.3;
}

.team-member-info {
    flex: 1;
}

.team-member-name {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
}

.team-member-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 内容部分 */
.contact-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.contact-content p {
    margin-bottom: 1em;
}

.contact-content ul,
.contact-content ol {
    margin-bottom: 1em;
    padding-left: 20px;
}

.contact-content ul {
    list-style: disc;
}

.contact-content ol {
    list-style: decimal;
}

.contact-content li {
    margin-bottom: 0.5em;
}

.contact-content h2,
.contact-content h3,
.contact-content h4 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 600;
    color: #000;
}

.contact-content h2 {
    font-size: 24px;
}

.contact-content h3 {
    font-size: 20px;
}

.contact-content h4 {
    font-size: 18px;
}

/* 内容区域表格样式 - 无边框 */
.contact-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1em;
}

.contact-content table th,
.contact-content table td {
    padding: 8px 12px;
    text-align: left;
}

.contact-content table th {
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .contact-top-section,
    .contact-bottom-section {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .contact-page {
        padding: 40px 0;
    }
    
    .contact-container {
        padding: 0 20px;
    }
    
    .contact-top-section,
    .contact-bottom-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .opening-hours-table {
        font-size: 12px;
    }
    
    .opening-hours-table th,
    .opening-hours-table td {
        padding: 8px 10px;
    }
    
    .team-member-avatar {
        width: 50px;
        height: 50px;
    }
    
    .team-member-avatar i {
        font-size: 25px !important;
    }
    
    .team-member-name {
        font-size: 16px;
    }
    
    .team-member-description {
        font-size: 13px;
    }
}

/* ========================================
   团队成员单页样式
   ======================================== */
/* ==================== 团队详情页 - 新布局 ==================== */
.team-detail-page {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 20px;
}

.team-detail-container {
    display: flex;
    gap: 40px;
}

/* 左侧边栏 - 30% */
.team-sidebar {
    flex: 0 0 30%;
    padding: 0
}

/* 特色图 */
.team-featured-image {
    margin-bottom: 30px;
}

.team-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 边栏区块标题 */
.sidebar-section-title {
    font-size: 18px;
    font-weight: 400;
    color: #333;
    margin-bottom: 15px;
}

/* 边栏专门知识部分 */
.sidebar-knowledge-section {
    margin-bottom: 30px;
}

.sidebar-knowledge-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
}

.sidebar-knowledge-item {
    border: 1px solid #b5ae92;
    border-radius: 200px;
    transition: all 0.3s;
}

.sidebar-knowledge-item:hover {
    border-color: #9a9479;
}

.sidebar-knowledge-item a {
    display: block;
    text-decoration: none;
    padding: 8px 20px;
}

.sidebar-knowledge-thumb {
    display: none;
}

.sidebar-knowledge-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
    margin: 0;
}

.sidebar-knowledge-item:hover .sidebar-knowledge-title {
    color: #b5ae92;
}

/* 边栏地址部分 */
.sidebar-locations-section {
    margin-bottom: 20px;
}

.sidebar-locations-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-location-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.sidebar-location-map-link {
    flex-shrink: 0;
    display: block;
    text-decoration: none;
}

.sidebar-location-map {
    position: relative;
    width: 100px;
    height: 100px;
    overflow: hidden;
    background: #e9ecef;
}

.sidebar-location-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* 蒙版和箭头图标 */
.location-map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(181, 174, 146, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.location-arrow-icon {
    width: 32px;
    height: 32px;
    color: #fff;
    transform: scale(0.5);
    transition: transform 0.3s ease;
}

/* 悬停效果 */
.sidebar-location-map-link:hover .sidebar-location-map img {
    transform: scale(1.1);
}

.sidebar-location-map-link:hover .location-map-overlay {
    background: rgba(181, 174, 146, 0.7);
    opacity: 1;
}

.sidebar-location-map-link:hover .location-arrow-icon {
    transform: scale(1);
}

.sidebar-location-info {
    flex: 1;
}

.sidebar-location-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.sidebar-location-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.sidebar-location-title a:hover {
    color: #2271b1;
}

.sidebar-location-address {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* 右侧主内容 - 70% */
.team-main-content {
    flex: 1;
    padding: 0;
}

/* 标签 */
.team-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.team-tag-item {
    display: inline-block;
    padding: 0;
    background: none;
    color: #333;
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* 标题 */
.team-main-title {
    font-size: 42px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

/* 摘要 */
.team-excerpt {
    font-size: 18px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #2271b1;
    border-radius: 4px;
}

/* 内容 */
.team-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.team-content p {
    margin-bottom: 1.5em;
}

.team-content h2,
.team-content h3 {
    margin-top: 1.8em;
    margin-bottom: 1em;
    color: #333;
}

.team-content h2 {
    font-size: 28px;
    border-bottom: 2px solid #e5e5e5;
    padding-bottom: 10px;
}

.team-content h3 {
    font-size: 22px;
}

.team-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.team-content a {
    color: #2271b1;
    text-decoration: none;
    transition: color 0.3s;
}

.team-content a:hover {
    color: #135e96;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .team-detail-container {
        flex-direction: column;
    }
    
    .team-sidebar {
        flex: 0 0 100%;
        padding-bottom: 30px;
        margin-bottom: 30px;
        border-bottom: 1px solid #e5e5e5;
    }
    
    .team-main-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .team-detail-page {
        padding: 20px 10px;
    }
    
    .team-sidebar {
        padding: 0 0 20px 0;
    }
    
    .team-main-title {
        font-size: 28px;
    }
    
    .team-excerpt {
        font-size: 16px;
        padding: 15px;
    }
    
    .sidebar-location-map {
        width: 80px;
        height: 80px;
    }
    
    .location-arrow-icon {
        width: 24px;
        height: 24px;
    }
}

/* ==================== 团队详情页 - 旧布局（保留兼容） ==================== */
.team-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.team-member-container {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.team-member-header {
    margin-bottom: 40px;
    text-align: center;
}

.team-member-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
}

.team-member-thumbnail {
    margin: 30px 0;
}

.team-member-thumbnail img {
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.team-member-excerpt {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    margin: 20px 0;
}

.team-member-tags {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
}

.team-member-tags h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    display: inline-block;
    padding: 6px 16px;
    background: #2271b1;
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.tag-item:hover {
    background: #135e96;
    transform: translateY(-2px);
}

.team-member-content {
    margin: 40px 0;
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.related-knowledge-section,
.related-locations-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid #e5e5e5;
}

.related-knowledge-section h2,
.related-locations-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
}

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.knowledge-card {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.knowledge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.knowledge-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.knowledge-card-content {
    padding: 20px;
}

.knowledge-card-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.knowledge-card-content h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.knowledge-card-content h3 a:hover {
    color: #2271b1;
}

.knowledge-card-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.locations-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.location-card {
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #00a32a;
    transition: all 0.3s;
}

.location-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateX(5px);
}

.location-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.location-card h3 a {
    color: #333;
    text-decoration: none;
}

.location-card h3 a:hover {
    color: #00a32a;
}

.location-card p {
    margin: 10px 0;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.location-card i {
    color: #00a32a;
    font-size: 18px;
}

.location-card a {
    color: #2271b1;
    text-decoration: none;
}

.location-card a:hover {
    text-decoration: underline;
}

/* ========================================
   专门知识单页样式
   ======================================== */
.knowledge-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.knowledge-container {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.knowledge-header {
    margin-bottom: 40px;
    text-align: center;
}

.knowledge-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
}

.knowledge-thumbnail {
    margin: 30px 0;
}

.knowledge-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.knowledge-excerpt {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #2271b1;
}

.knowledge-meta {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.knowledge-categories,
.knowledge-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.knowledge-categories strong,
.knowledge-tags strong {
    color: #333;
    font-size: 16px;
}

.category-item {
    padding: 6px 16px;
    background: #00a32a;
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.category-item:hover {
    background: #007a1f;
    transform: translateY(-2px);
}

.knowledge-content {
    margin: 40px 0;
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.related-team-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid #e5e5e5;
}

.related-team-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.team-card {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.team-thumbnail {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.team-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card-content {
    padding: 20px;
}

.team-card-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.team-card-content h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.team-card-content h3 a:hover {
    color: #2271b1;
}

.team-card-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .team-member-container,
    .knowledge-container {
        padding: 20px;
    }
    
    .team-member-title,
    .knowledge-title {
        font-size: 28px;
    }
    
    .knowledge-grid,
    .locations-list,
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .knowledge-meta {
        flex-direction: column;
        gap: 15px;
    }
}

/* ========================================
   知识分类和标签归档页面样式
   ======================================== */
.knowledge-archive,
.team-archive {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.archive-container {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.archive-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 3px solid #2271b1;
    text-align: center;
}

.archive-title {
    font-size: 36px;
    margin-bottom: 15px;
    color: #333;
}

.archive-type {
    font-size: 20px;
    color: #666;
    font-weight: normal;
    display: block;
    margin-bottom: 10px;
}

.archive-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-top: 15px;
    padding: 15px 30px;
    background: #f8f9fa;
    border-radius: 6px;
}

.knowledge-card-title {
    font-size: 22px;
    margin-bottom: 15px;
}

.knowledge-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.knowledge-card-title a:hover {
    color: #2271b1;
}

.knowledge-card-excerpt {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.knowledge-card-meta {
    margin: 15px 0;
}

.knowledge-card-tags,
.knowledge-card-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item-small {
    display: inline-block;
    padding: 4px 12px;
    background: #2271b1;
    color: #fff;
    border-radius: 15px;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s;
}

.tag-item-small:hover {
    background: #135e96;
    transform: scale(1.05);
}

.category-item-small {
    display: inline-block;
    padding: 4px 12px;
    background: #00a32a;
    color: #fff;
    border-radius: 15px;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s;
}

.category-item-small:hover {
    background: #007a1f;
    transform: scale(1.05);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #2271b1;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.read-more:hover {
    gap: 10px;
    color: #135e96;
}

.read-more i {
    font-size: 14px;
}

.pagination {
    margin-top: 50px;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 18px;
    background: #f0f0f1;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    font-size: 14px;
}

.pagination a:hover {
    background: #2271b1;
    color: #fff;
}

.pagination .current {
    background: #2271b1;
    color: #fff;
}

.pagination .dots {
    background: transparent;
    padding: 10px 5px;
}

.no-posts {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 18px;
}

.no-posts p {
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .archive-container {
        padding: 20px;
    }
    
    .archive-title {
        font-size: 28px;
    }
    
    .archive-type {
        font-size: 16px;
    }
    
    .knowledge-card-title {
        font-size: 18px;
    }
    
    .pagination .nav-links {
        gap: 5px;
    }
    
    .pagination a,
    .pagination span {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* ========================================
   Elementor 动态标签样式
   ======================================== */

/* 分类链接通用样式 */
.category-link,
a.category-link {
    display: inline-block;
    padding: 6px 16px;
    background: #00a32a;
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
    margin: 0 5px 5px 0;
    font-size: 14px;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.category-link:hover,
a.category-link:hover {
    background: #007a1f;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 163, 42, 0.3);
}

/* 标签链接通用样式 */
.post-tag-item,
a.post-tag-item {
    display: inline-block;
    padding: 5px 14px;
    background: #2271b1;
    color: #fff;
    border-radius: 15px;
    text-decoration: none;
    margin: 0 5px 5px 0;
    font-size: 13px;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.post-tag-item:hover,
a.post-tag-item:hover {
    background: #135e96;
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(34, 113, 177, 0.3);
}

/* 无链接的标签样式 */
.tag-item {
    display: inline-block;
    padding: 5px 14px;
    background: #f0f0f1;
    color: #333;
    border-radius: 15px;
    margin: 0 5px 5px 0;
    font-size: 13px;
    line-height: 1.4;
}

/* 标签前缀文本样式 */
.tags-before-text {
    font-weight: 600;
    margin-right: 8px;
    color: #666;
    font-size: 14px;
}

/* Elementor 文本编辑器内的标签容器 */
.elementor-widget-text-editor .category-link,
.elementor-widget-text-editor .post-tag-item,
.elementor-widget-text-editor .tag-item {
    margin-top: 5px;
}

/* 标签列表容器样式（可用于包裹整个动态标签的父元素） */
.post-categories-list,
.post-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 15px 0;
}

/* 紧凑型标签样式（可选） */
.compact-category-link {
    padding: 4px 12px;
    font-size: 12px;
    margin: 0 3px 3px 0;
}

.compact-tag-item {
    padding: 3px 10px;
    font-size: 11px;
    margin: 0 3px 3px 0;
}

/* 扁平风格标签（可选） */
.flat-category-link,
.flat-tag-item {
    background: transparent;
    color: #2271b1;
    border: 1px solid #2271b1;
    padding: 5px 14px;
}

.flat-category-link:hover,
.flat-tag-item:hover {
    background: #2271b1;
    color: #fff;
    transform: none;
}

/* 知识分类特殊样式 */
.knowledge-category-link {
    background: linear-gradient(135deg, #00a32a 0%, #00d338 100%);
    padding: 7px 18px;
    font-weight: 500;
}

.knowledge-category-link:hover {
    background: linear-gradient(135deg, #007a1f 0%, #00a32a 100%);
}

/* 知识标签特殊样式 */
.knowledge-tag-item {
    background: linear-gradient(135deg, #2271b1 0%, #3582c4 100%);
    padding: 6px 16px;
    font-weight: 500;
}

.knowledge-tag-item:hover {
    background: linear-gradient(135deg, #135e96 0%, #2271b1 100%);
}

/* 徽章样式（可选） */
.badge-category-link,
.badge-tag-item {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .category-link,
    .post-tag-item {
        font-size: 12px;
        padding: 4px 12px;
    }
    
    .tags-before-text {
        font-size: 13px;
    }
    
    .post-categories-list,
    .post-tags-list {
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .category-link,
    .post-tag-item {
        font-size: 11px;
        padding: 3px 10px;
    }
}

/* ========================================
   团队列表小部件样式
   ======================================== */

.tcm-team-list-widget {
    width: 100%;
}

.tcm-team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 30px;
}

.tcm-team-card {
    position: relative;
    transition: transform 0.3s ease;
}

.tcm-team-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* 图片容器 */
.tcm-team-image-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.tcm-team-image,
.tcm-team-image-placeholder {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.tcm-team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.tcm-team-image-placeholder {
    background-color: #f5f5dc;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 蒙版效果 */
.tcm-team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(181, 174, 146, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.tcm-team-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.tcm-team-overlay-icon {
    width: 48px;
    height: 48px;
    color: #fff;
    stroke-width: 2;
}

.tcm-team-overlay-text {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    text-align: center;
    letter-spacing: 0.5px;
}

/* 悬停效果 */
.tcm-team-link:hover .tcm-team-image img {
    transform: scale(1.1);
}

.tcm-team-link:hover .tcm-team-overlay {
    background-color: rgba(181, 174, 146, 0.7);
    opacity: 1;
}

.tcm-team-link:hover .tcm-team-overlay-content {
    transform: scale(1);
}

/* 内容区域 */
.tcm-team-content {
    text-align: center;
}

.tcm-team-tags {
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 400;
}

.tcm-team-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.tcm-team-link:hover .tcm-team-title {
    color: #2271b1;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .tcm-team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .tcm-team-image,
    .tcm-team-image-placeholder {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .tcm-team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .tcm-team-image,
    .tcm-team-image-placeholder {
        height: 400px;
    }
    
    .tcm-team-title {
        font-size: 22px;
    }
    
    .tcm-team-overlay-icon {
        width: 40px;
        height: 40px;
    }
    
    .tcm-team-overlay-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .tcm-team-image,
    .tcm-team-image-placeholder {
        height: 300px;
    }
    
    .tcm-team-title {
        font-size: 20px;
    }
    
    .tcm-team-tags {
        font-size: 12px;
    }
    
    .tcm-team-overlay-icon {
        width: 32px;
        height: 32px;
    }
    
    .tcm-team-overlay-text {
        font-size: 13px;
    }
}

/* ========================================
   搜索弹窗AJAX功能样式
   ======================================== */

/* 加载状态 */
.search-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #999;
}

.search-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #b5ae92;
    border-radius: 50%;
    animation: search-spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes search-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.search-loading p {
    margin: 0;
    font-size: 14px;
}

/* 无结果状态 */
.search-no-results {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #999;
    text-align: center;
}

.search-no-results p {
    margin: 0;
    font-size: 16px;
}

