/* 基础样式 - 新中式极简风格 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* ===== 主色调 - 黛蓝系（中国传统色） ===== */
    --primary-color: #2B5F75;
    --primary-light: #4A7A8F;
    --primary-dark: #1A3A4A;
    
    /* ===== 辅助/点缀色 - 朱砂系（中国传统色） ===== */
    --accent-color: #C9372C;
    --accent-hover: #9A2A22;
    --accent-light: #E05548;
    
    /* ===== 金色系（中国传统装饰色） ===== */
    --gold-color: #D4A574;
    --gold-light: #E0BC94;
    --gold-dark: #B88A5A;
    
    /* ===== 背景色系 - 牙白质感（宣纸效果） ===== */
    --secondary-color: #F7F3E8;
    --secondary-light: #FFFBF0;
    --secondary-dark: #F0EBE0;
    --bg-primary: #FFFBF0;
    --bg-secondary: #FFFBF0;
    --bg-overlay: rgba(43, 95, 117, 0.85);
    
    /* ===== 文字色系 - 墨色 ===== */
    --text-primary: #1A1A1A;
    --text-secondary: #4A4A4A;
    --text-light: #7A7A7A;
    --text-white: #FFFFFF;
    
    /* ===== 边框色 ===== */
    --border-color: #D4C4B0;
    --border-light: #E8DED0;
    
    /* 阴影 - 黛蓝色调 */
    --shadow-sm: 0 2px 8px rgba(43, 95, 117, 0.1);
    --shadow-md: 0 4px 16px rgba(43, 95, 117, 0.15);
    --shadow-lg: 0 8px 32px rgba(43, 95, 117, 0.2);
    
    /* 圆角 */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* 间距 */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 5rem;
    
    /* 字体 */
    --font-family: 'Noto Serif SC', 'Source Han Serif SC', 'Source Han Serif', '思源宋体', 'Songti SC', simsun, serif;
    --font-sans: 'PingFang SC', 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
    
    /* 过渡动画 */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

body {
    font-family: var(--font-family);
    line-height: 1.8;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* 宣纸纹理效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1;
}

/* 导航栏 - 新中式极简设计 */
.navbar {
    background: var(--secondary-light);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-normal);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-white);
    font-weight: bold;
    box-shadow: var(--shadow-sm);
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.logo-title {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--primary-color);
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-light);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

@media (min-width: 1200px) {
    .nav-links {
        gap: 2.5rem;
    }
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color var(--transition-fast);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--gold-color));
    transition: width var(--transition-normal);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-box form {
    display: flex;
    align-items: center;
    background: var(--secondary-color);
    border-radius: var(--radius-full);
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--border-light);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.search-box form:focus-within {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    background: var(--secondary-light);
}

.search-box input {
    border: none;
    outline: none;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: transparent;
    width: 150px;
    font-family: var(--font-sans);
}

@media (min-width: 1200px) {
    .search-box input {
        width: 200px;
    }
}

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

.search-box button {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    border: none;
    border-radius: var(--radius-full);
    padding: 0.5rem 1.5rem;
    color: var(--text-white);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.search-box button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hero 区域 - 全屏山水背景 - 黛蓝主色调 */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        rgba(43, 95, 117, 0.92) 0%, 
        rgba(26, 58, 74, 0.88) 50%,
        rgba(43, 95, 117, 0.92) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 1080"><defs><linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%234A7A8F;stop-opacity:0.4" /><stop offset="100%" style="stop-color:%232B5F75;stop-opacity:0.6" /></linearGradient></defs><rect fill="url(%23grad1)" width="1920" height="1080"/><path d="M0,800 Q480,700 960,800 T1920,800 L1920,1080 L0,1080 Z" fill="%232B5F75" opacity="0.5"/><path d="M0,850 Q480,750 960,850 T1920,850 L1920,1080 L0,1080 Z" fill="%231A3A4A" opacity="0.4"/></svg>');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 30%, transparent 0%, rgba(43, 95, 117, 0.35) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--text-white);
    max-width: 1200px;
    padding: 0 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--gold-color);
    border-radius: var(--radius-full);
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    color: var(--text-white);
}

.hero-title {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 1.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    font-family: var(--font-family);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 0.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-description {
    font-size: 1.1rem;
    line-height: 2;
    max-width: 800px;
    margin: 0 auto 3rem;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-search {
    max-width: 700px;
    margin: 0 auto 3rem;
}

.hero-search form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-full);
    padding: 0.75rem 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all var(--transition-normal);
}

.hero-search form:focus-within {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.02);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

.hero-search input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    color: var(--text-primary);
    background: transparent;
    font-family: var(--font-sans);
    padding: 0.5rem;
}

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

.hero-search button {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    border: none;
    border-radius: var(--radius-full);
    padding: 0.75rem 2.5rem;
    color: var(--text-white);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 600;
    font-size: 1rem;
    box-shadow: var(--shadow-md);
}

.hero-search button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-category-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--gold-color);
    border-radius: var(--radius-full);
    padding: 0.75rem 1.5rem;
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-category-btn:hover {
    background: rgba(212, 165, 116, 0.2);
    border-color: var(--gold-light);
    transform: translateY(-2px);
}

.hero-category-btn .icon {
    font-size: 1.2rem;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.hero-cta-btn {
    padding: 1rem 2.5rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
    cursor: pointer;
    letter-spacing: 1px;
}

.hero-cta-btn.primary {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: var(--text-white);
    border: none;
    box-shadow: var(--shadow-md);
}

.hero-cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.hero-cta-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--text-white);
    border: 1px solid var(--gold-color);
}

.hero-cta-btn.secondary:hover {
    background: rgba(212, 165, 116, 0.2);
    border-color: var(--gold-light);
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold-light);
    font-size: 0.85rem;
    animation: bounce 2s infinite;
}

.hero-scroll-hint .mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--gold-color);
    border-radius: 12px;
    position: relative;
}

.hero-scroll-hint .mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--gold-light);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

/* 主内容区 */
main {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-primary);
}

.main-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--spacing-xl);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 页面头部 */
.page-header {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--gold-color));
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    letter-spacing: 0.5rem;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* 文章列表 */
.article-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.article-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

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

.article-content-wrapper {
    padding: var(--spacing-lg);
}

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

.category-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--text-white);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.article-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.article-title {
    margin-bottom: var(--spacing-sm);
}

.article-title a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    transition: color var(--transition-fast);
    line-height: 1.4;
}

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

.article-summary {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
    font-size: 1rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.views {
    color: var(--text-light);
    font-size: 0.9rem;
}

.read-more {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more:hover {
    color: var(--accent-hover);
    gap: 0.75rem;
}

/* 侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.widget {
    background: var(--bg-secondary);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.widget h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--border-color);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.3rem;
    position: relative;
}

.widget h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--gold-color));
}

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

.category-list li {
    margin-bottom: var(--spacing-xs);
}

.category-list a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.category-list a:hover,
.category-list a.active {
    background: linear-gradient(135deg, rgba(74, 139, 128, 0.1), rgba(44, 95, 88, 0.1));
    color: var(--primary-color);
    border-color: var(--primary-light);
}

.about-text {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}

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

.page-link {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--text-white);
    text-decoration: none;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.page-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.page-info {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* 文章详情页 - 全面优化 */
.article-detail {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--spacing-xl);
    overflow: hidden;
    border: 1px solid var(--border-light);
    /* 优化内容区域宽度 */
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* 文章头部 */
.article-header {
    padding: var(--spacing-xl) var(--spacing-2xl) var(--spacing-lg);
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--bg-secondary) 100%);
    border-bottom: 2px solid var(--border-color);
    text-align: center;
}

.article-header .category-tag {
    display: inline-block;
    margin-bottom: var(--spacing-md);
    font-size: 0.9rem;
    padding: 0.5rem 1.5rem;
}

.article-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    line-height: 1.4;
    letter-spacing: 0.2rem;
    font-family: var(--font-family);
    /* 优化标题在窄屏幕下的显示 */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.article-meta .date,
.article-meta .views {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 文章内容 - 优化阅读体验 */
.article-content {
    padding: var(--spacing-xl) var(--spacing-2xl);
    font-size: 1.125rem;
    line-height: 2;
    color: var(--text-primary);
    /* 优化字间距 */
    letter-spacing: 0.02em;
    /* 确保内容不会过窄 */
    min-width: 280px;
}

/* 文章内容中的标题 - 优化间距和可读性 */
.article-content h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: var(--spacing-2xl) 0 var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--border-color);
    letter-spacing: 0.1rem;
    line-height: 1.4;
}

.article-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: var(--spacing-2xl) 0 var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--border-color);
    letter-spacing: 0.1rem;
    line-height: 1.4;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: var(--spacing-xl) 0 var(--spacing-md);
    letter-spacing: 0.05rem;
    line-height: 1.4;
}

.article-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: var(--spacing-lg) 0 var(--spacing-sm);
    line-height: 1.4;
}

.article-content h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: var(--spacing-md) 0 var(--spacing-xs);
    line-height: 1.4;
}

.article-content h6 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    margin: var(--spacing-md) 0 var(--spacing-xs);
    line-height: 1.4;
}

/* 文章内容中的段落 - 优化阅读体验 */
.article-content p {
    margin-bottom: var(--spacing-lg);
    text-align: justify;
    text-indent: 2em;
    /* 优化行高 */
    line-height: 2.2;
    /* 防止段落过长 */
    max-width: 75ch;
}

/* 首段不缩进 */
.article-content p:first-of-type {
    text-indent: 0;
}

/* 引用块 - 优化间距 */
.article-content blockquote {
    background: linear-gradient(135deg, var(--secondary-light), var(--secondary-color));
    border-left: 4px solid var(--gold-color);
    padding: var(--spacing-lg) var(--spacing-xl);
    margin: var(--spacing-xl) 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--text-secondary);
}

.article-content blockquote p {
    text-indent: 0;
    margin-bottom: 0;
}

/* 列表 - 优化间距 */
.article-content ul,
.article-content ol {
    margin: var(--spacing-lg) 0;
    padding-left: 2.5rem;
}

.article-content li {
    margin-bottom: var(--spacing-sm);
    line-height: 2;
}

/* 嵌套列表 */
.article-content ul ul,
.article-content ol ol,
.article-content ul ol,
.article-content ol ul {
    margin: var(--spacing-xs) 0;
}

/* 强调文字 */
.article-content strong,
.article-content b {
    color: var(--primary-color);
    font-weight: 600;
}

.article-content em,
.article-content i {
    color: var(--accent-color);
    font-style: italic;
}

/* 删除线 */
.article-content s,
.article-content strike,
.article-content del {
    text-decoration: line-through;
    color: var(--text-light);
}

/* 下划线 */
.article-content u {
    text-decoration: underline;
    text-decoration-color: var(--accent-color);
    text-underline-offset: 0.2em;
}

/* 代码样式 */
.article-content code {
    background: var(--secondary-light);
    padding: 0.2em 0.4em;
    border-radius: var(--radius-sm);
    font-family: 'Courier New', 'Monaco', monospace;
    font-size: 0.9em;
    color: var(--accent-color);
}

/* 代码块 */
.article-content pre {
    background: var(--secondary-dark);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: var(--spacing-lg) 0;
    font-family: 'Courier New', 'Monaco', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
}

.article-content pre code {
    background: transparent;
    padding: 0;
    color: var(--text-primary);
}

/* 图片样式 */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: var(--spacing-md) 0;
    box-shadow: var(--shadow-sm);
}

/* 图片居中 */
.article-content figure {
    margin: var(--spacing-lg) 0;
    text-align: center;
}

.article-content figcaption {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: var(--spacing-xs);
    font-style: italic;
}

/* 链接样式 */
.article-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.article-content a:hover {
    border-bottom-color: var(--primary-color);
}

/* 表格样式 */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-lg) 0;
    font-size: 1rem;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

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

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

.article-content tr:last-child td {
    border-bottom: none;
}

.article-content tr:hover {
    background: var(--secondary-light);
}

/* 上标和下标 */
.article-content sup,
.article-content sub {
    font-size: 0.75em;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

.article-content sup {
    top: -0.5em;
}

.article-content sub {
    bottom: -0.25em;
}

/* 分隔线 */
.article-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: var(--spacing-xl) 0;
}

/* 视频嵌入 */
.article-content video,
.article-content iframe {
    max-width: 100%;
    border-radius: var(--radius-md);
    margin: var(--spacing-md) 0;
}

/* 文字对齐 */
.article-content .text-left {
    text-align: left;
}

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

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

.article-content .text-justify {
    text-align: justify;
}

/* 文字颜色 */
.article-content [style*="color:"] {
    /* 允许内联颜色样式 */
}

/* 背景高亮 */
.article-content [style*="background-color:"] {
    padding: 0.1em 0.3em;
    border-radius: var(--radius-sm);
}

/* 字体大小 */
.article-content [style*="font-size:"] {
    /* 允许内联字体大小 */
}

/* 行内样式支持 */
.article-content span[style] {
    /* 允许span的内联样式 */
}

/* 文章底部 - 优化间距 */
.article-footer {
    padding: var(--spacing-lg) var(--spacing-2xl);
    background: var(--secondary-light);
    border-top: 1px solid var(--border-color);
}

.article-footer .tags {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.article-footer .tags > span:first-child {
    color: var(--text-secondary);
    font-weight: 500;
}

.tag {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--text-white);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* 相关文章 */
.related-articles {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-xl);
    border-top: 2px solid var(--border-color);
}

.related-articles h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    font-weight: 600;
    letter-spacing: 0.3rem;
    text-align: center;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.article-card-small {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
}

.article-card-small:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.article-card-small h3 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
    line-height: 1.4;
}

.article-card-small h3 a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

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

.article-card-small p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
    flex: 1;
}

.article-card-small .views {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: var(--spacing-2xl);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.empty-state h2 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.5rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

/* 今日推荐 */
.featured-article a {
    text-decoration: none;
}

.featured-article h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.5;
    transition: color var(--transition-fast);
}

.featured-article h4:hover {
    color: var(--accent-color);
}

.featured-article p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 每日诗一首 */
.daily-poem-widget {
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border-light);
}

.daily-poem {
    text-align: center;
    padding: var(--spacing-sm) 0;
}

.poem-date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 1px;
}

.poem-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    letter-spacing: 0.2rem;
}

.poem-author {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    font-style: italic;
}

.poem-content {
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--gold-color);
}

.poem-content p {
    font-size: 1rem;
    line-height: 2;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: 0.1rem;
}

.poem-note {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
    padding-top: var(--spacing-sm);
    border-top: 1px dashed var(--border-color);
    font-style: italic;
}

/* 每日诗词响应式 */
@media (max-width: 768px) {
    .poem-title {
        font-size: 1.2rem;
        letter-spacing: 0.1rem;
    }

    .poem-content p {
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .poem-content {
        padding: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .poem-title {
        font-size: 1.1rem;
    }

    .poem-content p {
        font-size: 0.9rem;
        letter-spacing: 0.05rem;
    }
}

/* ==================== 首页论坛功能区块样式 ==================== */

/* 论坛widget容器 */
.forum-widget {
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border-light);
}

/* 论坛快速访问入口 */
.forum-quick-access {
    margin-bottom: var(--spacing-md);
}

.forum-entry-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-white);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    margin-bottom: 0.75rem;
}

.forum-entry-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.forum-entry-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    backdrop-filter: blur(4px);
}

.forum-entry-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.25rem;
}

.forum-entry-title {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
}

.forum-entry-desc {
    font-size: 0.8rem;
    opacity: 0.85;
}

.forum-entry-arrow {
    font-size: 1.2rem;
    opacity: 0.8;
    transition: transform var(--transition-fast);
}

.forum-entry-btn:hover .forum-entry-arrow {
    transform: translateX(4px);
}

/* 论坛统计条 */
.forum-stats-bar {
    display: flex;
    justify-content: space-around;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.forum-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.forum-stat-icon {
    font-size: 1rem;
}

.forum-stat-label {
    font-size: 0.75rem;
    color: var(--text-light);
}

.forum-stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    font-family: var(--font-sans);
}

/* 热门话题区域 */
.forum-hot-topics {
    border-top: 1px dashed var(--border-color);
    padding-top: var(--spacing-md);
}

.hot-topics-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.hot-topics-icon {
    font-size: 1rem;
}

.hot-topics-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.1rem;
}

.hot-topics-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hot-topic-item-home {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    transition: all var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
}

.hot-topic-item-home:hover {
    background: var(--secondary-color);
    border-color: var(--primary-light);
    transform: translateX(4px);
}

.hot-topic-rank {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-sans);
    flex-shrink: 0;
}

.hot-topic-rank.top-1 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
}

.hot-topic-rank.top-2 {
    background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
    color: white;
}

.hot-topic-rank.top-3 {
    background: linear-gradient(135deg, #CD7F32, #B87333);
    color: white;
}

.hot-topic-rank.other {
    background: var(--secondary-dark);
    color: var(--text-light);
}

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

.hot-topic-title-home {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.15rem;
}

.hot-topic-meta-home {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-light);
}

.hot-topic-views,
.hot-topic-comments {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* 加载状态 */
.hot-topics-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

.loading-spinner-small {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 空状态 */
.hot-topics-empty {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* 查看更多链接 */
.hot-topics-more {
    display: block;
    text-align: center;
    padding: 0.5rem;
    margin-top: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.hot-topics-more:hover {
    background: rgba(43, 95, 117, 0.05);
}

/* 论坛区块响应式适配 */
@media (max-width: 768px) {
    .forum-entry-btn {
        padding: 0.875rem;
    }

    .forum-entry-icon {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }

    .forum-entry-title {
        font-size: 0.95rem;
    }

    .forum-entry-desc {
        font-size: 0.75rem;
    }

    .hot-topic-item-home {
        padding: 0.5rem 0.625rem;
    }

    .hot-topic-title-home {
        font-size: 0.85rem;
    }

    .hot-topic-meta-home {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .forum-stats-bar {
        padding: 0.625rem;
    }

    .forum-stat-value {
        font-size: 0.9rem;
    }

    .hot-topic-rank {
        width: 22px;
        height: 22px;
        font-size: 0.8rem;
    }
}

/* 页脚 */
footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: rgba(255, 255, 255, 0.9);
    padding: var(--spacing-xl) 0;
    margin-top: var(--spacing-2xl);
    text-align: center;
    position: relative;
}

/* 页脚装饰线 - 金色 */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-color), transparent);
}

footer p {
    margin: var(--spacing-xs) 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: -1;
    }
    
    .hero-title {
        font-size: 3.5rem;
        letter-spacing: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
        letter-spacing: 0.3rem;
    }
    
    /* 文章详情页 - 平板适配 */
    .article-detail {
        max-width: 95%;
    }
    
    .article-header {
        padding: var(--spacing-xl) var(--spacing-xl) var(--spacing-lg);
    }
    
    .article-header h1 {
        font-size: 2.2rem;
        letter-spacing: 0.15rem;
        line-height: 1.35;
    }
    
    .article-content {
        padding: var(--spacing-xl) var(--spacing-xl);
        font-size: 1.1rem;
        line-height: 1.9;
    }
    
    .article-content h2 {
        font-size: 1.7rem;
        margin: var(--spacing-xl) 0 var(--spacing-md);
    }
    
    .article-content h3 {
        font-size: 1.4rem;
    }
    
    .article-content p {
        margin-bottom: var(--spacing-md);
        line-height: 2;
    }
    
    .article-footer {
        padding: var(--spacing-lg) var(--spacing-xl);
    }
    
    .article-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--spacing-sm);
        padding: 0.5rem 1rem;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
    
    .logo-title {
        font-size: 1.2rem;
    }
    
    .logo-subtitle {
        display: none;
    }
    
    .nav-links {
        gap: 0.8rem;
        flex-wrap: nowrap;
        order: 2;
    }
    
    .nav-links a {
        font-size: 0.8rem;
        padding: 0.2rem 0;
    }
    
    .auth-links {
        order: 3;
        gap: 0.4rem;
    }
    
    .auth-links a {
        padding: 0.35rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        letter-spacing: 0.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-categories {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .page-header h1 {
        font-size: 2rem;
        letter-spacing: 0.3rem;
    }
    
    /* 文章详情页 - 手机适配 */
    .article-detail {
        max-width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .article-header {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .article-header h1 {
        font-size: 1.75rem;
        letter-spacing: 0.1rem;
        line-height: 1.45;
    }
    
    .article-meta {
        flex-direction: column;
        gap: var(--spacing-xs);
        font-size: 0.9rem;
    }
    
    .article-content {
        padding: var(--spacing-lg) var(--spacing-md);
        font-size: 1.05rem;
        line-height: 1.9;
        letter-spacing: 0.01em;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
        margin: var(--spacing-lg) 0 var(--spacing-sm);
        letter-spacing: 0.05rem;
    }
    
    .article-content h3 {
        font-size: 1.25rem;
        margin: var(--spacing-md) 0 var(--spacing-sm);
    }
    
    .article-content h4 {
        font-size: 1.1rem;
    }
    
    .article-content p {
        text-indent: 1.5em;
        margin-bottom: var(--spacing-md);
        line-height: 1.9;
        text-align: left;
    }
    
    .article-content blockquote {
        padding: var(--spacing-md);
        margin: var(--spacing-md) 0;
    }
    
    .article-content ul,
    .article-content ol {
        padding-left: 1.75rem;
        margin: var(--spacing-md) 0;
    }
    
    .article-content li {
        margin-bottom: var(--spacing-xs);
        line-height: 1.8;
    }
    
    .article-footer {
        padding: var(--spacing-md);
    }
    
    .article-footer .tags {
        justify-content: center;
    }
    
    .related-articles h2 {
        font-size: 1.5rem;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
        letter-spacing: 0.3rem;
    }
    
    .hero-search form {
        padding: 0.5rem 1rem;
    }
    
    .hero-search input {
        font-size: 0.9rem;
    }
    
    .hero-search button {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* 文章详情页 - 小屏手机适配 */
    .article-header {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .article-header h1 {
        font-size: 1.5rem;
        letter-spacing: 0.05rem;
        line-height: 1.5;
    }
    
    .article-content {
        padding: var(--spacing-md) var(--spacing-sm);
        font-size: 1rem;
        line-height: 1.85;
    }
    
    .article-content h2 {
        font-size: 1.35rem;
    }
    
    .article-content h3 {
        font-size: 1.15rem;
    }
    
    .article-content p {
        text-indent: 1.25em;
        margin-bottom: var(--spacing-sm);
    }
    
    .article-footer {
        padding: var(--spacing-sm);
    }
}

/* ==================== 后台管理系统样式 - 现代UI优化 ==================== */

/* 后台管理容器 - 限制最大宽度 */
.admin-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-lg);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--border-color);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.admin-header h1 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.2rem;
    margin: 0;
    line-height: 1.2;
}

/* 统计面板 - 优化文字对齐和间距 */
.stats-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.stat-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    text-align: center;
    transition: all var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: var(--spacing-xs);
    font-family: var(--font-sans);
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

/* 后台管理区块 */
.admin-section {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.admin-section h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--border-color);
    letter-spacing: 0.15rem;
    line-height: 1.3;
}

/* 表格容器 */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

/* 数据表格 - 文字对齐优化 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: var(--bg-secondary);
}

.data-table thead {
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary-color) 100%);
}

.data-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    text-transform: uppercase;
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

/* 数字类列右对齐 */
.data-table th:nth-child(1),
.data-table td:nth-child(1),
.data-table th:nth-child(4),
.data-table td:nth-child(4) {
    text-align: center;
}

/* 状态列居中 */
.data-table th:nth-child(6),
.data-table td:nth-child(6),
.data-table th:nth-child(7),
.data-table td:nth-child(7) {
    text-align: center;
}

.data-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    line-height: 1.5;
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background: var(--secondary-light);
}

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

/* 表格文字特殊处理 */
.data-table td:nth-child(2) {
    font-weight: 500;
    max-width: 400px;
}

.data-table td:nth-child(3) {
    color: var(--text-secondary);
    font-weight: 500;
}

.data-table td:nth-child(5) {
    color: var(--text-secondary);
    font-size: 0.9rem;
    white-space: nowrap;
}

/* 状态标签 */
.status-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1;
}

.status-published {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
}

.status-draft {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
}

.status-archived {
    background: linear-gradient(135deg, #6B7280, #4B5563);
    color: white;
}

.status-success {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
}

.status-failed {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
}

.status-pending {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    color: white;
}

/* 状态下拉框 */
.status-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all var(--transition-fast);
    min-width: 100px;
}

.status-select:hover {
    border-color: var(--primary-light);
}

.status-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 95, 88, 0.1);
}

/* 主按钮 */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: white;
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
    font-family: var(--font-sans);
    line-height: 1;
}

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

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* 消息框 */
.message-box {
    position: fixed;
    top: 100px;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.95rem;
    z-index: 9999;
    animation: slideIn 0.3s ease;
    box-shadow: var(--shadow-lg);
    line-height: 1.5;
}

.message-box.success {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
}

.message-box.error {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 后台管理响应式 */
@media (max-width: 1024px) {
    .admin-header {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .admin-header h1 {
        font-size: 1.75rem;
    }
    
    .stats-panel {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .admin-section {
        padding: var(--spacing-lg);
    }
    
    .admin-section h2 {
        font-size: 1.25rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.875rem 1rem;
    }
}

@media (max-width: 768px) {
    .stats-panel {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    
    .stat-number {
        font-size: 1.75rem;
        margin-bottom: 0;
    }
    
    .admin-section {
        padding: var(--spacing-md);
    }
    
    .data-table {
        font-size: 0.9rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.75rem;
    }
    
    /* 小屏幕表格横向滚动 */
    .table-container {
        margin: 0 calc(-1 * var(--spacing-md));
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .status-select {
        min-width: 80px;
        padding: 0.4rem 0.75rem;
    }
    
    .message-box {
        left: 1rem;
        right: 1rem;
        top: auto;
        bottom: 1rem;
    }
}

/* ==================== 文章生成功能样式 ==================== */

/* 生成按钮样式 */
.btn-generate {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    box-shadow: 0 4px 14px rgba(201, 55, 44, 0.3);
}

.btn-generate:hover {
    background: linear-gradient(135deg, var(--accent-light), var(--accent-color));
    box-shadow: 0 6px 20px rgba(201, 55, 44, 0.4);
}

.btn-generate:disabled {
    background: linear-gradient(135deg, #9CA3AF, #6B7280);
    box-shadow: none;
}

.btn-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.btn-text {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* 管理员操作区 */
.admin-actions {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 480px;
    width: 90%;
    animation: slideUp 0.3s ease;
    border: 1px solid var(--border-light);
}

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

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: 0.1rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color var(--transition-fast);
}

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

.modal-body {
    padding: var(--spacing-xl);
}

.modal-body p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0 0 var(--spacing-sm) 0;
}

.modal-note {
    font-size: 0.9rem;
    color: var(--text-light);
    background: var(--secondary-light);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--gold-color);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-xl) var(--spacing-xl);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-sans);
}

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

/* 加载遮罩 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 251, 240, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    backdrop-filter: blur(8px);
}

.loading-content {
    text-align: center;
    padding: var(--spacing-2xl);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-light);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--spacing-lg);
}

.loading-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.1rem;
}

.loading-subtext {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* 消息框增强样式 */
.message-box {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    min-width: 300px;
    max-width: 500px;
}

.message-icon {
    font-size: 1.25rem;
    font-weight: bold;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.message-text {
    flex: 1;
    line-height: 1.5;
}

.message-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
    flex-shrink: 0;
}

.message-close:hover {
    opacity: 1;
}

.btn-retry {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-left: var(--spacing-sm);
}

.btn-retry:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 新文章行动画 */
.new-article-row {
    animation: highlightNew 2s ease;
}

.new-article-row.highlight {
    background: linear-gradient(90deg, rgba(201, 55, 44, 0.1), transparent);
}

@keyframes highlightNew {
    0% {
        background: linear-gradient(90deg, rgba(201, 55, 44, 0.2), transparent);
    }
    100% {
        background: transparent;
    }
}

/* 文章标题样式 */
.article-title {
    font-weight: 500;
    color: var(--text-primary);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .btn-generate {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .btn-icon {
        font-size: 1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: var(--spacing-md);
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: var(--spacing-lg);
        padding-right: var(--spacing-lg);
    }
    
    .loading-text {
        font-size: 1.1rem;
    }
    
    .message-box {
        min-width: auto;
        max-width: none;
        left: var(--spacing-md);
        right: var(--spacing-md);
    }
}

/* ==================== 登录注册样式 ==================== */

/* 认证链接 */
.auth-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.auth-links a {
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.auth-links .login-btn {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    background: transparent;
}

.auth-links .login-btn:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

.auth-links .register-btn {
    color: var(--text-white);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border: none;
}

.auth-links .register-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.user-menu .username {
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.user-menu .username:hover {
    background: var(--secondary-dark);
}

.user-menu .username::after {
    content: '▼';
    margin-left: 0.5rem;
    font-size: 0.7rem;
}

.user-menu .dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: var(--bg-secondary);
    min-width: 160px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    z-index: 1001;
    margin-top: 0.5rem;
    overflow: hidden;
}

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

.user-menu .dropdown a {
    color: var(--text-secondary);
    padding: 0.8rem 1.2rem;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.user-menu .dropdown a:hover {
    background: var(--secondary-dark);
    color: var(--primary-color);
}

.user-menu .dropdown hr {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: 0.5rem 0;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--bg-secondary);
    margin: 10% auto;
    padding: 2rem;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 450px;
    box-shadow: var(--shadow-lg);
    position: relative;
    border: 1px solid var(--border-light);
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 0.2rem;
}

.close {
    color: var(--text-light);
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.close:hover {
    color: var(--accent-color);
    background: var(--secondary-dark);
}

/* 表单样式 */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-family);
    background: var(--bg-primary);
    transition: all var(--transition-fast);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(43, 95, 117, 0.1);
}

.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-family);
    background: var(--bg-primary);
    transition: all var(--transition-fast);
    resize: vertical;
    min-height: 100px;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(43, 95, 117, 0.1);
}

.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-family);
    background: var(--bg-primary);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(43, 95, 117, 0.1);
}

.form-error {
    color: var(--accent-color);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    min-height: 1.2rem;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-img {
    height: 40px;
    width: 220px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    object-fit: cover;
}

.captcha-img:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(43, 95, 117, 0.1);
}

.captcha-img:active {
    transform: scale(0.98);
}

/* ==================== 文章编辑器样式 ==================== */

.article-editor-modal .modal-content {
    max-width: 1200px;
    width: 95%;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
}

.article-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.article-editor-header .header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.article-editor-header .header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auto-save-status {
    font-size: 0.85rem;
    color: var(--text-light);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auto-save-status.show {
    opacity: 1;
}

.btn-draft,
.btn-preview {
    background: var(--secondary-color);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-draft:hover,
.btn-preview:hover {
    background: var(--secondary-dark);
    border-color: var(--primary-light);
}

.article-editor-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

/* 编辑器工具栏 */
.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--secondary-light);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.toolbar-group {
    display: flex;
    gap: 0.25rem;
}

.toolbar-divider {
    width: 1px;
    height: 24px;
    background: var(--border-color);
    margin: 0 0.5rem;
}

.toolbar-btn {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
}

.toolbar-btn:hover {
    background: var(--secondary-color);
    border-color: var(--primary-light);
    color: var(--text-primary);
}

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

/* 编辑器主区域 */
.editor-main {
    display: flex;
    min-height: 500px;
}

/* 左侧边栏 */
.editor-sidebar {
    width: 300px;
    background: var(--secondary-light);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(95vh - 140px);
}

.sidebar-section {
    margin-bottom: 1.5rem;
}

.sidebar-section h4 {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-section .form-group {
    margin-bottom: 1rem;
}

.sidebar-section .form-group label {
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

.sidebar-section .form-group input,
.sidebar-section .form-group select,
.sidebar-section .form-group textarea {
    font-size: 0.9rem;
    padding: 0.6rem 0.8rem;
}

.char-counter {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.form-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.required {
    color: var(--accent-color);
}

/* 字段验证样式 */
.field-error {
    border-color: var(--accent-color) !important;
}

.field-error-msg {
    display: block;
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-top: 0.25rem;
}

.field-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* 内容编辑区域 */
.editor-content-area {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.content-editor-group {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.content-editor-group label {
    margin-bottom: 0.75rem;
}

.rich-editor {
    flex: 1;
    min-height: 400px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    overflow-y: auto;
    line-height: 1.8;
}

.rich-editor:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(43, 95, 117, 0.1);
}

.rich-editor:empty:before {
    content: attr(placeholder);
    color: var(--text-light);
    font-style: italic;
}

.rich-editor img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

.rich-editor blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin: 1rem 0;
    color: var(--text-secondary);
}

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

.editor-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.editor-hint {
    font-size: 0.8rem;
}

/* 底部栏 */
.article-editor-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
}

/* 图片上传模态框 */
.image-upload-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.image-upload-tabs .tab-btn {
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
}

.image-upload-tabs .tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: var(--primary-color);
    background: rgba(43, 95, 117, 0.05);
}

.upload-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.upload-link {
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: underline;
}

.upload-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.image-preview {
    position: relative;
    margin-top: 1rem;
    display: inline-block;
}

.image-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: var(--radius-md);
}

.remove-image {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-color);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.8rem;
}

/* 预览模态框 */
.article-preview {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.article-preview h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.preview-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .article-editor-modal .modal-content {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .article-editor-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .article-editor-header .header-right {
        width: 100%;
        justify-content: flex-end;
    }
    
    .editor-main {
        flex-direction: column;
    }
    
    .editor-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        max-height: none;
    }
    
    .editor-toolbar {
        padding: 0.5rem;
        gap: 0.25rem;
    }
    
    .toolbar-btn {
        padding: 0.3rem 0.4rem;
        font-size: 0.8rem;
    }
    
    .toolbar-divider {
        margin: 0 0.25rem;
    }
    
    .rich-editor {
        min-height: 300px;
    }
    
    .article-editor-footer {
        flex-direction: column;
        gap: 1rem;
    }
    
    .article-editor-footer .footer-left,
    .article-editor-footer .footer-right {
        width: 100%;
    }
    
    .article-editor-footer button {
        width: 100%;
    }
}

.btn-primary {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-family);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ==================== 分页样式 ==================== */

/* 区域头部 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    margin: 0;
}

.section-tools {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

/* 搜索框 */
.search-box {
    display: flex;
    gap: 0.5rem;
}

.search-box input {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    width: 200px;
    transition: all var(--transition-fast);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(43, 95, 117, 0.1);
}

.search-box button {
    padding: 0.5rem 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

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

/* 筛选下拉框 */
.section-tools select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    background: var(--bg-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

/* 分页容器 */
.pagination-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--secondary-light);
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* 分页信息 */
.pagination-info {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pagination-info strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* 分页控制按钮 */
.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pagination-btn {
    padding: 0.5rem 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    min-width: 60px;
}

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

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--secondary-color);
}

/* 页码按钮区域 */
.pagination-pages {
    display: flex;
    gap: 0.25rem;
    margin: 0 0.5rem;
}

.pagination-page-btn {
    padding: 0.5rem 0.75rem;
    min-width: 36px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.pagination-page-btn:hover {
    background: var(--secondary-color);
    border-color: var(--primary-light);
}

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

.pagination-ellipsis {
    padding: 0.5rem 0.25rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* 每页显示数量 */
.pagination-size {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pagination-size select {
    padding: 0.4rem 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    background: var(--bg-primary);
    cursor: pointer;
}

/* 页码跳转 */
.pagination-jump {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pagination-jump input {
    width: 60px;
    padding: 0.4rem 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    text-align: center;
}

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

.pagination-jump button {
    padding: 0.4rem 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.pagination-jump button:hover {
    background: var(--primary-dark);
}

/* 分页移动端适配 */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-tools {
        width: 100%;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-box input {
        flex: 1;
        width: auto;
    }
    
    .pagination-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .pagination-info {
        justify-content: center;
    }
    
    .pagination-controls {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .pagination-size,
    .pagination-jump {
        justify-content: center;
    }
}

/* ==================== 文章标签/话题样式 ==================== */

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.article-tag {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: white;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tag-more {
    display: inline-block;
    padding: 0.2rem 0.4rem;
    background: var(--secondary-color);
    color: var(--text-light);
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
    cursor: help;
}

.tag-empty {
    color: var(--text-light);
    font-size: 0.85rem;
}

.article-tags {
    max-width: 150px;
}

/* 数据表格样式优化 */
.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: var(--secondary-light);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.data-table td {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.data-table tr:hover {
    background: rgba(43, 95, 117, 0.03);
}

.article-title {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.form-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-switch a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.form-switch a:hover {
    text-decoration: underline;
}

/* 通知消息 */
.notification {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    color: var(--text-white);
    font-weight: 500;
    z-index: 3000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: linear-gradient(135deg, #2E7D32, #4CAF50);
}

.notification.error {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
}

.notification.info {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

/* 响应式适配 */
@media (max-width: 768px) {
    .auth-links {
        gap: 0.5rem;
    }
    
    .auth-links a {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .modal-content {
        margin: 15% auto;
        padding: 1.5rem;
    }
    
    .user-menu .dropdown {
        right: -50px;
    }
    
    /* 管理后台响应式 */
    .admin-page {
        padding: var(--spacing-md);
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .admin-header h1 {
        font-size: 1.5rem;
    }
    
    .stats-panel {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .stat-card {
        padding: var(--spacing-md);
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .admin-section {
        padding: var(--spacing-md);
    }
    
    .admin-section h2 {
        font-size: 1.2rem;
    }
    
    .data-table {
        font-size: 0.85rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .data-table td:nth-child(2) {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .status-tag {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .status-select {
        padding: 0.3rem 0.5rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .admin-page {
        padding: var(--spacing-sm);
    }
    
    .admin-header h1 {
        font-size: 1.25rem;
    }
    
    .btn-generate {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
}

/* ==================== 管理后台增强样式 ==================== */

/* 操作按钮组 */
.action-buttons {
    white-space: nowrap;
}

.btn-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-action {
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-action:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-preview:hover {
    background: #3B82F6;
    border-color: #3B82F6;
}

.btn-edit:hover {
    background: #10B981;
    border-color: #10B981;
}

.btn-delete:hover {
    background: #EF4444;
    border-color: #EF4444;
}

/* 文章类型徽章 */
.badge-user,
.badge-system {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.badge-user {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    color: white;
}

.badge-system {
    background: linear-gradient(135deg, #06B6D4, #0891B2);
    color: white;
}

/* 作者名称 */
.author-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* 状态标签增强 */
.status-rejected {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
}

/* 表格中的文章标题 */
.article-title {
    position: relative;
    max-width: 250px;
}

.article-title .badge-user,
.article-title .badge-system {
    position: absolute;
    top: -0.25rem;
    right: -0.5rem;
    font-size: 0.6rem;
    padding: 0.1rem 0.35rem;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .btn-group {
        gap: 0.3rem;
    }
    
    .btn-action {
        padding: 0.3rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .action-buttons .status-select {
        font-size: 0.8rem;
        padding: 0.3rem 0.5rem;
    }
}

/* ==================== 可折叠日志区域样式 ==================== */

/* 可折叠的section-header */
.section-header.collapsible {
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    position: relative;
}

.section-header.collapsible:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.section-header.collapsible::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.section-header.collapsible:hover::before {
    opacity: 1;
}

/* 折叠图标 */
.toggle-icon {
    display: inline-block;
    margin-right: 0.5rem;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: #667eea;
}

.section-header.collapsible.expanded .toggle-icon {
    transform: rotate(90deg);
}

/* 日志计数 */
.log-count {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: normal;
    margin-left: 0.5rem;
    background: rgba(102, 126, 234, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
}

/* 最新日志时间 */
.last-log-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* 日志内容区域 */
.log-content {
    overflow: hidden;
    transition: all 0.3s ease;
}

/* 日志表格样式 */
.log-table {
    font-size: 0.9rem;
}

.log-table th {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: 600;
    padding: 0.75rem;
}

.log-table td {
    padding: 0.6rem 0.75rem;
    vertical-align: middle;
}

/* 日志行样式 */
.log-row {
    transition: background-color 0.2s ease;
}

.log-row:hover {
    background-color: rgba(102, 126, 234, 0.05);
}

/* 不同状态的日志行 */
.log-success {
    border-left: 3px solid #10B981;
}

.log-failed {
    border-left: 3px solid #EF4444;
}

.log-pending {
    border-left: 3px solid #F59E0B;
}

/* 日志类型标签 */
.log-type {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: #667eea;
    font-weight: 500;
}

/* 日志消息 */
.log-message {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: help;
}

/* 日志时间 */
.log-time {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* 日志底部操作栏 */
.log-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

/* 文本按钮 */
.btn-text {
    background: transparent;
    border: none;
    color: #667eea;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.btn-text:hover {
    background: rgba(102, 126, 234, 0.1);
    text-decoration: underline;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .section-header.collapsible h2 {
        font-size: 1rem;
    }
    
    .log-count {
        font-size: 0.75rem;
    }
    
    .last-log-time {
        display: none;
    }
    
    .log-table {
        font-size: 0.8rem;
    }
    
    .log-table th,
    .log-table td {
        padding: 0.4rem;
    }
    
    .log-message {
        max-width: 150px;
    }
}

/* ==================== 加载遮罩层样式 ==================== */

#loadingOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#loadingOverlay .loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

#loadingOverlay p {
    color: white;
    font-size: 1rem;
    margin: 0;
}
