:root {
    --primary: #334d61;
    --primary-light: #f0f5f9;
    --primary-dark: #283c4d;
    --success: #07C160;
    --warning: #FF7D00;
    --danger: #E6162D;
    --gray-100: #F2F3F5;
    --gray-200: #E5E6EB;
    --gray-300: #C9CDD4;
    --gray-400: #86909C;
    --gray-500: #4E5969;
    --gray-600: #1D2129;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 4px;
    --radius: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
}

body {
    background-color: #f5f7fa;
    color: var(--gray-600);
    font-size: 16px;
    line-height: 1.5;
}

/* 通用工具类 */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-5 {
    gap: 1.25rem;
}

.gap-6 {
    gap: 1.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-5 {
    margin-bottom: 1.25rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.p-4 {
    padding: 1rem;
}

.p-5 {
    padding: 1.25rem;
}

.p-6 {
    padding: 1.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-5 {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-base {
    font-size: 1rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

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

.text-success {
    color: var(--success);
}

.text-warning {
    color: var(--warning);
}

.text-danger {
    color: var(--danger);
}

.text-gray-400 {
    color: var(--gray-400);
}

.text-gray-500 {
    color: var(--gray-500);
}

.text-gray-600 {
    color: var(--gray-600);
}

.text-white {
    color: var(--white);
}

.bg-white {
    background-color: var(--white);
}

.bg-primary {
    background-color: var(--primary);
}

.bg-primary-light {
    background-color: var(--primary-light);
}

.bg-gray-100 {
    background-color: var(--gray-100);
}

.bg-green-50 {
    background-color: rgba(7, 193, 96, 0.05);
}

.bg-orange-50 {
    background-color: rgba(255, 125, 0, 0.05);
}

.rounded {
    border-radius: var(--radius);
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.rounded-xl {
    border-radius: var(--radius-xl);
}

.rounded-full {
    border-radius: 9999px;
}

.border {
    border-width: 1px;
    border-style: solid;
}

.border-gray-200 {
    border-color: var(--gray-200);
}

.border-b {
    border-bottom-width: 1px;
    border-bottom-style: solid;
}

.border-gray-100 {
    border-bottom-color: var(--gray-100);
}

.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow {
    box-shadow: var(--shadow);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.transition-all {
    transition: all 0.3s ease;
}

.hover\:bg-primary-light:hover {
    background-color: var(--primary-light);
}

.hover\:bg-gray-200:hover {
    background-color: var(--gray-200);
}

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

.hover\:-translate-y-1:hover {
    transform: translateY(-0.25rem);
}

.hover\:shadow-lg:hover {
    box-shadow: var(--shadow-lg);
}

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.whitespace-nowrap {
    white-space: nowrap;
}

.flex-1 {
    flex: 1 1 0%;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.ml-auto {
    margin-left: auto;
}

.outline-none {
    outline: none;
}

.cursor-pointer {
    cursor: pointer;
}


/* 头部导航区域样式 */
.header-wrapper {
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 999;
}

.top-nav {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo样式 */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    max-height: 58px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background-color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    font-weight: bold;
    margin-right: 12px;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: var(--gray-600);
}

/* 主导航菜单 */
.main-nav {
    display: flex;
    list-style: none;
    margin-left: 60px;
    padding: 0; /* 确保没有默认内边距 */
}

.main-nav li {
    margin: 0 20px;
    position: relative;
}

.main-nav li a {
    text-decoration: none;
    color: #666; /* 使用具体颜色值测试，替代变量 */
    font-size: 16px;
    font-weight: 500;
    padding: 35px 0;
    display: inline-block;
    position: relative;
}

/* 激活状态 - 直接针对li.active */
.main-nav li.active a {
    color: #2c3e50; /* 使用具体颜色值测试 */
}

/* 悬停状态 */
.main-nav li a:hover {
    color: #2c3e50;
}

/* 下划线效果 */
.main-nav li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: #2c3e50; /* 使用具体颜色值 */
    border-radius: 3px 3px 0 0;
    transition: width 0.3s ease;
}

/* 激活状态下划线 */
.main-nav li.active a::after {
    width: 100%;
}

/* 悬停状态下划线 */
.main-nav li a:hover::after {
    width: 100%;
}

/* 右侧功能区 */
.right-controls {
    display: flex;
    align-items: center;
}


/* 搜索功能 */
.search-btn {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray-500);
    transition: all 0.3s ease;
    margin-right: 15px;
}

.search-btn:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

.search-icon {
    width: 20px;
    height: 20px;
    position: relative;
}

.search-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.search-icon::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 8px;
    height: 2px;
    background-color: currentColor;
    transform: rotate(45deg);
}

/* 搜索弹出框 */
.search-popup {
    position: absolute;
    top: 90px;
    right: 40px;
    width: 380px;
    background-color: var(--white);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 20px;
    transform-origin: top right;
    transform: scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1000;
}

.search-popup.active {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

.search-input-container {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 20px 12px 40px;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(51, 77, 97, 0.2);
}

.search-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.search-submit {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-submit:hover {
    background-color: var(--primary-dark);
}

/* 用户菜单 */
.user-menu {
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.user-avatar:hover {
    background-color: var(--primary-light);
    color: var(--primary);
    border-color: rgba(51, 77, 97, 0.2);
}

.user-icon {
    width: 20px;
    height: 20px;
    position: relative;
}

.user-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: currentColor;
}

.user-icon::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 12px;
    border: 2px solid currentColor;
    border-radius: 50% 50% 0 0;
    border-bottom: none;
}

/* 用户下拉菜单 */
.user-dropdown {
    position: absolute;
    top: 40px;
    right: 0;
    width: 280px;
    background-color: var(--white);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 15px 0;
    transform-origin: top right;
    transform: scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-menu:hover .user-dropdown {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

.dropdown-header {
    padding: 0 20px 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--gray-100);
}

.dropdown-header p {
    font-size: 14px;
    color: var(--gray-400);
}

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 20px 15px;
    border-bottom: 1px solid var(--gray-100);
}

.auth-btn {
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.login-btn {
    background-color: var(--primary-light);
    color: var(--primary);
}

.login-btn:hover {
    background-color: #e6eaef;
}

.register-btn {
    background-color: var(--primary);
    color: white;
}

.register-btn:hover {
    background-color: var(--primary-dark);
}

.third-party-login {
    padding: 15px 20px;
}

.third-party-title {
    font-size: 13px;
    color: var(--gray-400);
    margin-bottom: 10px;
    text-align: center;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wechat-btn {
    background-color: var(--success);
    color: white;
}

.qq-btn {
    background-color: #12B7F5;
    color: white;
}

.weibo-btn {
    background-color: var(--danger);
    color: white;
}

.social-btn:hover {
    transform: translateY(-2px);
}


/* 二级菜单区域 */
.secondary-nav {
    background-color: var(--white);
    border-top: 1px solid var(--gray-100);
    position: static;
    top: auto;
    z-index: auto;
    box-shadow: none;
}

.secondary-nav-inner {
    padding: 25px 0;
}

.nav-modules {
    display: flex;
    justify-content: space-between;
}

.nav-module {
    display: flex;
    flex: 1;
}

/* 分组图标和标题 */
.module-icon-container {
    width: 58px;
    text-align: center;
    margin-right: 20px;
}

.module-big-icon {
    width: 58px;
    height: 58px;
    background-color: var(--primary-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 28px;
    margin-bottom: 8px;
}

.module-title {
    font-size: 14px;
    color: var(--gray-600);
    font-weight: 500;
}

/* 二级菜单样式 */
.module-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    padding-top: 8px;
}

.module-menu a {
    text-decoration: none;
    color: var(--gray-500);text-align: center;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 6px 10px;
    border-radius: 4px;
}

.module-menu a:hover {
    color: var(--primary);
    background-color: var(--primary-light);
}

/* 菜单布局调整 */
.module-first .module-menu {
    max-width: 280px;
}

.module-first .module-menu a,
.module-third .module-menu a {
    width: calc(50% - 10px);
}

.module-second {
    margin: 0 40px;
}

.module-second .module-menu {
    max-width: 420px;
}

.module-second .module-menu a {
    width: calc(33.333% - 13.333px);
}


/* 资讯列表页面特有样式 */
.news-page-title {
    font-size: 24px;
    color: var(--gray-600);
    font-weight: 600;
    margin: 30px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-100);
}

/* 分类筛选区 */
.filter-section {
    background-color: var(--white);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.filter-title {
    font-size: 16px;
    color: var(--gray-600);
    font-weight: 500;
    margin-bottom: 15px;
}

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

.filter-tag {
    padding: 6px 15px;
    background-color: #f5f7fa;
    color: var(--gray-500);
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tag:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

.filter-tag.active {
    background-color: var(--primary);
    color: var(--white);
}

/* 主内容区布局 - 左右结构 */
.news-main {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
}

/* 左侧：资讯列表区 */
.news-left {
    flex: 3;
}

/* 资讯列表样式 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    background-color: var(--white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.news-title {
    font-size: 18px;
    color: var(--gray-600);
    font-weight: 600;
    margin-bottom: 10px;
    transition: color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

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

.news-meta {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--gray-400);
}

.news-date {
    display: flex;
    align-items: center;
}

.date-icon {
    margin-right: 5px;
}

.news-category {
    margin: 0 15px;
    padding: 2px 8px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 4px;
    font-size: 12px;
}

.news-views {
    display: flex;
    align-items: center;
}

.views-icon {
    margin-right: 5px;
}

.news-summary {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px dashed var(--gray-100);
}

.read-more {
    color: var(--primary);
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--primary-dark);
}

.read-more-icon {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover .read-more-icon {
    transform: translateX(3px);
}

.news-share {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f5f7fa;
    border: none;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}


/* 文库列表页面特有样式 */
.library-page-title {
    font-size: 24px;
    color: var(--gray-600);
    font-weight: 600;
    margin: 10px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-100);
}

/* 文库主内容区布局 */
.library-main {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
}

/* 左侧：文库列表区 */
.library-left {
    flex: 3;
}

/* 文库分类标题 */
.category-title {
    font-size: 18px;
    color: var(--gray-600);
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.category-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background-color: var(--primary);
    border-radius: 2px;
    margin-right: 10px;
}

/* 文库网格布局 */
.library-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* 文档卡片样式 */
.document-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.document-cover {
    height: 260px;
    position: relative;
    overflow: hidden;
    background-color: #f5f7fa;
}

.document-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.document-card:hover .document-cover img {
    transform: scale(1.05);
}

/* 文档格式标签 */
.document-format {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0,0,0,0.7);
    color: var(--white);
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 10;
}

/* 文档状态和查看数 */
.document-status-bar {
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray-100);
}

.document-status {
    font-size: 13px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 4px;
}

.status-vip {
    background-color: #FFF2E8;
    color: #E67700;
}

.status-free {
    background-color: #E8F7ED;
    color: var(--success);
}

.document-views {
    font-size: 13px;
    color: var(--gray-400);
    display: flex;
    align-items: center;
}

.views-icon {
    margin-right: 5px;
    font-size: 14px;
}

/* 文档标题 */
.document-title {
    padding: 15px;
    font-size: 16px;
    color: var(--gray-600);
    font-weight: 500;
    line-height: 1.4;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* 问答页面特有样式 */
.main-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 20px;
}

.page-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .page-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .page-title {
        margin-bottom: 0;
    }
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 16px;
}

.primary-btn {
    background-color: var(--primary);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    border: none;
    font-weight: 500;
    cursor: pointer;
}

.primary-btn:hover {
    background-color: var(--primary-dark);
}

.icon-pencil {
    margin-right: 8px;
}

/* 问答筛选区 */
.filter-container {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    padding: 16px;
    margin-bottom: 24px;
}

/* 内容布局 - 左右结构 */
.content-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 1024px) {
    .content-grid {
        flex-direction: row;
    }
}

/* 左侧：问答列表 */
.questions-list {
    width: 100%;
}

@media (min-width: 1024px) {
    .questions-list {
        width: 100%;
    }
}

/* 问答项 */
.question-item {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.question-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.question-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 768px) {
    .question-content {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
}

.question-main {
    flex: 1;
    min-width: 0;
}

.question-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 8px;
    transition: color 0.3s ease;
    text-decoration: none;
}

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

.question-desc {
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.question-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.question-tag {
    background-color: var(--primary-light);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 4px;
}

.question-time {
    color: var(--gray-400);
    margin-left: auto;
}

.question-author {
    color: var(--gray-500);
}

.question-status {
    display: flex;
    align-items: center;
    gap: 16px;
    white-space: nowrap;
}

.status-badge {
    padding: 3px 12px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
}

.status-solved {
    background-color: rgba(7, 193, 96, 0.05);
    color: var(--success);
}

.status-unsolved {
    background-color: rgba(255, 125, 0, 0.05);
    color: var(--warning);
}

.status-closed {
    background-color: var(--gray-100);
    color: var(--gray-400);
}

.question-reward {
    color: var(--danger);
    font-weight: 600;
}

.question-views {
    color: var(--gray-400);
    font-size: 14px;
    display: flex;
    align-items: center;
}

.icon-eye {
    margin-right: 4px;
}


/* 文章内容页特有样式 */
.article-page-title {
    font-size: 24px;
    color: var(--gray-600);
    font-weight: 600;
    margin: 30px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-100);
}

/* 主内容区布局 - 左右结构 */
.article-main {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
}

/* 左侧：文章内容区 */
.article-left {
    flex: 3;
}

/* 文章容器 */
.article-container {
    background-color: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

/* 文章标题区 */
.article-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-100);
}

.article-title {
    font-size: 28px;
    color: var(--gray-600);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: var(--gray-400);
}

.meta-item {
    display: flex;
    align-items: center;
}

.meta-icon {
    margin-right: 6px;
}

.article-category {
    color: var(--primary);
    font-weight: 500;
}

/* 文章内容样式 */
.article-content {
    font-size: 16px;
    color: var(--gray-500);
    line-height: 1.8;
}

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

.article-content h2 {
    font-size: 22px;
    color: var(--gray-600);
    font-weight: 600;
    margin: 30px 0 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-100);
}

.article-content h3 {
    font-size: 19px;
    color: var(--gray-600);
    font-weight: 600;
    margin: 25px 0 12px;
}

.article-content strong {
    color: var(--gray-600);
    font-weight: 600;
}

.article-content ul, .article-content ol {
    margin: 0 0 20px 25px;
}

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

.article-image {
    margin: 25px auto;
    text-align: center;
}

.article-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.image-caption {
    font-size: 14px;
    color: var(--gray-400);
    margin-top: 8px;
}

.quote-block {
    border-left: 4px solid var(--primary);
    padding: 15px 20px;
    background-color: var(--primary-light);
    margin: 20px 0;
    border-radius: 0 6px 6px 0;
}

.quote-block p {
    margin-bottom: 0;
    color: var(--primary);
    font-style: italic;
}

/* 文章标签 */
.article-tags {
    margin: 30px 0;
    padding: 15px 0;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}

.tags-title {
    font-size: 16px;
    color: var(--gray-600);
    font-weight: 500;
    margin-bottom: 10px;
}

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

.tag-item {
    padding: 5px 12px;
    background-color: #f5f7fa;
    color: var(--gray-500);
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

/* 文章操作区 */
.article-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.action-buttons {
    display: flex;
    gap: 15px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    background-color: #f5f7fa;
    color: var(--gray-500);
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f5f7fa;
    border: none;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background-color: var(--primary);
    color: white;
}

/* 作者信息 */
.author-info {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: #f9fbff;
    border-radius: 8px;
    margin-bottom: 30px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin-right: 15px;
}

.author-details {
    flex-grow: 1;
}

.author-name {
    font-size: 18px;
    color: var(--gray-600);
    font-weight: 600;
    margin-bottom: 5px;
}

.author-title {
    font-size: 14px;
    color: var(--gray-400);
    margin-bottom: 8px;
}

.author-bio {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.5;
}

.follow-btn {
    padding: 8px 16px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.follow-btn:hover {
    background-color: var(--primary-dark);
}

/* 相关文章推荐 */
.related-articles {
    background-color: var(--white);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.related-title {
    font-size: 18px;
    color: var(--gray-600);
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.related-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background-color: var(--primary);
    border-radius: 2px;
    margin-right: 10px;
}

.related-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.related-item {
    display: flex;
    gap: 15px;
    transition: transform 0.3s ease;
}

.related-item:hover {
    transform: translateY(-3px);
}

.related-image {
    width: 100px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-item:hover .related-image img {
    transform: scale(1.1);
}

.related-info {
    flex-grow: 1;
}

.related-article-title {
    font-size: 16px;
    color: var(--gray-600);
    font-weight: 500;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.related-date {
    font-size: 13px;
    color: var(--gray-400);
}

/* 评论区样式 */
.comments-section {
    background-color: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 60px;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-100);
}

.comments-title {
    font-size: 20px;
    color: var(--gray-600);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.comments-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background-color: var(--primary);
    border-radius: 2px;
    margin-right: 10px;
}

.comments-count {
    color: var(--gray-400);
    margin-left: 10px;
    font-weight: normal;
    font-size: 16px;
}

.comments-sort {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.sort-label {
    color: var(--gray-400);
    margin-right: 10px;
}

.sort-select {
    padding: 5px 10px;
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    background-color: var(--white);
    color: var(--gray-500);
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s ease;
}

.sort-select:focus {
    border-color: var(--primary);
}

/* 评论输入框 */
.comment-input-section {
    margin-bottom: 30px;
}

.comment-input-container {
    display: flex;
    gap: 15px;
}

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
}

.comment-input-wrapper {
    flex-grow: 1;
}

.login-prompt {
    padding: 15px;
    background-color: #f9fafb;
    border-radius: 6px;
    border: 1px solid var(--gray-100);
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--gray-400);
    display: flex;
    align-items: center;
}

.login-prompt a {
    color: var(--primary);
    text-decoration: none;
    margin-left: 5px;
}

.login-prompt a:hover {
    text-decoration: underline;
}

.comment-textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    font-size: 14px;
    resize: vertical;
    outline: none;
    transition: all 0.3s ease;
    line-height: 1.6;
}

.comment-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(51, 77, 97, 0.2);
}

.comment-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.comment-tools {
    display: flex;
    gap: 15px;
}

.comment-tool {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

.submit-comment {
    padding: 8px 20px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-comment:hover {
    background-color: var(--primary-dark);
}

.submit-comment:disabled {
    background-color: var(--gray-400);
    cursor: not-allowed;
}

/* 评论列表 */
.comments-list {
    margin-bottom: 30px;
}

.comment-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-100);
}

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

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
}

.author-name {
    font-size: 15px;
    color: var(--gray-600);
    font-weight: 500;
}

.comment-time {
    font-size: 13px;
    color: var(--gray-400);
    margin-top: 2px;
}

.comment-actions {
    display: flex;
    gap: 15px;
}

.comment-action {
    color: var(--gray-400);
    font-size: 13px;
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.comment-content {
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 10px;
}


/* 右侧：各功能模块（通用） */
.news-right, .library-right, .article-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* 右侧模块通用样式 */
.right-module {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden;
}

.module-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.module-heading {
    font-size: 16px;
    color: var(--gray-600);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.module-heading::before {
    content: '';
    width: 4px;
    height: 16px;
    background-color: var(--primary);
    border-radius: 2px;
    margin-right: 8px;
}

.module-more {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
}

.module-more:hover {
    text-decoration: underline;
}

.module-content {
    padding: 15px 20px;
}

/* 热门资讯/文章排行 */
.hot-news-list, .hot-articles-list {
    list-style: none;
}

.hot-news-item, .hot-article-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
    transition: all 0.3s ease;
}

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

.hot-news-item:hover, .hot-article-item:hover {
    background-color: #f9fbff;
    padding-left: 5px;
}

.hot-news-link, .hot-article-link {
    text-decoration: none;
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.hot-news-link:hover, .hot-article-link:hover {
    color: var(--primary);
}

.hot-article-item {
    display: flex;
    align-items: center;
}

.hot-article-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.hot-article-item:nth-child(1) .hot-article-number {
    background-color: var(--danger);
    color: var(--white);
}

.hot-article-item:nth-child(2) .hot-article-number {
    background-color: #12B7F5;
    color: var(--white);
}

.hot-article-item:nth-child(3) .hot-article-number {
    background-color: var(--success);
    color: var(--white);
}

/* 资讯分类导航 */
.category-list {
    list-style: none;
}

.category-item {
    margin-bottom: 8px;
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--gray-500);
    font-size: 14px;
    transition: all 0.3s ease;
}

.category-link:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

.category-count {
    background-color: #f5f7fa;
    color: var(--gray-400);
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
}

/* 最新活动公告 */
.event-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-100);
}

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

.event-date {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.event-title {
    font-size: 14px;
    color: var(--gray-600);
    font-weight: 500;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

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

.event-desc {
    font-size: 13px;
    color: var(--gray-400);
    line-height: 1.5;
}

/* 订阅区域 */
.subscribe-module {
    background-color: var(--primary-light);
    border-radius: 8px;
    overflow: hidden;
}

.subscribe-banner {
    background-color: var(--primary);
    color: white;
    padding: 20px;
    text-align: center;
}

.subscribe-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.subscribe-subtitle {
    font-size: 14px;
    opacity: 0.9;
}

.subscribe-content {
    padding: 20px;
}

.subscribe-desc {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 15px;
    line-height: 1.6;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.subscribe-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.subscribe-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(51, 77, 97, 0.2);
}

.subscribe-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscribe-btn:hover {
    background-color: var(--primary-dark);
}

/* 上传文档区域 */
.upload-section {margin:15px 0;
    background-color: var(--white);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: center;
}

.upload-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 28px;
    margin: 0 auto 15px;
}

.upload-title {
    font-size: 18px;
    color: var(--gray-600);
    font-weight: 500;
    margin-bottom: 10px;
}

.upload-desc {
    font-size: 14px;
    color: var(--gray-400);
    margin-bottom: 20px;
    line-height: 1.6;
}

.upload-btn {
    width: 100%;
    padding: 13px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* 热门文档排行榜 */
.ranking-section {
    background-color: var(--white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    flex-grow: 1;
}

.ranking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-100);
}

.ranking-title {
    font-size: 16px;
    color: var(--gray-600);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.ranking-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background-color: var(--danger);
    border-radius: 2px;
    margin-right: 8px;
}

.ranking-more {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
}

.ranking-more:hover {
    text-decoration: underline;
}

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

.ranking-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
    transition: background-color 0.3s ease;
}

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

.ranking-item:hover {
    background-color: #f9fbff;
}

.ranking-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.ranking-item:nth-child(1) .ranking-number {
    background-color: var(--danger);
    color: var(--white);
}

.ranking-item:nth-child(2) .ranking-number {
    background-color: #12B7F5;
    color: var(--white);
}

.ranking-item:nth-child(3) .ranking-number {
    background-color: var(--success);
    color: var(--white);
}

.ranking-info {
    flex-grow: 1;
}

.ranking-doc-title {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.4;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ranking-meta {
    font-size: 12px;
    color: var(--gray-400);
    display: flex;
    justify-content: space-between;
}

.ranking-category {
    color: var(--primary);
    font-weight: 500;
}

/* 文章目录 */
.toc-list {
    list-style: none;
}

.toc-item {
    margin-bottom: 10px;
}

.toc-level-1 {
    font-weight: 500;
}

.toc-level-2 {
    padding-left: 15px;
    font-size: 13px;
}

.toc-link {
    color: var(--gray-500);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 0;
}

.toc-link:hover {
    color: var(--primary);
    padding-left: 3px;
}

.toc-link.active {
    color: var(--primary);
    font-weight: 600;
}

/* 下载模块 */
.download-module {
    background-color: var(--primary-light);
}

.download-header {
    background-color: var(--primary);
    color: white;
    padding: 15px 20px;
}

.download-title {
    font-size: 16px;
    font-weight: 600;
}

.download-content {
    padding: 20px;
}

.download-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background-color: white;
    border-radius: 6px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.download-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.file-icon {
    width: 40px;
    height: 40px;
    background-color: #f5f7fa;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
    margin-right: 12px;
}

.file-info {
    flex-grow: 1;
}

.file-name {
    font-size: 14px;
    color: var(--gray-600);
    font-weight: 500;
    margin-bottom: 3px;
}

.file-meta {
    font-size: 12px;
    color: var(--gray-400);
}

.download-btn {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    background-color: var(--primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.download-btn:hover {
    background-color: var(--primary-dark);
}

/* 评论分页 */
.comments-pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination-list {
    display: flex;
    list-style: none;
    gap: 5px;
}

.pagination-item {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-link {
    color: var(--gray-500);
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-item:hover {
    background-color: var(--primary-light);
}

.pagination-item.active {
    background-color: var(--primary);
}

.pagination-item.active .pagination-link {
    color: white;
}

.pagination-item.disabled {
    color: var(--gray-300);
    cursor: not-allowed;
}

.pagination-item.disabled:hover {
    background-color: transparent;
}

/* 问答页右侧功能模块 */
.sidebar {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 1024px) {
    .sidebar {
        width: 33.333%;
    }
}

/* 快速提问 */
.quick-question {
    background-color: var(--primary-light);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(51, 77, 97, 0.2);
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.icon-fire {
    color: var(--warning);
    margin-right: 8px;
}

.icon-th-list {
    color: var(--primary);
    margin-right: 8px;
}

.icon-trophy {
    color: var(--danger);
    margin-right: 8px;
}

.question-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(51, 77, 97, 0.2);
}

.form-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    appearance: none;
    background-color: var(--white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234E5969' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(51, 77, 97, 0.2);
}

.submit-btn {
    width: 100%;
    background-color: var(--primary);
    color: var(--white);
    padding: 10px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.submit-btn:hover {
    background-color: var(--primary-dark);
}

/* 热门问答 */
.sidebar-module {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

/* 悬赏排行榜 */
.reward-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.reward-item {
    display: flex;
}

.reward-rank {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    margin-top: 2px;
}

.rank-1 {
    background-color: rgba(250, 204, 21, 0.1);
    color: #D97706;
}

.rank-2 {
    background-color: var(--gray-200);
    color: var(--gray-600);
}

.rank-3 {
    background-color: rgba(255, 125, 0, 0.2);
    color: #C2410C;
}

.reward-content {
    margin-left: 12px;
}

.reward-title {
    font-size: 14px;
    color: var(--gray-600);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.reward-amount {
    font-size: 12px;
    color: var(--danger);
    font-weight: 500;
    margin-top: 4px;
}

.hot-questions {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hot-question-item {
    display: flex;
    align-items: flex-start;
}

.question-rank {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(255, 125, 0, 0.1);
    color: var(--warning);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    margin-top: 2px;
}

.question-rank:not(:first-child) {
    background-color: var(--gray-100);
    color: var(--gray-400);
}

.hot-question-link {
    margin-left: 12px;
    font-size: 14px;
    color: var(--gray-600);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hot-question-link:hover {
    color: var(--primary);
}

.more-link {
    color: var(--primary);
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    margin-top: 16px;
}

.icon-angle-right {
    margin-left: 4px;
}

/* 分页控件（通用） */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
}

.pagination-btn {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid var(--gray-200);
    background-color: var(--white);
    color: var(--gray-500);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-btn.active {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn.disabled:hover {
    border-color: var(--gray-200);
    color: var(--gray-500);
}

/* 分页导航 */
.pagination-nav {
    display: inline-flex;
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
}

.pagination-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid var(--gray-200);
    background-color: var(--white);
    color: var(--gray-500);
    font-size: 14px;
    text-decoration: none;
}

.pagination-link:first-child {
    border-radius: 6px 0 0 6px;
}

.pagination-link:last-child {
    border-radius: 0 6px 6px 0;
}

.pagination-link:hover {
    background-color: var(--gray-50);
}

.pagination-link.active {
    z-index: 10;
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.icon-chevron-left {
    font-size: 12px;
}

.icon-chevron-right {
    font-size: 12px;
}

/* 底部样式 */
.footer-wrapper {
    background-color: var(--gray-600);
    color: #C9CDD4;
    margin-top: 60px;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-left {
    flex: 0 0 280px;
    margin-right: 40px;
}

.footer-logo {
    margin-bottom: 15px;
    display: inline-flex;
}
.footer-logo img{height:80px;}

.footer-logo .logo-text {
    color: var(--white);
}

.footer-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-400);
}

.footer-middle {
    display: flex;
    flex: 1;
    min-width: 450px;
    justify-content: space-between;
    gap: 30px;
}

.footer-nav-group {
    flex: 1;
    min-width: 120px;
}

.nav-title {
    color: var(--white);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 18px;
}

.footer-nav {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: var(--gray-400);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--white);
}

.footer-right {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qrcode-title {
    color: var(--white);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
    text-align: center;
}

.qrcode-container {
    display: flex;
    gap: 25px;
}

.qrcode-item {
    text-align: center;
}

.qrcode-item img {
    width: 120px;
    height: 120px;
    background-color: var(--white);
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.qrcode-desc {
    font-size: 14px;
    color: #C9CDD4;
}

.copyright {
    margin-top: 25px;
    text-align: center;
    font-size: 12px;
    color: var(--gray-400);
    line-height: 1.8;
}


/* 响应式调整补充 */
@media (max-width: 1200px) {
    .library-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .news-main {
        flex-direction: column;
    }
    
    .news-right {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .article-main {
        flex-direction: column;
    }
    
    .related-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .library-main {
        flex-direction: column;
    }
    
    .library-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-right {
        grid-template-columns: 1fr;
    }
    
    .footer-middle {
        flex-wrap: wrap;
    }
    
    .footer-nav-group {
        flex: 0 0 45%;
        margin-bottom: 30px;
    }
    
    .qrcode-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .library-grid {
        grid-template-columns: 1fr;
    }
    
    .main-nav {
        display: none;
    }

    .nav-modules {
        flex-direction: column;
        gap: 30px;
    }
    
    .module-second {
        margin: 0;
    }
    
    .comment-input-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .comments-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

