﻿/* style.css - 主要样式文件 */
/* 重置与基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #16c7b6;
    --primary-dark: #119e91;
    --primary-light: #5ad8cf;
    --primary-transparent: rgba(22, 199, 182, 0.1);
    --secondary-color: #ff6b6b;
    --dark-color: #1a1a2e;
    --gray-dark: #2d3047;
    --gray: #6c757d;
    --gray-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 8px;
    --border-radius-lg: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    flex-wrap: wrap;
}

/* 响应式容器 */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }
}

/* ==================== 头部导航栏样式 ==================== */
.placeholder {
    height: 0px;
}


/* ==================== 头部导航栏样式 ==================== */
.header {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--gray-dark) 100%);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1000;
    transition: var(--transition);
    height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 3px solid var(--primary-color);
    width: 100%; /* 确保header占满宽度 */
}

.header.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    animation: slideDown 0.5s ease;
    /* 添加固定导航栏的宽度样式 */
    width: 100%;
    max-width: 100vw; /* 确保不会超出视口 */
}

/* 导航栏容器 - 修改为居中布局 */
.navbar {
    width: 100%;
    max-width: 1200px; /* 添加最大宽度限制 */
    margin: 0 auto; /* 居中 */
    display: flex;
    align-items: center;
    justify-content: space-between; /* 保持原有布局 */
    position: relative;
    box-sizing: border-box; /* 确保padding不会影响宽度 */
}

/* 在固定导航栏时，保持navbar容器的宽度一致 */
.header.fixed .navbar {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 50px;
    box-sizing: border-box;
}

/* 响应式调整 - 保持navbar在各屏幕尺寸下的宽度一致 */
@media (max-width: 1200px) {
    .navbar {
        max-width: 960px;
        padding: 0 30px;
    }
    
    .header.fixed .navbar {
        max-width: 960px;
        padding: 0 30px;
    }
}

@media (max-width: 992px) {
    .navbar {
        max-width: 720px;
        padding: 0 20px;
    }
    
    .header.fixed .navbar {
        max-width: 720px;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .navbar {
        max-width: 540px;
        padding: 0 15px;
    }
    
    .header.fixed .navbar {
        max-width: 540px;
        padding: 0 15px;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 0 10px;
    }
    
    .header.fixed .navbar {
        padding: 0 10px;
    }
}

/* LOGO样式 */
.logo {
    flex-shrink: 0; /* 防止LOGO被压缩 */
    margin: 0;
    font-size: 24px;
}

.logo a {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    padding: 10px 0;
    position: relative;
}

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

.logo a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

.logo a:hover::after {
    width: 100%;
}

/* 导航容器 - 修改为居中且紧凑 */
.nav-container {
    flex: 1; /* 占据剩余空间 */
    display: flex;
    justify-content: center; /* 居中导航项 */
    margin: 0 20px;
    max-width: 700px; /* 限制最大宽度，防止太分散 */
}

/* 导航菜单 */
.nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 3px; /* 减小间距，使导航更紧凑 */
    justify-content: center;

}

.menu-item {
    position: relative;
}

/* 导航项链接 - 调整使其更紧凑 */
.menu-item > a {
    color: var(--white);
    text-decoration: none;
    padding: 12px 16px; /* 稍微减小左右内边距 */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
    position: relative;
    overflow: hidden;
    font-size: 14px;
    white-space: nowrap; /* 防止文字换行 */
}

.menu-item > a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.menu-item > a:hover::before {
    left: 100%;
}

.menu-item > a:hover {
    background: var(--primary-transparent);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.menu-item.current-menu-item > a,
.menu-item.menu-item-has-children:hover > a {
    background: var(--primary-color);
    color: var(--white);
}

/* ==================== 下拉菜单样式 - 修复宽度问题 ==================== */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px !important; /* 重要：设置固定最小宽度 */
    width: auto !important; /* 重要：宽度自适应内容 */
    background: var(--dark-color);
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
    padding: 10px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap; /* 防止下拉项换行 */
}

.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu .menu-item {
    margin: 0;
    width: 100%;
}

.sub-menu a {
    color: var(--white);
    padding: 12px 20px; /* 增加内边距 */
    display: block;
    transition: var(--transition);
    font-size: 14px;
    white-space: nowrap; /* 防止文字换行 */
    width: 100%;
    box-sizing: border-box;
}

.sub-menu a:hover {
    background: var(--primary-color);
    color: var(--white);
    padding-left: 25px;
}

/* 确保下拉菜单项不会换行 */
.sub-menu .menu-item > a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==================== 搜索框样式 ==================== */
.menu.pull-right {
    flex-shrink: 0; /* 防止搜索框被压缩 */
    margin-left: 0;
}

form[name="formsearch"] {
    display: flex;
    align-items: center;
    position: relative;
    max-width: 250px; /* 稍微减小最大宽度 */
    min-width: 180px;
}

.search-input {
    flex: 1;
    padding: 10px 35px 10px 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 30px;
    font-size: 14px;
    transition: var(--transition);
    min-width: 150px; /* 稍微减小最小宽度 */
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(22, 199, 182, 0.1);
}

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

.button[type="submit"] {
    position: absolute;
    right: 5px;
    background: var(--primary-color);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.button[type="submit"]:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}



/* ==================== 移动端导航调整 ==================== */
/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    transition: var(--transition);
    z-index: 1001;
}

/* 移动端菜单容器 */
.mobile-nav-container {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dark-color);
    overflow-y: auto;
    z-index: 999;
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition);
    visibility: hidden;
}

.mobile-nav-container.active {
    display: block;
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* 移动端遮罩层 */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* 移动端导航菜单 */
.mobile-nav {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 20px;
    gap: 5px;
}

.mobile-menu-item {
    position: relative;
    width: 100%;
}

.mobile-menu-item > a {
    color: var(--white);
    text-decoration: none;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
    font-size: 15px;
    border-left: 3px solid transparent;
}

/* 移动端下拉菜单箭头 */
.mobile-menu-arrow {
    margin-left: auto;
    font-size: 10px;
    transition: transform 0.3s ease;
    margin-left: 10px;
}

.mobile-menu-item.has-children.active .mobile-menu-arrow {
    transform: rotate(180deg);
}

.mobile-menu-item > a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

/* 移动端下拉菜单 */
.mobile-sub-menu {
    display: none;
    padding-left: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.mobile-menu-item.has-children.active .mobile-sub-menu {
    display: block;
    margin-top: 5px;
}

.mobile-sub-menu .mobile-menu-item > a {
    padding: 12px 20px;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.2);
    border-left: 2px solid var(--primary-color);
}

/* 移动端搜索框 */
.mobile-search-container {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-search-container form[name="formsearch"] {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

.mobile-search-container .search-input {
    flex: 1;
    padding: 12px 40px 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 25px;
    font-size: 14px;
    transition: var(--transition);
    width: 100%;
}

.mobile-search-container .button[type="submit"] {
    position: absolute;
    right: 5px;
    background: var(--primary-color);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 992px) {
    /* 隐藏桌面端导航 */
    .nav-container {
        display: none;
    }
    
    /* 显示移动端菜单按钮 */
    .mobile-menu-toggle {
        display: block;
    }
    
    /* 显示移动端搜索框 */
    .menu.pull-right {
        display: none;
    }
    
    /* 调整头部高度 */
    .header {
        height: 60px;
    }
    
    .header.fixed {
        height: 60px;
    }
    
    .logo a {
        font-size: 18px;
    }
    
    /* 调整移动端菜单容器位置 */
    .mobile-nav-container {
        top: 60px;
    }
    
    .mobile-menu-overlay {
        top: 60px;
    }
}

/* 防止滚动穿透 */
body.mobile-menu-open {
    overflow: hidden;
}













/* ==================== 内容区域布局 ==================== */
.content-wrap {
    display: flex;
    gap: 30px;
    margin: 30px 0;
    width: 100%;
}

.content {
    flex: 1;
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .content-wrap {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        order: 2;
    }
    
    .content {
        order: 1;
    }
}

/* ==================== 标题样式 ==================== */
.title {
    font-size: 24px;
    color: var(--dark-color);
    margin: 30px 0 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
}

.title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100px;
    height: 3px;
    background: var(--secondary-color);
}

/* ==================== 文章列表样式 ==================== */
.sticky {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary-color);
    transition: var(--transition);
}

.sticky:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.sticky ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.sticky .item {
    background: var(--gray-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

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

.sticky .item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.sticky .item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: var(--transition);
}

.sticky .item:hover img {
    transform: scale(1.05);
}

.sticky .item h3 {
    padding: 15px;
    margin: 0;
    font-size: 16px;
    color: var(--dark-color);
    line-height: 1.4;
}

.sticky .item .muted {
    padding: 0 15px 15px;
    color: var(--gray);
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================== 文章摘要样式 ==================== */
.excerpt {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 20px;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.excerpt:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.focus {
    flex-shrink: 0;
    width: 200px;
}

.thumbnail {
    display: block;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    padding-top: 100.00%; /* 16:9 比例 */
    height: 0;
}

.thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.thumbnail:hover img {
    transform: scale(1.1);
}

.excerpt header {
    flex: 1;
}

.excerpt h2 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.4;
}

.excerpt h2 a {
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    position: relative;
}

.excerpt h2 a:hover {
    color: var(--primary-color);
}

.excerpt h2 a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.excerpt h2 a:hover::after {
    width: 100%;
}

.note {
    color: var(--gray);
    margin: 10px 0;
    line-height: 1.6;
    font-size: 14px;
}

.muted {
    color: var(--gray);
    font-size: 12px;
    margin-right: 15px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.muted i {
    font-size: 14px;
}

@media (max-width: 768px) {
    .excerpt {
        flex-direction: column;
    }
    
    .focus {
        width: 100%;
    }
    
    .thumbnail {
        padding-top: 56.25%;
    }
}

/* ==================== 图片列表样式 ==================== */
.jobs-loop {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    box-shadow: var(--shadow);
}

.loop {
    margin-bottom: 30px;
}

.jobs-loop dl {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    list-style: none;
}

.jobs-loop dd {
    margin: 0;
}

.jobs-loop a {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-decoration: none;
}

.jobs-loop img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: var(--transition);
}

.jobs-loop a:hover img {
    transform: scale(1.1);
    filter: brightness(0.8);
}

.jobs-loop span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    padding: 10px;
    font-size: 14px;
    text-align: center;
    transition: var(--transition);
}

.jobs-loop a:hover span {
    background: linear-gradient(transparent, var(--primary-color));
}

/* ==================== 分页样式 ==================== */
.pagenavi {
    margin-top: 30px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

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

.pages a,
.pages span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    border-radius: var(--border-radius);
    background: var(--gray-light);
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid transparent;
}

.pages a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(22, 199, 182, 0.3);
}

.pages span.thisclass {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-dark);
}

/* ==================== 侧边栏样式 ==================== */
.widget {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.widget:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.widget_tit {
    font-size: 18px;
    color: var(--dark-color);
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget_tit::before {
    content: '';
    width: 5px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 3px;
}

.d_postlist ul {
    list-style: none;
}

.d_postlist li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.d_postlist li:hover {
    padding-left: 10px;
    border-bottom-color: var(--primary-light);
}

.d_postlist li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.d_postlist a {
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

.d_postlist .thumbnail {

    height: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.d_postlist .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.d_postlist li:hover .thumbnail img {
    transform: scale(1.1);
}

.d_postlist .text {
    flex: 1;
    font-size: 14px;
    color: var(--dark-color);
    line-height: 1.4;
    transition: var(--transition);
}

.d_postlist li:hover .text {
    color: var(--primary-color);
}

.d_postlist .muted {
    display: block;
    font-size: 12px;
    color: var(--gray);
    margin-top: 5px;
}

/* ==================== 炫酷标签样式 ==================== */
.cool-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cool-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    background: linear-gradient(135deg, 
        hsl(calc(var(--color-index) * 36), 70%, 90%), 
        hsl(calc(var(--color-index) * 36 + 180), 70%, 90%));
    border-radius: 25px;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 13px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.cool-tag:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
    color: var(--dark-color);
}

.tag-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1;
    position: relative;
}

.tag-icon {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 14px;
}

.tag-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tag-count-wrapper {
    position: relative;
}

.tag-count {
    font-size: 11px;
    font-weight: 600;
    color: var(--white);
    background: var(--primary-color);
    border-radius: 10px;
    padding: 2px 8px;
    min-width: 24px;
    text-align: center;
    display: inline-block;
    transition: all 0.3s ease;
}

.cool-tag:hover .tag-count {
    background: var(--dark-color);
    transform: scale(1.1);
}

.count-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: rgba(22, 199, 182, 0.1);
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cool-tag:hover .count-bg {
    opacity: 1;
}

.tag-hover-bg {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.6s ease;
}

.cool-tag:hover .tag-hover-bg {
    left: 100%;
}

.tag-sparkle {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.8) 0%, 
        rgba(255, 255, 255, 0) 70%);
    opacity: 0;
    pointer-events: none;
}

.cool-tag:hover .tag-sparkle {
    animation: sparkle 0.6s ease-out;
}

@keyframes sparkle {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
        top: 50%;
        left: 50%;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: scale(1.5) rotate(180deg);
        top: 0;
        left: 100%;
    }
}

/* ==================== 标签页面特殊样式 ==================== */
.tag-header {
    background: linear-gradient(135deg, var(--dark-color) 0%, #2a2d4a 100%);
    color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tag-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
}

.tag-header h1 {
    font-size: 32px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.tag-info {
    font-size: 16px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.tag-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 25px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.tag-stat-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tag-stat-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

/* ==================== 底部样式 ==================== */
.footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--gray-dark) 100%);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 50px;
    border-top: 5px solid var(--primary-color);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.copyright {
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.copyright a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
    margin: 0 5px;
}

.copyright a:hover {
    color: var(--white);
    text-decoration: underline;
}

.trackcode {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* ==================== 动画效果 ==================== */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ==================== 页面加载动画 ==================== */
body::before {
    background: linear-gradient(135deg, #16c7b6 0%, #1a1a2e 100%);
    z-index: 9999;
    animation: fadeOut 0.8s ease-in-out forwards;
    animation-delay: 0.5s;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

/* ==================== 滚动条样式 ==================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ==================== 响应式调整 ==================== */
@media (max-width: 768px) {
    .tag-header {
        padding: 20px 15px;
    }
    
    .tag-header h1 {
        font-size: 24px;
    }
    
    .tag-stats {
        gap: 15px;
    }
    
    .tag-stat-item {
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .cool-tag-list {
        justify-content: center;
    }
}

/* ==================== 打印样式 ==================== */
@media print {
    .header,
    .sidebar,
    .footer,
    .banner,
    .widget:not(.widget_text) {
        display: none;
    }
    
    .content {
        width: 100%;
    }
    
    .excerpt {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ==================== 高对比度模式 ==================== */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #008080;
        --primary-dark: #005a5a;
        --primary-light: #40a0a0;
    }
    
    .header,
    .footer {
        background: #000;
    }
    
    .excerpt,
    .widget,
    .sticky {
        border: 2px solid #000;
    }
}

/* ==================== 减少动画 ==================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==================== 移动端菜单动画 ==================== */
@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ==================== 触摸设备的下拉菜单样式 ==================== */
@media (max-width: 992px) {
    .menu-item-has-children.touch-open .sub-menu {
        display: block !important;
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
}

/* ==================== 卡片悬停效果增强 ==================== */
.excerpt,
.sticky,
.widget {
    position: relative;
}

.excerpt::before,
.sticky::before,
.widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.excerpt:hover::before,
.sticky:hover::before,
.widget:hover::before {
    opacity: 1;
}

/* ==================== 图片加载动画 ==================== */
.thumbnail,
.sticky .item img,
.jobs-loop img {
    position: relative;
    overflow: hidden;
}

.thumbnail.loading::after,
.sticky .item img.loading::after,
.jobs-loop img.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* ==================== 渐变文字效果 ==================== */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* ==================== 3D卡片效果 ==================== */
.excerpt-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.excerpt-3d:hover {
    transform: rotateY(5deg) rotateX(5deg);
}

/* ==================== 霓虹效果 ==================== */
.neon-text {
    color: #fff;
    text-shadow: 
        0 0 5px var(--primary-color),
        0 0 10px var(--primary-color),
        0 0 20px var(--primary-color),
        0 0 40px var(--primary-color);
    animation: neon-pulse 1.5s ease-in-out infinite alternate;
}

@keyframes neon-pulse {
    from {
        text-shadow: 
            0 0 5px var(--primary-color),
            0 0 10px var(--primary-color),
            0 0 20px var(--primary-color),
            0 0 40px var(--primary-color);
    }
    to {
        text-shadow: 
            0 0 10px var(--primary-color),
            0 0 20px var(--primary-color),
            0 0 30px var(--primary-color),
            0 0 50px var(--primary-color);
    }
}

/* ==================== 粒子背景效果 ==================== */
.particle-bg {
    position: relative;
    overflow: hidden;
}

.particle-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(22, 199, 182, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
    z-index: -1;
}

/* ==================== 响应式字体大小 ==================== */
@media (max-width: 768px) {
    :root {
        font-size: 13px;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }
}

@media (max-width: 480px) {
    :root {
        font-size: 12px;
    }
}

/* ==================== 友情链接样式 ==================== */
.IndexLinkListWrap {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    margin: 30px 0;
    box-shadow: var(--shadow);
}

.moketitle {
    font-size: 18px;
    color: var(--dark-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.friendlyLink {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.friendlyLink a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
    padding: 5px 10px;
    border-radius: var(--border-radius);
}

.friendlyLink a:hover {
    color: var(--primary-color);
    background: var(--primary-transparent);
}

.friendlyLink span {
    color: var(--gray-light);
}

/* ==================== 广告横幅样式 ==================== */
.banner {
    margin: 20px 0;
}

.banner-navbar {
    margin-top: 20px;
}

.banner-contenttop,
.banner-post {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 15px;
    box-shadow: var(--shadow);
}

/* ==================== 导航条聚焦状态 ==================== */
.menu-item > a:focus {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}


















/* ==================== 文章详情页专用样式 ==================== */

/* 文章头部样式 */
.article-header {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.article-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-transparent), transparent);
    border-radius: 0 0 0 100%;
}

.article-title {
    font-size: 28px;
    color: var(--dark-color);
    margin: 0 0 15px;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

.article-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.article-title a:hover {
    color: var(--primary-color);
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 14px;
    color: var(--gray);
}

.muted {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.muted:hover {
    color: var(--primary-color);
}

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

.muted i {
    font-size: 14px;
    color: var(--primary-color);
}

/* 文章内容区域样式 */
.article-content {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    line-height: 1.8;
    font-size: 16px;
}

.article-content blockquote {
    background: var(--primary-transparent);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-style: italic;
    position: relative;
}

.article-content blockquote::before {
    content: '"';
    position: absolute;
    top: -15px;
    left: 10px;
    font-size: 60px;
    color: var(--primary-color);
    opacity: 0.3;
    font-family: Georgia, serif;
}

.article-content blockquote p {
    margin: 0;
    font-size: 15px;
    color: var(--dark-color);
    position: relative;
    z-index: 1;
}

.article-content blockquote strong {
    color: var(--primary-color);
}

.article-content p {
    margin-bottom: 20px;
    color: #444;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 15px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.article-content h2,
.article-content h3,
.article-content h4 {
    color: var(--dark-color);
    margin: 25px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-light);
}

.article-content h2 {
    font-size: 24px;
    border-bottom-color: var(--primary-light);
}

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

.article-content a:not(.muted) {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px dotted var(--primary-light);
    transition: var(--transition);
}

.article-content a:not(.muted):hover {
    color: var(--primary-dark);
    border-bottom-style: solid;
}

.article-content ul,
.article-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content code {
    background: var(--gray-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: var(--secondary-color);
}

.article-content pre {
    background: var(--dark-color);
    color: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin: 20px 0;
    border-left: 4px solid var(--primary-color);
}

/* ==================== 相关文章样式 ==================== */
.related-post {
    background: var(--gray-light);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    margin: 30px 0;
    border: 2px solid var(--primary-transparent);
}

.related-post h6 {
    font-size: 18px;
    color: var(--dark-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-post h6::before {
    content: '💡';
    font-size: 20px;
}

/* 修改这里：让每排显示3个，并清除浮动 */
.related-post dl.fix {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* 每排3个 */
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
    overflow: hidden; /* 清除浮动效果 */
}

/* 如果需要支持旧版浏览器，也可以用flex方式 */
/*
.related-post dl.fix {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-post dl.fix dd {
    width: calc((100% - 40px) / 3); /* 3个每排，考虑间距 */
}
*/

.related-post dd {
    margin: 0;
    transition: var(--transition);
}

.related-post a {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
    background: var(--white);
    box-shadow: var(--shadow);
}

.related-post a:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.related-post img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    transition: var(--transition);
}

.related-post a:hover img {
    transform: scale(1.05);
}

.related-post span {
    display: block;
    padding: 15px;
    font-size: 14px;
    color: var(--dark-color);
    line-height: 1.4;
    text-align: center;
    font-weight: 500;
    transition: var(--transition);
}

.related-post a:hover span {
    color: var(--primary-color);
}

/* 响应式调整 */
@media (max-width: 992px) {
    .related-post dl.fix {
        grid-template-columns: repeat(2, 1fr); /* 中等屏幕每排显示2个 */
    }
}

@media (max-width: 768px) {
    .related-post {
        padding: 15px;
    }
    
    .related-post dl.fix {
        grid-template-columns: repeat(2, 1fr); /* 平板每排显示2个 */
        gap: 15px;
    }
    
    .related-post img {
        height: 120px;
    }
}

@media (max-width: 576px) {
    .related-post dl.fix {
        grid-template-columns: 1fr; /* 手机每排显示1个 */
    }
}






/* 直接针对您的具体结构 */
#tag741ea220ff5887504d724069fe0ee1bf {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    width: 100% !important;
    flex-direction: column-reverse;
}



/* 响应式调整 */
@media (max-width: 992px) {
    #tag741ea220ff5887504d724069fe0ee1bf > dd {
        flex: 0 0 calc((100% - 20px) / 2) !important;
    }
}

@media (max-width: 576px) {
    #tag741ea220ff5887504d724069fe0ee1bf > dd {
        flex: 0 0 100% !important;
    }
}





/* 文章导航样式 */
.article-nav {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    padding: 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.article-nav-prev,
.article-nav-next {
    flex: 1;
}

.article-nav-prev a,
.article-nav-next a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
    padding: 10px;
    border-radius: var(--border-radius);
}

.article-nav-prev a:hover,
.article-nav-next a:hover {
    color: var(--primary-color);
    background: var(--primary-transparent);
}

.article-nav-next {
    text-align: right;
}

.article-nav-next a {
    justify-content: flex-end;
}

/* 当前网址样式 */
.article-content > p:last-of-type {
    background: var(--gray-light);
    padding: 15px;
    border-radius: var(--border-radius);
    font-size: 14px;
    color: var(--gray);
    margin-top: 30px;
    border-left: 3px solid var(--primary-color);
}

.article-content > p:last-of-type:before {
    content: '🔗 ';
    margin-right: 5px;
}

/* 广告横幅样式 */
.banner-post {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 15px;
    margin: 20px 0;
    text-align: center;
    box-shadow: var(--shadow);
}

.banner-post img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.banner-post a:hover img {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .article-header {
        padding: 20px;
    }
    
    .article-title {
        font-size: 22px;
    }
    
    .meta {
        gap: 10px;
        font-size: 13px;
    }
    
    .article-content {
        padding: 20px;
        font-size: 15px;
    }
    
    .article-content h2 {
        font-size: 20px;
    }
    
    .article-content h3 {
        font-size: 18px;
    }
    
    .related-post {
        padding: 15px;
    }
    
    .related-post dl.fix {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .related-post img {
        height: 120px;
    }
    
    .article-nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .article-nav-prev,
    .article-nav-next {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 20px;
    }
    
    .meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .related-post dl.fix {
        grid-template-columns: 1fr;
    }
}

/* 打印样式调整 */
@media print {
    .article-header,
    .article-content,
    .related-post {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
    
    .article-nav,
    .banner-post,
    .related-post {
        display: none;
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    .article-header,
    .article-content,
    .related-post a,
    .article-nav {
        background: #1e1e1e;
        color: #e0e0e0;
    }
    
    .article-title,
    .article-content h2,
    .article-content h3,
    .article-content h4 {
        color: #fff;
    }
    
    .article-content p {
        color: #ccc;
    }
    
    .article-content blockquote {
        background: #2a2a2a;
        color: #ccc;
    }
    
    .related-post {
        background: #2a2a2a;
    }
    
    .article-content > p:last-of-type {
        background: #2a2a2a;
        color: #999;
    }
}

/* 文章内容图片浮动清除 */
.article-content::after {
    content: '';
    display: table;
    clear: both;
}

/* 文章内容中的表格样式 */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.article-content th,
.article-content td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--gray-light);
}

.article-content th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.article-content tr:nth-child(even) {
    background: var(--gray-light);
}

.article-content tr:hover {
    background: var(--primary-transparent);
}





.related-post dl.fix {
    gap: 8px !important;
}
.related-post a {
    padding: 8px; /* 减小卡片内边距 */
}
.related-post span {
    padding: 8px 5px; /* 减小标题区域的内边距 */
    font-size: 13px; /* 可选：稍微缩小字体 */
}





#tag741ea220ff5887504d724069fe0ee1bf > dd {
    flex: 0 0 calc((70% - 30px) / 3) !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 针对指定ID下的dd元素进行精确调整 */
#tag741ea220ff5887504d724069fe0ee1bf dd {
    margin-bottom: -75px !important; /* 将底部外边距调整为你需要的值，例如10px */
}


.widget_text img {
    max-width: 100%;
    height: auto;
    display: block;
}















/* ==================== 关于页面专用样式 ==================== */

/* 页面容器样式 */
.pagewrapper {
    display: flex;
    gap: 30px;
    margin: 30px 0;
    width: 100%;
}

.pagesidebar {
    width: 280px;
    flex-shrink: 0;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.pagecontent {
    flex: 1;
    min-width: 0; /* 防止内容溢出 */
}

/* 侧边栏菜单样式 */
.pagesider-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagesider-menu li {
    margin-bottom: 8px;
    position: relative;
    transition: var(--transition);
}

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

.pagesider-menu a {
    display: block;
    padding: 12px 15px;
    color: var(--dark-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
    font-size: 14px;
    border-left: 3px solid transparent;
    background: var(--gray-light);
}

.pagesider-menu a:hover {
    background: var(--primary-transparent);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    padding-left: 20px;
}

/* 当前选中菜单项 */
.pagesider-menu .menu-item {
    background: var(--primary-transparent);
}

.pagesider-menu .menu-item a {
    background: var(--primary-color);
    color: var(--white);
    border-left-color: var(--primary-dark);
}

/* 页面头部样式 */
.pageheader {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 25px 30px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.pageheader h1 {
    font-size: 24px;
    color: var(--dark-color);
    margin: 0;
    line-height: 1.3;
}

.pageheader h1 a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.pageheader h1 a:hover {
    color: var(--primary-color);
}

.pageheader h1 a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.pageheader h1 a:hover::after {
    width: 100%;
}

/* 分享按钮样式 */
.share {
    display: flex;
    align-items: center;
}

.bdshare_t {
    display: flex;
    gap: 10px;
}

.bdshare_t a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--gray-light);
    border-radius: 50%;
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.bdshare_t a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* 页面内容区域样式 */
.pagecontent > .field-content {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    line-height: 1.8;
    font-size: 15px;
    color: #444;
}

/* 页面内容中的标题 */
.pagecontent h2 {
    font-size: 20px;
    color: var(--dark-color);
    margin: 25px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-light);
    position: relative;
}

.pagecontent h2::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary-color);
}

.pagecontent h3 {
    font-size: 18px;
    color: var(--dark-color);
    margin: 20px 0 12px;
}

/* 页面内容中的段落和列表 */
.pagecontent p {
    margin-bottom: 18px;
}

.pagecontent ul,
.pagecontent ol {
    margin: 15px 0;
    padding-left: 25px;
}

.pagecontent li {
    margin-bottom: 8px;
}

/* 页面内容中的链接 */
.pagecontent a:not(.pagesider-menu a):not(.bdshare_t a) {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px dotted var(--primary-light);
    transition: var(--transition);
}

.pagecontent a:not(.pagesider-menu a):not(.bdshare_t a):hover {
    color: var(--primary-dark);
    border-bottom-style: solid;
}

/* 页面内容中的图片 */
.pagecontent img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 15px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 页面内容中的引用 */
.pagecontent blockquote {
    background: var(--primary-transparent);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-style: italic;
    position: relative;
}

.pagecontent blockquote::before {
    content: '"';
    position: absolute;
    top: -15px;
    left: 10px;
    font-size: 60px;
    color: var(--primary-color);
    opacity: 0.3;
    font-family: Georgia, serif;
}

.pagecontent blockquote p {
    margin: 0;
    color: var(--dark-color);
    position: relative;
    z-index: 1;
}

/* 页面内容中的代码 */
.pagecontent code {
    background: var(--gray-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: var(--secondary-color);
}

.pagecontent pre {
    background: var(--dark-color);
    color: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin: 20px 0;
    border-left: 4px solid var(--primary-color);
}

/* 页面内容中的表格 */
.pagecontent table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.pagecontent th,
.pagecontent td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--gray-light);
}

.pagecontent th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.pagecontent tr:nth-child(even) {
    background: var(--gray-light);
}

.pagecontent tr:hover {
    background: var(--primary-transparent);
}

/* 友情链接列表样式 */
.plinks {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 30px 0 0;
}

.plinks li {
    flex: 0 0 calc(33.333% - 10px);
    min-width: 200px;
}

.plinks a {
    display: block;
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 15px;
    text-decoration: none;
    color: var(--dark-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.plinks a:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
    color: var(--primary-color);
}

.plinks img {
    max-width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
    border-radius: 50%;
}

.plinks span {
    display: block;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .pagewrapper {
        flex-direction: column;
    }
    
    .pagesidebar {
        width: 100%;
        position: static;
        order: 2;
    }
    
    .pagecontent {
        order: 1;
    }
    
    .plinks li {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .pageheader {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .pageheader h1 {
        font-size: 20px;
    }
    
    .pagecontent > .field-content {
        padding: 20px;
        font-size: 14px;
    }
    
    .pagecontent h2 {
        font-size: 18px;
    }
    
    .pagecontent h3 {
        font-size: 16px;
    }
    
    .plinks li {
        flex: 0 0 100%;
    }
    
    .bdshare_t {
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {
    .pagesidebar {
        padding: 15px;
    }
    
    .pagesider-menu a {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .pageheader {
        padding: 15px;
    }
    
    .pagecontent > .field-content {
        padding: 15px;
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    .pagesidebar,
    .pageheader,
    .pagecontent > .field-content,
    .plinks a {
        background: #1e1e1e;
        color: #e0e0e0;
    }
    
    .pageheader h1,
    .pagecontent h2,
    .pagecontent h3 {
        color: #fff;
    }
    
    .pagesider-menu a {
        background: #2a2a2a;
        color: #ccc;
    }
    
    .pagesider-menu a:hover {
        background: rgba(22, 199, 182, 0.2);
        color: var(--primary-color);
    }
    
    .pagesider-menu .menu-item a {
        background: var(--primary-color);
        color: #fff;
    }
    
    .pagecontent p,
    .pagecontent li {
        color: #ccc;
    }
    
    .pagecontent blockquote {
        background: #2a2a2a;
        color: #ccc;
    }
    
    .pagecontent code {
        background: #2a2a2a;
    }
    
    .pagecontent table th {
        background: var(--primary-dark);
    }
    
    .pagecontent table tr:nth-child(even) {
        background: #2a2a2a;
    }
    
    .plinks a:hover {
        background: #2a2a2a;
        color: var(--primary-color);
    }
}

/* 打印样式 */
@media print {
    .pagesidebar,
    .pageheader .share,
    .plinks {
        display: none;
    }
    
    .pageheader {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .pagecontent > .field-content {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .pagecontent a {
        color: #000;
        text-decoration: underline;
    }
}






















/* 基础样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", Arial, sans-serif; line-height: 1.6; color: #333; background: #f5f5f5; }
a { color: #e53935; text-decoration: none; }
a:hover { color: #c62828; text-decoration: underline; }

/* 主容器 */
.main-container { max-width: 1200px; margin: 20px auto; display: flex; padding: 0 15px; }
.content-wrap { flex: 1; background: #fff; padding: 20px; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.sidebar { width: 300px; margin-left: 20px; }

/* 面包屑导航 */
.breadcrumb { padding: 10px 0; margin-bottom: 20px; border-bottom: 1px solid #eee; font-size: 14px; color: #666; }

/* 页面标题 */
.page-title { font-size: 24px; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #e53935; }
.tag-name { color: #e53935; }

/* 标签云样式 */
.tag-cloud { padding: 20px 0; text-align: center; line-height: 2.5; }
.tag-cloud a { display: inline-block; margin: 5px 10px; padding: 0 8px; transition: all 0.3s; }
.tag-cloud a:hover { transform: translateY(-3px); text-decoration: none; }

/* 文章列表 */
.hot-articles h2 { font-size: 18px; margin: 25px 0 15px; padding-left: 10px; border-left: 4px solid #e53935; }
.article-list { list-style: none; }
.article-list li { padding: 8px 0; border-bottom: 1px dashed #eee; }
.article-list .date { display: inline-block; width: 60px; color: #888; font-size: 13px; }

/* 标签文章列表 */
.article-item { padding: 20px 0; border-bottom: 1px solid #eee; }
.article-title { font-size: 20px; margin-bottom: 10px; }
.article-meta { font-size: 13px; color: #666; margin-bottom: 10px; }
.article-meta span { margin-right: 15px; }
.article-excerpt { color: #555; line-height: 1.7; font-size: 15px; }

/* 分页样式 */
.pagination { margin-top: 30px; text-align: center;display: flex
;
    flex-direction:  }
.pagination a, .pagination span { display: inline-block; padding: 8px 15px; margin: 0 3px; background: #f5f5f5; border: 1px solid #ddd; }
.pagination a:hover, .pagination .current { background: #e53935; color: #fff; border-color: #e53935; }

/* 侧边栏 */
.sidebar-box { background: #fff; padding: 20px; margin-bottom: 20px; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.sidebar-box h3 { font-size: 18px; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 2px solid #e53935; }
.tag-list a { display: inline-block; padding: 5px 12px; margin: 0 5px 8px 0; background: #f5f5f5; border-radius: 3px; font-size: 14px; }
.tag-list a:hover { background: #e53935; color: #fff; }
