/**
 * Inaline 主题前台全局 CSS
 * @author Inaline Studio
 */

/* CSS 变量定义 */
:root {
    --primary-color: #FF7900;
    --primary-color-light: #FF9A40;
    --primary-color-dark: #E66A00;
    --bg-color: #FFFFFF;
    --page-bg-color: #F5F5F5;
    --text-color: #333333;
    --text-color-light: #666666;
    --border-color: #E0E0E0;
    --overlay-bg: rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --topbar-height: 52px;
    --categories-height: 36px;
    --sidebar-width: 75%;
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --card-padding: 13.14px;
    --content-max-width: 1200px;
    --shuoshuo-primary: #576B95;
}

/* 深色模式变量 */
body.dark-mode {
    --bg-color: #1a1a1a;
    --page-bg-color: #0d0d0d;
    --text-color: #e0e0e0;
    --text-color-light: #b0b0b0;
    --border-color: #333333;
    --overlay-bg: rgba(0, 0, 0, 0.7);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
}

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    outline: none;
}

a:focus {
    outline: none;
}

/* Markdown 内容中的链接样式 */
.markdown-content a,
.inaline-link {
    color: var(--text-color);
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: color 0.3s;
    padding-right: 14px;
}

.markdown-content a::before,
.inaline-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-image: radial-gradient(circle, var(--text-color) 1px, transparent 1px);
    background-size: 4px 2px;
    background-repeat: repeat-x;
    opacity: 0.5;
}

.markdown-content a::after,
.inaline-link::after {
    content: '\F03CC';
    font-family: 'Material Design Icons';
    font-size: 12px;
    position: absolute;
    top: 2px;
    right: 0;
    color: var(--text-color);
    opacity: 0.6;
    transition: opacity 0.3s, color 0.3s;
}

.markdown-content a:hover,
.inaline-link:hover {
    color: #FFFFFF;
    background: var(--primary-color);
    padding-right: 20px;
    border-radius: 4px;
}

.markdown-content a:hover::before,
.inaline-link:hover::before {
    opacity: 0;
}

.markdown-content a:hover::after,
.inaline-link:hover::after {
    opacity: 1;
    color: #FFFFFF;
}

.markdown-content a::selection,
.inaline-link::selection {
    background: var(--primary-color);
    color: #FFFFFF;
}

.markdown-content a::selection::before,
.inaline-link::selection::before {
    opacity: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--page-bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* 阻止页面滚动 */
body.overflow-hidden {
    overflow: hidden;
}

/* Main 内容区域 */
main {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 16px;
    padding-top: calc(var(--topbar-height) + var(--categories-height) + 16px);
}

/* 主容器 */
.main-container {
    width: 100%;
}

/* 内容包装器 */
.content-wrapper {
    display: flex;
    gap: 24px;
    width: 100%;
}

/* 左侧内容列 */
.content-column {
    flex: 1;
    min-width: 0;
}

/* 右侧侧边栏列 */
.sidebar-column {
    width: 320px;
    flex-shrink: 0;
}

/* 卡片样式 */
.card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xs);
    padding: var(--card-padding);
    margin-bottom: 16px;
    transition: box-shadow var(--transition-speed);
}

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

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.card-content {
    font-size: 14px;
    color: var(--text-color-light);
    line-height: 1.6;
}

/* 用户卡片样式 */
.user-card .card-content {
    padding: 12px;
}

.user-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.user-avatar {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

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

.user-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-light));
    color: white;
    font-size: 24px;
    font-weight: 600;
}

.user-info-text {
    flex: 1;
    min-width: 0;
}

.user-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.user-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
}

.user-status-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-light));
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
    flex-shrink: 0;
}

.user-bio {
    font-size: 12px;
    color: var(--text-color-light);
    line-height: 1.4;
}

.user-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.user-stats {
    display: flex;
    gap: 16px;
}

.user-stat-item {
    text-align: center;
    min-width: 40px;
}

.user-stat-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1;
    margin-bottom: 2px;
    text-align: center;
}

.user-stat-label {
    font-size: 10px;
    color: var(--text-color-light);
    text-align: center;
}

.user-contacts {
    display: flex;
    gap: 8px;
}

.user-contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background-color: var(--bg-color-secondary);
    color: var(--text-color-light);
    font-size: 16px;
    transition: all var(--transition-speed);
}

.user-contact-item:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.user-stat-item {
    text-align: right;
}

.user-stat-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1;
    margin-bottom: 2px;
}

.user-stat-label {
    font-size: 10px;
    color: var(--text-color-light);
}

/* 测试卡片样式 */
.test-card {
    min-height: auto;
}

.test-card .card-content {
    padding: 16px;
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.6;
}

/* 热门文章卡片样式 */
.hot-articles-card .card-content {
    padding: 12px;
}

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

.hot-articles-card .article-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--bg-color-secondary);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.hot-articles-card .article-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.hot-articles-card .article-link {
    display: flex;
    text-decoration: none;
    color: var(--text-color);
    align-items: center;
}

.hot-articles-card .article-thumbnail {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: var(--border-radius);
}

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

.hot-articles-card .article-info {
    flex: 1;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.hot-articles-card .article-title {
    font-size: 13px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 6px;
}

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

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

/* 最新评论卡片样式 */
.recent-comments-card .card-content {
    padding: 12px;
}

.recent-comments-card .recent-comments-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recent-comments-card .recent-comments-item {
    display: flex;
    gap: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
}

.recent-comments-card .recent-comments-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.recent-comments-card .recent-comments-avatar {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
}

.recent-comments-card .recent-comments-avatar img,
.recent-comments-card .recent-comments-avatar .avatar-default {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-comments-card .recent-comments-content {
    flex: 1;
    min-width: 0;
}

.recent-comments-card .recent-comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.recent-comments-card .recent-comments-author {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color);
}

.recent-comments-card .recent-comments-date {
    font-size: 11px;
    color: var(--text-color-light);
}

.recent-comments-card .recent-comments-text {
    font-size: 12px;
    color: var(--text-color-light);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 空状态样式 */
.empty-text {
    text-align: center;
    padding: 20px;
    color: var(--text-color-light);
    font-size: 13px;
}

/* 随机一言卡片样式 */
.random-word-container {
    position: relative;
    background-color: #f5f5f5;
    border-radius: 12px;
    padding: 24px;
    min-height: 100px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-icon {
    position: absolute;
    width: 24px;
    height: 24px;
    opacity: 0.6;
    color: #999999;
}

.quote-open {
    top: 8px;
    left: 8px;
}

.quote-close {
    bottom: 8px;
    right: 8px;
}

.random-word-text {
    position: relative;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    text-align: center;
    padding: 0 24px;
    max-width: 100%;
}

/* 暗色模式适配 */
body.dark-mode .random-word-container {
    background-color: #2a2a2a;
}

body.dark-mode .quote-icon {
    color: #ffffff;
}

/* 轮播图样式 */
.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    background-color: var(--border-color);
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 40%; /* 宽高比 2.5:1 */
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.carousel-item.active {
    opacity: 1;
    visibility: visible;
}

.carousel-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.carousel-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
}

.carousel-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
}

.carousel-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* 轮播图切换按钮 */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 28px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    touch-action: manipulation;
    pointer-events: auto;
}

.carousel:hover .carousel-control {
    opacity: 1;
    visibility: visible;
}

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.5);
}

.carousel-control-prev {
    left: 12px;
}

.carousel-control-next {
    right: 12px;
}

/* 轮播图指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    pointer-events: auto;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all var(--transition-speed);
    padding: 0;
    touch-action: manipulation;
    pointer-events: auto;
}

.carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.carousel-indicator.active {
    background: white;
    width: 24px;
    border-radius: 5px;
}

/* TopBar 样式 */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: calc(var(--topbar-height) + var(--categories-height));
    background-color: var(--bg-color);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

.topbar-container {
    display: flex;
    align-items: center;
    height: var(--topbar-height);
    padding: 0 16px;
    max-width: var(--content-max-width);
    margin: 0 auto;
}

/* TopBar 分割线 */
.topbar-divider {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.05);
    width: 100%;
}

body.dark-mode .topbar-divider {
    background-color: rgba(255, 255, 255, 0.05);
}

/* TopBar 按钮 */
.topbar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-color);
    font-size: 20px;
    border-radius: 50%;
    transition: all var(--transition-speed);
}

.topbar-btn:hover {
    color: var(--primary-color);
    background-color: rgba(255, 121, 0, 0.1);
}

/* Logo */
.topbar-logo {
    display: flex;
    align-items: center;
    margin-right: 25px;
    margin-left: 10px;
}

.topbar-logo img {
    height: 28px;
    width: auto;
}

/* 桌面端导航 */
.topbar-nav {
    display: none;
    align-items: center;
    gap: 8px;
}

.topbar-nav-item {
    padding: 8px 16px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed);
    position: relative;
}

.topbar-nav-item:hover {
    color: var(--primary-color);
}

.topbar-nav-item.active {
    color: var(--primary-color);
    background-color: rgba(255, 121, 0, 0.1);
}

.topbar-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.topbar-nav-icon {
    margin-right: 4px;
}

/* 桌面端分类容器 */
.categories-container {
    display: none;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 16px;
    height: var(--categories-height);
}

.category-item {
    padding: 6px 10px;
    text-decoration: none;
    color: var(--text-color-light);
    font-size: 12px;
    font-weight: 400;
    border-radius: 4px;
    transition: color var(--transition-speed);
    position: relative;
}

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

.category-item.active {
    color: var(--primary-color);
}

.category-dropdown {
    display: flex;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    position: relative;
    padding: 6px 10px;
    border-radius: 4px;
    transition: color var(--transition-speed);
}

.category-icon {
    font-size: 14px;
    margin-right: 4px;
}

.category-link {
    color: var(--text-color-light);
    font-size: 12px;
    font-weight: 400;
    text-decoration: none;
    transition: color var(--transition-speed);
    display: flex;
    align-items: center;
}

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

.category-dropdown.active .category-link {
    color: var(--primary-color);
}

.category-arrow {
    font-size: 12px;
    transition: transform var(--transition-speed);
}

.category-dropdown:hover .category-arrow {
    transform: rotate(180deg);
}

/* 分类下拉菜单 */
.category-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) perspective(600px) rotateX(-45deg);
    min-width: 100px;
    background-color: var(--bg-color);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
    border-top: 2px solid var(--primary-color);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform-origin: top;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    padding: 6px 0;
}

/* 顶部三角形指示器 */
.category-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid var(--primary-color);
}

.category-dropdown:hover > .category-dropdown-menu,
.category-dropdown.expanded > .category-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) perspective(600px) rotateX(0);
}

/* 分类下拉菜单项 - 递归样式 */
.category-dropdown-menu .category-item {
    padding: 4px 12px;
    font-size: 12px;
    display: block;
    text-decoration: none;
    color: var(--text-color-light);
    transition: color 0.3s;
}

.category-dropdown-menu .category-item:hover {
    color: var(--primary-color);
}

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

/* 子级下拉菜单项样式 */
.category-dropdown-menu .category-dropdown {
    padding: 4px 12px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    position: relative;
    width: 100%;
}

.category-dropdown-menu .category-dropdown .category-link {
    flex: 1;
    padding: 0;
    text-decoration: none;
    color: var(--text-color-light);
    transition: color 0.3s;
}

.category-dropdown-menu .category-dropdown .category-link:hover {
    color: var(--primary-color);
}

.category-dropdown-menu .category-dropdown .category-link.active {
    color: var(--primary-color);
    font-weight: 500;
}

.category-dropdown-menu .category-dropdown .category-arrow {
    font-size: 12px;
    flex-shrink: 0;
    transition: transform 0.3s;
    color: var(--text-color-light);
}

/* 嵌套下拉菜单（支持无限嵌套） */
.category-dropdown-menu .category-dropdown .category-dropdown-menu {
    top: -8px;
    left: 100%;
    margin-left: 4px;
    transform: translateY(0) perspective(600px) rotateX(-45deg);
    min-width: 100px;
    opacity: 0;
    visibility: hidden;
}

.category-dropdown-menu .category-dropdown:hover > .category-dropdown-menu,
.category-dropdown-menu .category-dropdown.expanded > .category-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) perspective(600px) rotateX(0);
}

.category-dropdown-menu .category-dropdown-menu::before {
    top: 16px;
    left: -7px;
    transform: translateY(-50%);
    border-left: none;
    border-right: 5px solid var(--primary-color);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

/* 深层级嵌套的箭头方向 */
.category-dropdown-menu .category-dropdown .category-arrow {
    transform: rotate(0deg);
}

.category-dropdown-menu .category-dropdown:hover > .category-arrow,
.category-dropdown-menu .category-dropdown.expanded > .category-arrow {
    transform: rotate(90deg);
}

/* 确保所有层级的下拉菜单都能正确显示 */
.category-dropdown-menu .category-dropdown-menu .category-dropdown-menu {
    top: 0;
    left: 100%;
    opacity: 0;
    visibility: hidden;
}

/* 点击展开状态 */
.category-dropdown.expanded > .category-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) perspective(600px) rotateX(0);
}

.category-dropdown.expanded > .category-arrow {
    transform: rotate(180deg);
}

.category-dropdown-menu .category-dropdown.expanded > .category-arrow {
    transform: rotate(90deg);
}

/* 二级菜单下拉样式 */
.topbar-nav-dropdown {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    position: relative;
    padding: 8px 16px;
    padding-right: 6px; /* 让二级菜单在视觉上边距一致 */
    border-radius: var(--border-radius);
    transition: all var(--transition-speed);
}

.topbar-nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    transition: all var(--transition-speed);
}

.topbar-nav-dropdown:hover {
    color: var(--primary-color);
}

.topbar-nav-dropdown:hover .topbar-nav-link {
    color: var(--primary-color);
}

.topbar-nav-dropdown.active {
    color: var(--primary-color);
    background-color: rgba(255, 121, 0, 0.1);
}

.topbar-nav-dropdown.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.topbar-nav-arrow {
    font-size: 16px;
    transition: transform var(--transition-speed);
}

.topbar-nav-dropdown:hover .topbar-nav-arrow {
    transform: rotate(180deg);
}

/* 下拉菜单 */
.topbar-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) perspective(600px) rotateX(-45deg);
    min-width: 120px;
    background-color: var(--bg-color);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
    border-top: 3px solid var(--primary-color);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform-origin: top;
    transition: opacity 0.35s, visibility 0.35s, transform 0.35s;
    padding: 10px 0;
}

/* 顶部三角形指示器 */
.topbar-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 45%;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid var(--primary-color);
}

.topbar-nav-dropdown:hover .topbar-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) perspective(600px) rotateX(0);
}

/* 下拉菜单项 */
.topbar-dropdown-item {
    display: block;
    padding: 0 15px;
    height: 34px;
    line-height: 34px;
    text-decoration: none;
    color: var(--text-color-light);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.35s, background 0.35s;
    text-align: center;
}

.topbar-dropdown-item:hover {
    color: var(--primary-color);
    background-color: rgba(255, 121, 0, 0.08);
}

.topbar-dropdown-item.active {
    color: var(--primary-color);
    background-color: rgba(255, 121, 0, 0.1);
    font-weight: 500;
}

/* 右侧按钮组 */
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    position: relative;
}

/* 搜索框 */
.topbar-search {
    position: fixed;
    top: calc(var(--topbar-height) + var(--categories-height));
    left: 0;
    right: 0;
    background-color: var(--bg-color);
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed);
}

.topbar-search.show {
    opacity: 1;
    visibility: visible;
}

.topbar-search-content {
    position: relative;
    padding: 12px;
    min-height: auto;
}

/* 搜索卡片 */
.search-card {
    width: 320px;
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-left: auto;
}

/* 搜索输入框容器 */
.search-input-wrapper {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
}

.search-icon {
    font-size: 18px;
    color: var(--text-color-light);
    margin-right: 8px;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    color: var(--text-color);
    background: transparent;
}

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

.search-clear {
    display: none;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--text-color-light);
    border-radius: 50%;
    transition: all 0.2s;
}

.search-clear:hover {
    background-color: var(--border-color);
    color: var(--text-color);
}

.search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border: none;
    background: var(--primary-color);
    color: white;
    font-size: 13px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    margin-left: 8px;
}

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

/* 搜索部分容器 */
.search-history,
.search-hot {
    padding: 10px 12px;
}

.search-history {
    border-bottom: 1px solid var(--border-color);
}

/* 搜索部分标题 */
.search-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.search-section-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-color-light);
}

.search-clear-all {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 3px 6px;
    border: none;
    background: none;
    color: var(--text-color-light);
    font-size: 11px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.search-clear-all:hover {
    background-color: var(--border-color);
    color: var(--text-color);
}

/* 搜索历史列表 */
.search-history-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.search-history-item {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    background-color: var(--border-color);
    border-radius: 12px;
    font-size: 12px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s;
}

.search-history-item:hover {
    background-color: var(--primary-color);
    color: white;
}

.search-history-text {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 热搜列表 */
.search-hot-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.search-hot-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.search-hot-item:hover {
    background-color: var(--border-color);
}

.search-hot-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-color-light);
    background-color: var(--border-color);
    border-radius: 3px;
}

.hot-rank-1 {
    background-color: #ff4757;
    color: white;
}

.hot-rank-2 {
    background-color: #ffa502;
    color: white;
}

.hot-rank-3 {
    background-color: #2ed573;
    color: white;
}

.search-hot-text {
    flex: 1;
    font-size: 12px;
    color: var(--text-color);
}

/* 深色模式适配 */
body.dark-mode .search-card {
    background-color: #2a2a2a;
}

body.dark-mode .search-input-wrapper {
    border-bottom-color: #333333;
}

body.dark-mode .search-history-item {
    background-color: #333333;
}

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

body.dark-mode .search-hot-item:hover {
    background-color: #333333;
}

body.dark-mode .search-clear-all:hover,
body.dark-mode .search-clear:hover {
    background-color: #333333;
}

/* 左侧边栏 */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    max-width: 300px;
    background-color: var(--bg-color);
    box-shadow: var(--shadow-lg);
    z-index: 1004;
    transform: translateX(-100%);
    transition: transform var(--transition-speed);
}

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

.sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
}

/* 用户信息 */
.sidebar-user {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    position: relative;
}

/* 用户状态卡片 */
.sidebar-user-status {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.sidebar-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 12px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-speed);
}

.sidebar-avatar:hover {
    transform: scale(1.05);
}

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

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

.sidebar-user-bio {
    font-size: 14px;
    color: var(--text-color-light);
    margin-bottom: 16px;
}

.sidebar-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.sidebar-stat-item {
    text-align: center;
}

.sidebar-stat-value {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.sidebar-stat-label {
    font-size: 12px;
    color: var(--text-color-light);
}

/* 选项卡 */
.sidebar-tabs {
    display: flex;
    background-color: var(--page-bg-color);
    border-radius: var(--border-radius);
    padding: 4px;
    margin-bottom: 16px;
    animation: slideDown 0.4s ease-out;
}

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

.sidebar-tab {
    flex: 1;
    text-align: center;
    padding: 8px;
    font-size: 14px;
    color: var(--text-color-light);
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-speed);
    position: relative;
}

.sidebar-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
    transition: transform var(--transition-speed);
}

.sidebar-tab.active::after {
    transform: translateX(-50%) scaleX(1);
}

.sidebar-tab.active {
    background-color: var(--bg-color);
    color: var(--primary-color);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

/* 选项卡内容 */
.sidebar-tab-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    animation: fadeIn 0.5s ease-out;
}

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

.sidebar-tab-content .sidebar-tab-pane {
    display: none;
    animation: tabContentSlide 0.3s ease-out;
}

@keyframes tabContentSlide {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sidebar-tab-content .sidebar-tab-pane.active {
    display: block;
}

.sidebar-link {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    border-radius: var(--border-radius);
    margin-bottom: 4px;
    transition: all var(--transition-speed);
}

.sidebar-link:hover {
    color: var(--primary-color);
    background-color: rgba(255, 121, 0, 0.1);
}

.sidebar-link.active {
    color: var(--primary-color);
    background-color: rgba(255, 121, 0, 0.15);
    font-weight: 500;
}

/* 树形结构 */
.sidebar-tree {
    margin-bottom: 4px;
}

.sidebar-tree-item {
    margin-bottom: 2px;
}

.sidebar-tree-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed);
}

.sidebar-tree-header:hover {
    color: var(--primary-color);
    background-color: rgba(255, 121, 0, 0.1);
}

.sidebar-tree-header.active {
    color: var(--primary-color);
    background-color: rgba(255, 121, 0, 0.15);
}

.sidebar-tree-item-icon {
    font-size: 18px;
    margin-right: 8px;
}

.sidebar-tree-label {
    font-size: 14px;
    font-weight: 500;
    flex: 1;
}

.sidebar-tree-icon {
    font-size: 16px;
    margin-left: auto;
    transition: transform var(--transition-speed);
}

.sidebar-tree-item.expanded > .sidebar-tree-header .sidebar-tree-icon {
    transform: rotate(90deg);
}

.sidebar-tree-children {
    display: none;
    padding-left: 24px;
}

.sidebar-tree-link {
    padding: 10px 16px 10px 40px;
}

.sidebar-link .mdi {
    margin-right: 8px;
    font-size: 16px;
}

.sidebar-tree-link .mdi {
    display: none;
}

/* 侧边栏遮罩 */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--overlay-bg);
    backdrop-filter: blur(4px);
    z-index: 1003;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed);
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* 搜索/菜单遮罩 */
.search-overlay {
    position: fixed;
    top: calc(var(--topbar-height) + var(--categories-height));
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--overlay-bg);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed);
}

.search-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* 更多选项菜单 */
.more-menu {
    position: absolute;
    top: calc(100% + 16px);
    right: 0;
    min-width: 150px;
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-speed);
}

.more-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.more-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-color);
    cursor: pointer;
    transition: all var(--transition-speed);
}

.more-menu-icon {
    font-size: 18px;
    color: var(--text-color-light);
    transition: color var(--transition-speed);
}

.more-menu-item:hover {
    background-color: rgba(255, 121, 0, 0.1);
    color: var(--primary-color);
}

.more-menu-item:hover .more-menu-icon {
    color: var(--primary-color);
}

.more-menu-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 4px 0;
}

/* 响应式设计 - 桌面端 */
@media (min-width: 768px) {
    #menuBtn {
        display: none;
    }

    .topbar-nav {
        display: flex;
    }

    .categories-container {
        display: flex;
    }

    /* 文章页面分类栏特殊处理 */
    body#post header.topbar.scrolled .categories-container,
    body#post header.topbar:hover .categories-container {
        display: flex;
    }

    .topbar-search {
        position: absolute;
        top: calc(100% + 8px);
        right: 16px;
        left: auto;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-speed);
        width: auto;
    }

    .topbar-search.show {
        opacity: 1;
        visibility: visible;
    }

    .topbar-search-content {
        position: relative;
        padding: 0;
        min-height: auto;
    }
}

/* 响应式设计 - 移动端 */
@media (max-width: 767px) {
    :root {
        --categories-height: 0;
    }

    .topbar {
        height: var(--topbar-height);
    }

    .categories-container,
    .topbar-divider {
        display: none;
    }

    /* 移动端文章页面分类栏始终隐藏 */
    body#post header.topbar .categories-container,
    body#post header.topbar .topbar-divider {
        display: none !important;
    }

    .search-overlay {
        top: var(--topbar-height);
    }

    .topbar-search {
        position: fixed;
        top: var(--topbar-height);
        left: 0;
        right: 0;
        background-color: var(--bg-color);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-speed);
    }

    .topbar-search.show {
        opacity: 1;
        visibility: visible;
    }

    .topbar-search-content {
        padding: 12px;
    }

    .search-card {
        width: 100%;
        max-width: none;
        margin: 0;
        background-color: transparent;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
    }

    .search-input-wrapper {
        background-color: transparent;
        border-bottom: 1px solid var(--border-color);
    }

    .search-history,
    .search-hot {
        background-color: transparent;
        border-bottom: none;
    }

    .search-history-text {
        max-width: 100px;
    }

    /* 移动端两栏改单栏 */
    .content-wrapper {
        flex-direction: column;
        gap: 16px;
    }

    /* 隐藏右侧栏 */
    .sidebar-column {
        display: none;
    }

    /* 修复 main 被标题栏遮挡的问题 */
    main {
        padding-top: calc(var(--topbar-height) + 16px);
    }

    /* 移动端轮播图适配 */
    .carousel-inner {
        padding-bottom: 40%; /* 2.5:1 宽高比 */
    }

    .carousel-control {
        width: 36px;
        height: 36px;
        font-size: 24px;
        opacity: 1;
        visibility: visible;
    }

    .carousel-control-prev {
        left: 8px;
    }

    .carousel-control-next {
        right: 8px;
    }

    .carousel-caption {
        padding: 16px;
    }

    .carousel-title {
        font-size: 16px;
        margin-bottom: 4px;
    }

    .carousel-description {
        font-size: 12px;
    }

    .carousel-indicator {
        width: 8px;
        height: 8px;
    }

    .carousel-indicator.active {
        width: 20px;
    }
}

/* 文章列表样式 */
.article-list {
    padding: 0;
    overflow: hidden;
}

/* 文章列表标签页 */
.article-list-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px var(--card-padding);
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-color);
}

.article-list-tabs-left {
    display: flex;
    gap: 20px;
}

.article-list-tabs-right {
    display: flex;
    gap: 8px;
}

.article-list-tab {
    position: relative;
    padding: 2px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color-light);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.article-list-tab:hover {
    color: var(--primary-color);
}

.article-list-tab.active {
    color: var(--primary-color);
    font-weight: 600;
}

.article-list-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform var(--transition-speed);
}

.article-list-tab.active::after {
    transform: scaleX(1);
}

/* 布局切换按钮 */
.article-list-layout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: transparent;
    color: var(--text-color-light);
    text-decoration: none;
    transition: all var(--transition-speed);
}

.article-list-layout-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: rgba(255, 121, 0, 0.05);
}

.article-list-layout-btn.active {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: rgba(255, 121, 0, 0.1);
}

.article-list-layout-btn .mdi {
    font-size: 18px;
}

/* 移动端响应式 */
@media (max-width: 767px) {
    :root {
        --categories-height: 0;
    }

    html, body {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .topbar {
        height: var(--topbar-height);
    }

    .categories-container,
    .topbar-divider {
        display: none;
    }

    /* 移动端文章页面分类栏始终隐藏 */
    body#post header.topbar .categories-container,
    body#post header.topbar .topbar-divider {
        display: none !important;
    }

    .search-overlay {
        top: var(--topbar-height);
    }

    .topbar-search {
        position: fixed;
        top: var(--topbar-height);
        left: 0;
        right: 0;
        background-color: var(--bg-color);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-speed);
    }

    .topbar-search.show {
        opacity: 1;
        visibility: visible;
    }

    .topbar-search-content {
        padding: 12px;
    }

    .search-card {
        width: 100%;
        max-width: none;
        margin: 0;
        background-color: transparent;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
    }

    .search-input-wrapper {
        background-color: transparent;
        border-bottom: 1px solid var(--border-color);
    }

    .search-history,
    .search-hot {
        background-color: transparent;
        border-bottom: none;
    }

    .search-history-text {
        max-width: 100px;
    }

    /* 移动端两栏改单栏 */
    .content-wrapper {
        flex-direction: column;
        gap: 16px;
    }

    /* 隐藏右侧栏 */
    .sidebar-column {
        display: none;
    }

    /* 修复 main 被标题栏遮挡的问题 */
    main {
        padding-top: calc(var(--topbar-height) + 16px);
    }

    /* 移动端轮播图适配 */
    .carousel-inner {
        padding-bottom: 40%; /* 2.5:1 宽高比 */
    }

    .carousel-control {
        width: 36px;
        height: 36px;
        font-size: 24px;
        opacity: 1;
        visibility: visible;
    }

    .carousel-control-prev {
        left: 8px;
    }

    .carousel-control-next {
        right: 8px;
    }

    .carousel-caption {
        padding: 16px;
    }

    .carousel-title {
        font-size: 16px;
        margin-bottom: 4px;
    }

    .carousel-description {
        font-size: 12px;
    }

    .carousel-indicator {
        width: 8px;
        height: 8px;
    }

    .carousel-indicator.active {
        width: 20px;
    }

    /* 移动端文章列表标签页紧凑样式 */
    .article-list-tabs {
        padding: 6px 12px;
    }

    .article-list-tabs-left {
        gap: 16px;
    }

    .article-list-tab {
        font-size: 13px;
        padding: 2px 0;
    }

    .article-list-layout-btn {
        width: 28px;
        height: 28px;
    }

    .article-list-layout-btn .mdi {
        font-size: 16px;
    }
}

/* 文章列表内容区 */
.article-list-content {
    padding: 0;
}

/* 文章列表空数据提示 */
.article-list-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-color-light);
}

.article-list-empty-icon {
    font-size: 64px;
    color: var(--border-color);
    margin-bottom: 16px;
}

.article-list-empty-icon .mdi {
    font-size: 64px;
}

.article-list-empty-text {
    font-size: 16px;
    color: var(--text-color-light);
}

/* 文章列表 - 列表视图 */
.article-list-items {
    display: flex;
    flex-direction: column;
}

.article-item {
    border-bottom: 1px solid var(--border-color);
}

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

.article-item-link {
    display: flex;
    padding: 16px var(--card-padding);
    text-decoration: none;
    color: var(--text-color);
    gap: 16px;
}

.article-item-thumbnail {
    flex-shrink: 0;
    width: 160px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--border-color);
}

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

.article-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.article-item-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
    line-height: 1.4;
}

.article-item-excerpt {
    font-size: 14px;
    color: var(--text-color-light);
    line-height: 1.6;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.article-item-date,
.article-item-views,
.article-item-comments,
.article-item-likes {
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-item-date .mdi,
.article-item-views .mdi,
.article-item-comments .mdi,
.article-item-likes .mdi {
    font-size: 14px;
}

/* 文章列表 - 卡片视图 */
.article-list-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    padding: var(--card-padding);
}

.article-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: box-shadow var(--transition-speed), transform var(--transition-speed);
}

.article-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transform: translateY(-4px);
}

.article-card-link {
    display: block;
    text-decoration: none;
    color: var(--text-color);
}

.article-card-thumbnail {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: var(--border-color);
}

.article-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed);
}

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

.article-card-content {
    padding: 16px;
}

.article-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-excerpt {
    font-size: 14px;
    color: var(--text-color-light);
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.article-card-date,
.article-card-views,
.article-card-comments,
.article-card-likes {
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-card-date .mdi,
.article-card-views .mdi,
.article-card-comments .mdi,
.article-card-likes .mdi {
    font-size: 14px;
}

/* 移动端卡片视图适配 */
@media (max-width: 767px) {
    .article-list-cards {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }

    .article-card-thumbnail {
        height: 160px;
    }

    .article-card-content {
        padding: 12px;
    }

    .article-card-title {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .article-card-excerpt {
        font-size: 13px;
        margin-bottom: 8px;
        -webkit-line-clamp: 2;
    }

    .article-card-meta {
        gap: 10px;
        font-size: 11px;
    }

    /* 移动端只显示日期和阅读量 */
    .article-card-comments,
    .article-card-likes {
        display: none;
    }
}

/* 文章列表 - 分页器 */
.article-list-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px var(--card-padding);
    border-top: 1px solid var(--border-color);
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: transparent;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: all var(--transition-speed);
}

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

.pagination-btn .mdi {
    font-size: 16px;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 6px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: transparent;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: all var(--transition-speed);
}

.pagination-page:hover {
    background-color: rgba(255, 121, 0, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

.pagination-ellipsis {
    padding: 0 4px;
    color: var(--text-color-light);
    font-size: 14px;
}

/* 移动端文章列表适配 */
@media (max-width: 767px) {
    .article-item-link {
        padding: 12px;
        gap: 12px;
    }

    .article-item-thumbnail {
        width: 96px;
        height: 60px;
    }

    .article-item-title {
        font-size: 16px;
        margin-bottom: 6px;
    }

    /* 移动端不显示摘要 */
    .article-item-excerpt {
        display: none;
    }

    .article-item-meta {
        gap: 12px;
        font-size: 11px;
    }

    /* 移动端只显示日期和阅读量 */
    .article-item-comments,
    .article-item-likes {
        display: none;
    }

    /* 移动端分页器适配 */
    .article-list-pagination {
        flex-wrap: wrap;
        gap: 6px;
        padding: 8px;
    }

    .pagination-btn {
        padding: 3px 6px;
        font-size: 13px;
    }

    .pagination-btn .mdi {
        font-size: 14px;
    }

    .pagination-page {
        min-width: 32px;
        height: 32px;
        padding: 0 6px;
        font-size: 13px;
    }

    .pagination-ellipsis {
        font-size: 13px;
    }
}

/* ========================
 * 页脚样式
 * ======================== */

.footer {
    background-color: var(--bg-color-secondary);
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
}

.footer-content {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 16px;
}

.footer-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    flex: 1;
}

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

.footer-icon {
    font-size: 16px;
    color: var(--primary-color);
}

.footer-text {
    color: var(--text-color-light);
}

.footer-link {
    color: var(--text-color-light);
    text-decoration: none;
    transition: color var(--transition-speed);
}

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

.footer-text a {
    color: var(--text-color-light);
    text-decoration: none;
    transition: color var(--transition-speed);
}

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

.footer-custom {
    width: 100%;
    font-size: 13px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.footer-link-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background-color: var(--bg-color);
    color: var(--text-color-light);
    font-size: 18px;
    transition: all var(--transition-speed);
    text-decoration: none;
}

.footer-link-item:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .footer {
        padding: 12px 0;
    }

    .footer-content {
        padding: 0 12px;
    }

    .footer-main {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .footer-info {
        flex-direction: column;
        gap: 6px;
        width: 100%;
        align-items: center;
    }

    .footer-item {
        font-size: 11px;
    }

    .footer-links {
        align-self: center;
        gap: 6px;
    }

    .footer-link-item {
        width: 26px;
        height: 26px;
        font-size: 14px;
    }

    /* 移动端不显示部分内容 */
    .footer-custom {
        display: none;
    }
}

/* ==========================
 * 文章阅读器样式
 * ========================== */

.article-content {
    padding: 5.21px 16px;
}

/* 友链页面内容样式 */
.link-content {
    padding: 5.21px 16px;
}

/* 文章标签 */
.article-tags {
    padding: 8px 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.article-tags-label {
    font-size: 13px;
    color: var(--text-color-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: var(--page-bg-color);
    color: var(--text-color);
    border-radius: 14px;
    font-size: 12px;
    text-decoration: none;
    transition: all var(--transition-speed);
}

.article-tag:hover {
    background: var(--primary-color);
    color: white;
}

/* 文章操作按钮 */
.article-actions {
    padding: 0 16px;
    display: flex;
    justify-content: flex-end;
}

.article-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--page-bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.article-action-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.article-action-btn .mdi {
    font-size: 16px;
}

.article-action-text {
    font-weight: 500;
}

/* 文章信息 */
.article-meta-info {
    padding: 20px;
    margin: 16px;
    background: var(--page-bg-color);
    border-radius: var(--border-radius);
}

.article-meta-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.article-meta-url {
    margin-bottom: 12px;
}

.article-meta-url .mdi {
    font-size: 14px;
}

.article-meta-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.article-meta-stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.article-meta-stat-label {
    font-size: 12px;
    color: var(--text-color-light);
    margin-bottom: 4px;
}

.article-meta-stat-value {
    font-size: 14px;
    color: var(--text-color);
}

.article-meta-license {
    font-size: 13px;
    color: var(--text-color-light);
    line-height: 1.6;
}

.article-meta-license a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.article-meta-license a:hover {
    color: var(--primary-color-dark);
    text-decoration: underline;
}

.article-meta-license-icon {
    font-size: 14px;
    color: var(--primary-color);
    margin-right: 4px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .article-meta-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}
}

.article-meta-value a {
    color: var(--text-color-light);
    text-decoration: none;
    transition: color var(--transition-speed);
}

/* ==========================
 * 全局自定义滚动条样式
 * ========================== */

/* Webkit 浏览器 (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--text-color-light);
    border-radius: 4px;
    border: 2px solid var(--page-bg-color);
}

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

::-webkit-scrollbar-thumb:active {
    background: var(--primary-color);
}

/* 深色模式滚动条 */
body.dark-mode ::-webkit-scrollbar-track {
    background: #1a1a1a;
}

body.dark-mode ::-webkit-scrollbar-thumb {
    background: #666;
    border-color: #1a1a1a;
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: #888;
}

body.dark-mode ::-webkit-scrollbar-thumb:active {
    background: var(--primary-color);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--text-color-light) var(--page-bg-color);
}

body.dark-mode * {
    scrollbar-color: #666 #1a1a1a;
}

.article-meta-value a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ==========================
 * 评论列表样式
 * ========================== */

/* 评论区域 */
.comments-section {
    margin-top: 24px;
    scroll-margin-top: 100px;
}

/* 评论表单 */
.comment-form-wrapper {
    padding: 0px 16px;
}

.cancel-comment-reply {
    margin-bottom: 12px;
    font-size: 13px;
}

.cancel-comment-reply a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.cancel-comment-reply a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

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

.comment-form-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.comment-form-title i {
    font-size: 16px;
    color: var(--primary-color);
}

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

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

.form-group {
    flex: 1;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 13px;
    transition: all var(--transition-speed);
    outline: none;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 121, 0, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.comment-form-actions {
    display: flex;
    justify-content: flex-end;
}

.submit-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-light));
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-speed);
}

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

.submit-btn i {
    font-size: 16px;
}

/* 深色模式适配 */
body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background-color: #2a2a2a;
    border-color: #333;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group textarea:focus {
    border-color: var(--primary-color);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .comment-form-fields {
        flex-direction: column;
        gap: 8px;
    }

    .comment-form-actions {
        width: 100%;
    }

    .submit-btn {
        width: 100%;
        justify-content: center;
    }
}

/* 评论卡片 */
.comments-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xs);
    transition: box-shadow var(--transition-speed);
}

.comments-card:hover {
    box-shadow: var(--shadow-sm);
}

/* 评论头部 */
.comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 13.14px;
    padding: 0 16px;
}

.comments-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.comments-title i {
    font-size: 16px;
    color: var(--primary-color);
}

.comments-count {
    color: var(--primary-color);
    font-weight: 600;
}

/* 排序按钮 */
.comments-sort {
    display: flex;
    gap: 6px;
}

.sort-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-color-light);
    font-size: 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: all var(--transition-speed);
    text-decoration: none;
}

.sort-btn:hover {
    border-color: var(--primary-color);
    color: var(--text-color);
    text-decoration: none;
}

.sort-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-light));
    color: white;
    border-color: var(--primary-color);
    text-decoration: none;
}

.sort-btn i {
    font-size: 14px;
}

/* 评论列表 */
.comments-list {
    padding: 16px;
}

/* 评论项 */
.comment-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

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

/* 评论高亮效果 */
.comment-item.comment-highlight {
    background-color: rgba(255, 121, 0, 0.1);
    border-radius: 8px;
    padding-left: 12px;
    padding-right: 12px;
}

/* 回复评论项 */
.comment-item.reply-item {
    padding-left: 32px;
    padding-top: 8px;
    padding-bottom: 8px;
    position: relative;
    border-bottom: none;
}

/* 子评论左侧竖线 */
.comment-item.reply-item::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border-color);
}

/* 子评论分割线在竖线右侧 */
.comment-item.reply-item::after {
    content: '';
    position: absolute;
    left: 32px;
    right: 0;
    bottom: 0;
    height: 1px;
    background-color: var(--border-color);
}

/* 评论主体 */
.comment-main {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* 评论头部 */
.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 评论头像 */
.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

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

.reply-item .comment-avatar {
    width: 28px;
    height: 28px;
}

/* 评论作者 */
.comment-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.author-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
}

.author-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-light));
    color: white;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 8px;
    font-weight: 500;
}

/* 评论元信息 */
.comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-color-light);
    margin-left: auto;
}

.comment-floor {
    color: var(--primary-color);
    font-weight: 500;
}

/* 评论内容 */
.comment-content {
    font-size: 13px;
    color: var(--text-color);
    line-height: 1.6;
    word-wrap: break-word;
    padding-left: 40px;
}

.reply-item .comment-content {
    padding-left: 36px;
}

.comment-content p {
    margin: 8px 0;
}

.comment-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.comment-content a:hover {
    color: var(--primary-color-dark);
    text-decoration: underline;
}

/* 回复链接 */
.reply-to {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition-speed);
}

.reply-to:hover {
    color: var(--primary-color-dark);
    text-decoration: underline;
}

/* 评论操作按钮 */
.comment-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 40px;
}

.reply-item .comment-actions {
    padding-left: 36px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border: none;
    background: transparent;
    color: var(--text-color-light);
    font-size: 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: all var(--transition-speed);
}

.action-btn:hover {
    color: var(--primary-color);
    background-color: rgba(255, 121, 0, 0.08);
}

.action-btn i {
    font-size: 14px;
}

/* 评论回复容器 */
.comment-replies {
    display: flex;
    flex-direction: column;
    margin-top: 4px;
}

/* 评论空状态 */
.comment-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-color-light);
}

.comment-empty .mdi {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.comment-empty p {
    font-size: 14px;
}

/* 分页器 */
.comments-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: all var(--transition-speed);
}

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

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

.pagination-btn i {
    font-size: 14px;
}

.pagination-pages {
    display: flex;
    gap: 4px;
}

.pagination-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: all var(--transition-speed);
    text-decoration: none;
    box-sizing: border-box;
    line-height: 1;
}

.pagination-page:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
}

.pagination-page.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-light));
    color: white;
    border-color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

/* 深色模式适配 */
body.dark-mode .sort-btn {
    background-color: #2a2a2a;
    border-color: #333;
}

body.dark-mode .sort-btn:hover {
    border-color: var(--primary-color);
}

body.dark-mode .pagination-btn {
    background-color: #2a2a2a;
    border-color: #333;
}

body.dark-mode .pagination-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
}

body.dark-mode .pagination-page {
    background-color: #2a2a2a;
    border-color: #333;
}

body.dark-mode .pagination-page:hover {
    border-color: var(--primary-color);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .comments-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .comment-item.reply-item {
        padding-left: 24px;
    }

    .comment-item.reply-item::before {
        left: 8px;
    }

    .comment-content {
        padding-left: 40px;
    }

    .reply-item .comment-content {
        padding-left: 36px;
    }

    .comment-actions {
        padding-left: 40px;
    }

    .reply-item .comment-actions {
        padding-left: 36px;
    }

    .comments-pagination {
        flex-wrap: wrap;
    }

    .pagination-btn {
        padding: 5px 10px;
        font-size: 11px;
    }

    .pagination-page {
        min-width: 26px;
    }
}

/* ========================
 * 文章头部样式
 * ======================== */

/* 文章页面特殊样式 */
body#post {
    padding-top: 0;
}

/* 文章头部 */
.article-header {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    overflow: hidden;
    margin-bottom: 24px;
}

/* 文章头部背景图 */
.article-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

/* 文章头部遮罩层 */
.article-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
}

/* 文章头部内容 */
.article-header-content {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
}

.article-header-inner {
    max-width: 800px;
    text-align: center;
    color: white;
}

/* 文章头部分类 */
.article-header-categories {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.article-header-category {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.article-header-category:hover {
    background: rgba(255, 121, 0, 0.8);
    transform: translateY(-2px);
}

/* 文章头部标题 */
.article-header-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 文章头部信息 */
.article-header-info {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.article-header-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    opacity: 0.9;
}

.article-header-info-item .mdi {
    font-size: 16px;
}

/* 文章头部波浪效果 */
.article-header-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 64px;
    z-index: 2;
    overflow: hidden;
}

.article-header-wave .waves-svg {
    position: relative;
    width: 100%;
    height: 64px;
}

.article-header-wave .parallax > use {
    animation: move-forever 30s cubic-bezier(.36,.45,.63,.53) infinite;
}

.article-header-wave .parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
    fill: rgba(242, 242, 242, 0.7);
}

.article-header-wave .parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
    fill: rgba(242, 242, 242, 0.5);
}

.article-header-wave .parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
    fill: rgba(242, 242, 242, 0.3);
}

.article-header-wave .parallax > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 18s;
    fill: var(--page-bg-color);
}

/* 波浪动画 */
@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }
    100% {
        transform: translate3d(85px, 0, 0);
    }
}

/* 深色模式下的波浪效果 */
body.dark-mode .article-header-wave .parallax > use {
    animation-delay: inherit;
}

body.dark-mode .article-header-wave .parallax > use:nth-child(1) {
    fill: rgba(26, 26, 26, 0.7);
}

body.dark-mode .article-header-wave .parallax > use:nth-child(2) {
    fill: rgba(26, 26, 26, 0.5);
}

body.dark-mode .article-header-wave .parallax > use:nth-child(3) {
    fill: rgba(26, 26, 26, 0.3);
}

body.dark-mode .article-header-wave .parallax > use:nth-child(4) {
    fill: var(--page-bg-color);
}

/* 移动端波浪效果 */
@media (max-width: 767px) {
    .article-header-wave {
        height: 48px;
    }

    .article-header-wave .waves-svg {
        height: 48px;
    }

    /* 隐藏第2和第3层波浪，保留第1层和第4层 */
    .article-header-wave .parallax > use:nth-child(2),
    .article-header-wave .parallax > use:nth-child(3) {
        display: none;
    }
}

/* 文章页面 topbar 透明背景 */
body#post .topbar {
    background-color: transparent;
    box-shadow: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* 文章页面 topbar 透明状态下文字为白色 */
body#post .topbar:not(.scrolled) {
    color: white;
}

body#post .topbar:not(.scrolled) .topbar-btn {
    color: white;
}

body#post .topbar:not(.scrolled) .topbar-btn:hover {
    color: rgba(255, 255, 255, 0.8);
    background-color: rgba(255, 255, 255, 0.2);
}

body#post .topbar:not(.scrolled) .topbar-logo img {
    filter: brightness(0) invert(1);
}

/* 文章页面 topbar 透明状态下导航项为白色 */
body#post .topbar:not(.scrolled) .topbar-nav-item {
    color: white;
}

body#post .topbar:not(.scrolled) .topbar-nav-item:hover {
    color: rgba(255, 255, 255, 0.8);
}

body#post .topbar:not(.scrolled) .topbar-nav-item.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
}

body#post .topbar:not(.scrolled) .topbar-nav-item.active::after {
    background-color: white;
}

/* 文章页面 topbar 透明状态下下拉菜单为白色 */
body#post .topbar:not(.scrolled) .topbar-nav-link {
    color: white;
}

body#post .topbar:not(.scrolled) .topbar-nav-arrow {
    color: white;
}

body#post .topbar:not(.scrolled) .topbar-nav-icon {
    color: white;
}

body#post .topbar:not(.scrolled) .topbar-dropdown-menu {
    background-color: rgba(255, 255, 255, 0.95);
}

body#post .topbar:not(.scrolled) .topbar-dropdown-item {
    color: #333;
}

body#post .topbar:not(.scrolled) .topbar-dropdown-item:hover {
    color: var(--primary-color);
    background-color: rgba(255, 121, 0, 0.05);
}

/* 文章页面 topbar 滚动后恢复背景 */
body#post .topbar.scrolled {
    background-color: var(--bg-color);
    box-shadow: var(--shadow-sm);
    color: var(--text-color);
}

body#post .topbar.scrolled .topbar-btn {
    color: var(--text-color);
}

body#post .topbar.scrolled .topbar-btn:hover {
    color: var(--primary-color);
    background-color: rgba(255, 121, 0, 0.1);
}

body#post .topbar.scrolled .topbar-logo img {
    filter: none;
}

/* 文章页面分类栏和分割线固定定位 */
body#post header.topbar .categories-container,
body#post header.topbar .topbar-divider {
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    right: 0;
    z-index: 999;
    background-color: var(--bg-color);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

body#post header.topbar .topbar-divider {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.05);
}

/* 文章页面 topbar 有scrolled类时显示分类栏和分割线 */
body#post header.topbar.scrolled .categories-container {
    visibility: visible;
    opacity: 1;
}

body#post header.topbar.scrolled .topbar-divider {
    visibility: visible;
    opacity: 1;
}

/* 文章页面 main 调整 */
body#post main {
    padding-top:0px;
}

/* 响应式设计 */
@media (max-width: 767px) {
    body#post main {
        margin-top:-5.20px;
    }
    
    .article-header {
        height: 50vh;
        min-height: 350px;
        max-height: 500px;
    }

    .article-header-title {
        font-size: 28px;
    }

    .article-header-info {
        gap: 16px;
    }

    .article-header-info-item {
        font-size: 13px;
    }

    .article-header-categories {
        gap: 8px;
    }

    .article-header-category {
        padding: 4px 12px;
        font-size: 13px;
    }
}
        height: 26px;
        font-size: 11px;
    }
}
/* 归档页面样式 */
.archive-header {
    margin-bottom: 32px;
    padding: 32px;
    background: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}



.archive-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border-radius: 12px;
    margin-right: 16px;
    float: left;
}

.archive-header-icon .mdi {
    font-size: 24px;
    color: white;
}

.archive-header-content {
    overflow: hidden;
}

.archive-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.archive-description {
    font-size: 15px;
    color: var(--text-color-light);
    line-height: 1.6;
    margin: 0;
}

/* 归档分类筛选器 */
.archive-category-filter {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.archive-filter-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-right: 4px;
}

.archive-filter-item {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 13px;
    color: var(--text-color-light);
    background: var(--page-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.archive-filter-item:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.archive-filter-item.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.archive-filter-count {
    margin-left: 4px;
    font-size: 12px;
    opacity: 0.8;
}

body.dark-mode .archive-category-filter {
    border-top-color: var(--border-color);
}

body.dark-mode .archive-filter-label {
    color: var(--text-color);
}

body.dark-mode .archive-filter-item {
    background: var(--border-color);
    color: var(--text-color-light);
    border-color: var(--border-color);
}

body.dark-mode .archive-filter-item:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

body.dark-mode .archive-filter-item.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    .archive-category-filter {
        gap: 6px;
    }
    
    .archive-filter-item {
        padding: 5px 12px;
        font-size: 12px;
    }
}

body.dark-mode .archive-header {
    border-left-color: var(--primary-color);
}



@media (max-width: 768px) {
    .archive-header {
        padding: 20px;
    }
    
    .archive-header-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
    }
    
    .archive-header-icon .mdi {
        font-size: 20px;
    }
    
    .archive-title {
        font-size: 22px;
    }
    
    .archive-description {
        font-size: 14px;
    }
}

/* 404 错误页面样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-speed);
    border: none;
    outline: none;
    font-family: inherit;
}

.btn:active {
    transform: translateY(0);
}

.error-page {
    padding: 40px;
    min-height: calc(100vh - var(--topbar-height) - var(--categories-height) - 131.4px);
    display: flex;
    align-items: center;
}

.error-page-content {
    display: flex;
    align-items: center;
    gap: 40px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.error-page-image {
    flex: 0 0 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-page-image img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
}

.error-page-text {
    flex: 1;
    text-align: left;
}

.error-page-title {
    font-size: 72px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 8px 0;
    line-height: 1;
}

.error-page-subtitle {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-color-light);
    margin: 0 0 16px 0;
}

.error-page-description {
    font-size: 15px;
    color: var(--text-color-light);
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.error-page .btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 10px 28px;
    font-size: 15px;
}

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

@media (max-width: 768px) {
    .error-page {
        padding: 24px 20px;
        min-height: auto;
    }
    
    .error-page-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .error-page-image {
        flex: 0 0 auto;
        width: 200px;
    }
    
    .error-page-image img {
        max-height: 200px;
    }
    
    .error-page-text {
        text-align: center;
    }
    
    .error-page-title {
        font-size: 48px;
    }
    
    .error-page-subtitle {
        font-size: 20px;
    }
    
    .error-page-description {
        font-size: 14px;
    }
    
    .error-page .btn-primary {
        width: 100%;
        max-width: 240px;
    }
}

/* KaTeX 数学公式样式 */
.markdown-content .katex {
    font-size: 1.1em;
}

/* 行内公式 */
.markdown-content .katex-display {
    margin: 1.5em 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.5em 0;
}

/* 块级公式容器 */
.markdown-content .katex-display > .katex {
    text-align: center;
    white-space: normal;
}

/* 公式字体大小调整 */
.markdown-content .katex-display > .katex {
    font-size: 1.2em;
}

/* 移动端公式优化 */
@media (max-width: 768px) {
    .markdown-content .katex {
        font-size: 1.05em;
    }
    
    .markdown-content .katex-display {
        margin: 1em 0;
        overflow-x: auto;
    }
    
    .markdown-content .katex-display > .katex {
        font-size: 1.1em;
    }
}

/* 深色模式下的公式颜色 */
body.dark-mode .markdown-content .katex {
    color: var(--text-color);
}

body.dark-mode .markdown-content .katex .base {
    color: var(--text-color);
}

/* 公式加载提示 */
.katex-loading {
    display: inline-block;
    padding: 0.2em 0.5em;
    background: var(--page-bg-color);
    border-radius: 4px;
    font-family: monospace;
    color: var(--text-color-light);
}

/* 公式错误样式 */
.katex-error {
    color: #cc0000;
    background: rgba(204, 0, 0, 0.1);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: monospace;
}

body.dark-mode .katex-error {
    color: #ff6666;
    background: rgba(255, 102, 102, 0.1);
}

/* ==========================
 * 说说页面样式 - 评论风格
 * ========================== */

/* 说说区域 */
.shuoshuo-section {
    scroll-margin-top: 100px;
}

/* 说说卡片 */
.shuoshuo-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xs);
    transition: box-shadow var(--transition-speed);
    padding: 0;
    position: relative;
    z-index: 1;
}

.shuoshuo-card:hover {
    box-shadow: var(--shadow-sm);
}

/* 说说封面背景图 */
.shuoshuo-cover {
    position: relative;
    width: 100%;
    padding-top: 60%; /* 5:3 比例 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    overflow: visible;
}

.shuoshuo-cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
}

.shuoshuo-cover-content {
    position: absolute;
    bottom: -20px;
    right: 20px;
    display: flex;
    align-items: flex-end;
    gap: 16px;
    z-index: 10;
    padding-bottom: 0;
}

.shuoshuo-cover-userinfo {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 0;
    text-align: right;
}

.shuoshuo-cover-username {
    color: white;
    font-size: 22px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 0;
}

.shuoshuo-cover-bio {
    color: var(--text-color-light);
    font-size: 13px;
    font-weight: 400;
    margin-bottom: -8px;
}

.shuoshuo-cover-avatar {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.9);
    background-color: var(--page-bg-color);
    position: relative;
    flex-shrink: 0;
    margin-bottom: -12px;
}

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

/* 说说头部 */
.shuoshuo-header {
    display: flex;
    align-items: center;
    margin-top: 13.14px;
    padding: 0 16px;
}

.shuoshuo-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.shuoshuo-title i {
    font-size: 16px;
    color: var(--primary-color);
}

.shuoshuo-count {
    color: var(--primary-color);
    font-weight: 600;
}

/* 说说列表 */
.shuoshuo-list {
    padding: 24px 24px 24px 24px;
    padding-top: 48px;
}

/* 说说项 */
.shuoshuo-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

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

/* 说说主体 */
.shuoshuo-main {
    display: flex;
    gap: 12px;
}

/* 说说头像 */
.shuoshuo-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    background-color: var(--page-bg-color);
}

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

/* 说说主体内容（右侧） */
.shuoshuo-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* 说说头部信息 */
.shuoshuo-header-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.shuoshuo-author {
    display: flex;
    align-items: center;
}

.shuoshuo-author .author-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--shuoshuo-primary);
}

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

.shuoshuo-date {
    font-size: 12px;
}

.shuoshuo-time {
    font-size: 12px;
}

/* 说说内容 */
.shuoshuo-content {
    margin-top: 2px;
}

.shuoshuo-content .markdown-content {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-color);
}

.shuoshuo-content .markdown-content p {
    margin-bottom: 8px;
}

.shuoshuo-content .markdown-content p:last-child {
    margin-bottom: 0;
}

.shuoshuo-content .markdown-content img {
    max-width: 100%;
    border-radius: 6px;
    margin: 8px 0;
}

.shuoshuo-content .markdown-content blockquote {
    border-left: 3px solid var(--primary-color);
    padding-left: 12px;
    margin: 12px 0;
    color: var(--text-color-light);
    font-style: italic;
}

/* 说说图片列表 */
.shuoshuo-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.shuoshuo-image-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 6px;
    background-color: var(--page-bg-color);
    cursor: pointer;
    transition: transform var(--transition-speed);
}

.shuoshuo-image-item:hover {
    transform: scale(1.02);
}

.shuoshuo-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 说说底部信息（日期） */
.shuoshuo-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px;
}

.shuoshuo-date-full {
    font-size: 11px;
    color: var(--text-color-light);
}

/* 说说评论区域 */
.shuoshuo-comments {
    margin-top: 8px;
    padding: 8px 12px;
    background-color: var(--page-bg-color);
    border-radius: 6px;
}

.shuoshuo-comment-item {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 4px;
}

.shuoshuo-comment-item:last-child {
    margin-bottom: 0;
}

.shuoshuo-comment-item .comment-user {
    color: var(--shuoshuo-primary);
    font-weight: 500;
}

.shuoshuo-comment-item .comment-text {
    color: var(--text-color);
}

.comment-more {
    display: inline-block;
    font-size: 12px;
    color: var(--text-color-light);
    text-decoration: none;
    margin-top: 4px;
}

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

/* 说说操作区域 */
.shuoshuo-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.shuoshuo-actions .action-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 12px;
    color: var(--text-color-light);
    text-decoration: none;
    border-radius: 4px;
    transition: all var(--transition-speed);
}

.shuoshuo-actions .action-btn:hover {
    background-color: var(--page-bg-color);
    color: var(--primary-color);
    text-decoration: none;
}

.shuoshuo-actions .action-btn i {
    font-size: 14px;
}

/* 说说空状态 */
.shuoshuo-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-color-light);
}

.shuoshuo-empty i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.shuoshuo-empty p {
    font-size: 14px;
    margin: 0;
}

/* 说说分页器 */
.shuoshuo-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
}

/* 深色模式适配 */
body.dark-mode .shuoshuo-card {
    background-color: var(--bg-color);
}

body.dark-mode .shuoshuo-avatar {
    background-color: #2a2a2a;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .shuoshuo-header {
        padding: 0 12px;
    }

    .shuoshuo-list {
        padding: 12px;
        padding-top: 32px;
    }

    .shuoshuo-item {
        padding: 10px 0;
    }

    .shuoshuo-avatar {
        width: 28px;
        height: 28px;
    }

    .shuoshuo-author .author-name {
        font-size: 13px;
    }

    .shuoshuo-content .markdown-content {
        font-size: 13px;
    }

    .shuoshuo-images {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 6px;
    }

    .shuoshuo-actions {
        gap: 12px;
    }

    .shuoshuo-actions .action-btn {
        font-size: 11px;
        padding: 3px 8px;
    }

    .shuoshuo-cover-avatar {
        width: 48px;
        height: 48px;
        margin-bottom: -8px;
    }
}

/* ==========================
 * 说说阅读器样式
 * ========================== */

.shuoshuo-reader {
    scroll-margin-top: 100px;
}

.shuoshuo-reader-content {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xs);
    transition: box-shadow var(--transition-speed);
    padding: 24px;
}

.shuoshuo-reader-content:hover {
    box-shadow: var(--shadow-sm);
}

/* 说说阅读器主体 */
.shuoshuo-reader-main {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

/* 说说阅读器头像 */
.shuoshuo-reader-avatar {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--page-bg-color);
}

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

/* 说说阅读器主体内容（右侧） */
.shuoshuo-reader-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 说说阅读器头部 */
.shuoshuo-reader-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.shuoshuo-reader-author {
    display: flex;
    align-items: center;
}

.shuoshuo-reader-author .author-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--shuoshuo-primary);
}

.shuoshuo-reader-date {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-color-light);
}

.shuoshuo-reader-date .mdi {
    font-size: 14px;
}

/* 说说阅读器内容 */
.shuoshuo-reader-content {
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.8;
}

.shuoshuo-reader-content .markdown-content {
    padding: 0;
}

/* 说说阅读器图片 */
.shuoshuo-reader-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.shuoshuo-reader-image-item {
    aspect-ratio: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--page-bg-color);
}

.shuoshuo-reader-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed);
}

.shuoshuo-reader-image-item:hover img {
    transform: scale(1.05);
}

/* 说说阅读器元信息 */
.shuoshuo-reader-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    gap: 16px;
    flex-wrap: wrap;
}

.shuoshuo-reader-stats {
    display: flex;
    align-items: center;
    gap: 16px;
}

.shuoshuo-reader-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-color-light);
}

.shuoshuo-reader-stat .mdi {
    font-size: 16px;
}

.shuoshuo-reader-actions {
    display: flex;
    gap: 8px;
}

.shuoshuo-reader-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--page-bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.shuoshuo-reader-action-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.shuoshuo-reader-action-btn .mdi {
    font-size: 16px;
}

/* 深色模式适配 */
body.dark-mode .shuoshuo-reader-content {
    background-color: var(--bg-color);
}

body.dark-mode .shuoshuo-reader-avatar {
    background-color: #2a2a2a;
}

body.dark-mode .shuoshuo-reader-image-item {
    background-color: #2a2a2a;
}

body.dark-mode .shuoshuo-reader-meta {
    border-top-color: var(--border-color);
}

body.dark-mode .shuoshuo-reader-action-btn {
    background: var(--border-color);
    color: var(--text-color);
    border-color: var(--border-color);
}

body.dark-mode .shuoshuo-reader-action-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .shuoshuo-reader-content {
        padding: 16px;
    }

    .shuoshuo-reader-main {
        gap: 12px;
    }

    .shuoshuo-reader-avatar {
        width: 48px;
        height: 48px;
    }

    .shuoshuo-reader-author .author-name {
        font-size: 14px;
    }

    .shuoshuo-reader-date {
        font-size: 12px;
    }

    .shuoshuo-reader-content {
        font-size: 14px;
    }

    .shuoshuo-reader-images {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }

    .shuoshuo-reader-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .shuoshuo-reader-action-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

    .shuoshuo-cover-username {
        font-size: 18px;
    }

    .shuoshuo-cover-bio {
        font-size: 12px;
        color: var(--text-color-light);
    }

    .shuoshuo-cover-content {
        gap: 12px;
        bottom: -16px;
    }
}

/* ==========================
 * 全局消息提示样式
 * ========================== */

.message-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    pointer-events: none;
}

.message {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-color);
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 90vw;
    word-wrap: break-word;
}

.message-show {
    opacity: 1;
    transform: translateY(0);
}

.message-success {
    border-left: 4px solid #4caf50;
}

.message-warning {
    border-left: 4px solid #ff9800;
}

.message-error {
    border-left: 4px solid #f44336;
}

.message-info {
    border-left: 4px solid #2196f3;
}

.message-playful {
    border-left: 4px solid #ff7900;
    background: linear-gradient(135deg, rgba(255, 121, 0, 0.1), rgba(255, 154, 64, 0.1));
}

.message-content {
    font-size: 14px;
    line-height: 1.5;
}

/* 暗色模式 */
body.dark-mode .message {
    background: rgba(26, 26, 26, 0.95);
    color: var(--text-color);
}

body.dark-mode .message-playful {
    background: linear-gradient(135deg, rgba(255, 121, 0, 0.2), rgba(255, 154, 64, 0.2));
}

/* 移动端 */
@media (max-width: 768px) {
    .message {
        padding: 10px 16px;
        font-size: 13px;
        max-width: 85vw;
    }

    .message-container {
        top: 10px;
    }
}

/* ==========================
 * SweetAlert2 自定义样式
 * ========================== */

/* Toast 样式 */
.swal2-popup.swal2-toast {
    padding: 12px 16px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.swal2-popup.swal2-toast .swal2-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.swal2-popup.swal2-toast .swal2-html-container {
    font-size: 14px;
    color: var(--text-color-light);
    margin: 4px 0 0 0;
}

.swal2-popup.swal2-toast .swal2-icon {
    width: 32px;
    height: 32px;
    margin: 0 8px 0 0;
}

/* 暗色模式 */
body.dark-mode .swal2-popup.swal2-toast {
    background: rgba(26, 26, 26, 0.95) !important;
    color: var(--text-color) !important;
}

body.dark-mode .swal2-popup.swal2-toast .swal2-title {
    color: var(--text-color) !important;
}

body.dark-mode .swal2-popup.swal2-toast .swal2-html-container {
    color: var(--text-color-light) !important;
}

/* 暗色模式下的图标颜色 */
body.dark-mode .swal2-icon.swal2-warning {
    border-color: #ff9800;
}

body.dark-mode .swal2-icon.swal2-warning .swal2-icon-content {
    color: #ff9800;
}

body.dark-mode .swal2-icon.swal2-success {
    border-color: #4caf50;
}

body.dark-mode .swal2-icon.swal2-success .swal2-icon-content {
    color: #4caf50;
}

body.dark-mode .swal2-icon.swal2-error {
    border-color: #f44336;
}

body.dark-mode .swal2-icon.swal2-error .swal2-icon-content {
    color: #f44336;
}

body.dark-mode .swal2-icon.swal2-info {
    border-color: #2196f3;
}

body.dark-mode .swal2-icon.swal2-info .swal2-icon-content {
    color: #2196f3;
}

/* 进度条 */
.swal2-popup.swal2-toast .swal2-timer-progress-bar {
    background: var(--primary-color);
}

/* 移动端 Toast */
@media (max-width: 768px) {
    .swal2-popup.swal2-toast {
        padding: 10px 14px;
        font-size: 13px;
    }

    .swal2-popup.swal2-toast .swal2-title {
        font-size: 14px;
    }

    .swal2-popup.swal2-toast .swal2-html-container {
        font-size: 13px;
    }

    .swal2-popup.swal2-toast .swal2-icon {
        width: 28px;
        height: 28px;
    }
}

