/* 
 * 雕络文学网 - 古典文学风格UI
 * 设计理念：书香古韵、温润典雅
 * 主色调：朱砂红、墨色、宣纸白、檀木棕
 */

/* ==================== CSS变量 ==================== */
:root {
    /* 主色系 - 中国传统色 */
    --primary-color: #8B2500;        /* 朱砂红 */
    --primary-light: #A52A2A;        /* 浅朱砂 */
    --primary-dark: #6B1C00;         /* 深朱砂 */
    
    /* 辅助色 */
    --ink-color: #2C2C2C;            /* 墨色 */
    --ink-light: #4A4A4A;            /* 淡墨 */
    --wood-color: #5D4037;           /* 檀木棕 */
    --wood-light: #795548;           /* 浅檀木 */
    --gold-color: #B8860B;           /* 古金色 */
    --jade-color: #2E8B57;           /* 玉石绿 */
    
    /* 背景色 */
    --bg-paper: #FDF8F0;             /* 宣纸白 */
    --bg-cream: #F5EFE0;             /* 米黄 */
    --bg-light: #FAF7F2;             /* 浅底 */
    --bg-card: #FFFFFF;              /* 卡片白 */
    
    /* 文字色 */
    --text-primary: #2C2C2C;
    --text-secondary: #5C5C5C;
    --text-muted: #8C8C8C;
    --text-light: #ACACAC;
    
    /* 边框 */
    --border-color: #E8E0D0;
    --border-light: #F0EBE0;
    
    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(44, 44, 44, 0.06);
    --shadow-md: 0 4px 16px rgba(44, 44, 44, 0.08);
    --shadow-lg: 0 8px 32px rgba(44, 44, 44, 0.12);
    
    /* 圆角 */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* 字体 */
    --font-serif: "Noto Serif SC", "Source Han Serif SC", "宋体", serif;
    --font-sans: "Noto Sans SC", "Source Han Sans SC", "微软雅黑", sans-serif;
    
    /* 间距 */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 20px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
}

/* ==================== 基础重置 ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-primary);
    background: var(--bg-paper);
    min-height: 100vh;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

ul, ol {
    list-style: none;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ==================== 布局容器 ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ==================== 头部导航 ==================== */
.header {
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-light) 100%);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    border-bottom: 1px solid var(--border-light);
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-muted);
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-main {
    padding: 12px 0;
}

.header-main .container {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Logo */
.logo {
    flex-shrink: 0;
}

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

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: bold;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--ink-color);
    letter-spacing: 2px;
}

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

/* 导航菜单 */
.nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav a {
    padding: 8px 16px;
    font-size: 15px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav a:hover,
.nav a.active {
    color: var(--primary-color);
    background: rgba(139, 37, 0, 0.06);
}

/* 下拉菜单 */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-dropdown > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    transition: transform 0.2s;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 140px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    z-index: 100;
    padding: 4px 0;
}

.nav-dropdown-menu a {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    color: var(--primary-color);
    background: rgba(139, 37, 0, 0.06);
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

/* 搜索框 */
.search-box {
    flex: 1;
    max-width: 320px;
    margin-left: auto;
}

.search-box form {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-box form:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(139, 37, 0, 0.08);
}

.search-box input {
    flex: 1;
    padding: 9px 14px;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    min-width: 0;
}

.search-box input::placeholder {
    color: var(--text-light);
}

.search-box button {
    padding: 9px 16px;
    background: var(--primary-color);
    color: #fff;
    font-size: 14px;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.search-box button:hover {
    background: var(--primary-dark);
}

/* 用户区域 */
.user-box {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 16px;
}

.user-box a {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.user-box a:hover {
    color: var(--primary-color);
    background: rgba(139, 37, 0, 0.06);
}

.user-box .btn-login {
    background: var(--primary-color);
    color: #fff !important;
}

.user-box .btn-login:hover {
    background: var(--primary-dark);
}

/* 用户下拉菜单 */
.user-dropdown {
    position: relative;
}

.user-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px 4px 4px;
    background: var(--bg-light);
    border-radius: 20px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
    border: none;
}

.user-trigger:hover,
.user-dropdown.open .user-trigger {
    background: var(--bg-cream);
}

.user-trigger .user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    flex-shrink: 0;
    overflow: hidden;
}

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

.user-trigger .user-name {
    font-size: 14px;
    color: var(--text-primary);
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-trigger .dropdown-arrow {
    color: var(--text-muted);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.user-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* 认证标识 */
.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.verified-author {
    width: 16px;
    height: 16px;
    background: #8B2500;
    color: #fff;
}

.user-trigger .verified-badge {
    margin-left: 2px;
}

/* 下拉面板认证标签 */
.user-menu-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 16px;
}

.menu-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.badge-realname {
    background: rgba(76, 175, 80, 0.12);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.badge-author {
    background: rgba(139, 37, 0, 0.10);
    color: #8B2500;
    border: 1px solid rgba(139, 37, 0, 0.25);
}

/* 下拉面板 */
.user-dropdown .user-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.2s ease;
    z-index: 9999;
}

.user-dropdown.open .user-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown .user-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.user-dropdown .user-menu-item:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.user-dropdown .user-menu-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.7;
}

.user-dropdown .user-menu-item:hover svg {
    opacity: 1;
}

.user-dropdown .user-menu-divider {
    height: 1px;
    background: var(--border-light);
    margin: 4px 0;
}

.user-dropdown .user-menu-logout {
    color: #e74c3c;
}

.user-dropdown .user-menu-logout:hover {
    background: rgba(231, 76, 60, 0.08);
    color: #c0392b;
}

/* Toast 提示 */
.toast-container {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}

.toast {
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: #fff;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.3s ease;
    pointer-events: auto;
}

.toast-success {
    background: var(--jade-color);
}

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

.toast-info {
    background: var(--ink-color);
}

.toast-warning {
    background: var(--gold-color);
}

.toast.fade-out {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* ==================== 主体区域 ==================== */
.main {
    min-height: calc(100vh - 200px);
    padding: var(--spacing-xl) 0;
}

/* ==================== 底部 ==================== */
.footer {
    background: var(--ink-color);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.footer-brand .logo-text {
    color: #fff;
    margin-bottom: var(--spacing-sm);
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.8;
}

.footer-links h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: var(--spacing-md);
    font-weight: 500;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 14px;
}

/* ==================== 首页样式 ==================== */
/* 轮播/Banner区域 */
.hero-section {
    margin-bottom: var(--spacing-xl);
}

.hero-banner {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-paper) 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="80" opacity="0.03">文</text></svg>') no-repeat center;
    background-size: contain;
}

.hero-content {
    padding: var(--spacing-xl);
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: 600;
    color: var(--ink-color);
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.hero-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-sm);
}

/* 通用按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    background: var(--bg-card);
}

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

/* 区块标题 */
.section {
    margin-bottom: var(--spacing-xl);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 600;
    color: var(--ink-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-more {
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

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


/* ==================== 文章卡片 ==================== */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.article-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.article-card .cover {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-light) 100%);
}

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

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

.article-card .no-cover {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 56px;
    color: var(--primary-color);
    opacity: 0.3;
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-light) 100%);
}

.article-card .cover-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: var(--primary-color);
    color: #fff;
    font-size: 12px;
    border-radius: 12px;
}

.article-card .info {
    padding: var(--spacing-md);
}

.article-card .category {
    display: inline-block;
    font-size: 12px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.article-card h3 {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.article-card .summary {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card .meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-light);
}

.article-card .meta .author {
    color: var(--text-secondary);
}

/* 文章列表样式 */
.article-list {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.article-item {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-light);
    transition: background 0.3s ease;
}

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

.article-item:hover {
    background: var(--bg-light);
}

.article-item h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

.article-item h3 a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-item h3 .tag-top {
    font-size: 11px;
    padding: 2px 6px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 2px;
}

.article-item h3 .tag-featured {
    font-size: 11px;
    padding: 2px 6px;
    background: var(--gold-color);
    color: #fff;
    border-radius: 2px;
}

.article-item .meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-light);
}

.article-item .summary {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
    line-height: 1.7;
}

/* 文章列表页完整样式 */
.article-list-page .article-item-full {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.article-list-page .article-item-full:hover {
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.article-list-page .article-item-full .cover {
    flex-shrink: 0;
    width: 240px;
    height: 160px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-light);
}

.article-list-page .article-item-full .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-list-page .article-item-full .content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-list-page .article-item-full h2 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-list-page .article-item-full h2 a:hover {
    color: var(--primary-color);
}

.article-list-page .article-item-full .meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.article-list-page .article-item-full .meta .author {
    color: var(--primary-color);
}

.article-list-page .article-item-full .summary {
    flex: 1;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================== 两栏布局 ==================== */
.two-column {
    display: flex;
    gap: var(--spacing-lg);
}

.two-column .main-content {
    flex: 1;
    min-width: 0;
}

.two-column .sidebar {
    width: 320px;
    flex-shrink: 0;
}

/* 侧边栏组件 */
.widget {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
}

.widget-header {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.widget-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-title::before {
    content: '';
    width: 3px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 2px;
}

.widget-body {
    padding: var(--spacing-md);
}

/* 热门排行 */
.hot-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-light);
}

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

.hot-list li:first-child {
    padding-top: 0;
}

.hot-list .rank {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: var(--bg-light);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.hot-list li:nth-child(1) .rank {
    background: var(--primary-color);
    color: #fff;
}

.hot-list li:nth-child(2) .rank {
    background: var(--primary-light);
    color: #fff;
}

.hot-list li:nth-child(3) .rank {
    background: var(--wood-color);
    color: #fff;
}

.hot-list .info {
    flex: 1;
    min-width: 0;
}

.hot-list .info a {
    font-size: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hot-list .info a:hover {
    color: var(--primary-color);
}

.hot-list .info .views {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

/* 作者列表 */
.author-list-widget li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-light);
}

.author-list-widget li:last-child {
    border-bottom: none;
}

.author-list-widget .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-light);
    flex-shrink: 0;
}

.author-list-widget .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-list-widget .no-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 20px;
    color: #fff;
    background: linear-gradient(135deg, var(--wood-color) 0%, var(--wood-light) 100%);
}

.author-list-widget .info {
    flex: 1;
}

.author-list-widget .name {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
}

.author-list-widget .stats {
    font-size: 12px;
    color: var(--text-light);
}


/* ==================== 图书卡片 ==================== */
.book-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--spacing-md);
}

.book-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.book-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.book-card .cover {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-light) 100%);
}

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

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

.book-card .no-cover {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    background: linear-gradient(135deg, var(--wood-color) 0%, var(--wood-light) 100%);
    color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    text-align: center;
}

.book-card .no-cover span {
    font-size: 28px;
    line-height: 1.3;
    writing-mode: vertical-rl;
}

.book-card .info {
    padding: var(--spacing-sm);
    text-align: center;
}

.book-card h3 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-card .author {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.book-card .score {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--gold-color);
    font-weight: 500;
}

.book-card .score::before {
    content: '★';
}

.book-card .price {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
}

/* 图书详情页 */
.book-detail {
    max-width: 1000px;
    margin: 0 auto;
}

.book-info {
    display: flex;
    gap: var(--spacing-xl);
    background: var(--bg-card);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    margin-bottom: var(--spacing-lg);
}

.book-info .cover {
    flex-shrink: 0;
    width: 240px;
    height: 340px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--bg-light);
}

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

.book-info .cover .no-cover {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 48px;
    color: rgba(255, 255, 255, 0.9);
    background: linear-gradient(135deg, var(--wood-color) 0%, var(--wood-light) 100%);
    writing-mode: vertical-rl;
}

.book-info .details {
    flex: 1;
}

.book-info .details h1 {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--ink-color);
}

.book-info .details p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.book-info .details p strong {
    color: var(--text-primary);
    min-width: 70px;
}

.book-info .details .score {
    font-size: 24px;
    color: var(--gold-color);
    font-weight: 600;
}

.book-info .tags {
    margin: var(--spacing-md) 0;
}

.book-info .btn-buy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--primary-color);
    color: #fff;
    font-size: 16px;
    border-radius: var(--radius-sm);
    margin-top: var(--spacing-md);
    transition: all 0.3s ease;
}

.book-info .btn-buy:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.book-intro {
    background: var(--bg-card);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    margin-bottom: var(--spacing-lg);
}

.book-intro h2 {
    font-family: var(--font-serif);
    font-size: 20px;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-light);
}

.book-intro .intro-content {
    font-size: 16px;
    line-height: 2;
    color: var(--text-secondary);
}

/* ==================== 文章详情页 ==================== */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.article-header {
    padding: var(--spacing-xl);
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-card) 100%);
}

.article-header h1 {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 600;
    color: var(--ink-color);
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

.article-header .subtitle {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: normal;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.article-header .meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: var(--text-muted);
}

.article-header .meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-header .meta a {
    color: var(--primary-color);
}

.article-header .original-info {
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-cream);
    border-radius: var(--radius-sm);
    display: inline-block;
    font-size: 14px;
    color: var(--wood-color);
}

.article-body {
    padding: var(--spacing-xl);
    font-family: var(--font-serif);
    font-size: 17px;
    line-height: 2;
    color: var(--text-primary);
}

.article-body p {
    margin-bottom: 1.5em;
    text-indent: 2em;
}

.article-body h2, .article-body h3 {
    margin: 2em 0 1em;
    font-weight: 600;
}

.article-body blockquote {
    margin: 1.5em 0;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-cream);
    border-left: 4px solid var(--primary-color);
    font-style: italic;
    color: var(--text-secondary);
}

.article-body img {
    max-width: 100%;
    margin: 1.5em auto;
    border-radius: var(--radius-sm);
}

.article-footer {
    padding: var(--spacing-lg) var(--spacing-xl);
    border-top: 1px solid var(--border-light);
    background: var(--bg-light);
}

.article-footer .tags {
    margin-bottom: var(--spacing-md);
}

.article-footer .tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.article-footer .tag:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(139, 37, 0, 0.05);
}

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

.article-footer .actions button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.article-footer .actions button:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.article-footer .actions button.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* 相关文章 */
.related-articles {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.related-articles h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-light);
}

.related-articles ul li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-light);
}

.related-articles ul li:last-child {
    border-bottom: none;
}

.related-articles ul li a {
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.related-articles ul li a::before {
    content: '›';
    color: var(--primary-color);
    font-size: 18px;
}

.related-articles ul li a:hover {
    color: var(--primary-color);
}


/* ==================== 评论区 ==================== */
.comments-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.comments-section > h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-light);
}

.comment-form {
    margin-bottom: var(--spacing-lg);
}

.comment-form textarea {
    width: 100%;
    height: 120px;
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    resize: vertical;
    font-size: 15px;
    line-height: 1.6;
    transition: border-color 0.3s ease;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.comment-form .btn-submit {
    margin-top: var(--spacing-sm);
    padding: 10px 24px;
    background: var(--primary-color);
    color: #fff;
    font-size: 14px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

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

.comment-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-light);
}

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

.comment-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-light);
}

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

.comment-content {
    flex: 1;
}

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

.comment-header .username {
    font-weight: 500;
    color: var(--text-primary);
}

.comment-header .time {
    font-size: 13px;
    color: var(--text-light);
}

.comment-body {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

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

.comment-actions button {
    font-size: 13px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s ease;
}

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

.comment-replies {
    margin-left: 60px;
    padding-left: var(--spacing-md);
    border-left: 2px solid var(--border-light);
}

.comment-replies .comment-item {
    padding: var(--spacing-sm) 0;
}

.comment-replies .comment-item.reply .comment-content {
    font-size: 14px;
}

/* ==================== 认证页面 ==================== */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: var(--spacing-xl) 0;
    position: relative;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(139, 37, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(93, 64, 55, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.auth-box {
    width: 440px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-light);
    padding: 48px 40px;
    box-shadow: 
        0 20px 60px rgba(44, 44, 44, 0.08),
        0 0 0 1px rgba(139, 37, 0, 0.02) inset;
    position: relative;
    z-index: 1;
    animation: authBoxSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authBoxSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--wood-color) 100%);
    border-radius: 20px 20px 0 0;
}

.auth-box-wide {
    width: 560px;
}

.auth-box h1 {
    font-family: var(--font-serif);
    font-size: 30px;
    text-align: center;
    margin-bottom: 10px;
    color: var(--ink-color);
    font-weight: 600;
    letter-spacing: 1px;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 36px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group label .required {
    color: var(--primary-color);
}

.form-group label .optional {
    color: var(--text-light);
    font-weight: normal;
    font-size: 12px;
}

.form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(139, 37, 0, 0.08);
}

.form-group input::placeholder {
    color: var(--text-light);
    font-size: 13px;
}

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

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

.btn-submit:disabled {
    background: var(--text-light);
    cursor: not-allowed;
}

.form-footer {
    text-align: center;
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-light);
    font-size: 14px;
    color: var(--text-muted);
}

.form-footer a {
    color: var(--primary-color);
    font-weight: 500;
}

/* ==================== 分类页面 ==================== */
.category-page .page-title,
.tag-page .page-title,
.author-page .page-title,
.book-page .page-title {
    font-family: var(--font-serif);
    font-size: 28px;
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--ink-color);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.category-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
}

.category-card:hover {
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.category-card .icon {
    width: 64px;
    height: 64px;
    margin-bottom: var(--spacing-md);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.category-card .icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card .icon-text {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 28px;
    color: #fff;
}

.category-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.category-card .description {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
}

.category-card .sub-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px dashed var(--border-light);
}

.category-card .sub-item {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 4px 10px;
    background: var(--bg-light);
    border-radius: 12px;
}

.category-card .sub-item:hover {
    background: var(--primary-color);
    color: #fff;
}

/* 分类详情页头部 */
.category-header,
.tag-header {
    text-align: center;
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-paper) 100%);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
}

.category-header h1,
.tag-header h1 {
    font-family: var(--font-serif);
    font-size: 32px;
    color: var(--ink-color);
    margin-bottom: var(--spacing-sm);
}

.category-header .description,
.tag-header .description {
    font-size: 16px;
    color: var(--text-secondary);
}

.tag-header .count {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ==================== 标签云 ==================== */
.tag-cloud {
    background: var(--bg-card);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    text-align: center;
}

.tag-item {
    display: inline-block;
    margin: 8px;
    padding: 8px 20px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: scale(1.05);
}

.tag-item .count {
    font-size: 12px;
    opacity: 0.7;
}

/* ==================== 作者页面 ==================== */
.author-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

.author-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    padding: var(--spacing-lg);
    text-align: center;
    transition: all 0.3s ease;
}

.author-card:hover {
    box-shadow: var(--shadow-md);
    border-color: transparent;
    transform: translateY(-4px);
}

.author-card .avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-light);
    border: 3px solid var(--border-light);
}

.author-card .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-card .no-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 32px;
    color: #fff;
    background: linear-gradient(135deg, var(--wood-color) 0%, var(--wood-light) 100%);
}

.author-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
}

.author-card .intro {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.author-card .stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 13px;
    color: var(--text-light);
}

/* 作者详情页 */
.author-detail .author-profile {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    background: var(--bg-card);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    margin-bottom: var(--spacing-lg);
}

.author-detail .author-profile .avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 4px solid var(--border-light);
    box-shadow: var(--shadow-md);
}

.author-detail .author-profile .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-detail .author-profile .no-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 48px;
    color: #fff;
    background: linear-gradient(135deg, var(--wood-color) 0%, var(--wood-light) 100%);
}

.author-detail .author-profile .info h1 {
    font-family: var(--font-serif);
    font-size: 28px;
    margin-bottom: var(--spacing-sm);
}

.author-detail .author-profile .info .intro {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.author-detail .author-profile .stats {
    display: flex;
    gap: var(--spacing-lg);
}

.author-detail .author-profile .stats span {
    font-size: 14px;
    color: var(--text-muted);
}

.author-detail .author-profile .stats strong {
    display: block;
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.author-works h2 {
    font-family: var(--font-serif);
    font-size: 22px;
    margin-bottom: var(--spacing-md);
}


/* ==================== 搜索页面 ==================== */
.search-page .search-header {
    background: var(--bg-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    margin-bottom: var(--spacing-lg);
}

.search-page .search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto var(--spacing-md);
}

.search-page .search-form input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--border-color);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.search-page .search-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-page .search-form button {
    padding: 14px 32px;
    background: var(--primary-color);
    color: #fff;
    font-size: 16px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    transition: background 0.3s ease;
}

.search-page .search-form button:hover {
    background: var(--primary-dark);
}

.search-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.search-tabs a {
    padding: 8px 24px;
    font-size: 14px;
    color: var(--text-secondary);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.search-tabs a:hover,
.search-tabs a.active {
    background: var(--primary-color);
    color: #fff;
}

.search-results .result-section {
    margin-bottom: var(--spacing-lg);
}

.search-results .result-section h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-results .result-section h2::before {
    content: '';
    width: 3px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 2px;
}

.search-results .article-item,
.search-results .book-item,
.search-results .author-item {
    background: var(--bg-card);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    margin-bottom: var(--spacing-sm);
    transition: all 0.3s ease;
}

.search-results .article-item:hover,
.search-results .book-item:hover,
.search-results .author-item:hover {
    box-shadow: var(--shadow-sm);
    border-color: transparent;
}

.search-results .article-item h3,
.search-results .book-item h3,
.search-results .author-item h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.search-results .summary,
.search-results .intro {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

.search-results .meta {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 8px;
}

.no-result,
.search-tips {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-muted);
    font-size: 16px;
}

/* ==================== 筛选栏 ==================== */
.filter-bar {
    background: var(--bg-card);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-bar a {
    padding: 8px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.filter-bar a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.filter-bar a.active {
    background: var(--primary-color);
    color: #fff;
}

/* ==================== 分页 ==================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: var(--spacing-xl);
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

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

.pagination .active,
.pagination span.current {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

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

/* ==================== 用户中心 ==================== */
.user-profile {
    display: flex;
    gap: var(--spacing-lg);
}

.user-profile .sidebar-menu {
    width: 240px;
    flex-shrink: 0;
}

.user-profile .sidebar-menu .menu-item {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    margin-bottom: 4px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.user-profile .sidebar-menu .menu-item:hover,
.user-profile .sidebar-menu .menu-item.active {
    background: var(--primary-color);
    color: #fff;
}

.user-profile .main-content {
    flex: 1;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: var(--spacing-lg);
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1200px) {
    .book-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .header-main .container {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .nav-dropdown {
        position: static;
    }

    .nav-dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        padding-left: 16px;
        background: transparent;
    }

    .nav-dropdown:hover .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown-menu a {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .search-box {
        flex: 1;
        max-width: none;
        order: 2;
    }
    
    .user-box {
        order: 1;
        margin-left: auto;
    }
    
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .book-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .author-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .two-column {
        flex-direction: column;
    }
    
    .two-column .sidebar {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-xl: 32px;
        --spacing-lg: 24px;
    }
    
    .nav {
        display: none;
    }
    
    .search-box {
        max-width: 200px;
    }
    
    .hero-banner {
        height: auto;
        padding: var(--spacing-lg);
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .book-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .author-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .article-list-page .article-item-full {
        flex-direction: column;
    }
    
    .article-list-page .article-item-full .cover {
        width: 100%;
        height: 200px;
    }
    
    .book-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .author-detail .author-profile {
        flex-direction: column;
        text-align: center;
    }
    
    .author-detail .author-profile .stats {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 22px;
    }
    
    .book-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    .author-grid {
        grid-template-columns: 1fr;
    }
    
    .auth-box {
        width: 100%;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }
    
    .auth-box-wide {
        width: 100%;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* ==================== 动画效果 ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* 加载动画 */
.loading {
    display: flex;
    justify-content: center;
    padding: var(--spacing-xl);
}

.loading::after {
    content: '';
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* 选中文字样式 */
::selection {
    background: var(--primary-color);
    color: #fff;
}


/* ==================== 用户中心 ==================== */
.user-center {
    max-width: 1200px;
    margin: 0 auto;
}

.user-center-layout {
    display: flex;
    gap: var(--spacing-lg);
}

/* 用户侧边栏 */
.user-sidebar {
    width: 240px;
    flex-shrink: 0;
}

.user-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: var(--spacing-lg);
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.user-card-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

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

.user-card-avatar span {
    font-size: 32px;
    color: #fff;
    font-weight: 500;
}

.avatar-upload-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 28px;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.avatar-upload-btn svg {
    color: #fff;
}

.user-card-avatar:hover .avatar-upload-btn {
    opacity: 1;
}

.user-card-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink-color);
    margin-bottom: 4px;
}

.user-card-email {
    font-size: 13px;
    color: var(--text-muted);
}

.user-card-signature {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px dashed var(--border-light);
}

.user-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.card-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.card-badge-realname {
    background: rgba(76, 175, 80, 0.12);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.card-badge-author {
    background: rgba(139, 37, 0, 0.10);
    color: #8B2500;
    border: 1px solid rgba(139, 37, 0, 0.25);
}

/* 文章列表作者认证徽章 */
.author-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
    vertical-align: middle;
    margin-left: 3px;
}

.author-badge-realname {
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
}

.author-badge-verified {
    background: rgba(139, 37, 0, 0.12);
    color: #8B2500;
}

/* 用户菜单 */
.user-menu {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.user-menu .menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    font-size: 15px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

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

.user-menu .menu-item:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.user-menu .menu-item.active {
    background: rgba(139, 37, 0, 0.06);
    color: var(--primary-color);
    font-weight: 500;
}

.user-menu .menu-item-danger:hover {
    color: var(--primary-color);
}

/* 用户主内容区 */
.user-main {
    flex: 1;
    min-width: 0;
}

.user-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.user-section .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-light);
}

.user-section .section-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink-color);
}

.section-tabs {
    display: flex;
    gap: 8px;
}

.section-tabs a {
    padding: 6px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.section-tabs a:hover,
.section-tabs a.active {
    background: var(--primary-color);
    color: #fff;
}

/* 个人资料表单 */
.profile-form .form-row {
    display: flex;
    gap: 20px;
}

.profile-form .form-row .form-group {
    flex: 1;
}

.profile-form .form-group {
    margin-bottom: 20px;
}

.profile-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.profile-form input,
.profile-form select,
.profile-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: all 0.2s ease;
}

.profile-form input:focus,
.profile-form select:focus,
.profile-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(139, 37, 0, 0.08);
}

.profile-form .input-disabled {
    background: var(--bg-light);
    color: var(--text-muted);
    cursor: not-allowed;
}

.profile-form .form-hint {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

.profile-form textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: var(--spacing-md);
}

/* 账号信息列表 */
.info-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}

.info-label {
    font-size: 14px;
    color: var(--text-muted);
}

.info-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.info-value.status-normal {
    color: var(--jade-color);
}

/* 收藏列表 */
.collect-list,
.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.collect-item,
.history-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.collect-item:hover,
.history-item:hover {
    background: var(--bg-cream);
}

.collect-content,
.history-content {
    flex: 1;
    min-width: 0;
}

.collect-content h3,
.history-content h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 6px;
}

.collect-content h3 a:hover,
.history-content h3 a:hover {
    color: var(--primary-color);
}

.collect-summary {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.collect-meta,
.history-meta {
    font-size: 13px;
    color: var(--text-light);
    display: flex;
    gap: 16px;
}

.collect-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 20px;
}

.collect-time,
.history-time {
    font-size: 13px;
    color: var(--text-light);
}

.btn-remove {
    font-size: 13px;
    color: var(--text-muted);
    padding: 4px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    cursor: pointer;
    transition: all 0.2s ease;
}

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

/* 阅读进度 */
.history-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 20px;
}

.history-progress {
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-bar {
    width: 80px;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
}

.progress-text {
    font-size: 13px;
    color: var(--text-muted);
    min-width: 36px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-muted);
}

.empty-state svg {
    margin-bottom: var(--spacing-md);
    opacity: 0.3;
}

.empty-state p {
    font-size: 15px;
    margin-bottom: var(--spacing-md);
}

/* 弹窗 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    width: 400px;
    max-width: 90%;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--text-primary);
}

.modal .form-group {
    margin-bottom: 16px;
}

.modal .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.modal .form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.modal .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.modal .form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: var(--spacing-lg);
}

/* 响应式 - 用户中心 */
@media (max-width: 768px) {
    .user-center-layout {
        flex-direction: column;
    }
    
    .user-sidebar {
        width: 100%;
    }
    
    .user-card {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 16px;
        padding: 16px;
    }
    
    .user-card-avatar {
        width: 56px;
        height: 56px;
        margin: 0;
    }
    
    .user-card-avatar span {
        font-size: 24px;
    }
    
    .user-center-layout .user-menu {
        display: flex;
        overflow-x: auto;
    }

    .user-center-layout .user-menu .menu-item {
        flex-shrink: 0;
        border-bottom: none;
        border-right: 1px solid var(--border-light);
        padding: 12px 16px;
    }

    .user-center-layout .user-menu .menu-item:last-child {
        border-right: none;
    }
    
    .profile-form .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .info-list {
        grid-template-columns: 1fr;
    }
    
    .collect-item,
    .history-item {
        flex-direction: column;
        gap: 12px;
    }
    
    .collect-actions,
    .history-info {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        margin-left: 0;
    }
}


/* ==================== 投稿中心 ==================== */
.contribute-page {
    max-width: 1200px;
    margin: 0 auto;
}

/* 投稿页头部 */
.contribute-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
}

.contribute-header h1 {
    font-family: var(--font-serif);
    font-size: 28px;
    color: var(--ink-color);
}

.contribute-header .btn-create {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: #fff;
    font-size: 15px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.contribute-header .btn-create:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 投稿状态标签页 */
.contribute-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-card);
    padding: 8px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    margin-bottom: var(--spacing-md);
}

.contribute-tabs a {
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contribute-tabs a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.contribute-tabs a.active {
    background: var(--primary-color);
    color: #fff;
}

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

.contribute-tabs a:not(.active) .count {
    background: var(--bg-light);
    color: var(--text-muted);
}

/* 投稿列表 */
.contribute-list {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.contribute-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-light);
    transition: background 0.2s ease;
}

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

.contribute-item:hover {
    background: var(--bg-light);
}

.contribute-cover {
    width: 160px;
    height: 100px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-cream);
}

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

.contribute-cover .no-cover {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 32px;
    color: var(--primary-color);
    opacity: 0.3;
}

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

.contribute-content h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contribute-content h3 a:hover {
    color: var(--primary-color);
}

.contribute-status {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: normal;
}

.status-draft {
    background: var(--bg-light);
    color: var(--text-muted);
}

.status-pending {
    background: #FFF3E0;
    color: #E65100;
}

.status-approved {
    background: #E8F5E9;
    color: #2E7D32;
}

.status-rejected {
    background: #FFEBEE;
    color: #C62828;
}

.status-published {
    background: var(--primary-color);
    color: #fff;
}

.status-withdrawn {
    background: var(--bg-cream);
    color: var(--wood-color);
}

.contribute-summary {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.contribute-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: var(--text-light);
}

.contribute-meta .category {
    color: var(--primary-color);
}

.contribute-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
}

.contribute-actions .btn-action {
    padding: 6px 16px;
    font-size: 13px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.contribute-actions .btn-action:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.contribute-actions .btn-edit {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.contribute-actions .btn-edit:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.contribute-actions .btn-delete:hover {
    border-color: #C62828;
    color: #C62828;
}

/* 拒绝原因 */
.reject-reason {
    margin-top: 8px;
    padding: 10px 14px;
    background: #FFEBEE;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: #C62828;
}

.reject-reason strong {
    display: block;
    margin-bottom: 4px;
}

/* ==================== 投稿编辑器 ==================== */
.contribute-editor {
    max-width: 900px;
    margin: 0 auto;
}

.editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
}

.editor-header h1 {
    font-family: var(--font-serif);
    font-size: 24px;
    color: var(--ink-color);
}

.editor-header .back-link {
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.editor-header .back-link:hover {
    color: var(--primary-color);
}

.editor-form {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: var(--spacing-xl);
}

.editor-section {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-light);
}

.editor-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.editor-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink-color);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: 8px;
}

.editor-section h3::before {
    content: '';
    width: 3px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* 标题输入 */
.title-input {
    width: 100%;
    padding: 16px 20px;
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 500;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.title-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 37, 0, 0.08);
}

.title-input::placeholder {
    color: var(--text-light);
}

.subtitle-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-top: 12px;
}

.subtitle-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 分类选择 */
.category-select-group {
    display: flex;
    gap: 16px;
}

.category-select-group select {
    flex: 1;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    cursor: pointer;
}

.category-select-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 内容类型选择 */
.type-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.type-option {
    position: relative;
}

.type-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.type-option label {
    display: inline-block;
    padding: 10px 24px;
    font-size: 14px;
    color: var(--text-secondary);
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.type-option input:checked + label {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.type-option label:hover {
    border-color: var(--primary-color);
}

/* 封面上传 */
.cover-upload {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.cover-preview {
    width: 240px;
    height: 150px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-light);
    border: 2px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    color: var(--text-light);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cover-preview:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.cover-preview.has-image {
    border-style: solid;
    border-color: var(--border-light);
}

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

.cover-tips {
    flex: 1;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.8;
}

.cover-tips p {
    margin-bottom: 8px;
}

/* 内容编辑器 */
.content-editor {
    width: 100%;
    min-height: 400px;
    padding: 20px;
    font-family: var(--font-serif);
    font-size: 16px;
    line-height: 2;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    resize: vertical;
    transition: border-color 0.3s ease;
}

.content-editor:focus {
    outline: none;
    border-color: var(--primary-color);
}

.content-editor::placeholder {
    color: var(--text-light);
}

/* 摘要输入 */
.summary-input {
    width: 100%;
    min-height: 100px;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.8;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    resize: vertical;
}

.summary-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 6px;
}

/* 标签输入 */
.tags-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.tags-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.tags-hint {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 6px;
}

/* 原创设置 */
.original-options {
    display: flex;
    gap: 24px;
    margin-bottom: var(--spacing-md);
}

.original-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.original-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.original-fields {
    display: none;
    gap: 16px;
    padding: var(--spacing-md);
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}

.original-fields.show {
    display: flex;
}

.original-fields .form-group {
    flex: 1;
    margin-bottom: 0;
}

.original-fields label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.original-fields input {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

/* 编辑器底部操作 */
.editor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-light);
}

.editor-footer .tips {
    font-size: 13px;
    color: var(--text-light);
}

.editor-footer .actions {
    display: flex;
    gap: 12px;
}

.btn-draft {
    padding: 12px 28px;
    font-size: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.btn-submit-contribute {
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--primary-color);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-submit-contribute:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ==================== 投稿预览 ==================== */
.contribute-preview {
    max-width: 800px;
    margin: 0 auto;
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
}

.preview-header h1 {
    font-family: var(--font-serif);
    font-size: 24px;
    color: var(--ink-color);
}

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

.preview-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.preview-article-header {
    padding: var(--spacing-xl);
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-card) 100%);
}

.preview-article-header h2 {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 600;
    color: var(--ink-color);
    margin-bottom: var(--spacing-sm);
}

.preview-article-header .subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.preview-article-header .meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 14px;
    color: var(--text-muted);
}

.preview-article-body {
    padding: var(--spacing-xl);
    font-family: var(--font-serif);
    font-size: 17px;
    line-height: 2;
    color: var(--text-primary);
}

.preview-article-body p {
    margin-bottom: 1.5em;
    text-indent: 2em;
}

.preview-notice {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background: #FFF3E0;
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 14px;
    color: #E65100;
}

/* 导航投稿按钮高亮 */
.nav .nav-contribute {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: #fff !important;
}

.nav .nav-contribute:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

/* 响应式 */
@media (max-width: 768px) {
    .contribute-header {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .contribute-tabs {
        flex-wrap: wrap;
    }
    
    .contribute-item {
        flex-direction: column;
    }
    
    .contribute-cover {
        width: 100%;
        height: 160px;
    }
    
    .contribute-actions {
        flex-direction: row;
        width: 100%;
        justify-content: flex-end;
    }
    
    .cover-upload {
        flex-direction: column;
    }
    
    .cover-preview {
        width: 100%;
    }
    
    .category-select-group {
        flex-direction: column;
    }
    
    .editor-footer {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .editor-footer .actions {
        width: 100%;
    }
    
    .editor-footer .actions button {
        flex: 1;
    }
}


/* 备案号样式 */
.footer-bottom .beian {
    margin-top: 10px !important;
    font-size: 13px !important;
}

.footer-bottom .beian a {
    color: rgba(255, 255, 255, 0.7) !important;
    transition: color 0.3s ease;
}

.footer-bottom .beian a:hover {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: underline;
}
