/*
 * DiscuzLike 主题 - 主样式
 * 仿 Discuz! 论坛风格
 *
 * @package DiscuzLike
 * @since 1.0.0
 */

/* ========================================
   CSS 变量
   ======================================== */
:root {
    /* 主色：冷灰蓝 slate（暗调，和卡片底图夜景融合） */
    --primary-color: #3b546e;
    --primary-light: rgba(59, 84, 110, 0.12);
    --primary-dark: #2a3d54;
    --danger-color: #c0564f;
    --success-color: #4a8c6e;
    --warning-color: #c07b3a;

    /* 背景 */
    --bg-body: #eef1f5;
    --bg-white: #ffffff;
    --bg-alt: #f4f6f9;
    --bg-hover: #e2e7ee;

    /* 文字 */
    --text-color: #1f2d3d;
    --text-light: #48586a;
    --text-muted: #7b8a9a;

    /* 边框 */
    --border-color: #dbe2ea;
    --border-light: #e6ecf2;

    /* 顶部工具栏 + 导航栏 + 页脚（统一冷灰深蓝） */
    --topbar-bg: #1f2d3d;
    --header-bg: linear-gradient(180deg, #2a3d54 0%, #1f2d3d 100%);
    --footer-bg: #1f2d3d;

    --radius: 6px;
    --radius-sm: 4px;
    --radius-lg: 10px;

    --shadow: 0 1px 3px rgba(20, 30, 45, 0.07), 0 1px 2px rgba(20, 30, 45, 0.04);
    --shadow-md: 0 4px 14px rgba(20, 30, 45, 0.1);
    --shadow-lg: 0 8px 28px rgba(20, 30, 45, 0.14);

    --transition: 0.2s ease;
    --container-max: 1200px;
}

/* ========================================
   Reset / Base
   ======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-body);
    min-height: 100vh;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 12px;
    font-weight: 600;
    line-height: 1.4;
}

h1 { font-size: 22px; }
h2 { font-size: 18px; }
h3 { font-size: 16px; }

ul, ol {
    margin: 0;
    padding: 0;
}

li {
    list-style: none;
}

button, input, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* 屏幕阅读器文本 */
.screen-reader-text {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ========================================
   容器
   ======================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 15px;
}

/* ========================================
   顶部工具栏
   ======================================== */
.topbar {
    background: var(--topbar-bg);
    color: #cbd5e0;
    font-size: 12px;
    line-height: 32px;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left strong {
    color: #fff;
    font-weight: 500;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.topbar-link {
    color: #cbd5e0;
    padding: 0 4px;
    transition: color var(--transition);
}

.topbar-link:hover {
    color: #fff;
}

.topbar-sep {
    color: #4a5568;
}

/* ========================================
   主导航栏
   ======================================== */
.site-header {
    background: var(--header-bg);
    color: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 60px;
}

.site-branding {
    flex-shrink: 0;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.site-logo:hover {
    color: #fff;
}

.logo-icon {
    font-size: 24px;
}

.custom-logo {
    height: 40px;
    width: auto;
}

/* 菜单按钮（移动端） */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 4px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform var(--transition);
}

/* 主导航 */
.main-navigation {
    flex: 1;
}

.nav-menu {
    display: flex;
    gap: 4px;
}

.nav-menu > li > a {
    display: block;
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 14px;
    transition: background var(--transition);
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* 下拉菜单 */
.nav-menu li {
    position: relative;
}

.nav-menu ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition);
    z-index: 10;
}

.nav-menu li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu ul li a {
    display: block;
    padding: 8px 16px;
    color: var(--text-color);
    font-size: 13px;
    white-space: nowrap;
}

.nav-menu ul li a:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

/* 搜索框 */
.header-search {
    flex-shrink: 0;
}

.search-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    overflow: hidden;
    height: 34px;
}

.search-field {
    border: none;
    background: transparent;
    padding: 0 12px;
    color: #fff;
    width: 180px;
    height: 100%;
    outline: none;
}

.search-field::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-submit {
    border: none;
    background: transparent;
    color: #fff;
    padding: 0 12px;
    cursor: pointer;
    height: 100%;
}

/* ========================================
   面包屑
   ======================================== */
.breadcrumb {
    background: var(--bg-white);
    padding: 10px 15px;
    border-radius: var(--radius);
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    font-size: 13px;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.breadcrumb-list li {
    display: inline-flex;
    align-items: center;
}

.breadcrumb-sep {
    color: var(--text-muted);
    margin: 0 4px;
}

.breadcrumb a {
    color: var(--text-light);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb .current {
    color: var(--text-muted);
}

/* ========================================
   内容区布局
   ======================================== */
.site-content-wrapper {
    display: flex;
    gap: 18px;
    padding: 18px 0;
}

.site-main-wrapper {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* ========================================
   首页统计条
   ======================================== */
.forum-stats-bar {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 14px 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 30px;
}

.stats-item {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.stats-num {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.stats-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* ========================================
   公告栏
   ======================================== */
.forum-announcement {
    background: #fff7ed;
    border-left: 4px solid var(--warning-color);
    border-radius: var(--radius);
    padding: 10px 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #9c4221;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ann-icon {
    font-size: 16px;
}

.forum-announcement a {
    color: #9c4221;
}

.forum-announcement a:hover {
    color: var(--primary-color);
}

/* ========================================
   版块分组
   ======================================== */
.forum-group {
    background: var(--bg-white);
    border-radius: var(--radius);
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.forum-group-header {
    background: linear-gradient(180deg, #f7fafc 0%, #edf2f7 100%);
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.forum-group-title {
    font-size: 16px;
    color: var(--text-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.group-icon {
    font-size: 18px;
}

.forum-group-desc {
    color: var(--text-muted);
    font-size: 12px;
    flex: 1;
}

.forum-group-more {
    font-size: 12px;
    color: var(--primary-color);
    margin-left: auto;
}

.forum-group-more:hover {
    color: var(--primary-dark);
}

.forum-group-body {
    padding: 6px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}


.lastpost-label {
    color: var(--text-muted);
}


.lastpost-meta {
    margin-left: auto;
    font-size: 11px;
    color: var(--text-muted);
}



/* ========================================
   列表标题栏
   ======================================== */
.list-header-bar {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 12px 18px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    border-left: 3px solid var(--primary-color);
}

.list-header-title {
    font-size: 15px;
    color: var(--text-color);
    margin: 0;
    font-weight: 600;
}

/* ========================================
   文章列表卡片
   ======================================== */
.forum-post-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ========================================
   底图卡片（d-card）
   ======================================== */

.d-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: box-shadow var(--transition), transform var(--transition);
}

.d-card.has-bg {
    box-shadow: var(--shadow);
}
.d-card.no-bg {
    background: var(--bg-white);
    box-shadow: var(--shadow);
}

.d-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* 背景图层 */
.d-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.4;
    z-index: 1;
    transition: opacity 0.3s;
}
.d-card:hover .d-card-bg {
    opacity: 0.55;
}

/* 暗色遮罩层 */
.d-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 100%);
    pointer-events: none;
    z-index: 2;
}

/* 内容层 */
.d-card-inner {
    position: relative;
    z-index: 3;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ===== 顶部：头像 + 标题区 ===== */
.d-card-top {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.d-card-avatar img {
    border-radius: 50%;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}
.d-card.has-bg .d-card-avatar img {
    border: 2px solid rgba(255, 255, 255, 0.7);
}
.d-card.no-bg .d-card-avatar img {
    border: 2px solid var(--border-light);
}

.d-card-info {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}

.d-card-title-line {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
    flex-wrap: nowrap;
}

.d-card-cat {
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
    text-decoration: none;
}
.d-card.has-bg .d-card-cat {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.d-card.has-bg .d-card-cat:hover {
    color: var(--primary-light);
}
.d-card.no-bg .d-card-cat {
    color: var(--text-color);
}
.d-card.no-bg .d-card-cat:hover {
    color: var(--primary-color);
}

.d-card-title {
    font-size: 16px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.d-card.has-bg .d-card-title a {
    color: #fff;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.d-card.has-bg .d-card-title a:hover {
    color: var(--primary-light);
}
.d-card.no-bg .d-card-title a {
    color: var(--text-color);
    font-weight: 600;
}
.d-card.no-bg .d-card-title a:hover {
    color: var(--primary-color);
}

.d-card-badge {
    display: inline-block;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 2px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}
.badge-sticky {
    background: var(--danger-color);
    color: #fff;
}

.d-card-author {
    font-size: 12px;
}
.d-card.has-bg .d-card-author a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}
.d-card.has-bg .d-card-author a:hover {
    color: #fff;
    text-decoration: underline;
}
.d-card.no-bg .d-card-author a {
    color: var(--text-muted);
    text-decoration: none;
}
.d-card.no-bg .d-card-author a:hover {
    color: var(--primary-color);
}

/* ===== 摘要 ===== */
.d-card-excerpt {
    font-size: 13px;
    line-height: 1.7;
}
.d-card.has-bg .d-card-excerpt {
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.d-card.no-bg .d-card-excerpt {
    color: var(--text-light);
}

/* ===== 标签 ===== */
.d-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.d-card-tag {
    font-size: 11px;
    padding: 1px 8px;
    border-radius: 10px;
    transition: all var(--transition);
    text-decoration: none;
}
.d-card.has-bg .d-card-tag {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
}
.d-card.has-bg .d-card-tag:hover {
    background: var(--primary-color);
    color: #fff;
}
.d-card.no-bg .d-card-tag {
    color: var(--text-muted);
    background: var(--bg-alt);
}
.d-card.no-bg .d-card-tag:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

/* ===== 底部 ===== */
.d-card-footer {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    margin-top: 4px;
    padding-top: 4px;
    border-top: none;
}

.d-card-stat {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    text-decoration: none;
}
.d-card.has-bg .d-card-footer {
    color: rgba(255, 255, 255, 0.85);
}
.d-card.no-bg .d-card-footer {
    color: var(--text-muted);
}

.d-card-stat:hover {
    opacity: 0.7;
}

/* ===== 图标 ===== */
.d-icon {
    display: inline-block;
    font-size: 10px;
    margin-right: 2px;
    opacity: 0.85;
}
.d-icon-view::before    { content: "\25C9"; }  /* ◉ 浏览 */
.d-icon-comment::before { content: "\2709"; }  /* ✉ 评论 */
.d-icon-like::before    { content: "\2665"; }  /* ♥ 点赞 */
.d-icon-fav::before     { content: "\2605"; }  /* ★ 收藏 */
.d-icon-share::before   { content: "\2197"; }  /* ↗ 分享 */
.d-icon-date::before    { content: "\25CF"; }  /* ● 日期 */

/* ========================================
   侧边栏 Widget
   ======================================== */
.widget {
    background: var(--bg-white);
    border-radius: var(--radius);
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.widget-title {
    font-size: 14px;
    padding: 12px 15px;
    margin: 0;
    background: linear-gradient(180deg, #f7fafc 0%, #edf2f7 100%);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.widget > *:not(.widget-title) {
    padding: 12px 15px;
}

/* 侧边栏简单列表 */
.post-list-simple li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 13px;
    gap: 8px;
}

.post-list-simple li:last-child {
    border-bottom: none;
}

.post-list-simple a {
    flex: 1;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-list-simple a:hover {
    color: var(--primary-color);
}

.post-list-views,
.post-list-date {
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.stats-list li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--border-light);
}

.stats-list li:last-child {
    border-bottom: none;
}

.stats-list strong {
    color: var(--primary-color);
}

.no-data {
    color: var(--text-muted);
    font-size: 13px;
}

/* ========================================
   单篇文章页
   ======================================== */
.single-article {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 24px 28px;
    box-shadow: var(--shadow);
}

.single-header {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.single-title {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-color);
    line-height: 1.4;
}

.single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: var(--text-muted);
    align-items: center;
}

.single-meta .author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.single-meta .author img {
    border-radius: 50%;
}

.single-meta .author a {
    color: var(--text-light);
}

.single-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-color);
}

.single-content p {
    margin-bottom: 16px;
}

.single-content img {
    border-radius: var(--radius);
}

.single-content blockquote {
    background: var(--bg-alt);
    border-left: 4px solid var(--primary-color);
    padding: 12px 16px;
    margin: 16px 0;
    color: var(--text-light);
}

.single-content code {
    background: var(--bg-alt);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 13px;
}

.single-content pre {
    background: #1a202c;
    color: #e2e8f0;
    padding: 16px;
    border-radius: var(--radius);
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.6;
    margin: 16px 0;
}

.single-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.single-tags {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
    font-size: 13px;
}

.tags-label {
    color: var(--text-muted);
    margin-right: 6px;
}

/* 上一篇/下一篇 */
.single-pagination {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.single-pagination > div {
    flex: 1;
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 12px 16px;
    box-shadow: var(--shadow);
    font-size: 13px;
}

.single-pagination a {
    color: var(--text-color);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.single-pagination a:hover {
    color: var(--primary-color);
}

.nav-next {
    text-align: right;
}

/* ========================================
   广告位样式
   ======================================== */
.discuzlike-ad {
    position: relative;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 15px;
    padding: 12px;
    text-align: center;
    overflow: hidden;
}

.discuzlike-ad-label {
    position: absolute;
    top: 6px;
    left: 8px;
    font-size: 10px;
    color: var(--text-muted);
    background: var(--bg-alt);
    padding: 1px 6px;
    border-radius: 3px;
    z-index: 2;
}

.discuzlike-ad img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

.discuzlike-ad.ad-banner {
    padding: 10px;
}

.discuzlike-ad.ad-banner img {
    width: 100%;
    max-height: 90px;
    object-fit: contain;
}

.discuzlike-ad.ad-block {
    padding: 14px;
}

/* ========================================
   评论区
   ======================================== */
.comments-area {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-top: 16px;
}

.comments-title,
.comment-reply-title {
    font-size: 16px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

.comment-list {
    list-style: none;
}

.comment-item {
    border-bottom: 1px solid var(--border-light);
    padding: 14px 0;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-body {
    display: flex;
    gap: 12px;
}

.comment-avatar img {
    border-radius: 50%;
}

.comment-main {
    flex: 1;
    min-width: 0;
}

.comment-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.comment-author {
    font-weight: 600;
    color: var(--text-color);
}

.comment-content {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.6;
}

.comment-content p {
    margin-bottom: 6px;
}

.comment-actions {
    margin-top: 8px;
    font-size: 12px;
}

.comment-actions a {
    color: var(--text-muted);
}

.comment-actions a:hover {
    color: var(--primary-color);
}

.comment-list .children {
    margin-left: 50px;
    padding-left: 14px;
    border-left: 2px solid var(--border-light);
}

/* 评论表单 */
.comment-form {
    margin-top: 20px;
}

.comment-form .comment-form-comment textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    color: var(--text-color);
    transition: border-color var(--transition);
}

.comment-form textarea:focus,
.comment-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.comment-form .form-submit input[type="submit"] {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background var(--transition);
}

.comment-form .form-submit input[type="submit"]:hover {
    background: var(--primary-dark);
}

/* ========================================
   分页
   ======================================== */
.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pagination .page-numbers li {
    display: inline-block;
}

.pagination a,
.pagination .current {
    display: inline-block;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-color);
    font-size: 13px;
    transition: all var(--transition);
}

.pagination a:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.pagination .current {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* ========================================
   404 页面
   ======================================== */
.error-404 {
    text-align: center;
    padding: 60px 20px;
}

.error-code {
    font-size: 100px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 10px;
}

.error-title {
    font-size: 22px;
    margin-bottom: 10px;
}

.error-desc {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.error-home-btn {
    display: inline-block;
    padding: 10px 28px;
    background: var(--primary-color);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.error-home-btn:hover {
    background: var(--primary-dark);
    color: #fff;
}

.error-search {
    margin-top: 20px;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   归档页
   ======================================== */
.archive-header {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
}

.archive-title {
    font-size: 18px;
    margin: 0;
    color: var(--text-color);
}

/* ========================================
   无内容提示
   ======================================== */
.no-content {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 40px 20px;
    text-align: center;
    box-shadow: var(--shadow);
}

.no-content h2 {
    color: var(--text-color);
    margin-bottom: 8px;
}

.no-content p {
    color: var(--text-muted);
}

/* ========================================
   回到顶部
   ======================================== */
.back-to-top {
    position: fixed;
    right: 25px;
    bottom: 30px;
    width: 42px;
    height: 42px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 99;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ========================================
   页脚
   ======================================== */
.site-footer {
    background: var(--footer-bg);
    color: #9fb0c2;
    padding: 24px 0;
    margin-top: 30px;
    font-size: 13px;
}

.footer-inner {
    text-align: center;
}

.footer-main {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.footer-navigation .footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    justify-content: center;
}

.footer-navigation a {
    color: #9fb0c2;
    font-size: 13px;
}

.footer-navigation a:hover {
    color: #fff;
}

.footer-copyright {
    color: #9fb0c2;
}

.footer-powered {
    font-size: 12px;
}

.footer-powered a {
    color: #b8c5d3;
}

.footer-powered a:hover {
    color: #fff;
}

/* ========================================
   对齐类
   ======================================== */
.alignleft {
    float: left;
    margin: 0 16px 16px 0;
}

.alignright {
    float: right;
    margin: 0 0 16px 16px;
}

.aligncenter {
    display: block;
    margin: 0 auto 16px;
}
