/*
初晨摸鱼小站 - 主样式文件
基于Aurora主页进行个性化设计
优化CDN使用，减少服务器负担
*/

@charset "utf-8";

/* ==================== 浅灰云白色主题 ==================== */

/* 
主题配色说明（用户可通过F12修改以下颜色）：
- 页面背景：浅灰云白色渐变(#f5f7fa → #c3cfe2) - 修改html或body的background
- 卡片：白色半透明(rgba(255, 255, 255, 0.1)) - 修改.cards的background
- 文字：深灰色(#2d3748)为主，深蓝色(#1a237e, #0d47a1)为标题 - 在浅色背景下清晰
- 导航栏：保持深色(rgba(26, 26, 46, 0.95)) - 修改.top-navbar的background
- 强调色：天蓝色系(#42a5f5, #6DB3F2) - 仅用于按钮、链接激活状态、图标等
*/

/* 全局样式 - 四个独立页面使用浅色背景 */
html, body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    background: #1a1a2e;  /* index.html 深色背景，配合壁纸切换功能 */
    color: #efefef;  /* 浅色文字 */
    overflow-x: hidden;
    overflow-y: auto;
    font-family: 'Microsoft YaHei', sans-serif;
    font-weight: 400;
    pointer-events: auto;
}

/* 全局颜色已删除，index页面使用原有深色主题，独立页面通过 body.light-page 定义浅色主题 */

/* 通用样式 - 不再设置固定颜色，让各组件自己定义 */
*, a, p {
    text-decoration: none;
    transition: 0.3s ease;
    /* color: #efefef; 删除固定颜色，避免覆盖各组件的颜色设置 */
    box-sizing: border-box;
}

/* ==== 性能优化：禁用平滑滚动，避免F12关闭时的意外滚动 ==== */
html {
    scroll-behavior: auto;
}

/* 基本交互元素 */
.cards, .nav-card, button, a {
    cursor: pointer;
}

/* 背景容器 - 性能优化 */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* 放到页面最底但不低于 body 背景 */
}

/* 背景样式 */
.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a2e;  /* index.html 默认深色背景 */
    background-size: cover;
    background-position: center;
    transform: translateZ(0);
    contain: layout style paint;
}

/* ========== 独立页面浅色主题 ========== */
/* 为 articles/moments/timeline/friends 页面添加 light-page 类 */
body.light-page {
    background: #e8f1f8 !important;  /* 统一的淡蓝灰色背景，去除渐变避免分层 */
    color: #2d3748 !important;
}

body.light-page .background {
    background: #e8f1f8 !important;  /* 与body统一 */
}

/* 独立页面的卡片样式 - 深灰色半透明背景在浅色背景上可见 */
body.light-page .info-card,
body.light-page .cards,
body.light-page .page-header,
body.light-page .filter-bar,
body.light-page .mood-filter {
    background: rgba(255, 255, 255, 0.8) !important;  /* 白色半透明 */
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
}

/* 独立页面的标题颜色 */
body.light-page .page-title,
body.light-page .info-card-title,
body.light-page .section-title,
body.light-page h1, 
body.light-page h2, 
body.light-page h3,
body.light-page h4,
body.light-page h5 {
    color: #1a237e !important;  /* 深蓝色标题 */
}

/* 独立页面的普通文字 */
body.light-page,
body.light-page .info-card-body,
body.light-page .stat-label,
body.light-page .article-card-title,
body.light-page .moment-content,
body.light-page .timeline-title,
body.light-page .friend-name {
    color: #2d3748 !important;  /* 深灰色文字 */
}

/* 独立页面的辅助文字 */
body.light-page .stat-value,
body.light-page .article-card-meta,
body.light-page .moment-date,
body.light-page .timeline-date,
body.light-page .friend-desc {
    color: #546e7a !important;  /* 中灰色辅助文字 */
}

/* 独立页面的链接 */
body.light-page a {
    color: #1976d2 !important;
}

body.light-page a:hover {
    color: #42a5f5 !important;
}

/* 独立页面的按钮 */
body.light-page .btn,
body.light-page button {
    color: #fff !important;
}

/* 独立页面的标签 */
body.light-page .tag-item,
body.light-page .mood-tag,
body.light-page .filter-tag {
    background: rgba(109, 179, 242, 0.15) !important;
    color: #6DB3F2 !important;
    border: 1px solid rgba(109, 179, 242, 0.3) !important;
}

body.light-page .tag-item.active,
body.light-page .mood-tag.active,
body.light-page .filter-tag.active {
    background: #6DB3F2 !important;
    color: #fff !important;
}

/* 独立页面的时间轴样式 */
body.light-page .timeline-content {
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

body.light-page .timeline-date {
    color: #546e7a !important;
    font-weight: 500;
}

body.light-page .timeline-title {
    color: #1a237e !important;
    font-weight: 600;
}

body.light-page .timeline-text {
    color: #1a202c !important;  /* 深色文字确保可读性 */
}

/* 独立页面的碎碎念样式 */
body.light-page .moment-item {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.light-page .moment-content {
    color: #1a202c !important;  /* 更深的灰色，确保清晰可见 */
    font-weight: 400;
}

body.light-page .moment-date {
    color: #546e7a !important;
}

/* 独立页面的友链卡片 */
body.light-page .friend-card {
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

body.light-page .friend-name {
    color: #1a237e !important;
    font-weight: 600;
}

body.light-page .friend-desc {
    color: #1a202c !important;  /* 深色确保可读 */
    font-weight: 400;
}

/* 独立页面的文章卡片 */
body.light-page .article-card {
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

body.light-page .article-card-title,
body.light-page .article-title {
    color: #6DB3F2 !important;  /* 天蓝色主题色 */
    font-weight: 600;
}

body.light-page .article-card-meta {
    color: #7b8a96 !important;
}

body.light-page .article-card-summary {
    color: #1a202c !important;  /* 深色确保可读 */
}

/* 独立页面的评论区样式 - 去除大白块，采用底部边框分隔 */
body.light-page .comment-item {
    background: rgba(255, 255, 255, 0.25) !important;  /* 更淡的白色背景，不那么突兀 */
    border: 2px solid rgba(109, 179, 242, 0.25) !important;  /* 加粗边框，更分明 */
    border-radius: 12px !important;
    padding: 16px !important;
    margin-bottom: 16px !important;
}

body.light-page .comment-item:last-child {
    margin-bottom: 0 !important;
}

/* 浅色主题下的评论互动按钮 */
body.light-page .comment-like-btn,
body.light-page .comment-reply-btn {
    color: #000 !important;  /* 黑色文字 */
    background: rgba(109, 179, 242, 0.1) !important;  /* 淡蓝背景 */
    border: 2px solid rgba(109, 179, 242, 0.5) !important;  /* 加深边框，2px更明显 */
}

body.light-page .comment-author {
    color: #1a237e !important;
}

body.light-page .comment-text {
    color: #5e6268 !important;
}

body.light-page .comment-time {
    color: #546e7a !important;
}

/* 独立页面的表单样式 */
body.light-page .form-input,
body.light-page .comment-textarea {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    color: #2d3748 !important;
}

body.light-page .form-input::placeholder,
body.light-page .comment-textarea::placeholder {
    color: rgba(45, 55, 72, 0.5) !important;
}

body.light-page .form-input:focus,
body.light-page .comment-textarea:focus {
    border-color: #1976d2 !important;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1) !important;
}

@keyframes gradientShift {
    0%, 100% { 
        background-position: 0% 50%; 
        transform: translateZ(0) scale(1);
    }
    50% { 
        background-position: 100% 50%; 
        transform: translateZ(0) scale(1.02);
    }
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.65);
    z-index: -1;
}


/* 主容器 - 修复滚动机制，确保可交互 */
.main-container {
    min-height: 100vh;
    padding: 0;
    opacity: 1;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.main-container * {
    pointer-events: auto;
}

/* 首屏内容 */
.home-screen {
    height: 100vh;
    padding: 20px;
    position: relative;
    display: flex;
    align-items: center;
}


/* 卡片通用样式 - 保持深色主题的半透明卡片 */
.cards {
    background: rgba(255, 255, 255, 0.1);  /* 白色半透明，保证内容可见 */
    border: 1px solid rgba(255, 255, 255, 0.15);  /* 白色边框 */
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), 0 8px 25px rgba(0, 0, 0, 0);
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 2;
    user-select: auto;
    will-change: transform;
    contain: layout style;
}

.cards:hover {
    transform: translate3d(0, -3px, 0);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), 0 8px 25px rgba(0, 0, 0, 0.15);
}

.cards * {
    pointer-events: auto;
    user-select: auto;
}

/* 简单加载动画 - 三点跳动 */
.simple-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(109, 179, 242, 0.2), transparent 35%),
                radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.12), transparent 40%),
                linear-gradient(135deg, #1a1a2e 0%, #0f172a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    pointer-events: none;
}

.simple-loading.hidden {
    display: none !important;
    z-index: -1 !important;
    pointer-events: none !important;
}

.simple-loading.fade-out {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

/* ========= Galaxy Loader（来源 uiverse.io/andrew-manzyk，适配深色主题） ========= */
.simple-loading .loader {
    --main-size: 4.2em;
    --text-color: #ffffff;
    --shine-color: #ffffff40;
    --shadow-color: #6DB3F2;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    user-select: none;
    position: relative;
    font-size: var(--main-size);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--text-color);
    width: 7.3em;
    height: 1em;
    filter: drop-shadow(0 0 0.05em var(--shine-color));
}

.simple-loading .loader .text {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    position: absolute;
}

.simple-loading .loader .text:nth-child(1) { clip-path: polygon(0% 0%, 11.11% 0%, 11.11% 100%, 0% 100%); font-size: calc(var(--main-size) / 20); margin-left: -2.1em; opacity: 0.6; }
.simple-loading .loader .text:nth-child(2) { clip-path: polygon(11.11% 0%, 22.22% 0%, 22.22% 100%, 11.11% 100%); font-size: calc(var(--main-size) / 16); margin-left: -0.98em; opacity: 0.7; }
.simple-loading .loader .text:nth-child(3) { clip-path: polygon(22.22% 0%, 33.33% 0%, 33.33% 100%, 22.22% 100%); font-size: calc(var(--main-size) / 13); margin-left: -0.33em; opacity: 0.8; }
.simple-loading .loader .text:nth-child(4) { clip-path: polygon(33.33% 0%, 44.44% 0%, 44.44% 100%, 33.33% 100%); font-size: calc(var(--main-size) / 11); margin-left: -0.05em; opacity: 0.9; }
.simple-loading .loader .text:nth-child(5) { clip-path: polygon(44.44% 0%, 55.55% 0%, 55.55% 100%, 44.44% 100%); font-size: calc(var(--main-size) / 10); margin-left: 0em; opacity: 1; }
.simple-loading .loader .text:nth-child(6) { clip-path: polygon(55.55% 0%, 66.66% 0%, 66.66% 100%, 55.55% 100%); font-size: calc(var(--main-size) / 11); margin-left: 0.05em; opacity: 0.9; }
.simple-loading .loader .text:nth-child(7) { clip-path: polygon(66.66% 0%, 77.77% 0%, 77.77% 100%, 66.66% 100%); font-size: calc(var(--main-size) / 13); margin-left: 0.33em; opacity: 0.8; }
.simple-loading .loader .text:nth-child(8) { clip-path: polygon(77.77% 0%, 88.88% 0%, 88.88% 100%, 77.77% 100%); font-size: calc(var(--main-size) / 16); margin-left: 0.98em; opacity: 0.7; }
.simple-loading .loader .text:nth-child(9) { clip-path: polygon(88.88% 0%, 100% 0%, 100% 100%, 88.88% 100%); font-size: calc(var(--main-size) / 20); margin-left: 2.1em; opacity: 0.6; }

.simple-loading .loader .text span {
    animation: scrolling 2s cubic-bezier(0.1, 0.6, 0.9, 0.4) infinite,
               shadow 2s cubic-bezier(0.1, 0.6, 0.9, 0.4) infinite;
}

.simple-loading .loader .text:nth-child(1) span { background: linear-gradient(to right, var(--text-color) 4%, var(--shadow-color) 7%); background-size: 200% auto; background-clip: text; color: transparent; }
.simple-loading .loader .text:nth-child(2) span { background: linear-gradient(to right, var(--text-color) 9%, var(--shadow-color) 13%); background-size: 200% auto; background-clip: text; color: transparent; }
.simple-loading .loader .text:nth-child(3) span { background: linear-gradient(to right, var(--text-color) 15%, var(--shadow-color) 18%); background-size: 200% auto; background-clip: text; color: transparent; }
.simple-loading .loader .text:nth-child(4) span { background: linear-gradient(to right, var(--text-color) 20%, var(--shadow-color) 23%); background-size: 200% auto; background-clip: text; color: transparent; }
.simple-loading .loader .text:nth-child(6) span { background: linear-gradient(to right, var(--shadow-color) 29%, var(--text-color) 32%); background-size: 200% auto; background-clip: text; color: transparent; }
.simple-loading .loader .text:nth-child(7) span { background: linear-gradient(to right, var(--shadow-color) 34%, var(--text-color) 37%); background-size: 200% auto; background-clip: text; color: transparent; }
.simple-loading .loader .text:nth-child(8) span { background: linear-gradient(to right, var(--shadow-color) 39%, var(--text-color) 42%); background-size: 200% auto; background-clip: text; color: transparent; }
.simple-loading .loader .text:nth-child(9) span { background: linear-gradient(to right, var(--shadow-color) 45%, var(--text-color) 48%); background-size: 200% auto; background-clip: text; color: transparent; }

.simple-loading .loader .line {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    height: 0.05em;
    width: calc(var(--main-size) / 2);
    margin-top: 0.9em;
    border-radius: 0.05em;
}

.simple-loading .loader .line::before {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: var(--text-color);
    opacity: 0.3;
}

.simple-loading .loader .line::after {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: var(--text-color);
    border-radius: 0.05em;
    transform: translateX(-90%);
    animation: wobble 2s cubic-bezier(0.5, 0.8, 0.5, 0.2) infinite;
}

@keyframes wobble {
    0% { transform: translateX(-90%); }
    50% { transform: translateX(90%); }
    100% { transform: translateX(-90%); }
}

@keyframes scrolling {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes shadow {
    0% { background-position: -98% 0; }
    100% { background-position: 102% 0; }
}

/* 左侧个人信息区 - 修复居中 */
.left-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 30px 20px 30px 40px;
}

.logo-section {
    padding: 30px 25px;
    width: 100%;
    max-width: 380px;
}

/* 头像和网站信息区域 */
.logo-area {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    gap: 20px;
}

#logo-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

#logo-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(52, 152, 219, 0.5);
}

.site-info {
    flex: 1;
}

.img-title-big {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px 0;
    background: linear-gradient(135deg, #4A90E2, #5DADE2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.img-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* 介绍信息 - 修复引号位置 */
.message {
    text-align: center;
    margin: 25px 0;
    position: relative;
    padding: 20px 15px;
}

.des-title {
    line-height: 1.8;
    font-size: 16px;
    min-height: 60px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
}

/* 打字机效果 - 居中显示，在引号中间 */
.des-title img {
    max-width: 280px;
    height: auto;
    display: block;
}

/* 引号位置 - 放在框内 */
.fa-quote-left {
    position: absolute;
    top: 5px;
    left: 10px;
    font-size: 18px;
    color: rgba(52, 152, 219, 0.7);
}

.fa-quote-right {
    position: absolute;
    bottom: 5px;
    right: 10px;
    font-size: 18px;
    color: rgba(52, 152, 219, 0.7);
}

/* 社交链接 - 添加hover提示 */
.social {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

.social .link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    transition: all 0.3s ease;
    color: #efefef;
    position: relative;
}

.social .link:hover {
    background: rgba(52, 152, 219, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* Tooltip效果 - 修复初始显示问题 */
.social .link::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(34, 49, 63, 0.95);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateX(-50%) translateY(5px);
    z-index: 1000;
    pointer-events: none;
}

.social .link:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

#link-text {
    width: 100%;
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

/* 右侧功能区 - 8张卡片：上面2×2大卡片 + 下面1×4小卡片 */
.right-section {
    padding: 40px 40px 40px 20px;
    display: flex;
    align-items: center;
    min-height: 100vh;
}

.rightone {
    width: 100%;
    max-width: 680px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 上层大卡片区域 - 2×2布局，固定宽度防止内容影响 */
.big-cards-section {
    display: grid;
    grid-template-columns: 320px 320px;
    grid-template-rows: 180px 180px;
    gap: 15px;
    width: 655px;
    margin: 0 auto;
}

/* 下层小导航卡片区域 - 1×4布局，固定宽度 */
.nav-cards-section {
    display: grid;
    grid-template-columns: repeat(4, 157px);
    gap: 12px;
    margin-top: 10px;
    width: 655px;
    margin: 10px auto 0;
}

/* 大卡片样式 */
.big-card {
    min-height: 140px;
    height: 180px;
    display: flex;
    flex-direction: column;
}

/* 小卡片样式 */
.small-card {
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.small-card:hover {
    transform: translate3d(0, -2px, 0);
}

/* 卡片通用flex布局 */
.rightone .cards {
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-weight: 600;
    color: #3498db;
    position: relative;
    z-index: 1;
}

/* 访客卡片的header需要特殊处理 */

.card-header i {
    margin-right: 8px;
    font-size: 16px;
}

/* 摸鱼语录卡片 - 与其他大卡片保持一致的大小 */
.quote-card {
    position: relative;
    min-height: 140px;
    height: 180px;
    width: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    user-select: text;
    overflow: hidden;
}

.quote-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translate3d(0, -1px, 0);
}

.quote-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 15px 40px 15px 15px;
    overflow: hidden;
}

.quote-text {
    font-size: 14px;
    line-height: 2.0;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.95);
    text-align: left;
    font-style: italic;
    word-wrap: break-word;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.quote-author {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    text-align: right;
    font-weight: 500;
}

.quote-author::before {
    content: '⌈ ';
    color: rgba(52, 152, 219, 0.8);
}

.quote-author::after {
    content: ' ⌋';
    color: rgba(52, 152, 219, 0.8);
}

.refresh-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: rgba(52, 152, 219, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
}

.refresh-btn:hover {
    background: rgba(52, 152, 219, 0.4);
    transform: rotate(180deg);
}

/* 时间天气卡片 */
.time-weather-card {
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.time-display {
    text-align: center;
}

.time-text {
    display: block;
    font-size: 24px;
    font-weight: 600;
    color: #4A90E2;
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
    opacity: 1;
}

.date-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.weather-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.weather-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.weather-temp {
    font-size: 16px;
    font-weight: 600;
    color: #4A90E2;
}

/* 访客信息卡片 */
.visitor-card {
    min-height: 140px;
    height: 180px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.visitor-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.visitor-info-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    align-items: center;
}

.visitor-info-text > div {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    text-align: center;
    font-weight: 500;
}

.visitor-info-text span {
    color: #3498db;
    font-weight: 600;
}

/* 小导航卡片样式 - 简洁设计 */
.nav-card-icon {
    font-size: 20px;
    color: #4A90E2;
    margin-bottom: 6px;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
    will-change: transform;
}

.small-card:hover .nav-card-icon {
    transform: scale3d(1.08, 1.08, 1);
    color: #5DADE2;
}

.nav-card-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2px;
}

.nav-card-subtitle {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    line-height: 1.2;
}

/* 统计卡片样式 */
.stats-card {
    justify-content: space-between;
}

.stats-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex: 1;
    margin-top: 10px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 20px;
    font-weight: bold;
    color: #4A90E2;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* 内容区域 */
.content-sections {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.98);
    z-index: 1000;
    overflow-y: auto;
    padding: 50px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #4A90E2, #5DADE2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

/* 碎碎念板块 */
.suisui-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.suisui-item {
    position: relative;
}

.suisui-date {
    font-size: 12px;
    color: #4A90E2;
    margin-bottom: 10px;
}

.suisui-content {
    line-height: 1.6;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.suisui-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 8px;
    background: rgba(52, 152, 219, 0.2);
    border-radius: 12px;
    font-size: 11px;
    color: #4A90E2;
}

/* 时间轴 */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #4A90E2, #5DADE2);
}

/* 这些旧的时间轴样式已被独立页面的新样式替代，保留用于向后兼容 */

.timeline-content h3 {
    margin-bottom: 10px;
    color: #4A90E2;
}

/* 友链板块 */
.friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.friend-item {
    display: flex;
    align-items: center;
}

.friend-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.friend-info h4 {
    margin-bottom: 5px;
    color: #4A90E2;
}

.friend-info p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.friend-info a {
    font-size: 12px;
    color: #4A90E2;
    padding: 2px 8px;
    border: 1px solid #4A90E2;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.friend-info a:hover {
    background: #4A90E2;
    color: white;
}

/* 返回按钮 */
.back-to-home {
    position: fixed;
    top: 30px;
    right: 30px;
    background: rgba(52, 152, 219, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
}

.back-to-home:hover {
    background: #4A90E2;
    transform: scale(1.05);
}

.back-to-home i {
    margin-right: 5px;
}

/* 文章展示区域 - 独立屏幕 */
.articles-section {
    min-height: 100vh;
    padding: 60px 40px;
    background: transparent; /* 透明以透出壁纸 */
    position: relative;
}

/* 文章网格 - 真正的3×3布局 */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
    min-height: 600px;
}

/* 文章卡片 - 确保3×3显示 */
.article-card {
    min-height: 180px;
    display: flex;
    flex-direction: column;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        min-height: auto;
    }
    
    .article-card {
        min-height: 200px;
    }
}

/* 文章分页 */
.articles-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 10px;
}

.pagination-btn {
    padding: 8px 16px;
    background: rgba(52, 152, 219, 0.2);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.pagination-btn:hover {
    background: rgba(52, 152, 219, 0.4);
    color: white;
}

.pagination-btn.active {
    background: linear-gradient(135deg, #4A90E2, #5DADE2);
    color: white;
    border-color: transparent;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* 展示更多按钮 */
.show-more-section {
    display: flex;
    justify-content: center;
    margin: 40px 0 80px;
}

.show-more-btn {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.8), rgba(118, 75, 162, 0.8));
    border: none;
    border-radius: 50px;
    padding: 16px 32px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.show-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.9), rgba(118, 75, 162, 0.9));
}

.pagination-dots {
    padding: 8px 4px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    display: flex;
    align-items: center;
}


/* 回到顶端按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.9), rgba(118, 75, 162, 0.9));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.articles-header {
    text-align: center;
    margin-bottom: 60px;
}

.articles-title {
    font-size: 32px;
    font-weight: 600;
    background: linear-gradient(135deg, #4A90E2, #5DADE2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.articles-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 30px;
    min-height: 400px;
}

.article-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s ease;
    cursor: pointer;
}

.article-card:hover {
    transform: translate3d(0, -3px, 0);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

.article-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.3), rgba(118, 75, 162, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.article-card:hover .article-image img {
    transform: scale3d(1.05, 1.05, 1);
}

/* 文章卡片 - 封面图区域伪元素（已禁用图标） */
.article-image::before {
    content: '';
}

/* 当图片加载失败时显示占位符 */
.article-image.img-error::before {
    content: '🖼️';
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-content {
    padding: 20px;
}

.article-title {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-preview {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.article-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.article-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.article-tag {
    padding: 3px 8px;
    background: rgba(52, 152, 219, 0.15);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 12px;
    font-size: 11px;
    color: rgba(52, 152, 219, 0.9);
    transition: all 0.3s ease;
}

.article-tag:hover {
    background: rgba(52, 152, 219, 0.25);
    transform: scale(1.05);
}

.load-more-btn {
    display: block;
    width: 200px;
    margin: 0 auto;
    padding: 15px 30px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.8), rgba(118, 75, 162, 0.8));
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
    background: linear-gradient(135deg, #4A90E2, #5DADE2);
}

/* 底部信息 */
.footer-info {
    text-align: center;
    padding: 40px 0;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.footer-info a {
    color: #4A90E2;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-info a:hover {
    color: #5DADE2;
    text-decoration: underline;
}

/* 浅色主题下的底部 */
body.light-page .footer-info a {
    color: #1976d2;
}

body.light-page .footer-info a:hover {
    color: #42a5f5;
}

/* 响应式 - 文章区域 */
@media (max-width: 768px) {
    .articles-section {
        padding: 40px 20px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .articles-title {
        font-size: 24px;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-container {
        padding: 10px;
    }
    
    .left-section {
        min-height: auto;
        margin-bottom: 20px;
    }
    
    .logo-section {
        padding: 20px 15px;
    }
    
    #logo-img {
        width: 100px;
        height: 100px;
    }
    
    .img-title-big {
        font-size: 24px;
    }
    
    .time-text {
        font-size: 20px;
    }
    
    .nav-links {
        grid-template-columns: 1fr;
    }
    
    .timeline-date {
        position: relative;
        left: 0;
        display: inline-block;
        margin-bottom: 10px;
    }
    
    .timeline {
        padding-left: 0;
    }
    
    .timeline::before {
        display: none;
    }
    
    .timeline-item::before {
        display: none;
    }
    
    .timeline-content {
        margin-left: 0;
    }
    
    .back-to-home {
        top: 20px;
        right: 20px;
        padding: 8px 15px;
    }
}

/* 模态框自定义样式 - 默认隐藏 */
.modal {
    z-index: 9999 !important;
    display: none !important;
}

.modal.show {
    display: block !important;
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.6) !important;
    z-index: 9998 !important;
    pointer-events: auto !important;
}

.modal-content {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    border: 1px solid rgba(52, 152, 219, 0.3) !important;
    border-radius: 15px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
}

.modal-header {
    border-bottom: 1px solid rgba(52, 152, 219, 0.3) !important;
    background: rgba(52, 152, 219, 0.1) !important;
    border-radius: 15px 15px 0 0 !important;
}

.modal-title {
    color: #ffffff !important;
    font-weight: 600 !important;
}

.btn-close {
    filter: invert(1) !important;
    opacity: 0.8 !important;
}

.btn-close:hover {
    opacity: 1 !important;
}

.modal-body {
    color: #ffffff !important;
    line-height: 1.6 !important;
    pointer-events: auto !important;
    overflow-y: auto !important;
    max-height: 70vh !important;
}

/* 确保模态框内容可点击可滚动 */
.modal-content * {
    pointer-events: auto !important;
}

.modal-dialog {
    pointer-events: none !important;
}

.modal-content {
    pointer-events: auto !important;
}

/* 自定义滚动条样式 - 解决滚动条难看问题 */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(52, 152, 219, 0.1);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5dade2, #3498db);
    background-clip: content-box;
}

/* 全局自定义滚动条 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(44, 62, 80, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5dade2, #3498db);
    background-clip: content-box;
}

/* F12开发者工具适配 - 彻底修复宽度变化问题 */
@media (max-width: 1400px) {
    .big-cards-section {
        grid-template-columns: 280px 280px;
        width: 575px;
    }
    
    .nav-cards-section {
        grid-template-columns: repeat(4, 140px);
        width: 575px;
    }
}

@media (max-width: 1200px) {
    .main-container {
        padding: 20px 15px;
    }
    
    .big-cards-section {
        grid-template-columns: 250px 250px;
        gap: 12px;
        width: 512px;
    }
    
    .nav-cards-section {
        grid-template-columns: repeat(4, 124px);
        gap: 10px;
        width: 512px;
    }
}

@media (max-width: 992px) {
    .row {
        flex-direction: column;
        margin: 0;
    }
    
    .left-section, .right-section {
        max-width: 100%;
        margin-bottom: 30px;
        padding: 20px;
    }
    
    .big-cards-section {
        grid-template-columns: 1fr;
        gap: 15px;
        width: 100%;
        max-width: 400px;
    }
    
    .nav-cards-section {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
        max-width: 400px;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .big-cards-section {
        max-width: 320px;
    }
    
    .nav-cards-section {
        max-width: 320px;
    }
}

@media (max-width: 576px) {
    .suisui-grid, .friends-grid {
        grid-template-columns: 1fr;
    }
    
    .social {
        gap: 10px;
    }
    
    .social .link {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .nav-cards-section {
        grid-template-columns: repeat(2, 1fr);
        max-width: 280px;
    }
    
    .big-cards-section {
        max-width: 280px;
    }
}

/* ==== 新增：长条式文章列表样式 ==== */

/* 文章展示区域 */
.articles-section {
    min-height: calc(100vh - 100px);
    padding: 60px 0;
    background: transparent;
}

.articles-main {
    padding-right: 20px;
}

/* 文章列表容器 */
.articles-list {
    margin-top: 30px;
    padding: 0 20px; /* 添加左右边距 */
}

/* 长条式文章卡片 - 占满容器宽度，与标题对齐 */
.article-card {
    display: flex;
    background: transparent; /* 透明背景 */
    border: none;
    border-radius: 20px;
    padding: 0;
    margin: 0 0 35px 0; /* 不居中，左对齐 */
    max-width: none; /* 不限制宽度 */
    width: 100%; /* 占满容器宽度 */
    height: 240px; /* 增加高度让布局更舒适 */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden; /* 恢复hidden，避免内容溢出 */
    cursor: pointer;
    /* 移除box-shadow，避免粗线 */
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

/* 文章卡片 - 封面图（左侧1/3，清晰显示） */
.article-image {
    width: 33.33%; /* 占整个卡片的1/3 */
    height: 100%;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 20px 0 0 20px;
    z-index: 1; /* 不盖住右侧文字 */
    background: #F0F8FF; /* 浅色背景 */
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block; /* 避免底部空隙 */
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

/* 无图片占位 */
.article-image.no-image {
    background: linear-gradient(120deg, #4A90E2, #a29bfe);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 隐藏无图片时的图标 */
.article-image.no-image i {
    display: none;
}

/* 无图片时的文字提示 */
.article-image.no-image::after {
    content: '暂无封面';
    position: absolute;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 2px;
    z-index: 3;
}

/* 文章内容区域 - 右侧背景容器，用于毛玻璃效果 */
.article-content {
    position: absolute;
    top: 0;
    left: 33.33%; /* 从图片右侧开始 */
    right: 0;
    bottom: 0;
    border-radius: 0 20px 20px 0;
    z-index: 1; /* 背景容器层级 */
    overflow: hidden; /* 确保背景效果正确 */
    background: rgba(20, 20, 35, 0.4); /* 深色半透明底层，确保文字可读 */
}

/* 文章卡片 - 内容区域背景层（使用完整封面图，JS内联style设置background-image） */
.article-content .article-content-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(15px) brightness(0.8) saturate(1.1); /* 减少模糊度，提高亮度 */
    -webkit-filter: blur(15px) brightness(0.8) saturate(1.1);
    z-index: -1; /* 确保在最底层 */
    pointer-events: none; /* 防止遮挡点击与文本选择 */
}

/* 文章卡片 - 内容区域半透明遮罩层，增强文字对比度 */
.article-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(20, 20, 35, 0.6) 0%,
        rgba(30, 30, 50, 0.5) 100%); /* 减少遮罩透明度，让背景更清晰 */
    backdrop-filter: blur(3px); /* 减少额外模糊 */
    -webkit-backdrop-filter: blur(3px);
    z-index: 0; /* 遮罩层在背景层之上，但在文字之下 */
}

/* 文章卡片 - 文字层兜底提升，避免任何覆盖导致不可见 */
.article-content .article-main,
.article-content .article-meta,
.article-content .article-title,
.article-content .article-excerpt,
.article-content .article-tags{ 
    position: relative; 
    z-index: 10 !important; 
}

/* 全局：避免获得焦点时出现不期望的描边/高亮 */
a:focus, button:focus, div:focus, *:focus { 
    outline: none !important; 
    box-shadow: none !important; 
}

/* 文章时间和统计数据 - 顶部横向排列 */
.article-date {
    position: absolute;
    top: 14px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 3;
}

.article-date::before {
    content: attr(data-date);
    background: rgba(109, 179, 242, 0.9);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* 文章统计数据 - 顶部右侧横向排列 */
.article-stats {
    position: absolute;
    top: 14px;
    right: 20px; /* 与按钮右边距一致 */
    display: flex;
    align-items: center;
    gap: 16px; /* 增加间距 */
    z-index: 3;
}

.article-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

.article-stats .stat-item i {
    font-size: 14px;
    color: #a29bfe;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4));
}

/* 文章卡片 - 主要文字区域（标题/摘要/标签/作者容器） */
.article-main {
    position: relative; /* 改为相对定位，相对于.article-content */
    top: 16px;
    left: 0; /* 不需要left偏移，因为父容器已经定位了 */
    right: 0;
    bottom: 0;
    padding: 0 20px; /* 添加内边距 */
    z-index: 10 !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
}

/* 文章标题 - 按红框区域设计 */
.article-title {
    font-size: 22px; /* 增大标题字体 */
    font-weight: 700;
    color: rgba(109,179,242);
    margin-bottom: 0; /* 移除底部边距，使用gap控制 */
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1; /* 标题只显示一行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* 文章摘要 - 固定高度，确保标签位置一致 */
.article-excerpt {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 14px;
    line-height: 1.6;
    height: 70px;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* 文章底部信息容器（标签+作者） - 左侧排列 */
.article-bottom-info {
    display: flex;
    flex-direction: column; /* 垂直排列 */
    gap: 8px;
    align-items: flex-start;
}

/* 文章标签 */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-tag {
    background: rgba(108, 92, 231, 0.4);
    color: rgba(255, 255, 255, 0.95);
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 12px;
    border: 1px solid rgba(162, 155, 254, 0.3);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 技术标签图标系统 - 统一所有页面 */
.article-tag::before {
    font-size: 10px;
    margin-right: 4px;
}

/* Java标签 */
.article-tag[data-tag="Java"]::before {
    content: '☕';
}

/* JavaScript标签 */
.article-tag[data-tag="JavaScript"]::before {
    content: '🟨';
}

/* MySQL标签 */
.article-tag[data-tag="MySQL"]::before {
    content: '🗄️';
}

/* Vue标签 */
.article-tag[data-tag="Vue"]::before {
    content: '💚';
}

/* CSS标签 */
.article-tag[data-tag="CSS"]::before {
    content: '🎨';
}

/* HTML标签 */
.article-tag[data-tag="HTML"]::before {
    content: '📄';
}

/* Spring Boot标签 */
.article-tag[data-tag="Spring"]::before,
.article-tag[data-tag="Spring Boot"]::before {
    content: '🍃';
}

/* 测试标签 */
.article-tag[data-tag="测试"]::before {
    content: '🧪';
}

/* 默认标签图标 */
.article-tag:not([data-tag*="Java"]):not([data-tag*="JavaScript"]):not([data-tag*="MySQL"]):not([data-tag*="Vue"]):not([data-tag*="CSS"]):not([data-tag*="HTML"]):not([data-tag*="Spring"]):not([data-tag*="测试"])::before {
    content: '🏷️';
}

/* 文章卡片 - 底部按钮区域（相对于整个.article-card的右下角） */
.article-meta {
    position: absolute;
    bottom: 20px;
    right: 20px; /* 相对于整个.article-card的右边缘 */
    z-index: 15 !important; /* 确保在所有元素之上 */
}

.article-author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 12px;
    background: rgba(109, 179, 242, 0.12);
    border: 1px solid rgba(109, 179, 242, 0.28);
    color: #6DB3F2 !important;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    width: auto;
}

.article-author i {
    color: #6DB3F2;
}

.read-more-btn {
    background: linear-gradient(135deg, #4A90E2, #a29bfe);
    color: white !important;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
    position: relative;
    z-index: 10 !important;
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.5);
    background: linear-gradient(135deg, #7c6cf7, #b2abfe);
}

.read-more-btn::after {
    content: '→';
    font-size: 14px;
    transition: transform 0.3s ease;
}

.read-more-btn:hover::after {
    transform: translateX(3px);
}

/* 加载状态 */
.article-loading {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.6);
}

.article-loading i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

/* ==== 右侧信息卡片样式 - 网格布局 ==== */

.info-sidebar {
    padding-left: 20px;
    /* 与第一篇文章顶部对齐 */
    margin-top: 155px; /* 微调对齐 */
}

/* 统计信息网格卡片 */
.stats-grid-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.stats-grid-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.25);
}

.stats-grid-card h3 {
    margin: 0 0 20px 0;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats-grid-card h3 i {
    color: #4A90E2;
}

/* 统计网格 */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat-grid-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-grid-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.stat-grid-item .stat-icon {
    width: 40px;
    height: 40px;
    background: rgba(109, 179, 242, 0.18);
    border: 1px solid rgba(109, 179, 242, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6DB3F2;
    margin: 0 auto 10px;
    font-size: 16px;
}

.stat-grid-item .stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
    display: block;
}

.stat-grid-item .stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    display: block;
}

/* 其他信息卡片 */
.info-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.25);
}

/* 信息卡片头部 */
.info-card-header {
    padding: 20px 20px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-card-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card-header i {
    color: #4A90E2;
}

/* 信息卡片内容 */
.info-card-body {
    padding: 20px;
}

/* 评论项 */
/* ========== 评论区样式优化 ========== */

/* 单条评论容器 - 缩小间距 */
.comment-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(109, 179, 242, 0.15);
}

.comment-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

/* 回复评论样式 - 层级显示 */
.comment-item.comment-reply {
    margin-left: 60px;
    background: rgba(109, 179, 242, 0.05);
    border-left: 3px solid rgba(109, 179, 242, 0.3);
    border-radius: 8px;
    padding: 16px;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

body.light-page .comment-item.comment-reply {
    background: rgba(109, 179, 242, 0.08) !important;
    border-left-color: rgba(109, 179, 242, 0.5) !important;
}

/* index页面右侧最新评论卡片样式优化 */
#recent-comments-card .comment-item {
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: none;
    transition: all 0.3s ease;
}

#recent-comments-card .comment-item:hover {
    background: rgba(109, 179, 242, 0.08);
    transform: translateX(4px);
}

#recent-comments-card .comment-avatar {
    width: 36px;
    height: 36px;
}

#recent-comments-card .comment-author {
    font-size: 13px;
    font-weight: 600;
    color: #6DB3F2;
    margin-bottom: 4px;
}

#recent-comments-card .comment-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

#recent-comments-card .comment-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

/* 浅色主题下的最新评论样式 */
body.light-page #recent-comments-card .comment-item {
    background: rgba(255, 255, 255, 0.5) !important;
}

body.light-page #recent-comments-card .comment-item:hover {
    background: rgba(109, 179, 242, 0.12) !important;
}

body.light-page #recent-comments-card .comment-author {
    color: #1a237e !important;
}

body.light-page #recent-comments-card .comment-text {
    color: rgba(0, 0, 0, 0.7) !important;
}

body.light-page #recent-comments-card .comment-time {
    color: rgba(0, 0, 0, 0.5) !important;
}

/* 评论头像 - 缩小尺寸 */
.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 评论内容区域 */
.comment-content {
    flex: 1;
    min-width: 0; /* 防止溢出 */
}

/* 评论头部信息 */
.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

/* 评论作者昵称 - 缩小字号 */
.comment-author {
    font-size: 14px;
    font-weight: 700;
    color: #1976d2; /* 深蓝色，在浅色背景下清晰醒目 - 用户可通过F12修改 */
}

/* 用户身份徽章（博主/游客） - 缩小尺寸 */
.user-role-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* 用户徽章 - 登录但非管理员 */
.user-role-badge.user {
    background: linear-gradient(135deg, #42a5f5, #6DB3F2);
    color: white;
    box-shadow: 0 2px 8px rgba(66, 165, 245, 0.3);
}

/* 博主徽章 */
.user-role-badge.admin {
    background: linear-gradient(135deg, #ff6b9d 0%, #c06bff 100%);
    color: white;
}

/* 管理员徽章 - 七彩流动边框（增强版） */
.user-role-badge.rainbow-admin {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    color: white;
    border: 2px solid transparent;
    position: relative;
    animation: rainbow-flow 4s ease infinite, pulse-glow 3s ease infinite;
    box-shadow: 0 2 10px rgba(102, 126, 234, 0.4), 0 0 40px rgba(118, 75, 162, 0.6);
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.user-role-badge.rainbow-admin::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, 
        #ff0000, #ff7f00, #ffff00, #00ff00, 
        #0000ff, #4b0082, #f093fb, #ff0000);
    background-size: 300%;
    border-radius: 6px;
    z-index: -1;
    animation: rainbow-border 3s linear infinite;
    filter: blur(4px);
    opacity: 0.6;
}

@keyframes rainbow-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes rainbow-border {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 2 10px rgba(102, 126, 234, 0.8), 0 0 40px rgba(118, 75, 162, 0.6);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 3 15px rgba(102, 126, 234, 1), 0 0 60px rgba(118, 75, 162, 0.9);
        transform: scale(1.02);
    }
}

/* 游客徽章 */
.user-role-badge.guest {
    background: rgba(109, 179, 242, 0.2);
    color: #9DD4FF;
    border: 1px solid rgba(109, 179, 242, 0.3);
}

/* 评论时间 - 缩小字号 */
.comment-time {
    font-size: 11px;
    color: rgba(45, 55, 72, 0.6);  /* 深灰色半透明，在浅色背景下清晰 - 用户可通过F12修改 */
    margin-left: auto; /* 推到最右边 */
}

/* 评论文本区域 - 缩小尺寸 */
.comment-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);  /* 白色文字 */
    line-height: 1.6;
    margin-bottom: 8px;
    padding: 10px 14px;
    background: rgba(30, 58, 95, 0.25); /* 深蓝色半透明背景改淡一点，不那么突兀 */
    border-radius: 8px;
    border-left: 3px solid #42a5f5;  /* 天蓝色左边框 - 保持不变 */
}

/* 浅色主题下的评论文本背景 */
body.light-page .comment-text {
    background: rgba(109, 179, 242, 0.08) !important;  /* 淡蓝色背景，不突兀 */
    border-left: 3px solid #6DB3F2 !important;
}

/* 评论文本内的Markdown样式优化 */
.comment-text p {
    margin: 8px 0;
}

.comment-text p:first-child {
    margin-top: 0;
}

.comment-text p:last-child {
    margin-bottom: 0;
}

/* 用户设备信息（操作系统+浏览器） - 与按钮对齐 */
.comment-ua-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
    font-size: 11px;
    color: rgba(45, 55, 72, 0.5);  /* 深灰色半透明，在浅色背景下清晰 - 用户可通过F12修改 */
}

.ua-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ua-item i {
    font-size: 12px;
    color: #42a5f5;  /* 天蓝色图标 - 保持不变 */
}

/* 评论操作按钮区域 - 与设备信息同行显示 */
.comment-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end; /* 按钮靠右对齐 */
    margin-top: 8px; /* 与设备信息保持间距 */
}

/* 评论底部区域（设备信息 + 操作按钮） */
.comment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

/* 评论操作按钮样式 - 缩小尺寸 */
.comment-like-btn,
.comment-reply-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: rgba(66, 165, 245, 0.08);  /* 淡蓝色背景 */
    border: 2px solid rgba(66, 165, 245, 0.4);  /* 深色主题边框 - 2px更明显 */
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.9);  /* 深色主题文字颜色 */
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-like-btn:hover {
    background: rgba(255, 107, 157, 0.15);
    border-color: rgba(255, 107, 157, 0.5);
    color: #ff6b9d;
}

/* 回复按钮特殊样式 - 天蓝色强调，保持不变 */
.comment-reply-btn {
    border-color: rgba(66, 165, 245, 0.3);
}

.comment-reply-btn:hover {
    background: rgba(66, 165, 245, 0.15);
    border-color: #42a5f5;
    color: #1976d2;  /* 深蓝色 */
}

.comment-like-btn.liked {
    background: rgba(255, 107, 157, 0.2);
    border-color: rgba(255, 107, 157, 0.6);
    color: #ff6b9d;
}

.comment-like-btn.liked i {
    animation: heartBeat 0.3s ease;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* 标签云 */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    background: rgba(108, 92, 231, 0.2);
    color: #e8e3ff;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    border: 1px solid rgba(108, 92, 231, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: rgba(108, 92, 231, 0.4);
    transform: translateY(-2px);
}

/* 动态统计更新动画 */
.stat-updating {
    animation: statUpdate 0.3s ease;
}

@keyframes statUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 响应式设计 - 文章列表 */
@media (max-width: 992px) {
    .articles-main {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .info-sidebar {
        padding-left: 0;
    }
    
    .article-card {
        flex-direction: column;
        text-align: center;
    }
    
    .article-image {
        width: 100%;
        height: 200px;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .article-content {
        padding-top: 0;
    }
    
    .article-date {
        position: relative;
        top: auto;
        left: auto;
        display: inline-block;
        margin-bottom: 10px;
    }
    
    .article-stats {
        position: relative;
        top: auto;
        right: auto;
        justify-content: center;
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .articles-section {
        padding: 40px 0;
    }
    
    .article-card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .article-title {
        font-size: 18px;
    }
    
    .info-card {
        margin-bottom: 15px;
    }
    
    .info-card-header,
    .info-card-body {
        padding: 15px;
    }
}

/* ==================== 独立页面样式 ==================== */

/* 页面容器 - 左右布局 */
.page-container {
    max-width: 1400px;
    margin: 80px auto 40px;
    padding: 0 20px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* 左侧内容区 */
.content-area {
    flex: 1;
    min-width: 0; /* 防止flex溢出 */
}

/* 右侧固定侧边栏 */
.sidebar-fixed {
    width: 320px;
    position: sticky;
    top: 100px;
    flex-shrink: 0;
}

/* 页面标题 */
.page-header {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 40px 40px;  /* 明确指定左右padding */
    margin-bottom: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 页面标题 - 深色文字适配浅色背景 */
.page-title {
    font-size: 36px;
    font-weight: 600;
    color: #1a237e;  /* 深蓝色标题，在浅色背景下清晰 - 用户可通过F12修改 */
    margin-bottom: 10px;
}

.page-title i {
    margin-right: 12px;
    color: #42a5f5;  /* 天蓝色图标 - 保持不变 */
}

.page-subtitle {
    font-size: 16px;
    color: rgba(26, 35, 126, 0.7);  /* 深蓝色半透明，在浅色背景下清晰 - 用户可通过F12修改 */
    margin: 0;
}

/* 信息卡片（侧边栏） */
.info-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.info-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card-title i {
    color: #6DB3F2;
}

.info-card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 个人介绍卡片 */
.author-profile {
    text-align: center;
    padding: 10px 0;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(109, 179, 242, 0.5);
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.author-avatar:hover {
    transform: scale(1.05);
    border-color: #6DB3F2;
}

.author-name {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.author-bio {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.6);
    margin: 0;
}

/* 统计项（侧边栏） - 带图标版本 */
.stat-item-sidebar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stat-item-sidebar:hover {
    background: rgba(109, 179, 242, 0.1);
}

.stat-icon {
    font-size: 20px;
    color: #6DB3F2;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
    color: #6DB3F2;
}

/* ===== 首页文章列表图标与标签配色（蓝色主题） ===== */
.articles-list .meta-item,
.articles-list .meta-item i,
.articles-list .meta-item span {
    color: #6DB3F2 !important;
}
.articles-list .meta-item {
    background: rgba(109, 179, 242, 0.12) !important;
    border: 1px solid rgba(109, 179, 242, 0.25) !important;
}
.articles-list .article-tag,
.articles-list .article-author,
.articles-list .article-tag i,
.articles-list .article-author i {
    background: rgba(109, 179, 242, 0.16) !important;
    color: #6DB3F2 !important;
    border: 1px solid rgba(109, 179, 242, 0.28) !important;
}

/* 心情筛选（主内容区） */
.mood-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding: 20px 40px;  /* 左右padding与page-header一致 */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 标签筛选（通用） */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding: 20px 40px;  /* 左右padding与page-header一致 */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-tag {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-tag:hover {
    background: rgba(109, 179, 242, 0.2);
    color: #fff;
    transform: scale(1.05);
}

.filter-tag.active {
    background: rgba(109, 179, 242, 0.3);
    color: #fff;
    border-color: #6DB3F2;
}

/* 快捷导航链接 */
.nav-link-sidebar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-link-sidebar:hover {
    background: rgba(109, 179, 242, 0.2);
    color: #fff;
    transform: translateX(5px);
}

.nav-link-sidebar.active {
    background: rgba(109, 179, 242, 0.3);
    color: #fff;
}

.nav-link-sidebar i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* ==================== 碎碎念页面样式 ==================== */

/* 碎碎念列表 */
.moments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 40px;  /* 与page-header的左右padding一致 */
}

/* 碎碎念卡片 */
.moment-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

body.light-page .moment-card {
    background: rgba(255, 255, 255, 0.85) !important;  /* 加深一点，让文字更清晰 */
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

.moment-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(109, 179, 242, 0.2);
}

body.light-page .moment-card:hover {
    background: rgba(255, 255, 255, 0.85) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.moment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.moment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(109, 179, 242, 0.5);
}

.moment-info {
    flex: 1;
}

.moment-author {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 4px;
}

.moment-time {
    font-size: 13px;
    color: rgba(79, 77, 77, 0.5);
}

.moment-mood {
    font-size: 24px;
    position: absolute;
    top: 24px;
    right: 24px;
}

.moment-content {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
}

.moment-footer {
    display: flex;
    gap: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.moment-action {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: rgba(51, 51, 51, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.moment-action:hover {
    color: #6DB3F2;
}

.moment-action i {
    font-size: 16px;
}

/* 心情标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mood-tag {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mood-tag:hover {
    background: rgba(109, 179, 242, 0.2);
    color: #fff;
    transform: scale(1.05);
}

.mood-tag.active {
    background: rgba(109, 179, 242, 0.3);
    color: #fff;
    border-color: #6DB3F2;
}

/* ==================== 时间轴页面样式 ==================== */

/* 时间轴列表 */
.timeline-list {
    position: relative;
    padding: 0 40px;  /* 与page-header的左右padding一致 */
}

/* 时间轴主线（垂直线）- 相对于timeline-list定位 */
.timeline-list::before {
    content: '';
    position: absolute;
    left: 64px;  /* 40px(padding) + 24px = 64px */
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom,
        rgba(109, 179, 242, 0.8),
        rgba(109, 179, 242, 0.2));
}

/* 时间轴项 */
.timeline-item {
    position: relative;
    padding-left: 80px;  /* 给日期和节点留出空间 */
    margin-bottom: 50px;
}

/* 时间轴节点（紫色圆点）- 在轴上 */
.timeline-node {
    position: absolute;
    left: 16px;  /* 相对于timeline-item，对齐轴线：64px(轴位置) - 40px(list padding) - 8px(圆点半径) = 16px */
    top: 8px;
    width: 16px;
    height: 16px;
    background: #6DB3F2;  /* 紫色 */
    border-radius: 50%;
    border: 3px solid #1a1a2e;
    box-shadow: 0 0 0 4px rgba(109, 179, 242, 0.3);
    z-index: 2;
    transition: all 0.3s ease;
}

/* 悬停动画效果 */
.timeline-item:hover .timeline-node {
    transform: scale(1.3);
    box-shadow: 0 0 0 6px rgba(109, 179, 242, 0.5);
}

/* 时间轴日期 - 与内容框左对齐，在其上方 */
.timeline-date {
    position: relative;  /* 改为相对定位 */
    display: inline-block;
    margin-bottom: 12px;  /* 与内容框之间的间距 */
    font-size: 14px;
    font-weight: 600;
    color: #6DB3F2;
    background: rgba(109, 179, 242, 0.1);
    padding: 6px 14px;
    border-radius: 12px;
    white-space: nowrap;
}

/* 时间轴内容卡片 - 在日期下方，左对齐 */
.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
    box-shadow: 0 8px 24px rgba(109, 179, 242, 0.2);
}

.timeline-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
}

.timeline-text {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(0, 0, 0, 0.8);
}

/* 年份筛选 */
.year-filter {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.year-item {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.year-item:hover {
    background: rgba(109, 179, 242, 0.2);
    color: #fff;
}

.year-item.active {
    background: rgba(109, 179, 242, 0.3);
    color: #fff;
    border-color: #6DB3F2;
}

/* ==================== 友链页面样式 ==================== */

/* 友链申请说明 */
.friends-notice {
    background: rgba(250, 252, 254, 0.827);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px 40px;  /* 左右padding与其他元素一致 */
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #6DB3F2;
}

.friends-notice h3 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.friends-notice h3 i {
    color: #6DB3F2;
}

.friends-notice p {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.8);
    margin-bottom: 12px;
}

.friends-notice ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.friends-notice li {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.7);
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.friends-notice li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #6DB3F2;
}

/* 友链列表 */
.friends-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* 友链卡片 */
.friend-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.friend-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(109, 179, 242, 0.3);
    border-color: #6DB3F2;
}

/* 友链头部 - 一行显示头像、名称、日期 */
.friend-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(109, 179, 242, 0.2);
}

/* 友链头像 - 小图标样式 */
.friend-avatar {
    width: 36px;  /* 更小的头像 */
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(109, 179, 242, 0.5);
    flex-shrink: 0;
}

/* 友链名称链接 */
.friend-name-link {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
    flex: 1;  /* 占据剩余空间 */
}

.friend-name-link:hover {
    color: #6DB3F2;
}

.friend-name-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #6DB3F2;
    transition: width 0.3s ease;
}

.friend-name-link:hover::after {
    width: 100%;
}

/* 友链日期 - 在同一行右侧 */
.friend-date {
    font-size: 11px;
    color: rgba(109, 179, 242, 0.8);
    background: rgba(109, 179, 242, 0.1);
    padding: 4px 10px;
    border-radius: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.friend-link {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 4px;
}

.friend-link i {
    font-size: 10px;
}

/* 友链介绍 - 增加显示空间 */
.friend-description {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.7);
    margin-top: 8px;
    /* 不限制行数，完整显示介绍内容 */
}

/* 联系方式 */
.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(109, 179, 242, 0.1);
}

.contact-item i {
    font-size: 16px;
    color: #6DB3F2;
    width: 20px;
    text-align: center;
}

/* 加载更多按钮 */
.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    padding: 12px 32px;
    background: rgba(109, 179, 242, 0.2);
    border: 1px solid #6DB3F2;
    border-radius: 24px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.load-more-btn:hover {
    background: rgba(109, 179, 242, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(109, 179, 242, 0.4);
}

.load-more-btn i {
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* ==================== 文章列表页面样式 ==================== */

/* 文章列表容器（长条形） - 左对齐与标题齐平 */
.articles-list-long {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;  /* 占满容器宽度 */
    max-width: none;  /* 移除最大宽度限制 */
    padding: 0 40px;  /* 与page-header的左右padding一致 */
}

/* 分页容器 */
.pagination-container {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover {
    background: rgba(109, 179, 242, 0.2);
    border-color: #6DB3F2;
    color: #fff;
    transform: translateY(-2px);
}

.page-btn.active {
    background: rgba(109, 179, 242, 0.3);
    border-color: #6DB3F2;
    color: #fff;
    font-weight: 600;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-ellipsis {
    color: rgba(255, 255, 255, 0.5);
    padding: 0 8px;
}

/* ==================== 独立页面响应式 ==================== */

@media (max-width: 1024px) {
    .page-container {
        flex-direction: column;
    }
    
    .sidebar-fixed {
        width: 100%;
        position: static;
    }
    
    .friends-list {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-container {
        margin-top: 60px;
        padding: 0 15px;
    }
    
    .page-header {
        padding: 30px 20px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline-date {
        left: 50px;
        font-size: 12px;
    }
    
    .friends-list {
        grid-template-columns: 1fr;
    }
}

/* ==================== 顶部导航栏样式 ==================== */

/* 顶部导航栏 - 统一白色半透明样式 */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);  /* 白色半透明背景 */
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);  /* 淡灰色边框 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* 导航栏容器 */
.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 65px;
}

/* 左侧区域 */
.navbar-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

/* Logo品牌 */
/* 导航栏品牌logo */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #1a237e;  /* 深蓝色文字 */
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.navbar-brand i {
    font-size: 24px;
    color: rgba(109, 179, 242, 0.9);
}

.navbar-brand:hover {
    color: rgba(109, 179, 242, 0.9);
    transform: translateY(-2px);
}

/* 导航链接 */
.navbar-links {
    display: flex;
    gap: 5px;
}

/* 导航链接 */
.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    color: rgba(0, 0, 0, 0.7);  /* 深色半透明文字 */
    text-decoration: none;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link i {
    font-size: 16px;
}

/* 导航链接hover效果 */
.nav-link:hover {
    color: #1a237e;  /* 深蓝色文字 */
    background: rgba(109, 179, 242, 0.2);
    transform: translateY(-2px);
}

/* 导航链接激活状态 - 使用天蓝色强调 */
.nav-link.active {
    color: #1a237e;  /* 深蓝色文字 */
    background: rgba(66, 165, 245, 0.3);  /* 天蓝色半透明背景 */
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: rgba(109, 179, 242, 0.8);
}

/* 右侧区域 */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 统计信息 */
.navbar-stats {
    display: flex;
    gap: 12px;
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(109, 179, 242, 0.15);
    border-radius: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

.stat-badge i {
    color: rgba(109, 179, 242, 0.8);
    font-size: 14px;
}

/* 图标按钮 */
.navbar-icon-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(109, 179, 242, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.navbar-icon-btn:hover {
    background: rgba(109, 179, 242, 0.2);
    color: #fff;
    transform: translateY(-2px);
}

.navbar-icon-btn i {
    font-size: 16px;
}

/* 用户信息 */
/* 登录链接样式 */
.login-link {
    display: flex;
    color: #ffffff !important;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #6DB3F2, #42a5f5);
    border-radius: 20px;
    color: white !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(109, 179, 242, 0.4);
    color: white !important;
}

.login-link span, .login-link i {
    color: #ffffff !important;
}

/* 用户状态容器 */
.user-state {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 导航栏用户角色标识 */
.user-role-badge-nav {
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(109, 179, 242, 0.2);
    color: #6DB3F2;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(109, 179, 242, 0.2);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.navbar-user:hover {
    background: rgba(109, 179, 242, 0.15);
    transform: translateY(-2px);
}

.dropdown-icon {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease;
}

/* 用户下拉菜单 */
.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 180px;
    background: rgba(26, 26, 46, 0.98);
    border: 1px solid rgba(109, 179, 242, 0.3);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    z-index: 1001;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(109, 179, 242, 0.2);
    color: white;
}

.dropdown-item.logout-item {
    color: rgba(255, 92, 147, 0.9);
}

.dropdown-item.logout-item:hover {
    background: rgba(255, 92, 147, 0.15);
    color: #ff5c93;
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(109, 179, 242, 0.5);
}

.user-name {
    font-size: 14px;
    color: #1a237e;
    font-weight: 500;
}

/* 导航栏占位符（防止内容被遮挡）*/
.navbar-placeholder {
    height: 65px;
}

/* 导航栏滚动效果 - 保持浅色主题，不改变颜色 */
.top-navbar.scrolled {
    /* 保持原有的白色半透明背景，不做深色处理 */
    /* background: rgba(26, 26, 46, 0.98); */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .navbar-container {
        padding: 0 15px;
        height: 60px;
    }
    
    .navbar-brand span {
        display: none;
    }
    
    .nav-link span {
        display: none;
    }
    
    .navbar-links {
        gap: 2px;
    }
    
    .nav-link {
        padding: 8px 10px;
    }
    
    .navbar-stats {
        display: none;
    }
    
    .navbar-placeholder {
        height: 60px;
    }
}

/* ==================== 文章详情页样式 ==================== */

/* 返回导航 */
.back-nav {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    padding: 0 40px;  /* 与page-header的左右padding一致 */
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 2px solid rgba(109, 179, 242, 0.3);  /* 深色主题边框 */
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateX(-2px);
    border-color: rgba(109, 179, 242, 0.5);
}

/* 文章详情容器 - 用边框框定 */
.article-detail-container {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(109, 179, 242, 0.3);
    border-radius: 20px;
    padding: 40px;
    margin: 0 40px;  /* 与其他页面元素左右对齐 */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* 文章头部 */
.article-detail-header {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(109, 179, 242, 0.2);
}

.article-detail-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.4;
}

.article-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item i {
    color: rgba(109, 179, 242, 0.8);
}

.article-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* 文章封面 */
.article-detail-cover {
    width: 100%;
    max-height: 400px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.article-detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 文章内容 */
.article-detail-content {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.article-detail-content p {
    margin-bottom: 16px;
}

.article-detail-content p:empty {
    display: none;
}

/* Markdown样式 */
.article-detail-content h1,
.article-detail-content h2,
.article-detail-content h3,
.article-detail-content h4 {
    color: #6DB3F2;
    margin-top: 24px;
    margin-bottom: 16px;
    font-weight: 600;
}

.article-detail-content h1 { font-size: 28px; }
.article-detail-content h2 { font-size: 24px; }
.article-detail-content h3 { font-size: 20px; }
.article-detail-content h4 { font-size: 18px; }

.article-detail-content code {
    background: rgba(109, 179, 242, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    color: #ff79c6;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
}

.article-detail-content pre {
    background: rgba(0, 0, 0, 0.4);
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 16px 0;
    border: 1px solid rgba(109, 179, 242, 0.2);
}

.article-detail-content pre code {
    background: transparent;
    padding: 0;
    color: #f8f8f2;
}

.article-detail-content blockquote {
    border-left: 4px solid #6DB3F2;
    padding-left: 16px;
    margin: 16px 0;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

.article-detail-content ul,
.article-detail-content ol {
    padding-left: 24px;
    margin: 16px 0;
}

.article-detail-content li {
    margin-bottom: 8px;
}

.article-detail-content a {
    color: #6DB3F2;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.article-detail-content a:hover {
    color: #9DD4FF;
}

.article-detail-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 16px 0;
}

.article-detail-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 16px 0;
}

.article-detail-content th,
.article-detail-content td {
    border: 1px solid rgba(109, 179, 242, 0.3);
    padding: 8px 12px;
    text-align: left;
}

.article-detail-content th {
    background: rgba(109, 179, 242, 0.2);
    font-weight: 600;
}

.article-detail-content hr {
    border: none;
    border-top: 1px solid rgba(109, 179, 242, 0.3);
    margin: 24px 0;
}

/* 文章互动区 */
.article-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 30px 0;
    border-top: 1px solid rgba(109, 179, 242, 0.2);
    border-bottom: 1px solid rgba(109, 179, 242, 0.2);
    margin-bottom: 30px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(109, 179, 242, 0.4);  /* 深色主题边框 - 2px更明显 */
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);  /* 深色主题白色文字 */
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

body.light-page .action-btn {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid rgba(109, 179, 242, 0.5) !important;  /* 浅色主题边框 */
    color: #1a237e !important;  /* 浅色主题深色文字 */
}

.action-btn:hover {
    background: rgba(109, 179, 242, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(109, 179, 242, 0.3);
}

.action-btn i {
    font-size: 18px;
}

.like-btn.liked {
    background: rgba(255, 92, 147, 0.2);
    border-color: rgba(255, 92, 147, 0.6);  /* 加深边框 */
    color: #ff5c93;
}

.like-btn.liked i {
    color: #ff5c93;
}

body.light-page .like-btn.liked {
    background: rgba(255, 92, 147, 0.15) !important;
    border-color: rgba(255, 92, 147, 0.7) !important;  /* 浅色主题选中状态边框 */
    color: #ff5c93 !important;
}

/* 文章导航 */
.article-navigation {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.nav-article {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(109, 179, 242, 0.2);
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-article:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    border-color: rgba(109, 179, 242, 0.5);
}

.nav-label {
    font-size: 12px;
    color: rgba(109, 179, 242, 0.8);
    text-transform: uppercase;
}

.nav-title {
    font-size: 16px;
    color: #fff;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.next-article {
    text-align: right;
}

/* 推荐文章 */
.recommended-articles {
    margin-bottom: 40px;
}

/* 章节标题 - 深色文字适配浅色背景 */
.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #0d47a1;  /* 深蓝色，在浅色背景下清晰 - 用户可通过F12修改 */
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: #42a5f5;  /* 天蓝色图标 - 保持不变 */
}

.recommended-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* 推荐文章卡片 - 参考文章卡片设计 */
.recommended-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(109, 179, 242, 0.2);
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.recommended-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(109, 179, 242, 0.3);
    border-color: rgba(109, 179, 242, 0.5);
}

/* 推荐文章标签 - 右上角 */
.recommended-tags {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    max-width: 70%;
    justify-content: flex-end;
}

.recommended-tags .article-tag {
    font-size: 11px;
    padding: 3px 8px;
    opacity: 0.95;
}

/* 推荐文章封面 */
.recommended-cover {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.recommended-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recommended-card:hover .recommended-cover img {
    transform: scale(1.1);
}

/* 推荐文章内容 */
.recommended-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.recommended-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.recommended-excerpt {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommended-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: auto;
}

.recommended-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.recommended-meta i {
    color: rgba(109, 179, 242, 0.8);
    font-size: 11px;
}

/* 评论区样式 */
.comments-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid rgba(109, 179, 242, 0.3);
}

.comment-count {
    font-size: 16px;
    font-weight: normal;
    color: rgba(0, 0, 0, 0.6);
}

/* 评论输入区 */
.comment-input-area {
    margin-bottom: 30px;
}

.comment-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(109, 179, 242, 0.2);
    overflow: hidden;
}

body.light-page .comment-form {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

body.light-page .form-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

body.light-page .form-header h4 {
    color: #1a237e !important;
}

body.light-page .form-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
}

/* ========== 浅色主题下所有白色文字改为黑色 ========== */
/* 原则：白色背景配黑色文字，确保清晰可见 */

/* 碎碎念相关 */
body.light-page .moment-author {
    color: #000 !important;
}

body.light-page .moment-time {
    color: rgba(0, 0, 0, 0.6) !important;
}

body.light-page .moment-actions {
    color: rgba(0, 0, 0, 0.6) !important;
}

body.light-page .mood-tag {
    color: #6DB3F2 !important;
}

/* 友链相关 */
body.light-page .friends-notice {
    background: rgba(255, 255, 255, 0.9) !important;
}

body.light-page .friends-notice h3 {
    color: #1a237e !important;
}

body.light-page .friends-notice p,
body.light-page .friends-notice li {
    color: rgba(0, 0, 0, 0.8) !important;
}

body.light-page .friend-link {
    color: #1a202c !important;
}

body.light-page .friend-date {
    color: rgba(0, 0, 0, 0.6) !important;
}

/* 时间轴相关 */
body.light-page .timeline-node {
    border-color: #e8f1f8 !important;  /* 匹配页面背景 */
}

body.light-page .timeline-text p {
    color: #1a202c !important;
}

/* 页面标题和副标题 */
body.light-page .page-title {
    color: #1a237e !important;
}

body.light-page .page-subtitle {
    color: rgba(0, 0, 0, 0.6) !important;
}

/* 信息卡片内容 */
body.light-page .stat-label {
    color: rgba(0, 0, 0, 0.6) !important;
}

body.light-page .stat-value {
    color: #1a237e !important;
    font-weight: 600;
}

body.light-page .author-name {
    color: #1a237e !important;
}

body.light-page .author-bio {
    color: rgba(0, 0, 0, 0.7) !important;
}

/* 筛选标签 */
body.light-page .filter-bar span {
    color: rgba(0, 0, 0, 0.7) !important;
}

/* 加载更多按钮 */
body.light-page .load-more-btn {
    color: #1a237e !important;
    border-color: rgba(109, 179, 242, 0.4) !important;
}

body.light-page .load-more-btn:hover {
    background: rgba(109, 179, 242, 0.1) !important;
    color: #6DB3F2 !important;
}

/* 评论区标题 */
body.light-page .section-title {
    color: #1a237e !important;
}

body.light-page .comment-count {
    color: rgba(0, 0, 0, 0.6) !important;
}

/* 字符计数 */
body.light-page .char-counter {
    color: rgba(0, 0, 0, 0.5) !important;
}

/* Markdown预览区标题 */
body.light-page .preview-header {
    color: #1a237e !important;
}

/* ========== 文章详情页浅色主题 ========== */
body.light-page .article-detail-container {
    background: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(109, 179, 242, 0.3) !important;
}

body.light-page .article-detail-title {
    color: #1a237e !important;
}

body.light-page .article-detail-meta {
    color: rgba(0, 0, 0, 0.6) !important;
}

body.light-page .meta-item {
    color: rgba(0, 0, 0, 0.6) !important;
}

body.light-page .article-detail-content {
    color: #1a202c !important;
}

body.light-page .article-detail-content h1,
body.light-page .article-detail-content h2,
body.light-page .article-detail-content h3,
body.light-page .article-detail-content h4 {
    color: #1a237e !important;
}

body.light-page .article-detail-content p,
body.light-page .article-detail-content li {
    color: #1a202c !important;
}

body.light-page .article-detail-content code {
    background: rgba(109, 179, 242, 0.1) !important;
    color: #1a237e !important;
}

body.light-page .article-detail-content pre {
    background: rgba(0, 0, 0, 0.05) !important;
}

body.light-page .article-detail-content pre code {
    background: transparent !important;
    color: #1a202c !important;
}

body.light-page .article-detail-content blockquote {
    border-left-color: #6DB3F2 !important;
    background: rgba(109, 179, 242, 0.05) !important;
    color: rgba(0, 0, 0, 0.8) !important;
}

/* 文章导航按钮 */
body.light-page .back-nav {
    color: #1a237e !important;
}

/* 注意：HTML中使用的是 back-btn 类，不是 nav-btn */
body.light-page .back-btn {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #1a237e !important;
    border: 2px solid rgba(109, 179, 242, 0.4) !important;
}

body.light-page .back-btn:hover {
    background: rgba(109, 179, 242, 0.15) !important;
    border-color: #6DB3F2 !important;
}

/* 文章详情页导航文字 */
body.light-page .nav-label {
    color: #6DB3F2 !important;
}

body.light-page .nav-title {
    color: #1a237e !important;
}

body.light-page .nav-article {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(109, 179, 242, 0.3) !important;
}

body.light-page .nav-article:hover {
    background: rgba(109, 179, 242, 0.12) !important;
    border-color: #6DB3F2 !important;
}

.form-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(109, 179, 242, 0.2);
}

.form-header h4 {
    font-size: 16px;
    color: #fff;
    margin: 0;
}

.form-body {
    padding: 20px;
}

.comment-textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(109, 179, 242, 0.2);
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    margin-bottom: 16px;
    font-family: inherit;
}

.comment-textarea:focus {
    outline: none;
    border-color: rgba(109, 179, 242, 0.5);
    box-shadow: 0 0 0 3px rgba(109, 179, 242, 0.1);
}

.comment-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* 字数统计 */
.char-counter {
    text-align: right;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
}

.char-counter span {
    font-weight: 600;
    transition: color 0.3s ease;
    color: inherit !important;  /* 确保继承父元素颜色，不被覆盖 */
}

body.light-page .char-counter {
    color: rgba(0, 0, 0, 0.6) !important;
}

body.light-page .char-counter span {
    color: inherit !important;
}

/* 评论标签页 */
/* 评论编辑器容器 - 左右分栏布局 */
.comment-editor-container {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

/* 左侧编辑区域 */
.comment-editor-left {
    flex: 1;
    min-width: 0;
    transition: all 0.3s ease;
}

/* 当预览显示时，左侧占一半 */
.comment-editor-container.with-preview .comment-editor-left {
    flex: 1;
}

/* 右侧预览区域 */
.comment-editor-right {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(109, 179, 242, 0.2);
    border-radius: 12px;
    overflow: hidden;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 回复框样式 */
.reply-box {
    animation: slideInRight 0.3s ease;
}

body.light-page .reply-box {
    background: rgba(109, 179, 242, 0.1) !important;
    border-left-color: #6DB3F2 !important;
}

body.light-page .reply-box .reply-textarea {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(109, 179, 242, 0.4) !important;
    color: #2d3748 !important;
}

body.light-page .reply-box .reply-textarea::placeholder {
    color: rgba(45, 55, 72, 0.5) !important;
}

body.light-page .reply-box .btn-cancel-reply {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
    color: #2d3748 !important;
}

body.light-page .reply-box .btn-submit-reply {
    background: linear-gradient(135deg, #6DB3F2, #42a5f5) !important;
}

body.light-page .reply-box .reply-preview {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #2d3748 !important;
}

/* 预览区域标题 */
.preview-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(109, 179, 242, 0.1);
    border-bottom: 1px solid rgba(109, 179, 242, 0.2);
    color: #6DB3F2;
    font-size: 14px;
    font-weight: 600;
}

/* 评论区的Markdown预览样式 */
.comment-markdown-preview {
    padding: 16px;
    max-height: 200px;
    overflow-y: auto;
    min-height: 150px;
}

/* Markdown预览区域 */
.markdown-preview {
    min-height: 120px;
    max-height: 300px;
    overflow-y: auto;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(109, 179, 242, 0.2);
    border-radius: 12px;
    color: #fff;
    line-height: 1.6;
    font-size: 14px;
}

.markdown-preview h1,
.markdown-preview h2,
.markdown-preview h3,
.markdown-preview h4 {
    color: #6DB3F2;
    margin: 12px 0 8px 0;
}

.markdown-preview h1 { font-size: 20px; }
.markdown-preview h2 { font-size: 18px; }
.markdown-preview h3 { font-size: 16px; }
.markdown-preview h4 { font-size: 14px; }

.markdown-preview code {
    background: rgba(109, 179, 242, 0.15);
    padding: 2px 5px;
    border-radius: 3px;
    color: #ff79c6;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
}

.markdown-preview pre {
    background: rgba(0, 0, 0, 0.4);
    padding: 12px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 8px 0;
}

.markdown-preview pre code {
    background: transparent;
    padding: 0;
    color: #f8f8f2;
}

.markdown-preview blockquote {
    border-left: 3px solid #6DB3F2;
    padding-left: 12px;
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.8);
}

.markdown-preview ul,
.markdown-preview ol {
    padding-left: 20px;
    margin: 8px 0;
}

.markdown-preview a {
    color: #6DB3F2;
    text-decoration: underline;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.form-input {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(109, 179, 242, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: rgba(109, 179, 242, 0.5);
    box-shadow: 0 0 0 3px rgba(109, 179, 242, 0.1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-footer {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(109, 179, 242, 0.2);
}

.submit-comment-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: rgba(109, 179, 242, 0.3);
    border: 1px solid rgba(109, 179, 242, 0.5);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

body.light-page .submit-comment-btn {
    background: #6DB3F2 !important;  /* 实色背景，文字才清晰 */
    border-color: #6DB3F2 !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(109, 179, 242, 0.3) !important;
}

.submit-comment-btn:hover:not(:disabled) {
    background: rgba(109, 179, 242, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(109, 179, 242, 0.3);
}

body.light-page .submit-comment-btn:hover:not(:disabled) {
    background: #5ba3e2 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(109, 179, 242, 0.4) !important;
}

.submit-comment-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.comment-tip {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

body.light-page .comment-tip {
    color: #7b8a96 !important;  /* 浅色主题深色提示文字 */
}

/* 表单错误提示 */
.form-errors {
    margin-top: 12px;
    padding: 12px;
    background: rgba(255, 92, 147, 0.1);
    border: 1px solid rgba(255, 92, 147, 0.3);
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
}

.form-errors .error-item {
    display: block;
    color: rgba(255, 92, 147, 0.9);
    margin-bottom: 4px;
}

.form-errors .error-item:last-child {
    margin-bottom: 0;
}

.form-errors small {
    display: block;
    color: rgba(255, 193, 7, 0.8);
}

/* 输入框错误状态 */
.form-input.error,
.comment-textarea.error {
    border-color: rgba(255, 92, 147, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 92, 147, 0.1);
}

/* 评论列表 */
.comments-list {
    margin-top: 30px;
}

.no-comments {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.5);
}

body.light-page .no-comments {
    color: #546e7a !important;  /* 深色主题在浅色背景下清晰可见 */
}

.no-comments i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    opacity: 0.5;
}

body.light-page .no-comments i {
    opacity: 0.7 !important;
    color: #7b8a96 !important;
}

.no-comments p {
    font-size: 16px;
    margin: 0;
}

/* 错误提示 */
.error-message {
    text-align: center;
    padding: 80px 20px;
    color: rgba(255, 255, 255, 0.7);
}

.error-message i {
    font-size: 64px;
    color: rgba(255, 92, 147, 0.8);
    margin-bottom: 20px;
    display: block;
}

.error-message h3 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 30px;
}

/* 文章详情页响应式 */
@media (max-width: 768px) {
    .article-detail-container {
        padding: 20px;
    }
    
    .article-detail-title {
        font-size: 24px;
    }
    
    .article-detail-meta {
        font-size: 12px;
        gap: 12px;
    }
    
    .article-detail-content {
        font-size: 15px;
    }
    
    .article-navigation {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .recommended-list {
        grid-template-columns: 1fr;
    }
    
    .recommended-cover {
        height: 140px;
    }
    
    .back-nav {
        flex-wrap: wrap;
    }
}

/* ==================== 浮动按钮组 ==================== */

.float-buttons {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.float-buttons.show {
    opacity: 1;
    visibility: visible;
}

.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(109, 179, 242, 0.9);
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(109, 179, 242, 0.3);
    backdrop-filter: blur(10px);
}

.float-btn:hover {
    background: rgba(109, 179, 242, 1);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(109, 179, 242, 0.5);
}

.float-btn:active {
    transform: translateY(-1px);
}

/* 评论按钮特殊样式 */
.comment-btn {
    background: rgba(255, 107, 161, 0.9);
}

.comment-btn:hover {
    background: rgba(255, 107, 161, 1);
    box-shadow: 0 6px 16px rgba(255, 107, 161, 0.5);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .float-buttons {
        right: 20px;
        bottom: 20px;
        gap: 10px;
    }
    
    .float-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* ===== 顶部导航统一覆盖（所有页面保持一致） ===== */
.top-navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.top-navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 3px 14px rgba(0,0,0,0.14);
}
.navbar-links {
    display: flex;
    align-items: center;
    gap: 22px !important;
}
.navbar-links .nav-link {
    color: #1f2933 !important;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 10px;
}
.navbar-links .nav-link:hover,
.navbar-links .nav-link.active {
    color: #0d8bff !important;
    background: rgba(13, 139, 255, 0.12);
}

/* ===== 顶部导航栏统一样式 & 间距覆盖 ===== */
.top-navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}
.top-navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.14);
}
.navbar-links {
    display: flex;
    align-items: center;
    gap: 22px !important;
}
.navbar-links .nav-link {
    color: #1f2933 !important;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 10px;
}
.navbar-links .nav-link:hover,
.navbar-links .nav-link.active {
    color: #0d8bff !important;
    background: rgba(13, 139, 255, 0.12);
}
