
/* 基础样式 */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
background-color: #f8f9fa;
color: #333;
line-height: 1.6;
min-height: 100vh;
display: flex;
flex-direction: column;
}

a {
text-decoration: none;
color: #333;
transition: all 0.3s ease;
}

a:hover {
color: #666;
}

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

/* 顶部导航栏 */
.navbar {
background: #fff;
padding: 12px 0;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
border-bottom: 1px solid #eee;
position: relative;
}

.navbar-content {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: nowrap;
}

.navbar-brand {
font-size: 22px;
font-weight: bold;
color: #222;
letter-spacing: 1px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 60%;
}

.navbar-controls {
display: flex;
align-items: center;
gap: 10px;
flex-shrink: 0;
}

.language-switcher {
display: flex;
gap: 4px;
}

.language-switcher button {
background: #f5f5f5;
border: 1px solid #ddd;
padding: 5px 10px;
cursor: pointer;
font-size: 13px;
border-radius: 4px;
transition: all 0.3s;
white-space: nowrap;
}

.language-switcher button.active {
background: #333;
color: #fff;
border-color: #333;
}

.language-switcher button:hover {
background: #555;
color: #fff;
}

/* 完全移除所有过渡和动画效果 */
* {
    transition: none !important;
    animation: none !important;
}

.nav-menu a.active,
.mobile-nav-menu a.active {
    background: #f8f9fa;
    color: #222;
    font-weight: 600;
}

.nav-menu a.active {
    border-left: 4px solid #333;
    position: relative;
}

.nav-menu a.active::after {
    content: "●";
    position: absolute;
    right: 15px;
    color: #333;
    font-size: 12px;
}

.mobile-nav-menu a.active {
    background: #1890ff !important;
    color: #fff !important;
    border-radius: 6px;
    margin: 8px 20px;
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
}

.mobile-nav-menu a.active::after {
    content: "▶";
    position: absolute;
    right: 15px;
    color: #fff;
    font-size: 12px;
}
/* 移动端导航按钮 */
.mobile-nav-toggle {
display: none;
background: none;
border: none;
font-size: 22px;
color: #333;
cursor: pointer;
padding: 5px;
flex-shrink: 0;
}

/* 移动端导航菜单 */
.mobile-nav-menu {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.95);
z-index: 1000;
flex-direction: column;
justify-content: flex-start;
align-items: center;
padding-top: 70px;
}

.mobile-nav-menu.active {
display: flex;
}

.mobile-nav-menu a {
color: #fff;
font-size: 18px;
margin: 10px 0;
padding: 10px 25px;
border-radius: 5px;
transition: all 0.3s;
text-align: center;
width: 80%;
max-width: 250px;
position: relative;
}

.mobile-nav-menu a.active {
background: rgba(255, 255, 255, 0.1);
color: #fff;
}

.mobile-nav-menu a.active::after {
content: "●";
position: absolute;
right: 15px;
color: #fff;
font-size: 12px;
}

.mobile-nav-menu a:hover {
background: rgba(255, 255, 255, 0.1);
}

.mobile-nav-close {
position: absolute;
top: 15px;
right: 15px;
background: none;
border: none;
color: #fff;
font-size: 28px;
cursor: pointer;
padding: 5px;
}


/* 主要内容布局 */
.main-content {
flex: 1;
padding: 20px 0;
}

.layout-container {
display: flex;
gap: 20px;
}
   

/* 左侧导航 */
.sidebar {
width: 200px;
flex-shrink: 0;
}

.nav-menu {
background: #fff;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
overflow: hidden;
}

.nav-menu ul {
list-style: none;
}

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

.nav-menu li:last-child {
border-bottom: none;
}

.nav-menu a {
display: block;
padding: 14px 20px;
color: #333;
font-weight: 500;
transition: all 0.3s;
position: relative;
}

.nav-menu a.active {
background: #f8f9fa;
border-left: 4px solid #333;
color: #222;
}

.nav-menu a.active::after {
content: "●";
position: absolute;
right: 15px;
color: #333;
font-size: 12px;
}

.nav-menu a:hover {
background: #f8f9fa;
padding-left: 25px;
}

/* 右侧边栏 */
.right-sidebar {
width: 280px;
flex-shrink: 0;
}

/* 栏目导航 */
.category-nav-container {
margin-bottom: 20px;
}

.category-nav {
display: flex;
flex-wrap: wrap;
gap: 8px;
background: #fff;
padding: 15px;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.category-nav a {
background: #f8f9fa;
padding: 6px 12px;
border-radius: 16px;
border: 1px solid #e0e0e0;
font-size: 13px;
transition: all 0.3s;
white-space: nowrap;
}

.category-nav a.active {
background: #333;
color: #fff;
border-color: #333;
}

.category-nav a:hover {
background: #f0f0f0;
transform: translateY(-2px);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sidebar-widget {
background: #fff;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
margin-bottom: 20px;
overflow: hidden;
}

.widget-header {
padding: 15px 20px;
border-bottom: 1px solid #f0f0f0;
font-size: 16px;
font-weight: 600;
color: #222;
background: #f8f9fa;
}

.widget-body {
padding: 15px 20px;
}

.widget-list {
list-style: none;
}

.widget-list li {
margin-bottom: 10px;
padding-bottom: 10px;
border-bottom: 1px dashed #f0f0f0;
}

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

.widget-list a {
display: block;
color: #555;
font-size: 14px;
transition: all 0.3s;
line-height: 1.4;
}

.widget-list a:hover {
color: #333;
padding-left: 5px;
}
/* 分页 */
.pagination {
display: flex;
justify-content: center;
flex-wrap: wrap;
}

/* 底部 */
.footer {
background: #fff;
padding: 10px 0;
border-top: 1px solid #eee;
}

.footer-content {
text-align: center;
color: #666;
font-size: 14px;
line-height: 1.8;
}

/* 文章列表样式 */
.article-item {
padding: 15px 0;
border-bottom: 1px dashed #f0f0f0;
}

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

/* 响应式设计 */
@media screen and (max-width: 1024px) {
.layout-container {
flex-direction: column;
}

.sidebar, .right-sidebar {
width: 100%;
}

.sidebar {
margin-bottom: 20px;
}

.nav-menu ul {
display: flex;
flex-wrap: wrap;
}

.nav-menu li {
flex: 1;
min-width: 150px;
border-bottom: none;
border-right: 1px solid #f0f0f0;
}

.nav-menu li:last-child {
border-right: none;
}

.nav-menu a {
text-align: center;
padding: 12px 10px;
}

.nav-menu a.active {
border-left: none;
border-top: 4px solid #333;
}

.nav-menu a:hover {
padding-left: 10px;
}
}

@media screen and (max-width: 768px) {
.navbar {
padding: 10px 0;
}

.navbar-content {
flex-wrap: nowrap;
justify-content: space-between;
}

.navbar-brand {
font-size: 18px;
max-width: 50%;
flex-shrink: 1;
}

.navbar-controls {
flex-shrink: 0;
gap: 8px;
}

.language-switcher {
display: flex;
gap: 3px;
}

.language-switcher button {
padding: 4px 8px;
font-size: 12px;
}

.mobile-nav-toggle {
display: block;
font-size: 20px;
}

.sidebar {
display: none;
}

.swiper-container {
height: 150px;
}

.swiper-slide {
font-size: 16px;
}

.category-nav {
justify-content: flex-start;
overflow-x: auto;
padding-bottom: 10px;
}

.category-nav a {
flex-shrink: 0;
}

.content-header h2 {
font-size: 16px;
}

.article-title {
font-size: 15px;
}

.article-excerpt {
font-size: 13px;
}

.mobile-nav-menu a {
font-size: 16px;
margin: 8px 0;
padding: 8px 20px;
}

.mobile-nav-menu {
padding-top: 60px;
}

}

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

.navbar-brand {
font-size: 16px;
max-width: 45%;
}

.language-switcher {
gap: 2px;
}

.language-switcher button {
padding: 3px 6px;
font-size: 11px;
}

.mobile-nav-toggle {
font-size: 18px;
padding: 4px;
}

.main-content {
padding: 15px 0;
}

.swiper-container {
height: 120px;
}

.swiper-slide {
font-size: 14px;
}

.category-nav a {
padding: 5px 10px;
font-size: 12px;
}

.content-header {
padding: 12px 15px;
}

.content-body {
padding: 15px;
}

.widget-header, .widget-body {
padding: 12px 15px;
}

.pagination a {
padding: 6px 10px;
font-size: 13px;
}

.mobile-nav-menu {
padding-top: 50px;
}

.mobile-nav-menu a {
font-size: 15px;
margin: 6px 0;
padding: 6px 15px;
}

.mobile-nav-close {
top: 10px;
right: 10px;
font-size: 24px;
}
}