: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;
}

/* 通用工具类 */
.container1 {
    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-3xl { font-size: 1.875rem; }

.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); }

.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 {
    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;
}

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

.main-nav a {
    text-decoration: none;
    color: var(--gray-500);
    font-size: 16px;
    font-weight: 500;
    padding: 35px 0;
    display: inline-block;
    transition: color 0.3s ease;
    position: relative;
}

.main-nav a:hover, .main-nav a.active { color: var(--primary); }

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px 3px 0 0;
    transition: width 0.3s ease;
}

.main-nav a:hover::after, .main-nav a.active::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-container1 { 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-container1 {
    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, .module-menu a.active {
    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); }


/* 文档内容页特有样式 */
.document-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);
}

.document-main {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
}

.document-left { flex: 3; }

/* 文档标题和封面容器 */
.document-header {
    background-color: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.document-cover-container1 {
    display: flex;
    margin-bottom: 25px;
    gap: 30px;
}

.document-cover {
    width: 200px;
    height: 280px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

.document-info { flex: 1; }

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

.document-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--gray-400);
}

.document-category {
    display: inline-block;
    padding: 4px 10px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

.document-description {
    font-size: 16px;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-100);
}

.document-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    color: var(--gray-500);
    font-size: 14px;
}

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

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

.document-btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
}

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

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

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

.preview-btn:hover {
    background-color: #e6eaef;
    transform: translateY(-2px);
}

.collect-btn {
    background-color: #f5f7fa;
    color: var(--gray-500);
}

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

/* 文档内容预览 */
.document-content {
    background-color: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

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

.content-title {
    font-size: 20px;
    color: var(--gray-600);
    font-weight: 600;
}

.content-tabs {
    display: flex;
    gap: 15px;
}

.content-tab {
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.content-tab.active {
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 500;
}

.preview-container1 {
    background-color: #f9f9f9;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--gray-100);
}

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

.page-indicator {
    font-size: 14px;
    color: var(--gray-400);
}

.preview-actions {
    display: flex;
    gap: 10px;
}

.preview-action {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background-color: white;
    border: 1px solid var(--gray-200);
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.document-preview {
    min-height: 400px;
    background-color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) inset;
}

.preview-placeholder {
    font-size: 36px;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.preview-text {
    font-size: 16px;
    color: var(--gray-400);
    text-align: center;
    max-width: 600px;
}

/* 文档详情信息 */
.document-details {
    background-color: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.details-section {
    margin-bottom: 25px;
}

.details-title {
    font-size: 18px;
    color: var(--gray-600);
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-100);
}

.details-table {
    width: 100%;
    border-collapse: collapse;
}

.details-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--gray-100);
}

.details-table tr:last-child td {
    border-bottom: none;
}

.details-label {
    width: 120px;
    color: var(--gray-400);
    font-weight: 500;
}

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

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

.related-title {
    font-size: 20px;
    color: var(--gray-600);
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-100);
}

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

.related-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gray-100);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.related-cover {
    height: 140px;
    background-color: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 32px;
}

.related-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.related-name {
    font-size: 16px;
    font-size: 16px;
    color: var(--gray-600);
    font-weight: 500;
    margin-bottom: 8px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

/* 评论区样式 */
.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-container1 {
    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;
}


/* 右侧：各功能模块 */
.document-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;
}

/* 下载模块 */
.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 {
   
    background-color: var(--primary);
    padding: 12px 24px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  border: none
}

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

/* 上传者信息 */
.uploader-info {
    padding: 20px;
}

.uploader-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

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

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

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

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

.uploader-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-100);
}

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

.stat-value {
    font-size: 18px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 3px;
}

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

.uploader-actions {
    display: flex;
    gap: 10px;
}

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

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

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

.message-btn {
    background-color: #f5f7fa;
    color: var(--gray-500);
}

.message-btn:hover {
    background-color: var(--gray-200);
}

/* 热门文档排行榜 */
.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;max-height:770px;
}

.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;
}

/* 评论分页 */
.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;
}

/* 分页控件 */
.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);
}

/* 底部样式 */
.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-container1 {
    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) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .document-main {
        flex-direction: column;
    }
}

@media (max-width: 992px) {
    .document-cover-container1 {
        flex-direction: column;
        align-items: center;
    }
    
    .document-cover {
        width: 100%;
        max-width: 200px;
    }
    
    .document-actions {
        justify-content: center;
    }
}

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

    .nav-modules {
        flex-direction: column;
        gap: 30px;
    }
    
    .module-second {
        margin: 0;
    }
    
    .comment-input-container1 {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .comments-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
: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;
}

/* 通用工具类 */
.container1 {
    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-3xl { font-size: 1.875rem; }

.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); }

.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 {
    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;
}

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

.main-nav a {
    text-decoration: none;
    color: var(--gray-500);
    font-size: 16px;
    font-weight: 500;
    padding: 35px 0;
    display: inline-block;
    transition: color 0.3s ease;
    position: relative;
}

.main-nav a:hover, .main-nav a.active { color: var(--primary); }

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px 3px 0 0;
    transition: width 0.3s ease;
}

.main-nav a:hover::after, .main-nav a.active::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-container1 { 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-container1 {
    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);
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 6px 10px;
    border-radius: 4px;
}

.module-menu a:hover, .module-menu a.active {
    color: var(--primary);
    background-color: var(--primary-light);
}
/* 主导航菜单 */
.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%;
}

.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); }


/* 文档内容页特有样式 */
.document-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);
}

.document-main {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
}

.document-left { flex: 3; }

/* 文档标题和封面容器 */
.document-header {
    background-color: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.document-cover-container1 {
    display: flex;
    margin-bottom: 25px;
    gap: 30px;
}

.document-cover {
    width: 200px;
    height: 280px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

.document-info { flex: 1; }

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

.document-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--gray-400);
}

.document-category {
    display: inline-block;
    padding: 4px 10px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

.document-description {
    font-size: 16px;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-100);
}

.document-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    color: var(--gray-500);
    font-size: 14px;
}

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

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

.document-btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
}

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

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

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

.preview-btn:hover {
    background-color: #e6eaef;
    transform: translateY(-2px);
}

.collect-btn {
    background-color: #f5f7fa;
    color: var(--gray-500);
}

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

/* 文档内容预览 */
.document-content {
    background-color: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

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

.content-title {
    font-size: 20px;
    color: var(--gray-600);
    font-weight: 600;
}

.content-tabs {
    display: flex;
    gap: 15px;
}

.content-tab {
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.content-tab.active {
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 500;
}

.preview-container1 {
    background-color: #f9f9f9;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--gray-100);
}

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

.page-indicator {
    font-size: 14px;
    color: var(--gray-400);
}

.preview-actions {
    display: flex;
    gap: 10px;
}

.preview-action {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background-color: white;
    border: 1px solid var(--gray-200);
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.document-preview {
    min-height: 400px;
    background-color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) inset;
}

.preview-placeholder {
    font-size: 36px;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.preview-text {
    font-size: 16px;
    color: var(--gray-400);
    text-align: center;
    max-width: 600px;
}

/* 文档详情信息 */
.document-details {
    background-color: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.details-section {
    margin-bottom: 25px;
}

.details-title {
    font-size: 18px;
    color: var(--gray-600);
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-100);
}

.details-table {
    width: 100%;
    border-collapse: collapse;
}

.details-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--gray-100);
}

.details-table tr:last-child td {
    border-bottom: none;
}

.details-label {
    width: 120px;
    color: var(--gray-400);
    font-weight: 500;
}

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

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

.related-title {
    font-size: 20px;
    color: var(--gray-600);
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-100);
}

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

.related-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gray-100);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.related-cover {
    height: 160px;
    background-color: #f5f7fa;
    display: flex;overflow: hidden;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 32px;
}

.related-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.related-name {
    font-size: 16px;
    font-size: 16px;
    color: var(--gray-600);
    font-weight: 500;
    margin-bottom: 8px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

/* 评论区样式 */
.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-container1 {
    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;
}


/* 右侧：各功能模块 */
.document-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;
}

/* 下载模块 */
.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 {
 
    background-color: var(--primary);
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  border: none
}

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

/* 上传者信息 */
.uploader-info {
    padding: 20px;
}

.uploader-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

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

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

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

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

.uploader-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-100);
}

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

.stat-value {
    font-size: 18px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 3px;
}

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

.uploader-actions {
    display: flex;
    gap: 10px;
}

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

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

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

.message-btn {
    background-color: #f5f7fa;
    color: var(--gray-500);
}

.message-btn:hover {
    background-color: var(--gray-200);
}

/* 热门文档排行榜 */
.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;
}

/* 评论分页 */
.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;
}

/* 分页控件 */
.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);
}

/* 底部样式 */
.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-container1 {
    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) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .document-main {
        flex-direction: column;
    }
}

@media (max-width: 992px) {
    .document-cover-container1 {
        flex-direction: column;
        align-items: center;
    }
    
    .document-cover {
        width: 100%;
        max-width: 200px;
    }
    
    .document-actions {
        justify-content: center;
    }
}

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

    .nav-modules {
        flex-direction: column;
        gap: 30px;
    }
    
    .module-second {
        margin: 0;
    }
    
    .comment-input-container1 {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .comments-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
 /* 问答模块样式增强 */
        .qa-section .qa-list.active {
            display: block !important;
            animation: fadeIn 0.3s ease;
        }

        .qa-section .qa-list {
            display: none !important;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(5px); }
            to { opacity: 1; transform: translateY(0); }
        }

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

        .qa-item1 {
            background-color: #f9fbff;
            border-radius: 8px;
            padding: 18px;min-width: 270px;
            transition: all 0.3s ease;
            border: 1px solid transparent;
        }

        .qa-item1:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 15px rgba(0,0,0,0.06);
            border-color: #e6f1f8;
        }

        .status-tag {
            display: inline-block;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 500;
            margin-bottom: 8px;
        }
        .status-tag.unsolved { background-color: #1F2D3D; color: #fff; }
        .status-tag.solved   { background-color: #00B050; color: #fff; }
        .status-tag.closed   { background-color: #FF9900; color: #fff; }

        .qa-title {
            font-size: 14px;
            color: #1D2129;
            font-weight: 500;
            margin-bottom: 10px;
            line-height: 1.4;
            height: 44px;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }

        .qa-meta {
            font-size: 12px;
            color: #86909C;
            display: flex;
            justify-content: space-between;
        }
        .category { color: #334d61; font-weight: 500; }

        @media (max-width: 1200px) {
            .qa-grid { grid-template-columns: repeat(3, 1fr); }
        }
        @media (max-width: 768px) {
            .qa-grid { grid-template-columns: repeat(2, 1fr); }
        }