/* 京西蔚州文化阁 - 中国风+政府风格 - 精美版 */

/* ========== 全局样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #c41e3a;
    --primary-red-dark: #8b0000;
    --primary-gold: #daa520;
    --primary-gold-dark: #b8860b;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --text-light: #bdc3c7;
    --bg-light: #fdfbf7;
    --bg-white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(196, 30, 58, 0.08);
    --shadow-md: 0 4px 16px rgba(196, 30, 58, 0.12);
    --shadow-lg: 0 8px 32px rgba(196, 30, 58, 0.16);
    --shadow-xl: 0 16px 48px rgba(196, 30, 58, 0.2);
    --border-color: #e8d5c4;
    --gradient-red: linear-gradient(135deg, #c41e3a 0%, #a01832 50%, #8b0000 100%);
    --gradient-gold: linear-gradient(135deg, #daa520 0%, #d4a84b 50%, #b8860b 100%);
    --gradient-warm: linear-gradient(135deg, #fdfbf7 0%, #f9f3e8 50%, #f5ebd7 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'SimSun', 'Georgia', serif;
    background: var(--bg-light);
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(196, 30, 58, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(218, 165, 32, 0.03) 0%, transparent 50%);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== 顶部信息栏 ========== */
.header-top {
    background: var(--gradient-red);
    color: white;
    padding: 12px 0;
    font-size: 14px;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.header-top::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
}

/* ========== 主头部 ========== */
.header {
    background: linear-gradient(135deg, #8B0000 0%, #B22222 40%, #c41e3a 100%);
    color: white;
    padding: 24px 0;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 100;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* ========== Logo ========== */
.logo {
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    font-size: 56px;
    filter: drop-shadow(0 2px 8px rgba(218, 165, 32, 0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #ffffff 0%, #f0e68c 50%, #ffffff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.logo-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 60%;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.logo-subtitle {
    font-size: 11px;
    opacity: 0.9;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.85);
}

/* ========== 导航菜单 ========== */
.nav-menu {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.15);
    padding: 8px 16px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 10px 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 25px;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.nav-menu a.active {
    background: var(--primary-gold);
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.4);
}

/* ========== 用户操作按钮 ========== */
.user-actions {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 10px 28px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.btn:hover {
    background: white;
    color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-gold {
    background: var(--gradient-gold);
    border-color: transparent;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #b8860b 0%, #d4a84b 50%, #daa520 100%);
    box-shadow: 0 8px 20px rgba(218, 165, 32, 0.4);
}

/* ========== 横幅 ========== */
.banner {
    background: var(--gradient-red);
    color: white;
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(218, 165, 32, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(218, 165, 32, 0.1) 0%, transparent 50%);
}

.banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-gold), var(--primary-red), var(--primary-gold));
    background-size: 200% 100%;
    animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.banner h1 {
    font-size: 52px;
    margin-bottom: 24px;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.4);
    letter-spacing: 4px;
    position: relative;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner p {
    font-size: 20px;
    max-width: 900px;
    margin: 0 auto;
    line-height: 2;
    opacity: 0.95;
    position: relative;
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* ========== 分类横幅 ========== */
.category-banner {
    background: var(--gradient-warm);
    padding: 60px 20px;
    text-align: center;
    position: relative;
}

.banner-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.category-banner h1 {
    font-size: 42px;
    color: var(--primary-red);
    margin-bottom: 12px;
}

.category-banner p {
    font-size: 18px;
    color: var(--text-secondary);
}

/* ========== 主内容区 ========== */
.main-content {
    background: white;
    padding: 50px 24px;
    margin-top: -30px;
    border-radius: 16px 16px 0 0;
    box-shadow: var(--shadow-lg);
    min-height: 600px;
    position: relative;
    z-index: 10;
}

/* ========== 背景纹理 ========== */
.pattern-bg {
    background: var(--bg-white);
}

/* ========== 面包屑 ========== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.breadcrumb a {
    color: var(--primary-red);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--primary-gold);
}

.breadcrumb .separator {
    color: var(--text-light);
    font-size: 12px;
}

.breadcrumb .current {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

/* ========== 分类导航 ========== */
.category-nav {
    margin-bottom: 50px;
}

.category-nav h3 {
    color: var(--primary-red);
    margin-bottom: 25px;
    font-size: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-nav h3::before {
    content: '';
    width: 5px;
    height: 32px;
    background: var(--gradient-red);
    border-radius: 3px;
}

.category-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-light);
    padding: 24px;
    border-radius: 12px;
    border: 2px solid transparent;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.category-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-red);
    background: white;
}

.category-item .icon {
    font-size: 36px;
}

.category-item .name {
    font-weight: bold;
    font-size: 16px;
}

/* ========== 推荐内容区 ========== */
.recommended-section {
    margin-bottom: 50px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--border-color);
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--gradient-red);
}

.section-header h2 {
    color: var(--primary-red);
    font-size: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header h2 .icon {
    font-size: 32px;
}

.view-all {
    color: var(--primary-red);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s;
}

.view-all:hover {
    background: var(--primary-red);
    color: white;
}

/* ========== 文章网格 ========== */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.article-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-red);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.article-card:hover::before {
    transform: scaleX(1);
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--border-color);
}

.article-card .cover {
    height: 220px;
    background: var(--gradient-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    color: white;
    position: relative;
    overflow: hidden;
}

.article-card .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card .content {
    padding: 24px;
}

.article-card .category-tag {
    display: inline-block;
    background: var(--gradient-red);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 15px;
    font-weight: 500;
}

.article-card h3 {
    margin-bottom: 12px;
    font-size: 20px;
}

.article-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 600;
}

.article-card h3 a:hover {
    color: var(--primary-red);
}

.article-card .excerpt {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 18px;
}

.article-card .meta {
    display: flex;
    gap: 20px;
    color: var(--text-light);
    font-size: 13px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

/* ========== 文章列表 ========== */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-item {
    display: flex;
    gap: 24px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.article-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-color);
}

.article-item .cover {
    width: 280px;
    flex-shrink: 0;
    background: var(--gradient-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: white;
    overflow: hidden;
}

.article-item .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-item .content {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-item .category-tag {
    display: inline-block;
    background: var(--gradient-gold);
    color: white;
    padding: 5px 14px;
    border-radius: 18px;
    font-size: 12px;
    margin-bottom: 12px;
    font-weight: 500;
}

.article-item h3 {
    margin-bottom: 10px;
    font-size: 22px;
}

.article-item h3 a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.article-item h3 a:hover {
    color: var(--primary-red);
}

.article-item .excerpt {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.article-item .meta {
    display: flex;
    gap: 20px;
    color: var(--text-light);
    font-size: 13px;
}

/* ========== 布局 ========== */
.layout-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

/* ========== 热门排行 ========== */
.hot-rank {
    background: var(--bg-light);
    padding: 24px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    position: sticky;
    top: 100px;
}

.hot-rank h3 {
    color: var(--primary-red);
    margin-bottom: 20px;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.hot-rank h3::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--border-color), transparent);
}

.rank-list {
    list-style: none;
}

.rank-list li {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px dashed var(--border-color);
    transition: all 0.3s;
}

.rank-list li:hover {
    background: white;
    border-radius: 8px;
    padding-left: 8px;
    padding-right: 8px;
}

.rank-list li:last-child {
    border-bottom: none;
}

.rank-num {
    width: 32px;
    height: 32px;
    background: var(--gradient-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 16px;
    flex-shrink: 0;
}

.rank-list li:nth-child(1) .rank-num {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.rank-list li:nth-child(2) .rank-num {
    background: linear-gradient(135deg, #c0c0c0 0%, #a8a8a8 100%);
}

.rank-list li:nth-child(3) .rank-num {
    background: linear-gradient(135deg, #cd7f32 0%, #8b4513 100%);
}

.rank-list .title {
    flex: 1;
}

.rank-list .title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.rank-list .title a:hover {
    color: var(--primary-red);
}

.rank-list .views {
    color: var(--text-light);
    font-size: 12px;
}

/* ========== 底部 ========== */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    color: white;
    padding: 50px 20px 30px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-gold), var(--primary-red), var(--primary-gold));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.footer-section h4 {
    color: var(--primary-gold);
    margin-bottom: 20px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section h4::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-gold), transparent);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.footer-section li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-gold);
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.8;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-section a:hover {
    color: var(--primary-gold);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    color: #7f8c8d;
}

/* ========== 弹窗 ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    box-shadow: var(--shadow-xl);
    animation: modalIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

@keyframes modalIn {
    from {
        transform: translateY(-50px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: var(--gradient-warm);
    border-bottom: 2px solid var(--border-color);
}

.modal-header h3 {
    color: var(--primary-red);
    font-size: 22px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 36px;
    color: var(--primary-red);
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    transform: rotate(90deg);
    background: rgba(196, 30, 58, 0.1);
}

.modal-body {
    padding: 24px;
}

/* ========== 标签页 ========== */
.tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    background: var(--bg-light);
    border-radius: 8px;
    padding: 4px;
}

.tab-btn {
    flex: 1;
    padding: 14px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: 6px;
}

.tab-btn:hover {
    background: rgba(196, 30, 58, 0.05);
    color: var(--primary-red);
}

.tab-btn.active {
    background: white;
    color: var(--primary-red);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ========== 表单 ========== */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    background: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
    background: white;
}

.form-btn {
    width: 100%;
    padding: 16px;
    background: var(--gradient-red);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-md);
}

.form-btn:hover {
    background: linear-gradient(135deg, #8B0000 0%, #c41e3a 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ========== 响应式 ========== */
@media (max-width: 968px) {
    .layout-with-sidebar {
        grid-template-columns: 1fr;
    }
    
    .hot-rank {
        position: static;
    }
}

@media (max-width: 768px) {
    .header-main {
        flex-direction: column;
        gap: 24px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        background: none;
        padding: 0;
    }
    
    .banner h1 {
        font-size: 32px;
    }
    
    .banner p {
        font-size: 16px;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .article-item {
        flex-direction: column;
    }
    
    .article-item .cover {
        width: 100%;
        height: 200px;
    }
    
    .category-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .logo-title {
        font-size: 24px;
    }
    
    .category-list {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== 加载动画 ========== */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.loading::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 12px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========== 提示信息 ========== */
.notification {
    position: fixed;
    top: 24px;
    right: 24px;
    padding: 16px 28px;
    border-radius: 8px;
    box-shadow: var(--shadow-xl);
    z-index: 9999;
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.success {
    background: #27ae60;
    color: white;
}

.notification.error {
    background: #e74c3c;
    color: white;
}

/* ========== 分页 ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.pagination button,
.pagination a {
    padding: 10px 20px;
    background: white;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
    cursor: pointer;
}

.pagination button:hover,
.pagination a:hover {
    background: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
    transform: translateY(-2px);
}

.pagination button.active {
    background: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
    box-shadow: var(--shadow-md);
}

/* ========== 文章详情页样式 ========== */
.article-detail {
    background: white;
    padding: 50px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.article-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 3px solid var(--border-color);
}

.article-header h1 {
    font-size: 36px;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.4;
}

.article-header .subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.article-meta {
    color: var(--text-light);
    font-size: 14px;
}

.article-meta span {
    margin: 0 15px;
}

.article-cover {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
}

.article-content {
    font-size: 17px;
    line-height: 2;
    color: var(--text-primary);
}

.article-content h2 {
    font-size: 28px;
    margin: 40px 0 20px;
    color: var(--primary-red);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.article-content h3 {
    font-size: 24px;
    margin: 35px 0 15px;
    color: var(--primary-gold);
}

.article-content p {
    margin-bottom: 24px;
    text-align: justify;
}

.article-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: var(--shadow-md);
}

.article-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.article-footer p {
    color: var(--text-secondary);
    margin: 8px 0;
    font-size: 15px;
}

.article-footer strong {
    color: var(--primary-red);
}

.back-btn {
    display: inline-block;
    margin-bottom: 25px;
    padding: 12px 32px;
    background: var(--bg-light);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
    font-weight: 500;
}

.back-btn:hover {
    background: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
}

.related-articles {
    margin-top: 50px;
}

.related-articles h3 {
    font-size: 26px;
    color: var(--primary-red);
    margin-bottom: 25px;
    padding-left: 18px;
    border-left: 5px solid var(--primary-red);
}

/* ========== 空状态 ========== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.empty-state .icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.error {
    text-align: center;
    padding: 80px 20px;
    color: var(--primary-red);
}

.error h2 {
    font-size: 28px;
    margin-bottom: 15px;
}
