/* 定义CSS变量样式 */
:root {
    --primary-color: #e83e3e;
    --hover-color: #f08080;
    --bg-light: #f8f8f8;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-tertiary: #888888;
    --bg-white: #ffffff;
    --bg-light-gray: #f9f9f9;
    --bg-card: #faf6ed;
    --border-color: #e0e0e0;
    --card-shadow: 0 2px 8px rgba(0,0,0,0.1);
    --card-hover-shadow: 0 4px 12px rgba(0,0,0,0.15);
    --gradient-hero: linear-gradient(135deg, #e0f7fa 0%, #fff3e0 50%, #ffe0e0 100%);
    --gradient-footer: linear-gradient(180deg, 
        #fef0f0 0%, 
        #f0fef0 20%, 
        #e8f4f8 40%, 
        #f5f0fa 60%, 
        #fef9e7 80%, 
        #fef9e7 100%);
    /* 淡红色变量用于瀑布流下划线 */
    --waterfall-line-color: #f5a8a8;
    /* 过渡效果变量 */
    --transition-default: all 0.3s ease;
    /* 字体变量 */
    --font-serif: 'Noto Serif SC', serif;
}

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-serif), 'Arial', sans-serif;
}

/* 全局移除所有链接的下划线 */
a {
    text-decoration: none !important;
    color: inherit; /* 继承父元素颜色，确保三栏模块链接样式统一 */
}

body {
    min-height: 100vh;
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
}

/* 页脚样式 */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

/* 随机阅读模块样式 - 向右靠并向下移 */
.footer-col:last-child {
    padding-left: 195px;
    padding-top: 80px;
}

.footer-col:last-child .random-post {
    text-align: left;
}

/* 随机阅读标题向左移动 */
.footer-container .footer-top .footer-col:last-child > h3 {
    margin-left: -40px !important;
    position: relative;
    z-index: 10;
    font-size: 0.9rem !important;
}

.random-post-link {
    display: inline-block;
    transition: var(--transition-default);
}



.random-post-title {
    font-weight: 500;
    color: var(--text-primary);
}

/* 主内容区域占满剩余空间，让页脚固定在底部 */
main {
    flex: 1;
    margin-top: 0; /* 移除顶部外边距，与英雄区紧密连接 */
    background-color: var(--bg-light); /* 确保主内容区域有背景色 */
    position: relative;
    border-top: none; /* 确保没有顶部边框 */
}

/* 添加平滑过渡效果 */
main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, 
        rgba(248, 248, 248, 0), 
        var(--bg-light)
    );
    z-index: 1;
}

/* 导航栏样式 */
nav {
    background-color: var(--bg-white);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--card-shadow);
    border: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    margin-left: 2rem;
    transition: color 0.3s ease;
}

/* 导航链接悬停颜色从蓝色(#3498db)改为黑色(#333) */
.nav-links a:hover {
    color: var(--primary-color);
}

/* 新增：导航栏激活态样式 */
.nav-links a.active {
    color: var(--primary-color);
    font-weight: bold;
}

/* 修复左右两侧的模糊渐变边框 - 使用正确的伪元素 */
.hero-mask-left {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 60px;
    z-index: 3;
    background: linear-gradient(to right, 
        rgba(248,248,248,1), 
        rgba(248,248,248,0));
}

.hero-mask-right {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 60px;
    z-index: 3;
    background: linear-gradient(to left, 
        rgba(248,248,248,1), 
        rgba(248,248,248,0));
}

.hero .content {
    text-align: center;
    z-index: 2;
}

.hero .main-text {
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

/* 碎念栏样式 - 移除背景和边框 */
.mood-section {
    padding: 2rem 0;
    text-align: center;
    background-color: transparent;
    border: none;
    box-shadow: none;
    margin: 0;
}

.hero .sub-text {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-style: italic;
    transition: color 0.3s ease;
}

.hero .tag {
    font-size: 14px;
    color: var(--text-tertiary);
    padding: 6px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

/* 按钮文字颜色从蓝色(#2980b9)改为黑色(#333) */
.btn {
    background-color: var(--bg-white);
    color: var(--text-primary);
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--card-shadow);
    margin-top: 20px;
    display: inline-block;
    z-index: 2;
    position: relative;
}

/* 按钮悬停背景色从浅蓝(#ecf0f1)改为浅灰(#f5f5f5) */
.btn:hover {
    background-color: var(--bg-light-gray);
    transform: translateY(-2px);
}

/* 整体布局容器：轮播+文章列表 左右排列 */
.main-layout {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    padding: 2rem 5% 4rem;
    margin-top: 0;
    /* 统一对齐基准 */
    width: 100%;
    max-width: 100%;
}

@media (max-width: 992px) {
    .main-layout {
        flex-direction: column;
        padding: 2rem 1rem;
    }
}

/* 左侧轮播区域 - 移除固定最小宽度限制 */
.carousel-area {
    flex: 1;
    /* 确保左对齐 */
    margin-left: 0;
    padding-left: 0;
}

/* 右侧文章列表区域 - 移除所有固定尺寸限制 */
.articles-area {
    flex: 1;
    width: 100%;
}

/* 文章列表样式 - 移除背景和边框 */
.articles-area .article-list {
    padding: 2rem 0;
    background-color: transparent;
    border: none;
    box-shadow: none;
    margin: 0;
}

/* 碎念轮播样式 - 固定宽度限制 */
.mood-container {
    width: 100%;
    margin-bottom: 1rem;
    /* 确保左对齐 */
    margin-left: 0;
    padding-left: 0;
}

/* 碎念标题栏 */
.mood-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    /* 确保左对齐 */
    justify-content: flex-start;
}

.mood-tag {
    background-color: var(--primary-color);
    color: white;
    font-size: 14px;
    padding: 2px 8px;
    margin-right: 10px;
}

.mood-title {
    font-size: 16px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

/* 高亮文字样式 */
.highlight-text {
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

/* 图文轮播容器 - 高度设置为300px */
.container {
    display: flex;
    width: 100%;
    height: 300px; /* 固定高度300px */
    min-height: 300px; /* 同步设置最小高度 */
    background: #fff;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    margin-bottom: 15px;
    /* 确保左对齐 */
    margin-left: 0;
    padding-left: 0;
}

/* 左侧图片轮播区 - 为100%宽度 */
.left-section {
    width: 100%;
    position: relative;
    overflow: hidden;
    will-change: transform; /* 性能优化 */
}

.image-slider {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out; /* 优化过渡效果 */
}

.slide {
    min-width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持图片比例并填充容器 */
    /* 图片加载失败时的样式 */
    background-color: #f0f0f0;
    display: block;
}

.slide-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 10px 20px;
    font-size: 18px;
    opacity: 0;
    pointer-events: none;
    z-index: 5;
    transition: opacity 0.3s ease;
}

.left-section:hover .slide-title {
    opacity: 1;
}

/* 横线进度条指示器 */
.progress-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.progress-bar {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.progress-bar.active {
    background: #fff;
    transform: scale(1.2);
    box-shadow: 0 0 5px rgba(255,255,255,0.5);
}

/* 优化：修复轮播进度条动画重复触发的问题 */
.progress-bar.active.animate {
    animation: pulseDot 3s linear forwards;
    animation-fill-mode: both; /* 保持动画结束状态 */
}

@keyframes pulseDot {
    0% { 
        transform: scale(1);
        opacity: 0.7;
    }
    50% { 
        transform: scale(1.3);
        opacity: 1;
    }
    100% { 
        transform: scale(1.2);
        opacity: 1;
    }
}

/* 碎念内容卡片 */
.content-card-original { /* 重命名避免冲突 */
    background-color: var(--bg-card);
    padding: 18px;
    line-height: 1.7;
    color: var(--text-primary);
    font-size: 15px;
    margin-bottom: 30px;
    border-radius: 4px;
    box-shadow: var(--card-shadow);
    /* 确保左对齐 */
    margin-left: 0;
    padding-left: 18px;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* 文章列表样式 - 移除固定最大宽度 */
.articles-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* 单个文章模块样式 - 移除悬停效果 */
.article-card {
    padding: 0.8rem;
    background-color: var(--bg-light-gray);
    border: 3px solid #f0f0f0; /* 使用更淡的边框颜色 */
    box-shadow: var(--card-shadow);
    border-radius: 0;
    width: 100%; /* 确保宽度100% */
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* 移除文章卡片悬停效果 */
.article-card:hover {
    transform: none;
    box-shadow: var(--card-shadow);
}

.article-header {
    margin-bottom: 0.6rem;
}

/* ========== 文章标题改为纯黑色 ========== */
.article-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.0rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

/* 确保文章标题链接也是纯黑色 */
.article-title a {
    color: var(--text-primary) !important;
    transition: color 0.3s ease;
}

/* ========== 文章元信息改为纯黑色 ========== */
.article-meta {
    color: var(--text-secondary);
    font-size: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: color 0.3s ease;
    margin: 0 auto;
    max-width: 800px;
}

.article-meta i {
    margin-right: 0.3rem;
    margin-left: 0.8rem;
}

.article-meta i:first-child {
    margin-left: 0;
}

.article-meta svg {
    width: 12px;
    height: 12px;
    margin-right: 0.15rem;
    vertical-align: middle;
    /* SVG图标颜色 */
    fill: var(--text-secondary);
    transition: fill 0.3s ease;
}

.main-image {
    width: 100%;
    height: auto; /* 改为auto，高度自适应 */
    max-height: 300px; /* 保留最大高度防止图片过大 */
    object-fit: cover;
    margin: 0.6rem 0;
    border: none;
    outline: none;
    border-radius: 0;
    box-shadow: none;
    /* 移除图片悬停透明度变化 */
}

/* 移除文章图片悬停效果 */
.main-image:hover {
    opacity: 1;
}

/* 文章详情页样式 */
.article-content {
    line-height: 1.8;
    color: #333;
    padding: 0 !important;
}

.article-content .image-grid {
    margin: 20px 0;
}

.article-content .image-grid img {
    margin: 20px auto !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 6px !important;
    display: block !important;
    float: none !important;
    clear: both !important;
}

.article-content img {
    margin: 20px auto !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 6px !important;
    display: block !important;
    float: none !important;
    clear: both !important;
}

.article-content p {
    margin-bottom: 16px;
    text-align: justify;
    text-indent: 2em !important;
}

/* 确保图片后面的文字也有缩进 */
.article-content p img {
    display: block;
    margin: 20px auto !important;
    max-width: 100% !important;
    height: auto !important;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.article-content ul,
.article-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content blockquote {
    margin: 20px 0;
    padding: 15px 20px;
    border-left: 4px solid #3498db;
    background-color: #f8f9fa;
    color: #666;
}

.article-content pre,
.article-content code {
    margin: 15px 0;
    border-radius: 4px;
}

/* 三栏内容模块样式 */
.content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 4rem 5%;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
}
.content-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: 300px;
    transform: translateZ(0);
    transition: box-shadow 0.3s ease;
    cursor: pointer;
}
.content-card .img-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.content-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 0.5s ease;
}
/* 核心优化：增大移动幅度至30px + 文字靠底 */
.content-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    /* 增加渐变层整体高度，适配30px移动幅度 */
    padding: 10px 24px 60px; 
    color: #fff;
    /* 渐变覆盖范围扩大，确保30px移动后仍不漏底 */
    background: linear-gradient(to top, 
        rgba(0,0,0,0.85),  /* 底部深黑，文字靠底清晰 */
        rgba(0,0,0,0.6) 30%, 
        rgba(0,0,0,0.3) 75%,
        transparent 100%);
    /* 初始向下偏移30px（移动幅度翻倍），文字更靠底 */
    transform: translateY(30px); 
    transition: transform 0.3s ease;
    box-sizing: border-box;
}
.content-card .tag {
    font-size: 14px;
    margin-bottom: 4px;
    opacity: 0.9;
}
.content-card .title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}
.content-card .desc {
    font-size: 14px;
    opacity: 0.85;
}

/* 悬停效果：文字上移30px，幅度更明显 */
.content-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.content-card:hover img {
    transform: scale(1.1);
}
.content-card:hover .overlay {
    transform: translateY(0); /* 上移30px，交互感极强 */
}
/* 信息卡片 - 4列3行固定布局 + 图片样式 */
.cards {
    padding: 4rem 5%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 1.5rem;
    max-width: 100%;
    margin: 0 auto;
    /* 确保左对齐 */
    justify-items: flex-start;
    margin-left: 0;
    padding-left: calc(5% - 0px);
    width: 100%;
}

.card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* 移除卡片transition */
    background-color: #fff;
    /* 确保卡片左对齐 */
    width: 100%;
    margin-left: 0;
}

/* 移除卡片悬停效果 */
.card:hover {
    box-shadow: var(--card-shadow);
    transform: none;
}

/* 卡片图片样式 */
.card-img {
    width: 100%;
    height: 200px;
    border-radius: 6px;
    object-fit: cover;
    margin-bottom: 1rem;
    /* 移除图片transition */
    /* 图片加载失败样式 */
    background-color: #f5f5f5;
    display: block;
}

/* 移除卡片图片悬停效果 */
.card:hover .card-img {
    opacity: 1;
}

/* 卡片链接样式 */
.card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    /* 移除transition */
}

.card h3 a {
    color: #2c3e50;
    text-decoration: none;
    /* 移除transition */
}

/* 移除卡片标题悬停颜色变化 */
.card h3:hover,
.card h3 a:hover {
    color: #2c3e50;
}

.card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    flex: 1;
    /* 移除transition */
}

.card p a {
    color: #666;
    text-decoration: none;
    /* 移除transition */
}

/* 移除卡片摘要悬停颜色变化 */
.card p:hover,
.card p a:hover {
    color: #666;
}

/* 瀑布流图片样式 */
.waterfall-section {
    max-width: 100%;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}

.waterfall-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
    /* 修改：将红色长线颜色调淡 */
    border-bottom: 2px solid var(--waterfall-line-color);
    padding-bottom: 10px;
}

.waterfall-container {
    column-count: 4;
    column-gap: 10px;
}

/* 优化：瀑布流布局稳定性，避免图片加载前布局塌陷 */
.waterfall-item {
    break-inside: avoid;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    max-width: 100%;
    /* 添加悬停过渡效果 */
    transition: var(--transition-default);
    transform: translateY(0);
    min-height: 100px; /* 预留最小高度 */
}

/* 瀑布流item悬停效果 */
.waterfall-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.waterfall-item img {
    width: 100%;
    height: auto;
    display: block;
    /* 添加图片过渡效果 */
    transition: var(--transition-default);
    max-width: 100%;
    margin: 0 auto;
    /* 图片加载失败样式 */
    background-color: #f8f8f8;
}

/* 前两张图片设置更大的最大宽度 */
.waterfall-item:first-child img,
.waterfall-item:nth-child(2) img {
    max-width: 100%;
}

/* 瀑布流图片悬停缩放和亮度变化 */
.waterfall-item:hover img {
    transform: scale(1.03);
    filter: brightness(1.05);
}

/* 瀑布流图片信息区域 */
.image-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

/* 瀑布流图片元信息 */
.image-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    margin-top: 8px;
    opacity: 0.9;
}

.image-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.image-meta i {
    font-size: 0.9rem;
}

/* 图片信息层样式 */
.image-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
    /* 添加信息层过渡效果 */
    transition: var(--transition-default);
    transform: translateY(100%);
    opacity: 0;
}

/* 图片信息层显示效果 */
.waterfall-item:hover .image-info {
    transform: translateY(0);
    opacity: 1;
}

.image-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.image-desc {
    font-size: 13px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 响应式适配 */
@media (max-width: 1200px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(6, auto);
        /* 响应式下保持左对齐 */
        justify-items: flex-start;
    }
    .card-img {
        height: 220px;
    }
}

@media (max-width: 1024px) {
    .waterfall-container {
        column-count: 3;
    }
    .waterfall-item img {
        max-width: 250px;
    }
    .waterfall-item:first-child img,
    .waterfall-item:nth-child(2) img {
        max-width: 350px;
    }
    /* 三栏模块响应式适配 */
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero .main-text {
        font-size: 24px;
    }

    .hero .sub-text {
        font-size: 14px;
    }

    .hero {
        padding: 3rem 5%;
        min-height: 50vh;
        box-shadow: 0 0 30px 15px rgba(255, 255, 255, 0.8) inset;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        margin-top: 1rem;
    }

    .nav-links a {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .cards {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(12, auto);
        /* 移动端保持左对齐 */
        justify-items: flex-start;
        padding-left: 1rem;
    }
    .card-img {
        height: 240px;
    }
    /* 移动端轮播高度适配 - 同步调整为200px（410px的约一半） */
    .container {
        height: 200px;
        min-height: 200px;
    }

    /* 新增：优化移动端触摸体验 */
    .carousel-area, .articles-area {
        touch-action: pan-y; /* 允许垂直滚动，避免触摸冲突 */
    }

    /* 三栏模块移动端适配 */
    .content-grid {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
    }
    .content-card {
        height: 250px;
    }
}

@media (max-width: 640px) {
    .waterfall-container {
        column-count: 2;
    }
    .waterfall-item img {
        max-width: 100%;
    }
    .image-info {
        padding: 8px;
    }
    .image-title {
        font-size: 12px;
    }
    .image-desc {
        font-size: 10px;
    }
    .waterfall-title {
        font-size: 20px;
    }
    /* 移动端弱化悬停效果 */
    .waterfall-item:hover {
        transform: translateY(-2px);
    }
    .waterfall-item:hover img {
        transform: scale(1.01);
    }
}

/* 页脚样式 - 多色渐变背景 */
.footer {
    background: var(--gradient-footer);
    color: #2d3748;
    padding: 48px 0 20px;
    margin-top: 80px;
}

/* 页脚内容容器 */
.footer-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

/* 页脚上半部分 */
.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 24px;
    padding: 0 0 8px;
    border-bottom: none;
}

/* 随机阅读样式 */
.random-post {
    margin-top: 1rem;
}

.random-post-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}



.random-post-title {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #4a5568;
}

.random-post-excerpt {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.4;
}

.random-post-empty {
    font-size: 0.8rem;
    color: #9ca3af;
    font-style: italic;
}

/* 深色模式适配 */
[data-theme="dark"] .random-post-title {
    color: #e0e0e0;
}

[data-theme="dark"] .random-post-excerpt {
    color: #b0b0b0;
}

[data-theme="dark"] .random-post-empty {
    color: #9ca3af;
}

/* 列标题样式 */
.footer-col h3 {
    font-size: 18px;
    color: #4a5568;
    margin-bottom: 20px;
    padding-left: 0;
    text-align: left;
}

/* 导航列表样式 */
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 12px;
}
.footer-col ul li a {
    color: #6b7280;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* 修改4：页脚链接悬停颜色从紫色(#805ad5)改为黑色(#333) */
.footer-col ul li a:hover {
    color: #333;
    padding-left: 8px;
}

/* 关于我们文本样式 */
.footer-col .about-text {
    color: #6b7280;
    line-height: 1.6;
    text-align: left;
    padding-left: 0;
}

/* 社交图标样式 */
.footer-col .social-list {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}
.footer-col .social-list a {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, #fcd34d 0%, #c7d2fe 100%);
    text-align: center;
    line-height: 40px;
    font-size: 18px;
    color: #4a5568;
    transition: all 0.3s ease;
}

/* 修改5：社交图标悬停背景色从紫蓝渐变改为黑灰渐变 */
.footer-col .social-list a:hover {
    background: linear-gradient(45deg, #333 0%, #666 100%);
    padding-left: 0;
    transform: translateY(-3px);
    color: #ffffff;
}

/* 版权信息栏样式 */
.copyright-bar {
    text-align: center;
    color: #718096;
    font-size: 16px;
    padding: 16px 0 0;
    margin-top: 8px;
    line-height: 1.6;
}
.copyright-bar p {
    margin-bottom: 6px;
}
.copyright-bar p:last-child {
    margin-bottom: 0;
}

/* 版权信息链接颜色从紫色(#805ad5)改为黑色(#333) */
.copyright-bar a {
    color: #333;
    text-decoration: none;
}

/* 版权信息链接悬停颜色从浅紫(#9f7aea)改为深黑(#000) */
.copyright-bar a:hover {
    color: #000;
    text-decoration: underline;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .footer {
        padding: 32px 0 16px;
        margin-top: 40px;
    }
    .footer-top {
        gap: 24px;
        margin-bottom: 16px;
        padding-bottom: 4px;
    }
    .footer-col h3 {
        font-size: 16px;
        margin-bottom: 16px;
        padding-left: 0;
        text-align: left;
    }
    .footer-col .social-list a {
        width: 36px;
        height: 36px;
        line-height: 36px;
        font-size: 16px;
    }
    .copyright-bar {
        font-size: 14px;
        padding: 12px 0 0;
        margin-top: 4px;
    }
}

.progress-text {
    display: block;
    font-size: 12px;
    margin-bottom: 2px;
}

.progress-icon {
    display: block;
    font-size: 16px;
}

/* 深色模式样式 - 蛋黄色调 */
[data-theme="dark"] {
    --bg-light: #fff9e6;
    --text-primary: #5d4037;
    --text-secondary: #795548;
    --text-tertiary: #8d6e63;
    --bg-white: #ffffff;
    --bg-light-gray: #fff3e0;
    --bg-card: #fff8e1;
    --border-color: #ffe0b2;
    --hover-bg: #ffecb3;
    --primary-color: #e65100;
    --hover-color: #ff7043;
    --card-shadow: 0 2px 8px rgba(255,193,7,0.2);
    --card-hover-shadow: 0 4px 12px rgba(255,193,7,0.3);
    --waterfall-line-color: #ffb74d;
}

[data-theme="dark"] body {
    background-color: var(--bg-light);
    color: var(--text-primary);
}

[data-theme="dark"] nav {
    background-color: var(--bg-white);
    color: var(--text-primary);
    box-shadow: var(--card-shadow);
}

[data-theme="dark"] .nav-links a {
    color: var(--text-primary);
}

[data-theme="dark"] .nav-links a:hover {
    color: var(--primary-color);
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #fffde7 0%, #fff9c4 50%, #fff59d 100%);
    box-shadow: 0 0 40px 20px rgba(255, 255, 255, 0.8) inset;
}

[data-theme="dark"] .hero .main-text {
    color: var(--text-primary);
}

[data-theme="dark"] .hero .sub-text {
    color: var(--text-secondary);
}

[data-theme="dark"] .container {
    background: var(--bg-white);
    box-shadow: var(--card-shadow);
}

[data-theme="dark"] .content-card-original {
    background-color: var(--bg-card);
    color: var(--text-primary);
    box-shadow: var(--card-shadow);
}

[data-theme="dark"] .article-card {
    background-color: var(--bg-light-gray);
    border-color: var(--bg-white);
    box-shadow: var(--card-shadow);
}

[data-theme="dark"] .article-title,
[data-theme="dark"] .article-title a {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .article-meta {
    color: var(--text-secondary);
}

[data-theme="dark"] .article-meta svg {
    fill: var(--text-secondary);
}

[data-theme="dark"] .mood-tag {
    background-color: var(--primary-color);
}

[data-theme="dark"] .mood-title {
    color: var(--text-primary);
}

[data-theme="dark"] .highlight-text {
    color: var(--primary-color);
}

[data-theme="dark"] .btn {
    background-color: var(--bg-white);
    color: var(--text-primary);
    box-shadow: var(--card-shadow);
}

[data-theme="dark"] .btn:hover {
    background-color: var(--bg-light-gray);
}

[data-theme="dark"] .hero-mask-left,
[data-theme="dark"] .hero-mask-right {
    background: linear-gradient(to right, 
        rgba(255,249,230,1), 
        rgba(255,249,230,0));
}

[data-theme="dark"] .hero-mask-right {
    background: linear-gradient(to left, 
        rgba(255,249,230,1), 
        rgba(255,249,230,0));
}

[data-theme="dark"] .theme-toggle-btn:hover {
    background-color: rgba(230, 81, 0, 0.1);
}

/* 深色模式下的图片加载失败背景 */
[data-theme="dark"] .slide img {
    background-color: #f0f0f0;
}

/* 深色模式下的轮播标题样式优化 */
[data-theme="dark"] .slide-title {
    background: rgba(0,0,0,0.7);
    color: #ffffff;
}

/* 深色模式下的进度条样式优化 */
[data-theme="dark"] .progress-bar {
    background: rgba(255,255,255,0.3);
}

[data-theme="dark"] .progress-bar.active {
    background: #fff;
}

[data-theme="dark"] .progress-bar::before,
[data-theme="dark"] .progress-bar::after {
    background: rgba(255,255,255,0.7);
}

[data-theme="dark"] .progress-bar.active::before,
[data-theme="dark"] .progress-bar.active::after {
    background: rgba(0,0,0,0.5);
}

/* 文字样式 */
.main-text {
    font-size: 28px;
    color: #333;
    margin-top: 120px;
    text-align: center;
    font-weight: 500;
    z-index: 10;
}

.pinyin {
    font-size: 16px;
    color: #666;
    margin-top: 15px;
    letter-spacing: 1px;
    font-style: italic;
    z-index: 10;
}

.dots {
    font-size: 24px;
    color: #666;
    margin-top: 10px;
    opacity: 0.7;
    z-index: 10;
}

/* 导航标题样式 */
.nav-title-text {
    font-size: 24px; 
    line-height: 1.2;
    font-weight: normal;
}

.navbar-title {
    display: flex;
    align-items: center;
    height: 100%;
}

/* 移动端隐藏广告区域 */
@media (max-width: 768px) {
    .ad-section {
        display: none !important;
    }
}


