/*
Theme Name: K2
Theme URI: https://qinzhouyun.com/k2
Description: k2
Author:qinzhouyun
Author URI: https://qinzhouyun.com
Version: 1.0
Text Domain: k2
*/

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #1E293B;
    background-color: #F8FAFC;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Color variables */
:root {
    --primary: #2563EB;
    --secondary: #EFF6FF;
    --neutral: #64748B;
    --neutral-light: #F8FAFC;
    --neutral-dark: #1E293B;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Container */
.container {
    max-width: 1518px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 640px) {
    .container {
        padding: 0 24px;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 32px;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--neutral-dark);
    line-height: 1.25;
}

h1 {
    font-size: 1.5rem;
}

h2 {
    font-size: 1.25rem;
}

h3 {
    font-size: 1.125rem;
}

p {
    color: var(--neutral);
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-card);
}

.btn-primary:hover {
    background-color: #1D4ED8;
    box-shadow: var(--shadow-card-hover);
}

/* Forms */
input[type="text"],
input[type="search"],
select {
    width: 100%;
    padding: 8px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: white;
}

input[type="text"]:focus,
input[type="search"]:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
    border-color: var(--primary);
}

/* User page styles */
.user-page-container {
    padding: 32px 16px;
}

.user-page-content {
    max-width: 1200px;
    margin: 0 auto;
}

.user-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.user-sidebar {
    flex: 0 0 300px;
}

.user-main-content {
    flex: 1;
    min-width: 300px;
}

/* User avatar placeholder */
.user-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* User menu icon container */
.user-menu-icon-container {
    display: flex;
    align-items: center;
    flex: 1;
}

.user-menu-badge-container {
    display: flex;
    align-items: center;
}

/* Colored menu icons */
.user-menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
}

.user-menu-icon.blue {
    background-color: #EFF6FF;
    color: #3B82F6;
}

.user-menu-icon.red {
    background-color: #FEF2F2;
    color: #EF4444;
}

.user-menu-icon.purple {
    background-color: #F5F3FF;
    color: #8B5CF6;
}

.user-menu-icon.yellow {
    background-color: #FEF3C7;
    color: #F59E0B;
}

.user-menu-icon.green {
    background-color: #ECFDF5;
    color: #10B981;
}

.user-menu-icon.gray {
    background-color: #F3F4F6;
    color: #6B7280;
}

/* Profile actions */
.profile-actions {
    display: flex;
    align-items: center;
    margin-top: 24px;
    gap: 12px;
}

/* Help section margin */
.help-section {
    margin-bottom: 32px;
}

.help-section:last-child {
    margin-bottom: 0;
}

/* Form group margin */
.form-group {
    margin-bottom: 16px;
}

.form-group:last-child {
    margin-bottom: 0;
}

/* Settings section margin */
.settings-section {
    margin-bottom: 32px;
}

.settings-section:last-child {
    margin-bottom: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .user-layout {
        flex-direction: column;
    }
    
    .user-sidebar {
        flex: 1;
    }
    
    .user-main-content {
        flex: 1;
    }
    
    .profile-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .profile-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

.user-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    margin-bottom: 24px;
}

.user-card-header {
    background-color: #10B981;
    height: 96px;
}

.user-card-body {
    padding: 24px;
    margin-top: -48px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: white;
    padding: 4px;
    box-shadow: var(--shadow-card);
    margin-bottom: 16px;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-info {
    margin-bottom: 24px;
}

.user-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--neutral-dark);
    margin-bottom: 4px;
}

.user-email {
    font-size: 14px;
    color: var(--neutral);
}

.user-menu {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow-card);
    margin-bottom: 24px;
}

.user-menu a {
    text-decoration: none;
}

.user-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    transition: background-color 0.2s ease;
    border-bottom: none;
}

.user-menu-item a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.user-menu-item:hover {
    background-color: var(--gray-50);
}

.user-menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
}

.user-menu-text {
    flex: 1;
    color: var(--neutral-dark);
}

.user-menu-arrow {
    color: var(--gray-400);
}

.user-section {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow-card);
    margin-bottom: 24px;
}

.user-section-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-200);
}

.user-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--neutral-dark);
}

.user-section-body {
    padding: 32px 24px;
    text-align: center;
}

.user-section-empty {
    color: var(--neutral);
    font-size: 14px;
}

.user-logout {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow-card);
    margin-bottom: 24px;
}

.user-logout-button {
    display: block;
    width: 100%;
    padding: 16px 24px;
    text-align: center;
    color: var(--danger);
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.user-logout-button:hover {
    background-color: var(--gray-50);
}

/* User meta info */
.user-meta {
    display: flex;
    align-items: center;
}

.user-role {
    color: var(--primary);
    background-color: var(--secondary);
    padding: 2px 8px;
    border-radius: 12px;
}

.user-join-date {
    color: var(--neutral);
}

/* Notification badge */
.notification-badge {
    background-color: var(--danger);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 24px;
    text-align: center;
}

/* Section more link */
.user-section-more {
    color: var(--primary);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.user-section-more:hover {
    color: #1D4ED8;
}

/* Contribution stats */
.contribution-stats {
    display: flex;
    justify-content: space-around;
    padding: 16px 0;
}

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

.contribution-number {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary);
}

/* Comments styles */
.comments-area {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow-card);
    padding: 24px;
    margin-top: 32px;
}

.comments-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
}

.comments-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--neutral-dark);
    margin-bottom: 12px;
}

.comments-stats {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: var(--neutral);
}

.stats-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.comment-input-area {
    margin-bottom: 32px;
}

.comment-reply-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--neutral-dark);
    margin-bottom: 16px;
}

.comment-form {
    margin-bottom: 16px;
}

.comment-form-fields {
    margin-bottom: 16px;
}

.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
}

.comment-form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
    border-color: var(--primary);
}

.comment-tips {
    font-size: 14px;
    color: var(--neutral);
    padding: 12px;
    background-color: var(--gray-50);
    border-radius: 8px;
}

.tips-small {
    font-size: 12px;
    color: var(--gray-600);
    margin-top: 4px;
}

.comments-container {
    margin-bottom: 24px;
}

.comments-list-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--neutral-dark);
    margin-bottom: 16px;
}

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

.comment-item {
    padding: 16px;
    border-radius: 8px;
    background-color: var(--gray-50);
    margin-bottom: 16px;
    transition: background-color 0.2s ease;
}

.comment-item:hover {
    background-color: var(--gray-100);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-author img {
    border-radius: 50%;
    width: 48px;
    height: 48px;
}

.comment-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.comment-author-name {
    font-weight: 500;
    color: var(--neutral-dark);
}

.comment-time {
    font-size: 12px;
    color: var(--neutral);
}

.comment-content {
    margin-bottom: 12px;
    line-height: 1.5;
    color: var(--neutral-dark);
}

.comment-actions {
    display: flex;
    gap: 16px;
    font-size: 14px;
}

.comment-action {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--neutral);
    cursor: pointer;
    transition: color 0.2s ease;
}

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

.comment-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background-color: var(--gray-50);
    border-radius: 8px;
}

.comment-navigation a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.comment-navigation a:hover {
    color: #1D4ED8;
}

.no-comments {
    text-align: center;
    padding: 32px;
    color: var(--neutral);
    background-color: var(--gray-50);
    border-radius: 8px;
}

/* Responsive comments */
@media (max-width: 768px) {
    .comments-area {
        padding: 16px;
    }
    
    .comments-stats {
        flex-direction: column;
        gap: 8px;
    }
    
    .comment-actions {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .comment-navigation {
        flex-direction: column;
        gap: 12px;
    }
}

/* WeChat style comments */
.wechat-comments {
    background-color: white;
    padding: 16px;
    margin-top: 24px;
    border-radius: 8px;
}

.wechat-comments .comments-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.comment-input-area {
    margin-bottom: 24px;
}

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

.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    background-color: #f9f9f9;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #07C160;
    background-color: white;
}

.comment-submit-btn {
    align-self: flex-end;
    padding: 8px 16px;
    background-color: #07C160;
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.comment-submit-btn:hover {
    background-color: #05AE54;
}

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

.wechat-comment-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

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

.comment-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content-wrapper {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.comment-author {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.comment-time {
    font-size: 12px;
    color: #999;
}

.comment-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.comment-content {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    word-break: break-word;
}

.comment-actions {
    flex-shrink: 0;
    margin-top: 0;
}

/* 二级回复样式 */
.comment-child {
    margin-left: 30px;
    margin-top: 12px;
}

.comment-item-child {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 12px;
}

.comment-item-child .comment-avatar img {
    width: 32px;
    height: 32px;
}

.comment-item-child .comment-author {
    font-size: 13px;
}

.comment-item-child .comment-time {
    font-size: 11px;
}

.comment-item-child .comment-content {
    font-size: 13px;
}

.comment-item-child .comment-action {
    font-size: 11px;
}

.comment-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #999;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s ease;
}

.comment-action:hover {
    color: #07C160;
}

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #999;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s ease;
}

.comment-reply-link:hover {
    color: #07C160;
}

.comment-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    margin-top: 16px;
}

.comment-navigation a {
    color: #07C160;
    text-decoration: none;
    font-size: 14px;
}

.no-comments {
    text-align: center;
    padding: 40px 0;
    color: #999;
    font-size: 14px;
}

.login-to-comment {
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin: 20px 0;
}

.login-to-comment p {
    margin-bottom: 16px;
    color: #333;
    font-size: 14px;
}

.login-link {
    margin-top: 16px;
}

/* Responsive WeChat comments */
@media (max-width: 768px) {
    .wechat-comments {
        padding: 12px;
        margin-top: 16px;
    }
    
    .wechat-comment-item {
        gap: 10px;
        padding: 10px 0;
    }
    
    .comment-avatar img {
        width: 36px;
        height: 36px;
    }
    
    .comment-header {
        gap: 8px;
    }
    
    .comment-actions {
        gap: 16px;
    }
    
    .comment-navigation {
        flex-direction: column;
        gap: 8px;
    }
}

/* 相关文章样式 */
.related-articles {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.related-articles h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--neutral-dark);
    margin-bottom: 16px;
}

.related-articles-list {
    display: flex;
    gap: 16px;
}

.related-article-item {
    flex: 1;
    margin-bottom: 0;
}

.related-article-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    background-color: white;
}

.related-article-link:hover {
    background-color: var(--gray-100);
    text-decoration: none;
}

.related-article-thumbnail {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.related-article-thumbnail.placeholder {
    background-color: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 20px;
}

.related-article-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--neutral-dark);
    transition: color 0.2s ease;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    margin: 0;
}

.related-article-link:hover .related-article-title {
    color: #1890FF;
    text-decoration: none;
}

.no-related-articles {
    text-align: center;
    padding: 24px;
    color: var(--neutral);
    background-color: var(--gray-50);
    border-radius: 8px;
}

/* 响应式相关文章 */
@media (max-width: 768px) {
    .related-articles {
        margin-top: 24px;
        padding-top: 20px;
    }
    
    .related-article-thumbnail {
        width: 70px;
        height: 50px;
    }
    
    .related-article-link {
        gap: 10px;
        padding: 10px;
    }
}

/* 下载小工具深色模式支持 */
body.dark-mode .download-stats-widget {
    background-color: #1E293B !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .download-stats-widget .download-stats-content > div:first-child {
    background-color: #2A3B4C !important;
}

body.dark-mode .download-stats-widget .download-stats-content > div:first-child button {
    background-color: #07C160 !important;
    border-color: #07C160 !important;
    color: #ffffff !important;
}

body.dark-mode .download-stats-widget .download-stats-content > div:nth-child(2) > div {
    background-color: #2A3B4C !important;
}

body.dark-mode .download-stats-widget .download-stats-content > div:nth-child(2) > div > div:first-child > div {
    color: #e0e0e0 !important;
}

body.dark-mode .download-stats-widget .download-stats-content > div:nth-child(2) > div > div:nth-child(2) {
    color: #e0e0e0 !important;
}

body.dark-mode .download-stats-widget .download-stats-content > div:nth-child(3) {
    background-color: #2A3B4C !important;
}

body.dark-mode .download-stats-widget .download-stats-content > div:nth-child(3) span {
    color: #888 !important;
}

body.dark-mode .download-stats-widget > div:first-child {
    border-bottom-color: #333 !important;
}

body.dark-mode .download-stats-widget > div:first-child i {
    color: #07C160 !important;
}

body.dark-mode .download-stats-widget > div:first-child {
    color: #e0e0e0 !important;
}

/* 深色模式支持 */
body.dark-mode .wechat-comments {
    background-color: #1E293B;
}

body.dark-mode .wechat-comments .comments-title {
    color: #e0e0e0;
    border-bottom-color: #333;
}

body.dark-mode .wechat-comments .comment-form textarea {
    background-color: #1E293B;
    border-color: #444;
    color: #e0e0e0;
}

body.dark-mode .wechat-comments .comment-form textarea:focus {
    border-color: #07C160;
    background-color: #2d2d2d;
}

body.dark-mode .wechat-comments .comment-submit-btn {
    background-color: #07C160;
    color: white;
}

body.dark-mode .wechat-comments .comment-submit-btn:hover {
    background-color: #05AE54;
}

body.dark-mode .wechat-comments .wechat-comment-item {
    border-bottom-color: #333;
}

body.dark-mode .wechat-comments .comment-author {
    color: #e0e0e0;
}

body.dark-mode .wechat-comments .comment-time {
    color: #888;
}

body.dark-mode .wechat-comments .comment-content {
    color: #e0e0e0;
}

body.dark-mode .wechat-comments .comment-action {
    color: #888;
}

body.dark-mode .wechat-comments .comment-action:hover {
    color: #07C160;
}

body.dark-mode .wechat-comments .comment-reply-link {
    color: #888;
}

body.dark-mode .wechat-comments .comment-reply-link:hover {
    color: #07C160;
}

body.dark-mode .wechat-comments .comment-navigation a {
    color: #07C160;
}

body.dark-mode .wechat-comments .no-comments {
    color: #888;
}

body.dark-mode .wechat-comments .login-to-comment {
    background-color: #1E293B;
}

body.dark-mode .wechat-comments .login-to-comment p {
    color: #e0e0e0;
}

body.dark-mode .wechat-comments .login-to-comment .btn-primary {
    background-color: #07C160;
    color: white;
}

body.dark-mode .wechat-comments .login-to-comment .btn-primary:hover {
    background-color: #05AE54;
}

/* 深色模式下的二级回复样式 */
body.dark-mode .wechat-comments .comment-item-child {
    background-color: #1E293B;
}

body.dark-mode .wechat-comments .comment-item-child .comment-author {
    color: #e0e0e0;
}

body.dark-mode .wechat-comments .comment-item-child .comment-time {
    color: #888;
}

body.dark-mode .wechat-comments .comment-item-child .comment-content {
    color: #e0e0e0;
}

body.dark-mode .wechat-comments .comment-item-child .comment-action {
    color: #888;
}

body.dark-mode .wechat-comments .comment-item-child .comment-action:hover {
    color: #07C160;
}

/* 深色模式下的相关文章样式 */
body.dark-mode .related-articles {
    border-top-color: #333;
}

body.dark-mode .related-articles h3 {
    color: #e0e0e0;
}

body.dark-mode .related-article-link {
    background-color: #1E293B;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .related-article-link:hover {
    background-color: #1E293B;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

body.dark-mode .related-article-thumbnail.placeholder {
    background-color: #2d2d2d;
    color: #666;
    width: 50px;
    height: 50px;
    font-size: 20px;
}

body.dark-mode .related-article-title {
    color: #e0e0e0;
}

body.dark-mode .related-article-link:hover .related-article-title {
    color: #07C160;
}

body.dark-mode .no-related-articles {
    color: #888;
    background-color: #1E293B;
}

/* Version info */
.user-version {
    text-align: center;
    padding: 16px 0;
    margin-top: 24px;
}

.version-text {
    font-size: 14px;
    color: var(--neutral);
}

/* 收藏列表样式 */
.favorites-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.favorite-item {
    padding: 12px;
    border-radius: 8px;
    background-color: var(--gray-50);
    transition: background-color 0.2s ease;
}

.favorite-item:hover {
    background-color: var(--gray-100);
}

.favorite-link {
    text-decoration: none;
    color: var(--neutral-dark);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.favorite-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--neutral-dark);
    line-height: 1.4;
}

.favorite-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--neutral);
}

/* 历史记录列表样式 */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-item {
    padding: 12px;
    border-radius: 8px;
    background-color: var(--gray-50);
    transition: background-color 0.2s ease;
}

.history-item:hover {
    background-color: var(--gray-100);
}

.history-link {
    text-decoration: none;
    color: var(--neutral-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.history-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--neutral-dark);
    line-height: 1.4;
    flex: 1;
    margin-right: 12px;
}

.history-time {
    font-size: 12px;
    color: var(--neutral);
    flex-shrink: 0;
    white-space: nowrap;
}

/* 收藏分类tab样式 */
.favorites-categories {
    margin-bottom: 16px;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 8px;
}

.category-tab {
    padding: 6px 12px;
    border-radius: 16px;
    background-color: var(--gray-100);
    color: var(--neutral-dark);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.category-tab:hover {
    background-color: var(--gray-200);
    color: var(--neutral-dark);
}

.category-tab.active {
    background-color: var(--primary);
    color: white;
}

/* User content card */
.user-content-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

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

.user-content-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--neutral-dark);
}

.user-content-actions {
    display: flex;
    align-items: center;
}

.user-content-body {
    padding: 24px;
}

/* Profile info */
.profile-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}

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

.profile-label {
    font-size: 14px;
    color: var(--neutral);
    font-weight: 500;
}

.profile-value {
    font-size: 14px;
    color: var(--neutral-dark);
}

.profile-actions {
    display: flex;
    align-items: center;
}

/* Empty state */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
}

.empty-state-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--neutral-dark);
    margin: 16px 0 8px;
}

.empty-state-subtext {
    font-size: 14px;
}

/* 会员信息卡片样式 */
.user-membership-info {
    text-align: center;
}

.user-avatar-container {
    position: relative;
    margin: -60px auto 20px;
    width: 100%;
    max-width: 200px;
    text-align: center;
}

.user-avatar-header {
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 40px;
    background-color: #07C160;
    border-radius: 8px 8px 0 0;
}

.user-avatar-center {
    position: relative;
    z-index: 1;
    display: inline-block;
    margin-top: 10px;
}

.user-avatar-center img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 深色模式下的用户头像样式 */
body.dark-mode .user-avatar-header {
    background-color: #07C160;
}

body.dark-mode .user-avatar-center img {
    border-color: #1E293B;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.user-membership-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--neutral-dark);
    margin-bottom: 12px;
}

/* VIP升级弹窗样式 */
.vip-upgrade-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.vip-upgrade-modal.active {
    opacity: 1;
    visibility: visible;
}

.vip-upgrade-modal-content {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.vip-upgrade-modal.active .vip-upgrade-modal-content {
    transform: translateY(0);
}

.vip-upgrade-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
}

.vip-upgrade-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--neutral-dark);
    margin: 0;
}

.vip-upgrade-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--neutral);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.vip-upgrade-modal-close:hover {
    background-color: var(--gray-100);
    color: var(--neutral-dark);
}

.vip-upgrade-modal-body {
    padding: 24px;
    text-align: center;
}

.vip-upgrade-icon {
    margin-bottom: 20px;
}

.vip-upgrade-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: var(--neutral-dark);
    margin: 0 0 12px 0;
}

.vip-upgrade-description {
    font-size: 14px;
    color: var(--neutral);
    margin: 0 0 20px 0;
    line-height: 1.4;
}

.vip-upgrade-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    text-align: left;
}

.vip-upgrade-features li {
    font-size: 14px;
    color: var(--neutral);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vip-upgrade-price {
    margin: 0 0 24px 0;
}

.price-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.price-unit {
    font-size: 16px;
    color: var(--neutral);
    margin-left: 4px;
}

.vip-upgrade-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* 深色模式下的VIP升级弹窗样式 */
body.dark-mode .vip-upgrade-modal-content {
    background-color: #1E293B;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

body.dark-mode .vip-upgrade-modal-header {
    border-bottom-color: #333;
}

body.dark-mode .vip-upgrade-modal-title {
    color: #e0e0e0;
}

body.dark-mode .vip-upgrade-modal-close {
    color: #aaa;
}

body.dark-mode .vip-upgrade-modal-close:hover {
    background-color: #333;
    color: #e0e0e0;
}

body.dark-mode .vip-upgrade-subtitle {
    color: #e0e0e0;
}

body.dark-mode .vip-upgrade-description {
    color: #aaa;
}

body.dark-mode .vip-upgrade-features li {
    color: #aaa;
}

body.dark-mode .price-unit {
    color: #aaa;
}

/* 下载确认框样式 */
.download-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.download-confirm-modal.active {
    opacity: 1;
    visibility: visible;
}

.download-confirm-modal-content {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.download-confirm-modal.active .download-confirm-modal-content {
    transform: translateY(0);
}

.download-confirm-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
}

.download-confirm-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--neutral-dark);
    margin: 0;
}

.download-confirm-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--neutral);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.download-confirm-modal-close:hover {
    background-color: var(--gray-100);
    color: var(--neutral-dark);
}

.download-confirm-modal-body {
    padding: 24px;
    text-align: center;
}

.download-confirm-message {
    font-size: 16px;
    color: var(--neutral-dark);
    margin: 0 0 24px 0;
    line-height: 1.4;
}

.download-confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* 深色模式下的下载确认框样式 */
body.dark-mode .download-confirm-modal-content {
    background-color: #1E293B;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

body.dark-mode .download-confirm-modal-header {
    border-bottom-color: #333;
}

body.dark-mode .download-confirm-modal-title {
    color: #e0e0e0;
}

body.dark-mode .download-confirm-modal-close {
    color: #aaa;
}

body.dark-mode .download-confirm-modal-close:hover {
    background-color: #333;
    color: #e0e0e0;
}

body.dark-mode .download-confirm-message {
    color: #e0e0e0;
}

/* 深色模式下的用户头像样式 */
body.dark-mode .user-avatar img {
    border-color: #333;
}

body.dark-mode .user-name {
    color: #e0e0e0;
}

.user-membership-level {
    margin-bottom: 8px;
}

.user-membership-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--neutral-dark);
}

.user-membership-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 8px;
}

.user-membership-badge.normal {
    background-color: var(--gray-100);
    color: var(--neutral-dark);
}

.user-membership-badge.vip {
    background-color: #FFD700;
    color: #8B6914;
}

.user-membership-description {
    font-size: 13px;
    color: var(--neutral);
    margin-bottom: 16px;
    line-height: 1.4;
}

/* 会员等级选择弹窗样式 */
.membership-levels-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.membership-levels-modal.active {
    opacity: 1;
    visibility: visible;
}

.membership-levels-modal-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.membership-levels-modal.active .membership-levels-modal-content {
    transform: translateY(0);
}

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

.membership-levels-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--neutral-dark);
    margin: 0;
}

.membership-levels-modal-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--neutral);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.membership-levels-modal-close:hover {
    background-color: var(--gray-100);
    color: var(--neutral-dark);
}

.membership-levels-modal-body {
    padding: 24px;
}

/* 会员等级列表样式 */
.membership-levels-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.membership-level-card {
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s ease;
}

.membership-level-card:hover {
    box-shadow: var(--shadow-card-hover);
    border-color: var(--primary);
}

.membership-level-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.membership-level-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--neutral-dark);
    margin: 0;
}

.membership-level-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
}

.membership-level-description {
    font-size: 14px;
    color: var(--neutral);
    margin-bottom: 16px;
    line-height: 1.4;
}

.membership-level-features {
    margin-bottom: 16px;
}

.membership-level-features h5 {
    font-size: 14px;
    font-weight: 500;
    color: var(--neutral-dark);
    margin-bottom: 8px;
}

.membership-level-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.membership-level-features li {
    font-size: 13px;
    color: var(--neutral);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.membership-level-duration {
    font-size: 13px;
    color: var(--neutral);
    margin-bottom: 16px;
}

/* 加载状态样式 */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
}

.loading-state i {
    color: var(--primary);
    margin-bottom: 12px;
}

.loading-state p {
    color: var(--neutral);
    margin: 0;
}

/* 错误状态样式 */
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
}

.error-state i {
    margin-bottom: 12px;
}

.error-state p {
    color: var(--neutral);
    margin: 0;
}

/* 深色模式下的会员样式 */
body.dark-mode .user-membership-info .user-membership-title {
    color: #e0e0e0;
}

body.dark-mode .user-membership-info .user-membership-name {
    color: #e0e0e0;
}

body.dark-mode .user-membership-info .user-membership-badge.normal {
    background-color: #2d2d2d;
    color: #e0e0e0;
}

body.dark-mode .user-membership-info .user-membership-description {
    color: #aaa;
}

body.dark-mode .membership-levels-modal-content {
    background-color: #1E293B;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

body.dark-mode .membership-levels-modal-header {
    border-bottom-color: #333;
}

body.dark-mode .membership-levels-modal-title {
    color: #e0e0e0;
}

body.dark-mode .membership-levels-modal-close {
    color: #aaa;
}

body.dark-mode .membership-levels-modal-close:hover {
    background-color: #333;
    color: #e0e0e0;
}

body.dark-mode .membership-level-card {
    border-color: #333;
    background-color: #1E293B;
}

body.dark-mode .membership-level-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

body.dark-mode .membership-level-name {
    color: #e0e0e0;
}

body.dark-mode .membership-level-description {
    color: #aaa;
}

body.dark-mode .membership-level-features h5 {
    color: #e0e0e0;
}

body.dark-mode .membership-level-features li {
    color: #aaa;
}

body.dark-mode .membership-level-duration {
    color: #aaa;
}

body.dark-mode .loading-state p {
    color: #aaa;
}

body.dark-mode .error-state p {
    color: #aaa;
}

/* 会员管理页面样式 */
.membership-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--neutral-dark);
    margin-bottom: 16px;
}

.membership-status-card {
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 20px;
    background-color: var(--gray-50);
}

.membership-status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.membership-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
}

.membership-status-badge.normal {
    background-color: var(--gray-100);
    color: var(--neutral-dark);
}

.membership-status-badge.vip {
    background-color: #FFD700;
    color: #8B6914;
}

.membership-status-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
}

.membership-status-description {
    font-size: 14px;
    color: var(--neutral);
    margin-bottom: 16px;
    line-height: 1.4;
}

.membership-status-features {
    margin-top: 16px;
}

.membership-status-features h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--neutral-dark);
    margin-bottom: 12px;
}

.membership-status-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.membership-status-features li {
    font-size: 13px;
    color: var(--neutral);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.membership-upgrade-card {
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background-color: var(--gray-50);
}

.membership-upgrade-description {
    font-size: 14px;
    color: var(--neutral);
    margin-bottom: 20px;
    line-height: 1.4;
}

.membership-info-card {
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 20px;
    background-color: var(--gray-50);
}

.membership-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
}

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

.membership-info-label {
    font-weight: 500;
    color: var(--neutral-dark);
}

.membership-info-value {
    color: var(--neutral);
}

/* 深色模式下的会员管理页面样式 */
body.dark-mode .membership-section-title {
    color: #e0e0e0;
}

body.dark-mode .membership-status-card {
    border-color: #333;
    background-color: #1E293B;
}

body.dark-mode .membership-status-badge.normal {
    background-color: #333;
    color: #e0e0e0;
}

body.dark-mode .membership-status-description {
    color: #aaa;
}

body.dark-mode .membership-status-features h4 {
    color: #e0e0e0;
}

body.dark-mode .membership-status-features li {
    color: #aaa;
}

body.dark-mode .membership-upgrade-card {
    border-color: #333;
    background-color: #1E293B;
}

body.dark-mode .membership-upgrade-description {
    color: #aaa;
}

body.dark-mode .membership-info-card {
    border-color: #333;
    background-color: #1E293B;
}

body.dark-mode .membership-info-item {
    border-bottom-color: #333;
}

body.dark-mode .membership-info-label {
    color: #e0e0e0;
}

body.dark-mode .membership-info-value {
    color: #aaa;
}

/* Notification list */
.notification-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    border-radius: 8px;
    background-color: var(--gray-50);
    transition: background-color 0.2s ease;
}

.notification-item:hover {
    background-color: var(--gray-100);
}

.notification-item.unread {
    background-color: var(--secondary);
    border-left: 4px solid var(--primary);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--neutral-dark);
    margin-bottom: 4px;
}

.notification-message {
    font-size: 14px;
    color: var(--neutral);
    margin-bottom: 8px;
}

.notification-time {
    font-size: 12px;
    color: var(--neutral);
}

/* Help section */
.help-section {
    display: flex;
    flex-direction: column;
}

.help-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--neutral-dark);
    margin-bottom: 16px;
}

.help-faq {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.help-faq-item {
    padding: 16px;
    border-radius: 8px;
    background-color: var(--gray-50);
}

.help-faq-question {
    font-size: 14px;
    font-weight: 600;
    color: var(--neutral-dark);
    margin-bottom: 8px;
}

.help-faq-answer {
    font-size: 14px;
    color: var(--neutral);
    line-height: 1.5;
}

/* Feedback form */
.feedback-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--neutral-dark);
    margin-bottom: 8px;
}

.form-control {
    padding: 10px 12px;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.form-control.disabled {
    background-color: var(--gray-100);
    color: var(--neutral);
    cursor: not-allowed;
}

.form-actions {
    display: flex;
    align-items: center;
}

/* Settings section */
.settings-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.settings-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--neutral-dark);
}

.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}

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

.settings-label {
    font-size: 14px;
    color: var(--neutral-dark);
    font-weight: 500;
}

/* Settings toggle */
.settings-toggle {
    position: relative;
    width: 50px;
    height: 24px;
}

.settings-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.settings-toggle label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-300);
    transition: .4s;
    border-radius: 24px;
}

.settings-toggle label:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.settings-toggle input:checked + label {
    background-color: var(--primary);
}

.settings-toggle input:checked + label:before {
    transform: translateX(26px);
}

.settings-actions {
    display: flex;
    align-items: center;
}

/* Active menu item */
.user-menu-item.active {
    background-color: var(--secondary);
    color: var(--primary);
}

.user-menu-item.active .user-menu-text {
    color: var(--primary);
    font-weight: 500;
}

.user-menu-item.active .user-menu-arrow {
    color: var(--primary);
}

/* Logout menu item */
.user-menu-item.logout .user-menu-text {
    color: var(--danger);
}

.user-menu-item.logout:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

/* Secondary button */
.btn-secondary {
    background-color: var(--gray-100);
    color: var(--neutral-dark);
    box-shadow: none;
}

.btn-secondary:hover {
    background-color: var(--gray-200);
    color: var(--neutral-dark);
}

/* Responsive design */
@media (max-width: 1023px) {
    .user-page-container {
        padding: 24px 16px;
    }
    
    .user-content-card {
        margin-bottom: 24px;
    }
}

/* Dark mode support for user page */
body.dark-mode .user-card {
    background-color: var(--gray-800);
}

body.dark-mode .user-name {
    color: white;
}

body.dark-mode .user-email {
    color: var(--gray-400);
}

body.dark-mode .user-menu {
    background-color: var(--gray-800);
}

body.dark-mode .user-menu-item {
    border-bottom: none;
}

body.dark-mode .user-menu-item:hover {
    background-color: var(--gray-700);
}

body.dark-mode .user-menu-text {
    color: white;
}

body.dark-mode .user-menu-arrow {
    color: var(--gray-500);
}

body.dark-mode .user-section {
    background-color: var(--gray-800);
}

body.dark-mode .user-section-header {
    border-bottom-color: var(--gray-700);
}

body.dark-mode .user-section-title {
    color: white;
}

body.dark-mode .user-section-empty {
    color: var(--gray-400);
}

body.dark-mode .user-logout {
    background-color: var(--gray-800);
}

body.dark-mode .user-logout-button:hover {
    background-color: var(--gray-700);
}

/* Dark mode support for new user page elements */
body.dark-mode .user-role {
    color: var(--primary);
    background-color: rgba(37, 99, 235, 0.2);
}

body.dark-mode .user-join-date {
    color: var(--gray-400);
}

body.dark-mode .user-section-more {
    color: var(--primary);
}

body.dark-mode .user-section-more:hover {
    color: #60A5FA;
}

body.dark-mode .contribution-number {
    color: var(--primary);
}

body.dark-mode .contribution-label {
    color: var(--gray-400);
}

body.dark-mode .version-text {
    color: var(--gray-500);
}

/* Dark mode support for new user page elements */
body.dark-mode .user-content-card {
    background-color: var(--gray-800);
}

body.dark-mode .user-content-header {
    border-bottom-color: var(--gray-700);
}

body.dark-mode .user-content-title {
    color: white;
}

body.dark-mode .profile-item {
    border-bottom-color: var(--gray-700);
}

body.dark-mode .profile-label {
    color: var(--gray-400);
}

body.dark-mode .profile-value {
    color: white;
}

body.dark-mode .empty-state-text {
    color: white;
}

body.dark-mode .empty-state-subtext {
    color: var(--gray-400);
}


body.dark-mode .notification-item:hover {
    background-color: var(--gray-600);
}

body.dark-mode .notification-item.unread {
    background-color: rgba(37, 99, 235, 0.2);
}

body.dark-mode .notification-icon {
    background-color: var(--gray-800);
}

body.dark-mode .notification-title {
    color: white;
}

body.dark-mode .notification-message {
    color: var(--gray-400);
}

body.dark-mode .notification-time {
    color: var(--gray-500);
}

body.dark-mode .help-section-title {
    color: white;
}

body.dark-mode .help-faq-item {
    background-color: var(--gray-700);
}

body.dark-mode .help-faq-question {
    color: white;
}

body.dark-mode .help-faq-answer {
    color: var(--gray-400);
}

body.dark-mode .form-group label {
    color: white;
}

body.dark-mode .form-control {
    background-color: var(--gray-700);
    border-color: var(--gray-600);
    color: white;
}

body.dark-mode .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
}

body.dark-mode .form-control.disabled {
    background-color: var(--gray-700);
    color: var(--gray-400);
    border-color: var(--gray-600);
}

body.dark-mode .profile-edit-form {
    background-color: var(--gray-800);
    padding: 20px;
    border-radius: 8px;
}

body.dark-mode .form-actions {
    margin-top: 20px;
}

body.dark-mode .form-actions .btn {
    margin-right: 10px;
}

body.dark-mode .settings-section-title {
    color: white;
}

body.dark-mode .settings-item {
    border-bottom-color: var(--gray-700);
}

body.dark-mode .settings-label {
    color: white;
}

body.dark-mode .settings-toggle label {
    background-color: var(--gray-600);
}

body.dark-mode .user-menu-item.active {
    background-color: rgba(37, 99, 235, 0.2);
}

body.dark-mode .user-menu-item.logout:hover {
    background-color: rgba(239, 68, 68, 0.2);
}

/* Social Share Widget Styles */
.social-share-widget {
    margin-bottom: 20px;
    padding-top: 20px;
}

.social-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.social-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.social-share-button:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.social-share-button.qq:hover {
    background-color: #1DA1F2;
    color: white;
}

.social-share-button.wechat:hover {
    background-color: #07C160;
    color: white;
}

.social-share-button.weibo:hover {
    background-color: #E6162D;
    color: white;
}

.social-share-button.qq-space:hover {
    background-color: #FF7A45;
    color: white;
}

.social-share-button.reward:hover {
    background-color: #FF4D4F;
    color: white;
}

.social-share-button.copy:hover {
    background-color: #1890FF;
    color: white;
}

/* WeChat QR Code Modal */
.wechat-qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.wechat-qr-content {
    background-color: white;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    max-width: 300px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.social-share-widget h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.qr-code-container {
    margin-bottom: 20px;
}

.qr-code-container img {
    width: 300px;
    height: 300px;
    border-radius: 8px;
}

.close-modal {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: #333;
}

/* Reward Modal */
.reward-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.reward-content {
    background-color: white;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    max-width: 300px;
    width: 300px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.reward-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.reward-image-container {
    margin-bottom: 20px;
}

.reward-image-container img {
    width: 300px;
    height: auto;
    border-radius: 8px;
}

/* Copy Notification */
.copy-notification {
    position: fixed;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    z-index: 1001;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Copy checkmark style */
.copy-checkmark {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #10B981;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: none;
    animation: checkmark-pop 0.3s ease-out;
}

/* VIP Badge Style */
.vip-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 8px !important;
    padding: 0.5px 5px 0px 0px !important;
    background: #e18b26 !important;
    color: #f1f5f9 !important;
    font-size: 12px !important;
    border-radius: 3px !important;
    font-weight: normal !important;
    text-align: center !important;
    min-width: 24px !important;
}

/* Checkmark animation */
@keyframes checkmark-pop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Ensure copy button has relative positioning for checkmark */
.social-share-button.copy {
    position: relative;
}

/* Dark Mode Support for Social Share */
body.dark-mode .social-share-button {
    background-color: #333;
    color: #e0e0e0;
}

body.dark-mode .social-share-button:hover {
    background-color: #444;
}

body.dark-mode .wechat-qr-content,
body.dark-mode .reward-content {
    background-color: #1E293B;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

body.dark-mode .wechat-qr-content h3,
body.dark-mode .reward-content h3 {
    color: #e0e0e0;
}

body.dark-mode .wechat-qr-content p,
body.dark-mode .reward-content p {
    color: #aaa;
}

body.dark-mode .close-modal {
    color: #666;
}

body.dark-mode .close-modal:hover {
    color: #e0e0e0;
}

body.dark-mode .copy-notification {
    background-color: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

body.dark-mode .btn-secondary {
    color: white;
}

body.dark-mode .btn-secondary:hover {
    background-color: var(--gray-600);
    color: white;
}

/* 深色模式下的收藏列表和历史记录列表样式 */
body.dark-mode .favorite-item {
}

body.dark-mode .favorite-item:hover {
    background-color: var(--gray-600);
}

body.dark-mode .favorite-title {
    color: white;
}

body.dark-mode .favorite-meta {
    color: var(--gray-400);
}



body.dark-mode .history-item:hover {
    background-color: var(--gray-600);
}

body.dark-mode .history-title {
    color: white;
}

body.dark-mode .history-meta {
    color: var(--gray-400);
}

/* 深色模式下的分类tab样式 */
body.dark-mode .category-tabs {
    border-bottom-color: var(--gray-700);
}

body.dark-mode .category-tab {
    background-color: var(--gray-700);
    color: var(--gray-200);
}

body.dark-mode .category-tab:hover {
    background-color: var(--gray-600);
    color: white;
}

body.dark-mode .category-tab.active {
    background-color: var(--primary);
    color: white;
}

/* Dark mode support for new user page elements */
body.dark-mode .user-menu-icon.blue {
    background-color: rgba(59, 130, 246, 0.2);
    color: #60A5FA;
}

body.dark-mode .user-menu-icon.red {
    background-color: rgba(239, 68, 68, 0.2);
    color: #FCA5A5;
}

body.dark-mode .user-menu-icon.purple {
    background-color: rgba(139, 92, 246, 0.2);
    color: #A78BFA;
}

body.dark-mode .user-menu-icon.yellow {
    background-color: rgba(245, 158, 11, 0.2);
    color: #FCD34D;
}

body.dark-mode .user-menu-icon.green {
    background-color: rgba(16, 185, 129, 0.2);
    color: #6EE7B7;
}

body.dark-mode .user-menu-icon.gray {
    background-color: var(--gray-700);
    color: #9CA3AF;
}

body.dark-mode .profile-actions {
    margin-top: 24px;
}

body.dark-mode .help-section {
    margin-bottom: 32px;
}

body.dark-mode .form-group {
    margin-bottom: 16px;
}

body.dark-mode .settings-section {
    margin-bottom: 32px;
}

/* Header styles */
header {
    background-color: white;
    box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.1) !important;
    position: sticky;
    top: 0;
    z-index: 50;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    max-width: 1446px;
    width: 100%;
    margin: 0 auto;
}

.main-navigation {
    flex: 1;
    margin-left:138px;
}

.primary-menu {
    display: flex;
    list-style: none;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.primary-menu li {
    position: relative;
}

/* Add arrow for menu items with submenu */
.primary-menu li.menu-item-has-children > a::after {
    content: '\f078';
    font-family: 'FontAwesome';
    font-size: 10px;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.primary-menu li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

.primary-menu a {
    display: block;
    padding: 8px 8px;
    color: var(--neutral-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 15px;
}

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

/* Submenu styles */
.primary-menu ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow-card);
    list-style: none;
    margin: 0;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    text-align: left;
}

/* Ensure submenu items are properly aligned */
.primary-menu ul li {
    text-align: left;
}

.primary-menu li:hover > ul {
    opacity: 1;
    visibility: visible;
}

.primary-menu ul li {
    position: relative;
}

.primary-menu ul a {
    display: block;
    padding: 10px 16px;
    color: var(--neutral-dark);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

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

/* Menu item with icon */
.primary-menu li.menu-item-has-icon {
    display: flex;
    align-items: center;
}

.primary-menu li.menu-item-has-icon i {
    margin-right: 8px;
}

@media (max-width: 1024px) {
    .main-navigation {
        display: none;
    }
}

@media (min-width: 768px) {
    .header-container {
        height: 80px;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img.custom-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-icon:hover {
    box-shadow: var(--shadow-card-hover);
}

.logo-text {
    padding-top: 8px;
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--neutral-dark);
}

.logo-description {
    font-size: 12px;
    color: var(--neutral);
    display: none;
}

@media (min-width: 640px) {
    .logo-description {
        display: block;
    }
}

/* 在移动端只显示logo，不显示站点标题和描述 */
@media (max-width: 767px) {
    .logo-text {
        display: none;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-container {
    position: relative;
    width: 200px;
    display: none;
}

@media (min-width: 768px) {
    .search-container {
        display: block;
        width: 220px;
    }
}

.search-container .fa-search {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neutral);
    font-size: 14px;
}

.search-input {
    width: 100%;
    padding: 8px 16px 8px 40px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: white;
}

.search-input:hover {
    border-color: var(--gray-300);
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
    border-color: var(--primary);
}

.mobile-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--neutral);
    border: none;
    outline: none;
    background: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-search-btn:hover {
    background-color: var(--gray-100);
    color: var(--primary);
}

@media (min-width: 768px) {
    .mobile-search-btn {
        display: none;
    }
}

.notification-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--neutral);
    position: relative;
    transition: all 0.3s ease;
}

.notification-btn:hover {
    background-color: var(--gray-100);
    color: var(--primary);
}

@media (min-width: 768px) {
    .notification-btn {
        display: flex;
        text-decoration: none;
    }
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    background-color: var(--danger);
    color: white;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    line-height: 1;
}

/* Main content */
.main-content {
    flex: 1;
    padding: 32px 0;
    display: flex;
    gap: 32px;
    flex-direction: column;
    width: 100%;
}

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

/* Sidebar */
.sidebar {
    width: 100%;
}

@media (min-width: 1024px) {
    .sidebar {
        width: 256px;
        flex-shrink: 0;
    }
}

/* 右侧边栏 */
.right-sidebar {
    width: 100%;
    margin-top: 24px;
}

@media (min-width: 1024px) {
    .right-sidebar {
        width: 320px;
        margin-top: 0;
        flex-shrink: 0;
        position: sticky;
        top: 96px;
        align-self: flex-start;
        height: fit-content;
    }
    
    /* 文章页面使用三栏布局 */
    body.single .main-content {
        display: grid;
        grid-template-columns: 256px 813px 320px;
        gap: 32px;
        width: 100%;
    }
    
    /* 确保中间内容区域在grid布局中正确显示 */
    body.single .content {
        min-width: 0;
        width: 100%;
    }
    
    /* 首页使用两栏布局 */
    body.home .main-content {
        display: grid;
        grid-template-columns: 256px 1fr;
        gap: 32px;
        max-width: 1453px;
        width: 100%;
        margin: 0 auto;
    }
    
    /* 页面使用两栏布局 */
    body.page .main-content {
        display: grid;
        grid-template-columns: 256px 1fr;
        gap: 32px;
    }
    
    /* 分类页面使用两栏布局，与首页一致 */
    body.category .main-content {
        display: grid;
        grid-template-columns: 256px 1166px;
        gap: 32px;
    }
}

/* 右侧边栏卡片样式 */
.right-sidebar .widget {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    height: fit-content;
    animation: fadeIn 0.5s ease-in-out;
    box-shadow: 0 0px 2px rgba(0, 0, 0, 0.1);
}

/* 右侧热点小工具样式 */
.right-hot-widget {
    background-color: white;
    border-radius: 12px;
    padding: 0;
}

.hot-articles-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hot-article-item {
    margin: 0;
    padding: 0;
}

/* 前三名特殊样式 */
.hot-article-item.top-3 {
    background-color: #FAFAFA;
}

.hot-article-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: #333333;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    transition: all 0.2s ease;
}

.hot-article-link:hover {
    background-color: var(--gray-100);
    padding: 12px 16px;
}

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

/* 普通序号样式 */
.hot-article-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 12px;
    font-weight: 600;
    color: #999999;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

/* 前三名序号样式 */
.hot-article-number.top-number {
    font-size: 12px;
    font-weight: 700;
    color: #666666;
    width: 16px;
    height: 16px;
}

.hot-article-number.top-number-1 {
    color: #FF4D4F;
}

.hot-article-number.top-number-2 {
    color: #FF7A45;
}

.hot-article-number.top-number-3 {
    color: #FFC53D;
}

.hot-article-title {
    flex: 1;
    min-width: 0;
    line-height: 1.4;
    transition: all 0.2s ease;
    color: #333333;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hot-article-link:hover .hot-article-title {
    color: #1890FF;
    text-decoration: none;
}

/* 热门推荐小工具样式 */
.popular-recommendations {
    background-color: white;
    border-radius: 12px;
    border: none; /* 移除多余边框 */
}

.popular-recommendations-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.popular-recommendation-item {
    margin: 0;
}

.recommendation-link {
    display: flex;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    color: var(--neutral-dark);
    padding: 8px 12px; /* 初始就有内边距，避免hover时移动 */
    transition: all 0.3s ease;
}

.recommendation-link:hover {
    background-color: var(--gray-100);
    padding: 8px 12px; /* 保持相同的内边距，避免hover时移动 */
}

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

.recommendation-thumbnail img {
    width: 80px;
    height: 45px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.recommendation-content {
    flex: 1;
    min-width: 0;
}

.recommendation-title {
    font-size: 14px;
    font-weight: 400;
    margin: 0 0 0px 0;
    color: var(--neutral-dark);
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recommendation-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--neutral);
}

.recommendation-date {
    font-size: 12px;
    color: var(--neutral);
}

/* 仅标题布局 */
.popular-recommendations-list[data-layout="title-only"] .recommendation-link {
    display: block;
}

.popular-recommendations-list[data-layout="title-only"] .recommendation-title {
    -webkit-line-clamp: 1;
}

.sidebar-card {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    position: sticky;
    top: 96px;
    height: fit-content;
    animation: fadeIn 0.5s ease-in-out;
}

/* Widget styling */
.sidebar {
    position: sticky;
    top: 96px;
    height: fit-content;
    align-self: flex-start;
}

.sidebar .widget {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    position: static;
    height: fit-content;
    animation: fadeIn 0.5s ease-in-out;
    box-shadow: 0 0px 2px rgba(0, 0, 0, 0.1);
}

.sidebar .widget:last-child {
    margin-bottom: 0;
}

/* Widget titles styling */
.sidebar .widget .sidebar-title,
.sidebar .widget .tags-title,
.sidebar .widget .authors-title,
.right-hot-widget .sidebar-title,
.popular-recommendations .sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--neutral-dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
}

/* Tags section styling */
.sidebar .widget.tags-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-100);
}

/* Authors section styling */
.sidebar .widget.authors-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-100);
}



.category-list {
    list-style: none;
    gap: 6px;
    display: flex;
    flex-direction: column;
}

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

.category-link:hover {
    background-color: var(--gray-100);
}

.category-link.menu-active {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-left: 4px solid var(--primary);
}

.category-icon {
    width: 20px;
    text-align: center;
    font-size: 14px;
}

/* 分类项包装器，用于容纳分类链接和展开按钮 */
.category-item-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* 展开/折叠按钮样式 */
.category-expand-btn {
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-expand-btn:hover {
    background-color: var(--gray-100);
    color: var(--gray-700);
}

/* 子分类列表样式 */
.child-category-list {
    margin: 0px;
    display: none;
    list-style: none;
    padding: 0;
}

/* 展开状态 */
.child-category-list.expanded {
    display: block;
}

/* 子分类链接样式 */
.child-category-link {
    font-size: 13px;
    padding-left: 20px;
    color: var(--gray-600);
}

.child-category-link:hover {
    background-color: var(--gray-100);
    color: var(--primary);
}

/* 一级分类项样式 */
.parent-category-item {
    position: relative;
}

/* 展开按钮旋转动画 */
.category-expand-btn.expanded i {
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}

.category-expand-btn i {
    transition: transform 0.3s ease;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-link {
    padding: 6px 12px;
    background-color: var(--gray-100);
    color: var(--gray-700);
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

.authors-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.author-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 14px;
    font-weight: 500;
}

.author-meta {
    font-size: 12px;
    color: var(--neutral);
}

/* Content */
.content {
    flex: 1;
    width: 100%;
}

.content-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    animation: fadeIn 0.5s ease-in-out;
    animation-delay: 0.1s;
    margin-bottom: 24px;
}

/* 移动端隐藏左侧边栏 */
@media (max-width: 1023px) {
    /* 隐藏所有侧边栏 */
    .sidebar,
    .right-sidebar {
        display: none;
    }
    
    /* 确保所有页面在移动端使用flex布局 */
    .main-content {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }
    
    /* 确保内容区域在移动端占满宽度 */
    .content {
        width: 100%;
    }
    
    /* 调整文章内容包装器的内边距，适应移动端 */
    .article-content-wrapper {
        padding: 16px;
    }
    
    /* 调整文章标题大小，适应移动端 */
    .article-content-wrapper .article-title {
        font-size: 1.5rem;
    }
}

/* Main content widget spacing */
.content .widget {
    margin-bottom: 24px;
}

.content .widget:last-child {
    margin-bottom: 0;
}

/* Tag cloud styling */
.tag-cloud-container {
    background-color: var(--gray-50);
    border-radius: 8px;
    padding: 24px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
}

.tag-cloud a {
    display: inline-block;
    padding: 8px 16px;
    background-color: white;
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    color: var(--gray-700);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-cloud a:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Tag archive styling */
.category-archive-header {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
    padding: 20px;
    background-color: var(--gray-50);
    border-radius: 12px;
}

.category-archive-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.category-archive-info {
    flex: 1;
}

.category-archive-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--neutral-dark);
    margin-bottom: 8px;
}

.category-archive-description {
    color: var(--gray-600);
    margin-bottom: 12px;
}

.category-archive-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--gray-500);
}

.content-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin: -16px -16px 16px;
}

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

@media (min-width: 1024px) {
    .content-header {
        padding: 32px;
        gap: 24px;
    }
}

.content-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neutral-dark);
}

.content-subtitle {
    font-size: 14px;
    color: var(--neutral);
    margin-top: 4px;
}

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

.category-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    background-color: var(--primary);
    color: white;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.category-toggle:hover {
    background-color: #1D4ED8;
}

.toggle-count {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

/* Articles container */
.articles-container {
    padding: 24px;
    transition: all 0.3s ease;
    overflow: hidden;
    background-color: white;
    border-radius: 8px;
}

.articles-container.collapsed {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.category-section {
    display: block;
}



/* Child category card */
.child-category-card {
    margin-top: 16px;
    margin-left: 24px; /* 为子分类卡片添加左侧缩进，显示层级关系 */
    border-left: 4px solid var(--primary); /* 添加左侧边框，突出子分类身份 */
}

/* Dark mode styles */
body.dark-mode .child-category-card {
    border-left-color: var(--primary);
}

/* Posts grid */
.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Article card */
.article-card {
    background-color: white;
    overflow: hidden;
    position: relative;
    height: 80px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.article-card {
    height: 65px;
    min-width: 280px;
}

.article-card:hover {
    background-color: var(--gray-100);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
    transition: all 0.3s ease;
}

.article-card-inner {
    display: flex;
    height: 100%;
    align-items: center;
}

.article-image {
    width: 90px;
    height: 65px;
    flex-shrink: 0;
    border-radius: 2px;
    overflow: hidden;
    background-color: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.article-card:hover .article-image img {
    transform: none;
}

/* 确保默认图片也能正常显示 */
.article-image img.attachment-post-thumbnail {
    object-fit: cover;
}

.article-right-content {
    flex: 1;
    padding: 8px 12px;
    height: 65px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.article-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--neutral-dark);
    word-wrap: balance;
    flex: 1;
    margin-right: 8px;
    line-height: 1.4;
}

.article-title a {
    color: var(--neutral-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-title a:hover {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.article-date {
    font-size: 12px;
    color: var(--neutral);
    flex-shrink: 0;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 5px;
}

/* Hide elements on mobile devices */
@media (max-width: 767px) {
    .article-footer {
        display: none;
    }
    
    .hide-on-mobile {
        display: none;
    }
}

.article-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--neutral);
}

.article-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-stat i {
    font-size: 12px;
}

.read-more {
    font-size: 12px;
    font-weight: 500;
    color: var(--neutral);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.read-more:hover {
    text-decoration: none;
    color: var(--primary);
}

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

/* Pagination */
.pagination {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

.pagination-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 适配paginate_links()函数生成的列表结构 */
.pagination-container ul {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination-container li {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-container a,
.pagination-container span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    border: 1px solid var(--gray-200);
    border-radius: 2px;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
}

.pagination-container a:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination-container .current {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    font-weight: 500;
}

.pagination-container .dots {
    padding: 6px 8px;
    color: var(--gray-400);
    border: none;
    background: transparent;
}

/* 兼容旧的.pagination-link类 */
.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination-link:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination-link.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    font-weight: 500;
}

.pagination-dots {
    padding: 6px 8px;
    color: var(--gray-400);
    font-size: 14px;
}

/* Weekly popular */
.weekly-popular {
    background-color: white;
    border-radius: 12px;
    padding: 16px;
    animation: fadeIn 0.5s ease-in-out;
    animation-delay: 0.2s;
}

.popular-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--neutral-dark);
    margin-bottom: 12px;
}

.popular-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 768px) {
    .popular-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.popular-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.popular-item:hover {
    background-color: var(--gray-50);
}

.popular-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.popular-icon.code {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.popular-icon.career {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.popular-icon.health {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

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

.popular-item-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--neutral-dark);
    margin-bottom: 2px;
}

.popular-item-meta {
    font-size: 12px;
    color: var(--neutral);
}

/* Footer */
footer {
    background-color: white;
    margin-top: 48px;
    padding: 32px 0 0 0;
    color: var(--neutral-dark);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
}

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

/* Footer widget areas */
.footer-widget-area {
    flex: 1;
    min-width: 200px;
}

.footer-widget-area-1 {
    max-width: 300px;
}

.footer-widget-area-2 {
    max-width: 400px;
}

.footer-widget-area-3 {
    max-width: 250px;
}

/* Footer widget title */
.footer-widget-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--neutral-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
}

/* Footer widget content */
.footer-widget-area .widget {
    margin-bottom: 24px;
}

.footer-widget-area .widget:last-child {
    margin-bottom: 0;
}

/* Style for footer widgets */
.footer-widget-area .footer-logo-section,
.footer-widget-area .footer-links,
.footer-widget-area .social-links {
    margin: 0;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: var(--shadow-card);
    flex-shrink: 0; /* 确保图标不会被压缩 */
}

/* 确保文本内容垂直居中 */
.footer-logo > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 40px; /* 与图标高度保持一致 */
}

.footer-logo-image {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.footer-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--neutral-dark);
}

.footer-logo-description {
    font-size: 14px;
    color: var(--neutral);
    margin-top: 4px;
}

.footer-copyright {
    font-size: 12px;
    color: var(--neutral);
    margin-top: 8px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.footer-link {
    font-size: 14px;
    color: var(--neutral);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 4px 0;
}

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

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary);
    color: white;
}

.footer-bottom {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
    text-align: center;
    font-size: 12px;
    color: var(--neutral);
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

/* Categories page styling */
.categories-container {
    padding: 24px;
}

.categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.category-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-100);
}

.category-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
    border-color: var(--primary);
}

.category-link {
    display: flex;
    gap: 16px;
    padding: 10px;
    text-decoration: none;
    color: inherit;
}

.category-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 24px;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon-wrapper {
    transform: scale(1.1);
}

.category-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--neutral-dark);
    margin: 0;
    transition: color 0.3s ease;
}

.category-card:hover .category-name {
    color: var(--primary);
}

.category-description {
    font-size: 14px;
    color: var(--neutral);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.category-count {
    font-size: 12px;
    color: var(--neutral);
    background-color: var(--gray-50);
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 500;
}

/* Category archive page styling */
.category-archive-header {
    padding: 24px;
    background-color: white;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.category-archive-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.category-archive-info {
    flex: 1;
}

.category-archive-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--neutral-dark);
    margin: 0 0 8px;
}

.category-archive-description {
    font-size: 14px;
    color: var(--neutral);
    margin: 0 0 12px;
    line-height: 1.5;
}

.category-archive-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--neutral);
}

/* Article content styling */
.article-content {
    line-height: 1.8;
    color: var(--neutral-dark);
    font-size: 16px;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    margin: 1.5rem 0 1rem;
    font-weight: 600;
    color: var(--neutral-dark);
}

.article-content h1 { font-size: 2rem; }
.article-content h2 { font-size: 1.75rem; }
.article-content h3 { font-size: 1.5rem; }
.article-content h4 { font-size: 1.25rem; }
.article-content h5 { font-size: 1.125rem; }
.article-content h6 { font-size: 1rem; }

.article-content p {
    margin-bottom: 1.25rem;
    color: var(--neutral-dark);
}

.article-content ul,
.article-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
    padding-left: 1rem;
}

.article-content ul li,
.article-content ol li {
    margin-bottom: 0.5rem;
    color: var(--neutral-dark);
}

.article-content ul li {
    list-style-type: disc;
}

.article-content ol li {
    list-style-type: decimal;
}

.article-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--primary);
    background-color: var(--gray-50);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--gray-700);
}

.article-content code {
    background-color: var(--gray-100);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9em;
    color: var(--danger);
}

.article-content pre {
    background-color: var(--gray-900);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.875em;
    line-height: 1.6;
}

.article-content pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 1.5rem auto;
    box-shadow: var(--shadow-card);
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

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

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

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

/* Article comments styling */
.article-comments {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-100);
}

/* Page styling */
.page-card {
}

.page-content-wrapper {
    padding: 32px;
}

@media (max-width: 768px) {
    .page-content-wrapper {
        padding: 20px;
    }
}

.page-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--neutral-dark);
    margin-bottom: 24px;
    line-height: 1.2;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-100);
}

@media (max-width: 768px) {
    .page-title {
        font-size: 1.75rem;
        margin-bottom: 16px;
        padding-bottom: 12px;
    }
}

.page-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--neutral-dark);
}

.page-content p {
    margin-bottom: 1.5rem;
    color: var(--neutral-dark);
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
    margin: 2rem 0 1rem;
    font-weight: 600;
    color: var(--neutral-dark);
    line-height: 1.3;
}

.page-content h1 { font-size: 1.75rem; }
.page-content h2 { font-size: 1.5rem; }
.page-content h3 { font-size: 1.25rem; }
.page-content h4 { font-size: 1.125rem; }
.page-content h5 { font-size: 1rem; }
.page-content h6 { font-size: 0.875rem; }

.page-content ul,
.page-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.page-content ul li,
.page-content ol li {
    margin-bottom: 0.75rem;
    color: var(--neutral-dark);
}

.page-content ul li { list-style-type: disc; }
.page-content ol li { list-style-type: decimal; }

.page-content blockquote {
    margin: 1.5rem 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--primary);
    background-color: var(--gray-50);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--gray-700);
}

.page-content code {
    padding: 0.2rem 0.4rem;
    background-color: var(--gray-100);
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    color: var(--primary);
}

.page-content pre {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background-color: var(--gray-900);
    border-radius: 8px;
    overflow-x: auto;
}

.page-content pre code {
    background-color: transparent;
    color: var(--gray-100);
    padding: 0;
    font-size: 0.875rem;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: var(--shadow-card);
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.page-content th,
.page-content td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.page-content th {
    background-color: var(--gray-50);
    font-weight: 600;
    color: var(--neutral-dark);
}

.page-content tr:nth-child(even) {
    background-color: var(--gray-50);
}

.page-comments {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-100);
}

.comments-area {
    background-color: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 评论区头部 */
.comments-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
}

.comments-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.comments-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--neutral-dark);
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* 评论统计 */
.comments-stats {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stats-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--gray-600);
}

.stats-item i {
    color: var(--primary);
}

/* 评论排序 */
.comments-sort {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: var(--gray-100);
    border-radius: 6px;
    padding: 4px;
}

.sort-option {
    font-size: 13px;
}

.sort-option a {
    color: var(--gray-600);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: block;
}

.sort-option.active a {
    color: var(--primary);
    background-color: white;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

/* 精选评论 */
.featured-comments {
    margin-bottom: 32px;
    padding: 20px;
    background-color: var(--secondary);
    border-radius: 8px;
    border: 1px solid var(--gray-200);
}

.featured-comments-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--neutral-dark);
    margin-bottom: 20px;
}

.featured-comments-title i {
    color: var(--warning);
}

.featured-comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.featured-comment-item {
    padding: 16px;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.featured-comment-item .comment-author {
    margin-bottom: 12px;
}

.featured-comment-item .comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comment-badge {
    font-size: 11px;
    font-weight: 600;
    color: white;
    background-color: var(--warning);
    padding: 2px 8px;
    border-radius: 10px;
}

.featured-comment-item .comment-content {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--neutral-dark);
}

.featured-comment-item .comment-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.featured-comment-item .comment-action {
    font-size: 13px;
    color: var(--gray-600);
    cursor: pointer;
    transition: color 0.2s ease;
}

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

/* 评论列表标题 */
.comments-list-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--neutral-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.comment-list li {
    margin-bottom: 0;
    padding: 20px 0;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
    transition: all 0.3s ease;
    border: none;
    border-bottom: 1px solid var(--gray-200);
}

.comment-list li:hover {
    background-color: var(--gray-50);
}

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

/* 评论回复的缩进样式 */
.comment-list .children {
    list-style: none;
    margin: 16px 0 0 48px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-list .children li {
    padding: 16px 0;
    border-left: 3px solid var(--primary);
    background-color: transparent;
    border-bottom: 1px solid var(--gray-100);
}

.comment-list .children li:last-child {
    border-bottom: none;
}

/* 腾讯视频风格的回复标识 */
.comment-reply-to {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 8px;
    padding-left: 4px;
}

.comment-reply-to a {
    color: var(--primary);
    text-decoration: none;
}

.comment-reply-to a:hover {
    text-decoration: underline;
}

.comment-author {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

.comment-author .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    margin-bottom: 12px;
}

.comment-author-name {
    font-weight: 600;
    color: var(--primary);
    font-size: 14px;
    margin: 0;
}

.comment-time {
    font-size: 12px;
    color: var(--gray-500);
    margin: 0;
    flex-shrink: 0;
}

/* 评论容器 */
.comments-container {
    margin-bottom: 32px;
}

.comment-content {
    margin-bottom: 16px;
    color: var(--neutral-dark);
    line-height: 1.6;
    font-size: 14px;
    padding: 12px 16px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    max-width: 100%;
}

/* 腾讯新闻风格的评论交互元素 */
.comment-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 12px;
    font-size: 13px;
    color: var(--gray-600);
}

.comment-action {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0;
    border-radius: 0;
    background-color: transparent;
}

.comment-action:hover {
    color: var(--primary);
    background-color: transparent;
    transform: none;
}

.comment-action.liked {
    color: var(--primary);
    background-color: transparent;
}

/* 腾讯新闻风格的评论统计 */
.comment-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--gray-500);
}

.comment-stat {
    display: flex;
    align-items: center;
    gap: 6px;
}

.comment-reply-link {
    font-size: 13px;
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 0;
    border-radius: 0;
    background-color: transparent;
    font-weight: normal;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.comment-reply-link:hover {
    text-decoration: none;
    color: var(--primary);
    background-color: transparent;
    transform: none;
    box-shadow: none;
}

.comment-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 0;
    margin: 32px 0;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
    border: none;
}

.nav-previous,
.nav-next {
    padding: 0 16px;
}

.nav-previous a,
.nav-next a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    background-color: var(--gray-100);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--gray-200);
}

.nav-previous a:hover,
.nav-next a:hover {
    text-decoration: none;
    color: white;
    background-color: var(--primary);
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

/* Comment form styling */
.comment-form {
    background-color: white;
    padding: 20px;
    margin-top: 0;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.comment-reply-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--neutral-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
}

.comment-form p {
    margin-bottom: 16px;
}

/* 基本信息输入框容器使用flex布局 */
.comment-form p.comment-form-author,
.comment-form p.comment-form-email,
.comment-form p.comment-form-url {
    margin-bottom: 0;
    flex: 1;
    min-width: 120px;
    margin-right: 0;
}

.comment-form .comment-form-fields {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap;
}

.comment-form label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 6px;
}

/* 所有评论表单输入框的基础样式 */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    padding: 10px 16px;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: white;
    box-shadow: none;
    width: 100%;
}

/* 文本区域特定样式 */
.comment-form textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
    margin-bottom: 0;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.comment-form .comment-notes {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 16px;
    padding: 8px 12px;
    background-color: var(--gray-50);
    border-radius: 4px;
}

.comment-form .form-submit {
    margin-top: 16px;
}

.comment-form .btn-primary {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    background-color: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.comment-form .btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.comment-form .form-submit {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* 评论输入区域 */
.comment-input-area {
    margin-top: 24px;
    margin-bottom: 32px;
}

/* 评论提示 */
.comment-tips {
    margin-top: 16px;
    padding: 12px 16px;
    background-color: var(--gray-50);
    border-radius: 4px;
    text-align: center;
}

.comment-tips p {
    margin: 0;
    font-size: 12px;
    color: var(--gray-500);
}

.tips-small {
    font-size: 11px !important;
    margin-top: 4px !important;
    color: var(--gray-500);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .comment-form .comment-form-fields {
        flex-direction: column;
        gap: 16px;
    }
    
    .comment-form p.comment-form-author,
    .comment-form p.comment-form-email,
    .comment-form p.comment-form-url {
        min-width: 100%;
    }
    
    .comment-form {
        padding: 16px 0;
    }
    
    .comment-reply-title {
        font-size: 1.125rem;
    }
}

/* 添加placeholder样式 */
.comment-form input::placeholder,
.comment-form textarea::placeholder {
    color: var(--gray-300);
    opacity: 1;
}

/* Article tags styling */
.article-tags {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid var(--gray-100);
}

.article-tags h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--neutral-dark);
    margin-bottom: 16px;
}

.article-tags .tag-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--gray-100);
    color: var(--gray-700);
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-right: 8px;
    margin-bottom: 8px;
}

.article-tags .tag-link:hover {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    transform: translateY(-1px);
}

/* Article meta styling */
.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding: 16px;
    background-color: var(--gray-50);
    border-radius: 8px;
    font-size: 14px;
    color: var(--neutral);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

/* 文章内容包装器 */
.article-content-wrapper {
    padding: 24px;
    background-color: white;
    border-radius: 12px;
    margin-bottom: 32px;
    width: 100%;
}

/* 文章单页卡片样式 */
.article-single-card {
    transition: all 0.3s ease;
    width: 100%;
}

.article-single-card:hover {
}

/* 文章标题样式 - 仅适用于文章内容页 */
.article-content-wrapper .article-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--neutral-dark);
}

/* 文章元信息样式 */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.875rem;
    color: var(--neutral);
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-meta-icon {
    font-size: 0.875rem;
    color: var(--primary);
}

/* 下载按钮样式 */
.download-btn {
    position: relative;
}

.download-btn a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 6px 12px;
    background-color: var(--secondary);
    border-radius: 20px;
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.download-btn a:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.download-btn a:hover .article-meta-icon {
    color: white;
}

.download-btn .download-count {
    font-size: 12px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

/* Download Stats Widget Styles */
.download-stats-widget {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
}

.download-stats-content {
    font-size: 14px;
}

/* Stats type toggle */
.stats-type-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.stats-type-btn {
    flex: 1;
    padding: 6px 12px;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    background-color: white;
    color: var(--neutral);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

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

/* Period toggle */
.period-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.period-btn {
    flex: 1;
    padding: 6px 12px;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    background-color: white;
    color: var(--neutral);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

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

/* Total downloads */
.total-downloads {
    margin-bottom: 16px;
}

.total-title {
    font-size: 13px;
    color: var(--neutral);
    margin-bottom: 4px;
    font-weight: 500;
}

.total-count {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

/* Chart container */
.chart-container {
    margin-bottom: 16px;
    position: relative;
}

/* Recent downloads */
.recent-downloads {
    margin-top: 16px;
}

.recent-title {
    font-size: 13px;
    color: var(--neutral);
    margin-bottom: 8px;
    font-weight: 500;
}

.recent-downloads-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-download-item {
    margin-bottom: 8px;
}

.recent-download-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background-color: var(--gray-50);
    border-radius: 6px;
    color: var(--neutral-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 13px;
}

.recent-download-link:hover {
    background-color: var(--gray-100);
    color: var(--primary);
}

.recent-download-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 8px;
}

.recent-download-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    min-width: 30px;
    text-align: right;
}

.no-downloads {
    text-align: center;
    padding: 12px;
    color: var(--neutral);
    font-size: 13px;
}

/* Dark mode styles for download stats widget */
body.dark-mode .download-stats-widget {
    background-color: #1E293B;
}

body.dark-mode .stats-type-btn {
    background-color: #334155;
    border-color: #475569;
    color: #9CA3AF;
}

body.dark-mode .stats-type-btn:hover {
    border-color: #60A5FA;
    color: #60A5FA;
}

body.dark-mode .stats-type-btn.active {
    background-color: #3B82F6;
    color: white;
    border-color: #3B82F6;
}

body.dark-mode .period-btn {
    background-color: #334155;
    border-color: #475569;
    color: #9CA3AF;
}

body.dark-mode .period-btn:hover {
    border-color: #60A5FA;
    color: #60A5FA;
}

body.dark-mode .period-btn.active {
    background-color: #3B82F6;
    color: white;
    border-color: #3B82F6;
}

body.dark-mode .total-title {
    color: #9CA3AF;
}

body.dark-mode .total-count {
    color: #60A5FA;
}

body.dark-mode .recent-title {
    color: #9CA3AF;
}

body.dark-mode .recent-download-link {
    background-color: #334155;
    color: #E5E7EB;
}

body.dark-mode .recent-download-link:hover {
    background-color: #374151;
    color: #60A5FA;
}

body.dark-mode .recent-download-count {
    color: #60A5FA;
}

body.dark-mode .no-downloads {
    color: #9CA3AF;
}

/* 收藏按钮样式增强 */
.favorite-btn {
    position: relative;
}

.favorite-btn:hover {
    cursor: pointer;
}

.favorite-btn:hover .article-meta-icon {
    color: var(--warning);
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* 优化文章内容样式 - 仅适用于文章内容页 */
.article-content-wrapper .article-content {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--neutral-dark);
}

.article-content-wrapper .article-content h1,
.article-content-wrapper .article-content h2,
.article-content-wrapper .article-content h3,
.article-content-wrapper .article-content h4,
.article-content-wrapper .article-content h5,
.article-content-wrapper .article-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--neutral-dark);
    line-height: 1.3;
}

.article-content-wrapper .article-content h1 { font-size: 1.75rem; }
.article-content-wrapper .article-content h2 { font-size: 1.5rem; }
.article-content-wrapper .article-content h3 { font-size: 1.25rem; }
.article-content-wrapper .article-content h4 { font-size: 1.125rem; }
.article-content-wrapper .article-content h5 { font-size: 1rem; }
.article-content-wrapper .article-content h6 { font-size: 0.875rem; }

.article-content-wrapper .article-content p {
    margin-bottom: 1.25rem;
    color: var(--neutral-dark);
}

.article-content-wrapper .article-content ul,
.article-content-wrapper .article-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.article-content-wrapper .article-content ul li,
.article-content-wrapper .article-content ol li {
    margin-bottom: 0.75rem;
    color: var(--neutral-dark);
}

.article-content-wrapper .article-content ul li {
    list-style-type: disc;
}

.article-content-wrapper .article-content ol li {
    list-style-type: decimal;
}

.article-content-wrapper .article-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--primary);
    background-color: var(--gray-50);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--neutral);
}

.article-content-wrapper .article-content code {
    padding: 0.2rem 0.4rem;
    background-color: var(--gray-100);
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    color: var(--primary);
}

.article-content-wrapper .article-content pre {
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: var(--gray-900);
    border-radius: 8px;
    overflow-x: auto;
}

.article-content-wrapper .article-content pre code {
    background-color: transparent;
    color: var(--gray-100);
    padding: 0;
    font-size: 0.875rem;
}

.article-content-wrapper .article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 1.5rem auto;
    box-shadow: var(--shadow-card);
}

.article-content-wrapper .article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.article-content-wrapper .article-content th,
.article-content-wrapper .article-content td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.article-content-wrapper .article-content th {
    background-color: var(--gray-50);
    font-weight: 600;
    color: var(--neutral-dark);
}

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

/* 文章标签样式优化 */
.article-tags {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.article-tags h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--neutral-dark);
}

.article-tags .tag-link {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    background-color: var(--gray-100);
    color: var(--neutral);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.article-tags .tag-link:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-card);
}

/* 文章评论样式优化 */
.article-comments {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

/* No comments message */
.no-comments {
    text-align: center;
    padding: 48px 24px;
    color: var(--neutral);
    font-size: 14px;
    background-color: var(--gray-50);
    border-radius: 8px;
}

/* Comment moderation message */
.comment-awaiting-moderation {
    font-size: 12px;
    color: var(--warning);
    margin-top: 8px;
    font-style: italic;
}

/* Screen reader text */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Search form */
.search-form {
    position: relative;
    width: 100%;
}

.search-form .search-field {
    width: 100%;
    padding: 8px 16px 8px 40px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

/* 微信列表样式 */
.wechat-list-item {
    background-color: white;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

/* 子分类容器样式 */
.child-categories-container {
    margin-top: 8px;
    margin-bottom: 16px;
    animation: fadeIn 0.3s ease-in-out;
}

/* 确保折叠/展开按钮样式一致 */
.parent-category-toggle:hover,
.category-toggle:hover {
    background-color: var(--gray-100);
    color: var(--primary);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .wechat-list-item {
        padding: 12px 16px;
    }
    
    .wechat-list-item .content-title {
        font-size: 0.9rem;
    }
    
    .wechat-list-item .content-subtitle {
        font-size: 0.8rem;
    }
    
    .wechat-list-item .article-image {
        width: 64px;
        height: 48px;
    }
    
    .child-categories-container {
        margin-left: 16px;
    }
}

/* 深色模式兼容 */
body.dark-mode .wechat-list-item {
    background-color: #1E293B;
    border-bottom-color: #334155;
}

body.dark-mode .wechat-list-item:hover {
    background-color: #334155;
}

body.dark-mode .wechat-list-item .content-title {
    color: #F1F5F9;
}

body.dark-mode .wechat-list-item .content-subtitle {
    color: #94A3B8;
}

body.dark-mode .child-categories-container {
    background-color: #1E293B;
}

body.dark-mode .articles-container {
    background-color: #1E293B;
    border-bottom-color: #334155;
    border-radius: 8px;
}

body.dark-mode .parent-category-toggle:hover,
body.dark-mode .category-toggle:hover {
    background-color: #334155;
    color: #F1F5F9;
}

body.dark-mode .article-card:hover {
    background-color: #334155;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease;
}

.search-form .search-field:hover {
    border-color: var(--gray-300);
}

.search-form .search-field:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
    border-color: var(--primary);
}

.search-form .fa-search {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neutral);
    font-size: 14px;
    cursor: pointer;
}

.search-form .search-submit {
    display: none;
}

/* Theme toggle button */
.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--neutral);
    border: none;
    outline: none;
    background: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 微信风格搜索页面 */
.wechat-search-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* 搜索结果头部 */
.wechat-search-header {
    margin-bottom: 20px;
}

.wechat-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #f0f2f5;
    border-radius: 20px;
    padding: 0 16px;
    height: 40px;
}

.wechat-search-box i.fa-search {
    color: #999;
    margin-right: 8px;
    font-size: 14px;
}

.wechat-search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
    color: #333;
}

.wechat-search-box input::placeholder {
    color: #999;
}

.wechat-search-clear {
    background: transparent;
    border: none;
    color: #999;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 搜索结果统计 */
.wechat-search-stats {
    font-size: 12px;
    color: #999;
    margin-bottom: 16px;
    padding-left: 8px;
}

/* 搜索结果列表 */
.wechat-search-results {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 搜索结果项 */
.wechat-search-item {
    display: flex;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

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

.wechat-search-item:hover {
    background-color: #fafafa;
}

/* 搜索结果项头像 */
.wechat-search-item-avatar {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
}

.wechat-search-item-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wechat-search-item-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background-color: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 20px;
}

/* 搜索结果项内容 */
.wechat-search-item-content {
    flex: 1;
    min-width: 0;
}

.wechat-search-item-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.4;
}

.wechat-search-item-title a {
    color: #333;
    text-decoration: none;
}

.wechat-search-item-title a:hover {
    color: #3b82f6;
}

.wechat-search-item-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wechat-search-item-meta {
    font-size: 11px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 空状态 */
.wechat-search-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.wechat-search-empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #c0c4cc;
    font-size: 40px;
}

.wechat-search-empty-text {
    font-size: 14px;
    margin-bottom: 24px;
}

.wechat-search-empty-btn {
    background-color: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 24px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.wechat-search-empty-btn:hover {
    background-color: #2563eb;
}

/* 分页 */
.wechat-search-pagination {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.wechat-search-pagination-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 适配paginate_links()函数生成的列表结构 */
.wechat-search-pagination-container ul {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.wechat-search-pagination-container li {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wechat-search-pagination-container a,
.wechat-search-pagination-container span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.wechat-search-pagination-container a:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.wechat-search-pagination-container .current {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    font-weight: 500;
}

.wechat-search-pagination-container .dots {
    padding: 6px 8px;
    color: var(--gray-400);
    border: none;
    background: transparent;
}

/* 深色模式适配 */
body.dark-mode .wechat-search-container {
    color: #f1f5f9;
}

body.dark-mode .wechat-search-box {
    background-color: #334155;
}

body.dark-mode .wechat-search-box i.fa-search {
    color: #94a3b8;
}

body.dark-mode .wechat-search-box input {
    color: #f1f5f9;
}

body.dark-mode .wechat-search-box input::placeholder {
    color: #94a3b8;
}

body.dark-mode .wechat-search-clear {
    color: #94a3b8;
}

body.dark-mode .wechat-search-stats {
    color: #94a3b8;
}

body.dark-mode .wechat-search-results {
    background-color: #1e293b;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

body.dark-mode .wechat-search-item {
    border-bottom: 1px solid #334155;
}

body.dark-mode .wechat-search-item:hover {
    background-color: #334155;
}

body.dark-mode .wechat-search-item-avatar img {
    filter: brightness(0.8);
}

body.dark-mode .wechat-search-item-icon {
    background-color: #334155;
    color: #94a3b8;
}

body.dark-mode .wechat-search-item-title {
    color: #f1f5f9;
}

body.dark-mode .wechat-search-item-title a {
    color: #f1f5f9;
}

body.dark-mode .wechat-search-item-title a:hover {
    color: #3b82f6;
}

body.dark-mode .wechat-search-item-desc {
    color: #cbd5e1;
}

body.dark-mode .wechat-search-item-meta {
    color: #94a3b8;
}

body.dark-mode .wechat-search-empty {
    color: #94a3b8;
}

body.dark-mode .wechat-search-empty-icon {
    background-color: #334155;
    color: #64748b;
}

body.dark-mode .wechat-search-empty-btn {
    background-color: #3b82f6;
}

body.dark-mode .wechat-search-empty-btn:hover {
    background-color: #2563eb;
}

/* 深色模式下的分页样式 */
body.dark-mode .wechat-search-pagination-container a,
body.dark-mode .wechat-search-pagination-container span {
    border-color: #475569;
    color: #94a3b8;
}

body.dark-mode .wechat-search-pagination-container a:hover {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

body.dark-mode .wechat-search-pagination-container .current {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

body.dark-mode .wechat-search-pagination-container .dots {
    color: #64748b;
}

/* 登录/注册弹窗样式 */
.login-register-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.3s ease;
}

.login-register-modal.active {
    display: flex;
}

.login-register-modal-content {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 弹窗头部 */
.login-register-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.login-register-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.login-register-modal-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.login-register-modal-close:hover {
    background-color: #f0f0f0;
    color: #333;
}

/* 标签切换 */
.login-register-tabs {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
}

.login-register-tab {
    flex: 1;
    padding: 16px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.login-register-tab:hover {
    color: #3b82f6;
}

.login-register-tab-active {
    color: #3b82f6;
}

.login-register-tab-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #3b82f6;
}

/* 标签内容 */
.login-register-tab-content {
    display: none;
    padding: 20px;
}

.login-register-tab-content-active {
    display: block;
}

/* 表单样式 */
.login-register-form {
    width: 100%;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.form-group-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.form-group-checkbox input {
    width: auto;
    margin-right: 8px;
}

.form-group-checkbox label {
    margin: 0;
    font-weight: 400;
    color: #666;
}

.form-group-checkbox label a {
    color: #3b82f6;
    text-decoration: none;
}

.form-group-checkbox label a:hover {
    text-decoration: underline;
}

.btn-block {
    width: 100%;
    margin-bottom: 16px;
}

/* 表单底部 */
.login-register-footer {
    text-align: center;
    font-size: 14px;
    color: #666;
}

.forgot-password {
    color: #3b82f6;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .login-register-modal-content {
        margin: 0 20px;
        max-width: none;
    }
    
    .login-register-modal-header,
    .login-register-tab-content {
        padding: 16px;
    }
    
    .login-register-tab {
        padding: 12px;
    }
}

/* 深色模式适配 */
body.dark-mode .login-register-modal-content {
    background-color: #1e293b;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .login-register-modal-header {
    border-bottom-color: #334155;
}

body.dark-mode .login-register-modal-title {
    color: #f1f5f9;
}

body.dark-mode .login-register-modal-close {
    color: #94a3b8;
}

body.dark-mode .login-register-modal-close:hover {
    background-color: #334155;
    color: #f1f5f9;
}

body.dark-mode .login-register-tabs {
    border-bottom-color: #334155;
}

body.dark-mode .login-register-tab {
    color: #94a3b8;
}

body.dark-mode .login-register-tab:hover {
    color: #3b82f6;
}

body.dark-mode .form-group label {
    color: #f1f5f9;
}

body.dark-mode .form-group input {
    background-color: #334155;
    border-color: #475569;
    color: #f1f5f9;
}

body.dark-mode .form-group input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

body.dark-mode .form-group-checkbox label {
    color: #94a3b8;
}

body.dark-mode .login-register-footer {
    color: #94a3b8;
}

body.dark-mode .forgot-password {
    color: #3b82f6;
}

body.dark-mode .login-register-tab-active {
    color: #3b82f6;
}

body.dark-mode .login-register-tab-active::after {
    background-color: #3b82f6;
    color: var(--primary);
}

.theme-toggle-btn:hover {
    background-color: var(--gray-100);
}

/* User status */
.user-status {
    margin-left: 16px;
}

.user-status-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--neutral-dark);
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.2s ease;
    border: 1px solid var(--gray-200);
    background-color: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.user-status-link:hover {
    background-color: var(--gray-50);
    border-color: var(--gray-300);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.user-avatar-small {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 8px;
    border: 2px solid var(--gray-100);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.user-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-status-text {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
    color: var(--neutral-dark);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .user-status {
        margin-left: 8px;
    }
    
    .user-status-link {
        padding: 4px 8px;
    }
    
    .user-avatar-small {
        width: 24px;
        height: 24px;
        margin-right: 6px;
    }
    
    .user-status-text {
        font-size: 12px;
        max-width: 80px;
    }
}

/* Dark mode support for user status */
body.dark-mode .user-status-link {
    color: white;
    background-color: var(--gray-800);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

body.dark-mode .user-status-link:hover {
    background-color: var(--gray-700);
    border-color: var(--gray-600);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

body.dark-mode .user-avatar-small {
    border-color: var(--gray-700);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

body.dark-mode .user-status-text {
    color: white;
}

@media (min-width: 768px) {
    .theme-toggle-btn {
        display: flex;
    }
}

/* Dark mode styles */
body.dark-mode {
    background-color: #0F172A;
    color: #F1F5F9;
}

body.dark-mode {
    --primary: #3B82F6;
    --secondary: #1E293B;
    --neutral: #94A3B8;
    --neutral-dark: #F1F5F9;
    --gray-50: #1E293B;
    --gray-100: #334155;
    --gray-200: #475569;
    --gray-300: #64748B;
    --gray-600: #94A3B8;
    --gray-700: #CBD5E1;
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.4);
}

body.dark-mode header {
    background-color: #1E293B;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Dark mode primary menu styles */
body.dark-mode .primary-menu a {
    color: #F1F5F9;
}

body.dark-mode .primary-menu a:hover {
    color: var(--primary);
}

/* Dark mode submenu styles */
body.dark-mode .primary-menu ul {
    background-color: #1E293B;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.dark-mode .primary-menu ul a {
    color: #F1F5F9;
}

body.dark-mode .primary-menu ul a:hover {
    background-color: #334155;
    color: var(--primary);
}

/* Dark mode menu arrow */
body.dark-mode .primary-menu li.menu-item-has-children > a::after {
    color: #94A3B8;
}

body.dark-mode .primary-menu li.menu-item-has-children:hover > a::after {
    color: var(--primary);
}

body.dark-mode .sidebar-card,
body.dark-mode .content-card,
body.dark-mode .article-card {
    background-color: #1E293B;
}

body.dark-mode footer {
    background-color: #1E293B;
    border-top-color: #334155;
}

body.dark-mode .comment-form textarea,
body.dark-mode .comment-form input,
body.dark-mode .search-input,
body.dark-mode .search-form .search-field {
    background-color: #334155;
    border-color: #475569;
    color: #F1F5F9;
}

body.dark-mode .comment-form textarea:focus,
body.dark-mode .comment-form input:focus,
body.dark-mode .search-input:focus,
body.dark-mode .search-form .search-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

body.dark-mode .comment-awaiting-moderation {
    color: #FBBF24;
}

body.dark-mode .article-content pre {
    background-color: #1E293B;
    border-color: #334155;
}

body.dark-mode .article-content table tr:nth-child(even) {
    background-color: #1E293B;
}

body.dark-mode .article-content table th {
    background-color: var(--primary);
    color: white;
}

body.dark-mode .article-content table td {
    border-bottom-color: #334155;
}

body.dark-mode .article-content blockquote {
    background-color: #1E293B;
    border-left-color: var(--primary);
    color: #CBD5E1;
}

body.dark-mode .category-link.menu-active {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-left: 4px solid var(--primary);
}

body.dark-mode .category-link:hover,
body.dark-mode .tag-link:hover,
body.dark-mode .social-link:hover {
    background-color: var(--gray-100);
}

/* 深色模式下的二级分类样式 */
body.dark-mode .category-expand-btn {
    color: var(--gray-500);
}

body.dark-mode .category-expand-btn:hover {
    background-color: var(--gray-100);
    color: var(--gray-300);
}

body.dark-mode .child-category-link {
    color: var(--gray-400);
}

body.dark-mode .child-category-link:hover {
    background-color: var(--gray-100);
    color: var(--primary);
}

body.dark-mode .mobile-search-btn:hover,
body.dark-mode .theme-toggle-btn:hover {
    background-color: #334155;
}

body.dark-mode .tag-cloud-container {
    background-color: #1E293B;
}

body.dark-mode .category-toggle {
    background-color: var(--primary);
    color: white;
}

body.dark-mode .category-toggle:hover {
    background-color: #2563EB;
}

body.dark-mode .articles-container.collapsed {
    border-color: #334155;
}

body.dark-mode .weekly-popular {
    background-color: #1E293B;
}

body.dark-mode .popular-item:hover {
    background-color: #334155;
}

body.dark-mode .category-card {
    background-color: #1E293B;
    border-color: #334155;
}

body.dark-mode .category-archive-header {
    background-color: #1E293B;
}

body.dark-mode .comment-list li {
    border-bottom-color: #334155;
}

body.dark-mode .comment-list li:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .comment-author-name {
    color: var(--primary);
}

body.dark-mode .comment-time {
    color: #9CA3AF;
}

body.dark-mode .comment-content {
    color: #F3F4F6;
    background-color: transparent;
    box-shadow: none;
}

body.dark-mode .comment-list .children li {
    border-left-color: var(--primary);
    border-bottom-color: #334155;
}

body.dark-mode .article-comments {
    border-top-color: #334155;
}

body.dark-mode .comments-area {
    background-color: #1E293B;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid #334155;
}

body.dark-mode .comments-header {
    border-bottom-color: #334155;
}

body.dark-mode .comments-header-top {
    border-bottom-color: #334155;
}

body.dark-mode .comments-title {
    color: #F3F4F6;
}

body.dark-mode .stats-item {
    color: #9CA3AF;
}

body.dark-mode .stats-item i {
    color: var(--primary);
}

body.dark-mode .sort-options {
    background-color: #334155;
}

body.dark-mode .sort-option a {
    color: #9CA3AF;
}

body.dark-mode .sort-option.active a {
    color: var(--primary);
    background-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

body.dark-mode .featured-comments {
    background-color: rgba(37, 99, 235, 0.1);
    border-color: #334155;
}

body.dark-mode .featured-comments-title {
    color: #F3F4F6;
}

body.dark-mode .featured-comment-item {
    background-color: #2A3747;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

body.dark-mode .featured-comment-item .comment-content {
    color: #F3F4F6;
}

body.dark-mode .featured-comment-item .comment-action {
    color: #9CA3AF;
}

body.dark-mode .featured-comment-item .comment-action:hover {
    color: var(--primary);
}

body.dark-mode .comments-list-title {
    color: #F3F4F6;
    border-bottom-color: #334155;
}

body.dark-mode .comment-form {
    background-color: #2A3747;
    border-color: #334155;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

body.dark-mode .comment-reply-title {
    color: #F3F4F6;
    border-bottom-color: #334155;
}

body.dark-mode .comment-form label {
    color: #D1D5DB;
}

body.dark-mode .comment-form input[type="text"],
body.dark-mode .comment-form input[type="email"],
body.dark-mode .comment-form input[type="url"],
body.dark-mode .comment-form textarea {
    background-color: #1E293B;
    border-color: #334155;
    color: #F3F4F6;
    box-shadow: none;
}

body.dark-mode .comment-form input[type="text"]:focus,
body.dark-mode .comment-form input[type="email"]:focus,
body.dark-mode .comment-form input[type="url"]:focus,
body.dark-mode .comment-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
}

body.dark-mode .comment-form .comment-notes {
    background-color: #334155;
    color: #9CA3AF;
}

body.dark-mode .comment-actions {
    color: #9CA3AF;
}

body.dark-mode .comment-action {
    color: #9CA3AF;
}

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

body.dark-mode .comment-action.liked {
    color: var(--primary);
}

body.dark-mode .comment-reply-link {
    color: #9CA3AF;
}

body.dark-mode .comment-reply-link:hover {
    color: var(--primary);
}

body.dark-mode .nav-previous a,
body.dark-mode .nav-next a {
    background-color: #334155;
    border-color: #475569;
    color: var(--primary);
}

body.dark-mode .nav-previous a:hover,
body.dark-mode .nav-next a:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

body.dark-mode .comment-tips {
    background-color: #334155;
    color: #9CA3AF;
}

body.dark-mode .tips-small {
    color: #9CA3AF;
}

body.dark-mode .article-content-wrapper {
    background-color: #1E293B;
}

/* 深色模式下的文章单页样式 */
body.dark-mode .article-single-card {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

body.dark-mode .article-single-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
}

body.dark-mode .article-content-wrapper .article-title {
    color: #F3F4F6;
}

body.dark-mode .article-meta {
    background-color: #1E293B;
    color: #9CA3AF;
    border-bottom-color: #374151;
}

body.dark-mode .article-meta-item {
    color: #9CA3AF;
}

body.dark-mode .article-meta-icon {
    color: #60A5FA;
}

/* Dark mode download button styles */
body.dark-mode .download-btn a {
    background-color: rgba(59, 130, 246, 0.2);
    color: #60A5FA;
}

body.dark-mode .download-btn a:hover {
    background-color: #3B82F6;
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

body.dark-mode .download-btn a:hover .article-meta-icon {
    color: white;
}

/* Dark mode favorite button styles */
body.dark-mode .favorite-btn:hover .article-meta-icon {
    color: #FBBF24;
}

body.dark-mode .article-content-wrapper .article-content {
    color: #E5E7EB;
}

body.dark-mode .article-content-wrapper .article-content h1,
body.dark-mode .article-content-wrapper .article-content h2,
body.dark-mode .article-content-wrapper .article-content h3,
body.dark-mode .article-content-wrapper .article-content h4,
body.dark-mode .article-content-wrapper .article-content h5,
body.dark-mode .article-content-wrapper .article-content h6 {
    color: #F3F4F6;
}

body.dark-mode .article-content-wrapper .article-content p {
    color: #E5E7EB;
}

body.dark-mode .article-content-wrapper .article-content ul li,
body.dark-mode .article-content-wrapper .article-content ol li {
    color: #E5E7EB;
}

body.dark-mode .article-content-wrapper .article-content blockquote {
    background-color: #374151;
    color: #D1D5DB;
    border-left-color: #60A5FA;
}

body.dark-mode .article-content-wrapper .article-content code {
    background-color: #374151;
    color: #60A5FA;
}

body.dark-mode .article-content-wrapper .article-content table {
    background-color: #1E293B;
}

body.dark-mode .article-content-wrapper .article-content th {
    background-color: #374151;
    color: #F3F4F6;
    border-bottom-color: #4B5563;
}

body.dark-mode .article-content-wrapper .article-content td {
    border-bottom-color: #4B5563;
    color: #E5E7EB;
}

body.dark-mode .article-content-wrapper .article-content tr:nth-child(even) {
    background-color: #374151;
}

body.dark-mode .article-tags {
    border-top-color: #374151;
    background-color: #1E293B;
}

body.dark-mode .article-comments {
    border-top-color: #374151;
    background-color: #1E293B;
}

body.dark-mode .sidebar .widget {
    border-bottom-color: #334155;
}

body.dark-mode .sidebar .widget.tags-section,
body.dark-mode .sidebar .widget.authors-section {
    border-top-color: #334155;
}

/* 深色模式下的右侧边栏样式 */
body.dark-mode .right-sidebar .widget,
body.dark-mode .sidebar .widget {
    background-color: #1E293B;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

body.dark-mode .popular-recommendations {
    background-color: #1E293B;
}

body.dark-mode .recommendation-link {
    color: #E5E7EB;
}

body.dark-mode .recommendation-link:hover {
    background-color: #374151;
}

body.dark-mode .recommendation-title {
    color: #F3F4F6;
}

body.dark-mode .recommendation-date {
    color: #9CA3AF;
}

/* 深色模式下的右侧热点小工具样式 */
body.dark-mode .right-hot-widget {
    background-color: #1E293B;
    border-color: #334155;
}

body.dark-mode .hot-article-item.top-3 {
    background-color: #2D3748;
}

body.dark-mode .hot-article-link {
    color: #E5E7EB;
    border-bottom-color: #334155;
}

body.dark-mode .hot-article-link:hover {
    background-color: #374151;
}

body.dark-mode .hot-article-item:last-child .hot-article-link {
    border-bottom: none;
}

body.dark-mode .hot-article-number {
    color: #718096;
}

body.dark-mode .hot-article-number.top-number {
    color: #A0AEC0;
}

body.dark-mode .hot-article-number.top-number-1 {
    color: #EF4444;
}

body.dark-mode .hot-article-number.top-number-2 {
    color: #F97316;
}

body.dark-mode .hot-article-number.top-number-3 {
    color: #F59E0B;
}

/* Social Share Widget Styles */
.social-share-widget {
    margin-bottom: 20px;
}

/* Share Buttons Container */
.share-buttons-container {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* Share Button */
.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #E5E7EB;
    background-color: white;
    color: #374151;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 6px;
}

.share-button:hover {
    background-color: #F3F4F6;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.share-button i {
    font-size: 16px;
}

/* WeChat Button */
.share-button.wechat-button i {
    color: #07C160;
}

/* Reward Button */
.share-button.reward-button i {
    color: #FF6B6B;
}

/* Download Button */
.share-button.download-button i {
    color: #10B981;
}

/* Share Modal */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.share-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.share-modal-content h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #1F2937;
    font-size: 18px;
    font-weight: 600;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    transition: all 0.3s ease;
    border: 1px solid #E5E7EB;
    cursor: pointer;
}

.share-option:hover {
    background-color: #F3F4F6;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.share-option i {
    font-size: 24px;
    margin-bottom: 8px;
}

.share-option span {
    font-size: 12px;
    font-weight: 500;
}

/* Share option colors */
.share-option.qq i {
    color: #12B7F5;
}

.share-option.weibo i {
    color: #E6162D;
}

.share-option.qq-space i {
    color: #FFA500;
}

.share-option.wechat i {
    color: #07C160;
}

.share-option.copy i {
    color: #6C757D;
}

.share-option.reward i {
    color: #FF6B6B;
}

.share-option.download i {
    color: #10B981;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #9CA3AF;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #374151;
}

/* WeChat QR Code Modal */
.wechat-qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.wechat-qr-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    width: 280px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

.qr-code-container {
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

#wechat-qr-code {
    width: 180px;
    height: 180px;
}

.qr-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #6B7280;
}

.qr-loading i {
    margin-bottom: 10px;
    color: #3B82F6;
}

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

.qr-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #EF4444;
    text-align: center;
}

.qr-error i {
    margin-bottom: 10px;
}

.qr-error p {
    margin: 0;
    font-size: 14px;
}

/* Reward Modal */
.reward-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.reward-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.reward-image-container {
    margin: 16px 0;
}

#reward-image {
    max-width: 100%;
    max-height: 400px;
    height: auto;
    width: 300px;
}

/* Copy Notification */
.copy-notification {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background-color: #10b981;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10001;
    font-size: 14px;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50%) translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateY(-50%) translateX(0);
        opacity: 1;
    }
}

body.dark-mode .hot-article-title {
    color: #F3F4F6;
}

body.dark-mode .hot-article-link:hover .hot-article-title {
    color: #60A5FA;
}

/* Dark mode content-header */
body.dark-mode .content-header {
    border-bottom-color: rgba(255, 255, 255, 0.05);
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

body.dark-mode .hot-article-item.top-3 .hot-article-title {
    font-weight: 600;
}

body.dark-mode .footer-bottom {
    border-top-color: #334155;
}

body.dark-mode .content-header {
    border-bottom-color: #334155;
}

body.dark-mode .article-footer {
    border-top-color: #334155;
}

body.dark-mode .category-icon-wrapper {
    background-color: rgba(59, 130, 246, 0.1);
}

body.dark-mode .toggle-count {
    background-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .category-archive-meta {
    color: #94A3B8;
}

body.dark-mode .popular-item-meta {
    color: #94A3B8;
}

body.dark-mode .footer-logo-text {
    color: #F1F5F9;
}

body.dark-mode .author-meta {
    color: #94A3B8;
}

body.dark-mode .article-date {
    color: #94A3B8;
}

body.dark-mode .article-stats {
    color: #94A3B8;
}

body.dark-mode .category-count {
    background-color: rgba(255, 255, 255, 0.1);
    color: #94A3B8;
}

body.dark-mode .category-description {
    color: #94A3B8;
}

body.dark-mode .category-archive-description {
    color: #94A3B8;
}

body.dark-mode .content-subtitle {
    color: #94A3B8;
}

body.dark-mode .footer-logo-description {
    color: #94A3B8;
}

body.dark-mode .footer-link {
    color: #94A3B8;
}

body.dark-mode .footer-bottom {
    color: #94A3B8;
}

body.dark-mode .popular-item-title {
    color: #F1F5F9;
}

body.dark-mode .logo-title,
body.dark-mode .logo-description {
    color: #F1F5F9;
}

body.dark-mode .category-name {
    color: #F1F5F9;
}

body.dark-mode .category-meta {
    color: #94A3B8;
}

body.dark-mode .author-name {
    color: #F1F5F9;
}

body.dark-mode .author-meta {
    color: #94A3B8;
}

body.dark-mode .tag-cloud a {
    background-color: #334155;
    color: #94A3B8;
    border-color: #475569;
}

body.dark-mode .tag-cloud a:hover {
    background-color: rgba(59, 130, 246, 0.2);
    color: var(--primary);
    border-color: var(--primary);
}

/* Social media links styling */
.social-link-wrapper {
    position: relative;
    display: inline-block;
}

.social-qrcode {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 12px;
    background-color: white;
    padding: 8px;
    border-radius: 8px;
    box-shadow: var(--shadow-card-hover);
    display: none;
    z-index: 100;
    text-align: center;
}

.social-link-wrapper:hover .social-qrcode {
    display: block;
}

.qrcode-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

/* Social links hover effect */
.social-link:hover {
    color: var(--primary) !important;
    background-color: rgba(37, 99, 235, 0.1) !important;
}


/* 定义颜色变量 */
.lanse{
    border-radius: 2px;
    border: 1px solid #97afe7;
    background: #fff;
    font-size: 11px;
    line-height: 11px;
    padding: 0 2px;
    color: #597ded;
    margin-left: 12px;
    }
.chengse {
    border-radius: 2px;
    border: 1px solid #ff7801;
    background: #fff;
    font-size: 11px;
    line-height: 11px;
    padding: 0 2px;
    color: #ff7801;
    margin-left: 12px;
    }
.lvse {
    border-radius: 2px;
    border: 1px solid #06bd1e;
    background: #fff;
    font-size: 11px;
    line-height: 11px;
    padding: 0 2px;
    color: #06bd1e;
    margin-left: 12px;
    } 
.zise {
    border-radius: 2px;
    border: 1px solid #f469b9;
    background: #fff;
    font-size: 11px;
    line-height: 11px;
    padding: 0 2px;
    color: #f469b9;
    margin-left: 12px;
    } 
.hongse {
    border-radius: 2px;
    border: 1px solid #ff5b5c;
    background: #fff;
    font-size: 11px;
    line-height: 11px;
    padding: 0 2px;
    color: #ff5b5c;
    margin-left: 12px;
    } 
.jinse {
    border-radius: 2px;
    border: 1px solid #c4b266;
    background: #fff;
    font-size: 11px;
    line-height: 11px;
    padding: 0 2px;
    color: #c4b266;
    margin-left: 12px;
    } 