/* 总样式 */
* {
    font-family: "Songti SC","Times New Roman",Georgia,Serif;
}

p {
    font-size: 16px; 
    line-height: 1.5;
}

a {
    text-decoration: underline;
    color: black;
}

a:hover {
    color: rgba(107, 183, 254, 0.81);
}

.small {
    font-size: 0.8em;
    color: #b59e7d;
    text-align: right;
}

.important {
    font-style: italic;
}

.cross {
    text-decoration: line-through;
}

.bold {
    font-weight: bold;
}

.quotes, .work-name {
    font-family: Arial, Helvetica, sans-serif;
    font-style: italic;
    color: #999;
    margin: 0 3px;
    font-size: 0.95em;
}

.quotes {
    border-left: #cecece solid 3px;
    padding-left: 7px;
    padding-right: 40px;
}

/* 主页 */
.background {
    position: absolute;
    display: flex;
    justify-content: center;
    background-color: #CEC1A8;
    top: 120px;
    bottom: 20px;
    left: 50px;
    right: 50px;
    opacity: 60%;
    z-index: -1;
} 

.logo {
    position: absolute;
    top: 125px;
    right: 275px;
    display: flex;
}

.logo img {
    display: block;
}

#cat {
    position: absolute;
    left: 8%;
    bottom: 0;
}

.nar {
    background-color: #fbf7f1;
    border-radius: 30px;
    border: 2px solid #584738;
    padding: 25px 50px;
    font-size: 20px; 
    line-height: 1.6;
}

.nar {
    position: absolute;
    top: 335px;
    right: 350px;
}

.update {
    position: absolute;
    top: 535px;
    right: 558px;
    background-color: #fbf7f1;
    border-radius: 30px;
    border: 2px solid #584738;
    padding-left: 50px;
    padding-top: 20px;
    padding-bottom: 20px;
    font-size: 20px; 
    line-height: 1.6;
    width: 300px;
}

.update > li a {
    text-decoration: none;
}

.small {
    font-size: 14px;
    font-weight: 600;
    color: #b59e7d;
    text-align: right;
}

#button {
    list-style: none;
    color: #584738;
    font-size: 20px;
    font-weight: bold; 
    line-height: 55px;
    position: absolute;
    right: 320px;
    top: 550px;
}

#button_red {
    max-width: 50px;
    position: absolute;
    right: 490px;
    top: 575px;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.01s ease;
}

#button_green {
    max-width: 50px;
    position: absolute;
    right: 490px;
    top: 630px;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.01s ease;
}

#button_blue {
    max-width: 50px;
    position: absolute;
    right: 490px;
    top: 685px;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.01s ease;
}

#button_red1 {
    max-width: 50px;
    position: absolute;
    right: 490px;
    top: 580px;
}

#button_green1 {
    max-width: 50px;
    position: absolute;
    right: 490px;
    top: 635px;
}

#button_blue1 {
    max-width: 50px;
    position: absolute;
    right: 490px;
    top: 690px;
}

.fade-out {
    opacity: 0;
}

/* 导航栏 */
body {
    margin: 0;
    padding: 0;
}

.nav {
    list-style: none;
    text-align: end;
    position: fixed;
    top: 0;       /* 明确顶部位置 */
    left: 0;      /* 明确左侧位置，防止偏移 */
    margin: 0;
    padding: 20px 60px; /* 左右 padding 保持和标题一致 */
    background: #584738;
    width: 100%;
    box-sizing: border-box; /* 重要：防止 padding 撑开总宽度 */
    z-index: 100; /* 确保它在最最前面 */
}

.nav li {
    display: inline-block;
    position: relative;
    text-align: center;
}

.nav li a {
    background: #584738;
    display: inline-table;
    text-decoration: none;
    font-size: 20px;
    text-align: center;
    color: white;
}

.title {
    padding: 8px 60px;
}

.dropdown {
    text-align: center;
    color: white;
    display: block;
    width: 100px;
    background: #584738;
    position: absolute;
    right: 24px;
    top: 39px;
    line-height: 30px;
    padding: 10px;
    display: none;
}

.nav li a:hover {
    color: rgb(67, 130, 255);
}

.nav li:hover .dropdown {
    display: block;
}

/* 遮罩层：变暗效果 */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 网页变暗 */
    z-index: 9999;
    backdrop-filter: blur(3px); /* 轻微模糊 */
}

/* 包装层：用于定位关闭按钮 */
.board-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 公告板主体：严格参考 .note 样式 */
.announcement-board {
    width: 800px;
    height: 500px;
    background-color: #fbf7f1; /* 统一底色 */
    border-radius: 15px;      /* 统一圆角 */
    padding: 30px 40px;
    border: 1px solid #cec1ab; /* 实线边框 */
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* 标题居中并带有分割线 */
.board-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #cec1ab; /* 标题与正文间的分割线 */
    display: flex;
    justify-content: center; /* 标题居中 */
}

/* 标题字体样式 */
.board-header .note-title {
    font-size: 1.4rem;
    color: #b59e7d;
    font-weight: bold;
}

/* 正文内容区域 */
.board-content {
    flex: 1;
    overflow-y: auto;
    color: #584738;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* 外侧右上角叉号 */
.close-btn-outer {
    position: absolute;
    top: -40px;  /* 向上偏移到板子外侧 */
    right: -40px; /* 向右偏移到板子外侧 */
    font-size: 40px;
    color: #ffffff; /* 白色在深色遮罩上更清晰 */
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
}

.close-btn-outer:hover {
    color: #cec1ab;
    transform: scale(1.1);
}

/* 内部标签样式（可选） */
.note-info {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}
.note-tag {
    font-size: 0.8rem;
    color: #b59e7d;
    background-color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #cec1ab;
}

/* 侧边栏 */
.left-bar, .right-bar, .left-bar-1 {
    background-color: #fbf7f1;
    border-radius: 15px;
    font-size: 16px; 
    line-height: 1.5;
    margin-top: 100px;
    display: inline;
}

.left-bar, .left-bar-1 {
    float: inline-start;
    left: 25px;
    padding: 0px 10px;
    width: 200px;
    height: auto;
    max-height: 85vh;
    overflow-y: auto;
    position: fixed;
}

.left-bar > ul > li > a {
    text-decoration: none;
}

.right-bar {
    position: fixed;
    right: 30px;
    width: 360px;
    background-color: #fbf7f1;
    border-radius: 15px;
    padding: 20px;
    margin-top: 100px;
    display: flex;
    flex-direction: column;
    gap: 30px; /* 控制 1, 2, 3 部分之间的间距 */
}

.bar-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #584738;
    display: flex;
    justify-content: flex-start;
    margin-bottom: 10px;
}

.bar-title-right {
    font-size: 1.2em;
    font-weight: bold;
    color: #584738;
    display: flex;
    justify-content: flex-start;
    margin: 0 20px;
}

.right-bar {
    display: inline-block;
    position: fixed;
    right: 30px;
    width: 360px;
    background-color: #fbf7f1;
    border-radius: 15px;
    font-size: 16px; 
    line-height: 1.5;
    padding: 15px; /* 适当增加内边距 */
    margin-top: 100px;
}

.right-bar-1 {
    margin-top: 10px;
    margin-bottom: 50px;
    color: #fbf7f1;
    border-radius: 15px;
    list-style-type: disc;
}

.right-bar-3 {
    background-color: #fbf7f1;
    border-radius: 15px;
}
        
.column-date {
    margin: 10px 0;
    font-weight: bold;
}

.left-bar-1 ul, .left-bar ul li ul {
    padding-left: 0;
}
        
.left-bar-1 ul li, .left-bar ul ul li {
    list-style: none;
    position: relative;
}

.left-bar-1 ul li a, .left-bar ul ul li a, .right-bar-1 ul li a {
    text-decoration: none;
    color: #584738;
    display: block;
    padding: 5px 5px;
    border-radius: 5px;
    transition: all 0.2s;
    font-size: 0.95rem;
}
        
.left-bar-1 ul li a:hover, .left-bar ul ul li a:hover {
    background-color: #e8dfd3;
    color: #333;
    transform: translateX(2px);
    margin-right: 25px;
}
        
.left-bar-1 ul li a.active, .left-bar ul ul li a.active {
    background-color: #584738;
    color: white;
    margin-right: 13px;
}

.right-bar-1 ul {
    padding-left: 20px; /* 为实心圆点留出空间 */
    margin-top: 20px;
}

.right-bar-1 ul li {
    list-style-type: disc; 
    color: #584738;
    display: list-item;
    margin-bottom: 8px;
    display: list-item;
}

.right-bar-1 li {
    display: list-item;
}

.right-bar-1 ul li {
    display: list-item;
    list-style-position: outside;
    margin-bottom: 5px;
    clear: both;
    overflow: hidden; /* 清除浮动或配合布局 */
    list-style-type: disc;
    color: #584738;
    position: relative;
    padding-right: 120px; /* 为右侧日期留出空间 */
    list-style-position: outside;
}

.right-bar-1 ul li a {
    display: inline-block; /* 恢复为行内块 */
    color: #584738;
    padding: 0;
    font-size: 0.95rem;
    background-color: #e8dfd3;
    padding: 2px 8px;
    border-radius: 5px;
    transition: all 0.2s;
}

.right-bar-1 ul li a:hover {
    color: rgba(107, 183, 254, 0.81);
}

.right-bar-1 .small {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 0.8rem;
    color: #888;
    margin-right: 50px;
}

/* 设置平滑滚动，点击目录时页面会丝滑滑动 */
html {
    scroll-behavior: smooth;
}

/* 防止跳转后标题被导航栏遮挡 (假设导航栏高度约80px) */
.src h3 {
    scroll-margin-top: 100px;
}

/* 搜索栏 */
.n-search-area {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 20px;
}

.n-search-box {
    position: relative;
    background: #ffffff;
    border-radius: 30px; /* 统一胶囊圆角 */
    border: 1px solid #e1e8ed;
    box-shadow: 1px 1px 1px 0px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* 交互：点击边框变蓝 */
.n-search-box:focus-within {
    border-color: #3498db;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.15);
}

.n-search-input-group {
    display: flex;
    align-items: center;
    padding: 15px 25px; /* 统一内边距 */
}

.n-search-icon {
    color: #3498db;
    margin-right: 12px;
    display: flex;
}

#noteSearchInput {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: #333;
    background: transparent;
}

/* 结果面板 */
.n-results-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 15px;
    border: 1px solid rgba(225, 232, 237, 0.8);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 2000;
}

.n-result-item {
    padding: 15px 25px;
    border-bottom: 1px solid #f5f8fa;
    cursor: pointer;
    transition: all 0.2s ease;
}

.n-result-item:hover {
    background: #f0f7ff;
    padding-left: 30px; /* 侧滑反馈 */
}

.n-res-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 4px;
    display: block;
}

.n-res-excerpt {
    font-size: 0.85rem;
    color: #7f8c8d;
    display: -webkit-box;
    line-clamp: 1; /* 只显示一行缩略 */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.n-stats-bar {
    padding: 10px 25px;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 0.85rem;
    border-bottom: 1px solid #eee;
}

.n-highlight {
    color: #3498db;
    font-weight: 700;
    text-decoration: underline;
}

.n-no-match {
    padding: 30px;
    text-align: center;
    color: #95a5a6;
}

/* 2. Gallery 搜索专属样式（视觉对齐版） */
.g-search-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 20px;
}

.g-search-box {
    position: relative;
    background: #ffffff;
    /* 统一 30px 胶囊圆角 */
    border-radius: 30px; 
    border: 1px solid #e1e8ed;
    box-shadow: 1px 1px 1px 0px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* 交互：点击边框变蓝，与目录页一致 */
.g-search-box:focus-within {
    border-color: #3498db;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.15);
}

.g-search-input-wrapper {
    display: flex;
    align-items: center;
    padding: 15px 25px;
}

.g-search-icon {
    color: #3498db;
    margin-right: 12px;
    display: flex;
}

#gallerySearchInput {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: #333;
    background: transparent;
}

/* 结果面板：毛玻璃效果 */
.g-results-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 15px;
    border: 1px solid rgba(225, 232, 237, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 2000;
}

.g-result-item {
    padding: 15px 25px;
    border-bottom: 1px solid #f5f8fa;
    cursor: pointer;
    transition: all 0.2s ease;
}

.g-result-item:hover {
    background: #f0f7ff;
    padding-left: 30px; /* 侧滑动画 */
}

.g-res-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
    display: block;
}

.g-res-date {
    font-size: 0.8rem;
    color: #3498db;
    margin-top: 4px;
    display: block;
}

.g-stats-bar {
    padding: 10px 25px;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 0.85rem;
    border-bottom: 1px solid #eee;
}

.g-highlight {
    color: #3498db;
    font-weight: 700;
    text-decoration: underline;
}

.g-no-match {
    padding: 30px;
    text-align: center;
    color: #95a5a6;
}

/* 2. 目录页搜索栏 CSS 样式 */
.dir-search-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 20px;
}

.dir-search-box {
    position: relative;
    background: #ffffff;
    border-radius: 30px; /* 统一胶囊圆角 */
    border: 1px solid #e1e8ed;
    box-shadow: 1px 1px 1px 0px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* 交互：点击边框变蓝 */
.dir-search-box:focus-within {
    border-color: #3498db;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.15);
}

.dir-search-input-wrapper {
    display: flex;
    align-items: center;
    padding: 15px 20px;
}

.dir-search-icon {
    color: #3498db;
    margin-right: 12px;
    display: flex;
    align-items: center;
}

#dirSearchInput {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    color: #333;
    background: transparent;
    padding: 0;
}

/* 结果面板：毛玻璃效果 */
.dir-results-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(225, 232, 237, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 9999;
}

.dir-result-entry {
    padding: 15px 25px;
    border-bottom: 1px solid #f5f8fa;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dir-result-entry:hover {
    background: #f0f7ff;
    padding-left: 30px;
}

.dir-entry-title {
    font-weight: 600;
    color: #2c3e50;
    display: block;
    font-size: 1rem;
}

.dir-entry-desc {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-top: 4px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dir-stats-header {
    padding: 10px 25px;
    background-color: #f8f9fa;
    color: #6c757d;
    font-size: 0.85rem;
    border-bottom: 1px solid #eee;
}

.dir-highlight {
    color: #3498db;
    font-weight: 700;
    text-decoration: underline;
}

.dir-no-match {
    padding: 25px;
    text-align: center;
    color: #95a5a6;
}

/* 资源页搜索专属样式 */
.src-search-area {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 20px;
}

.src-search-box {
    position: relative;
    background: #ffffff;
    border-radius: 30px; /* 统一胶囊圆角 */
    border: 1px solid #e1e8ed;
    box-shadow: 1px 1px 1px 0px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* 激活状态：边框变蓝 */
.src-search-box:focus-within {
    border-color: #3498db;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.15);
}

.src-search-input-group {
    display: flex;
    align-items: center;
    padding: 15px 25px;
}

.src-search-icon {
    color: #3498db;
    margin-right: 12px;
    display: flex;
}

#srcSearchInput {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: #333;
    background: transparent;
}

/* 结果面板 */
.src-results-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 15px;
    border: 1px solid rgba(225, 232, 237, 0.8);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 2000;
}

.src-result-item {
    padding: 12px 25px;
    border-bottom: 1px solid #f5f8fa;
    cursor: pointer;
    transition: all 0.2s ease;
}

.src-result-item:hover {
    background: #f0f7ff;
    padding-left: 30px;
}

.src-res-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
    display: block;
}

.src-res-category {
    font-size: 0.75rem;
    color: #3498db;
    background: #e1f0ff;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 4px;
    display: inline-block;
}

.src-stats-bar {
    padding: 10px 25px;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 0.85rem;
    border-bottom: 1px solid #eee;
}

.src-highlight {
    color: #3498db;
    font-weight: 700;
}

.src-no-match {
    padding: 30px;
    text-align: center;
    color: #95a5a6;
}

.note-container-src {
    display: inline-block;
    margin-top: 100px;
    box-sizing: border-box; 
}

.note-container-src > .note {
    width: 100%;
}

.note-container-src > .note > .note-header > .note-title {
    font-size: 28px;
}

.src a {
    display: block;
}
/* 记事 */
.note-container {
    display: inline-block;
    margin-top: 100px;
    box-sizing: border-box; 
}

.note {
    float: left;
    width: 50%;
    background-color: #fbf7f1;
    border-radius: 15px;
    padding: 20px 30px;
    margin-left: 265px;
    margin-bottom: 30px;
    scroll-margin-top: 120px;
}

.note-header {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #cec1ab
}

.note-title {
    font-size: 1.2rem;
    color: #b59e7d;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
}

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

.note-photo-container {
    display: flex;
    gap: 10px;
    width: 100%;
    align-items: stretch;
    margin-top: 10px;
}

.note-photo-container p:first-child {
    margin-top: 0;
}

.note-photo-container img {
    object-fit: cover;
    max-width: 300px;
    margin-right: 10px;
}

.note-photo-container > .photo {
    width: 450px;
    background-color: #ffffffa1;
}

.note-photo-container > .photo > .slides-wrapper > .slide > img {
    object-fit: contain;
    max-width: 400px;
    margin-left: 25px;
}

.left-column {
    display: flex;
    flex-direction: column; /* 让左侧的两张图片纵向排列 */
    gap: 10px;               /* 占用一定的比例空间 */
}

.note-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    padding-top: 0px;    
}

.note-date {
    justify-content: flex-start;
}

.note-tags {
    gap: 8px;
    justify-content: flex-end;
}

.note-tag {
    font-size: 0.8rem;
    color: #b59e7d;
    background-color: #ffffff;
    margin-right: 2px;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid #cec1ab;
    text-decoration: none;
    transition: all 0.2s;
}

/* 相册 */
.content {
    float: left;
    margin-top: 100px; 
    margin-left: 265px;
}

.gallery {
    display: flex;
    flex-direction: column;
}

.row {
    width: calc(60% + 60px);
    margin-bottom: 15px;
    scroll-margin-top: 120px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 15px;
} 

.post {
    background-color: #fbf7f1;
    flex: 1;
    border-radius: 15px;
    padding: 20px 30px;
}

.row-3 {
    width: calc(60% + 60px);
    height:fit-content;
    margin-bottom: 15px;
    scroll-margin-top: 120px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 15px;
}

.row-1 {
    width: calc(60% + 60px);
    height:fit-content;
    margin-bottom: 15px;
    scroll-margin-top: 120px;
    display: flex;
    flex-direction: row;
    gap: 15px;
}

.row-1 > .post > .photo {
    border-radius: 0;
    aspect-ratio: 2 / 3;
}

.row-1 > .post > .slides-wrapper > .slide > .photo img {
    object-fit: cover;
}

.right-column-3 {
    flex: 1;
    display: flex;
    flex-direction: column; 
    gap: 15px;
    height: 100%;
}

.right-column-3 > .post > .text {
    margin-top: 10px;
    padding-top: 5px;
    font-size: 12px;
} 

.right-column-3 > .post {
    padding: 10px 15px;
    padding-bottom: 20px;
}

.left-column-3 {
    width: 68%;
}

.left-column-4 {
    width: auto;   
}

.left-column-4 > .post > .slides-wrapper > .slide >img {
    object-fit: cover;
    width: 310px;
}

.right-column-4 > .post {
    margin-top: 25px;
}

.right-column-4 > .post:first-child{
    margin-top: 0px;
}

.photo {
    height: auto;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slides-wrapper {
    display: flex; /* 让 slide 横向排列 */
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out; /* 平滑过渡动画 */
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.text {
    margin-top: 20px;
    text-align: end;
    font-family: "Arial";
    font-style: italic;
    color: #999;
    padding-top: 10px;
    border-top: 1px solid #584738;
    font-size: 14px;
}

.post-date {
    font-size: 0.8em;
    margin-right: 15px;
    font-family: "Arial";
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 20px;
    height: 20px;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #584738;
    transition: all 0.3s;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 2%;
}

.carousel-next {
    right: 2%;
}

.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-indicator.active {
    background: rgba(255, 255, 255, 1);
}

.slide {
    min-width: 100%; /* 每张幻灯片占满容器宽度 */
    height: 100%;
}

.directory-container {
    display: inline-block;
    margin-top: 100px;
    box-sizing: border-box; 
}

.directory {
    float: left;
    width: 50%;
    background-color: #fbf7f1;
    border-radius: 15px;
    padding: 20px 30px 10px 30px;
    margin-left: 265px;
    margin-bottom: 30px;
    scroll-margin-top: 120px;
    overflow: hidden;
}

/* 目录标题区域 */
.directory-header {
    margin-bottom: 15px;
    padding-bottom: 15px;
    box-shadow: 2px 2px 1px rgba(0,0,0,0.1);
    /* border-bottom: 1px solid #cec1ab */
}

.directory-title {
    font-size: 1.5rem;
    color: #5a4d3e;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
}

.directory-subtitle {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    padding-top: 0px;    
}

.stats {
    display: flex;
    gap: 15px;
}

.directory-tags {
    margin-right: 15px;
    gap: 8px;
    justify-content: flex-end;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: #5a4d3e;
}

.stat-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 推荐词区域 */
.recommendation {
    position: relative;
    margin: 25px 0 20px;
    padding: 0 25px;
}

.recommendation-text {
    font-size: 16px;
    line-height: 1.6;
    color: #999;
    font-style: italic;
    font-family: "PingFang SC";
    padding: 0 10px;
}

.quote {
    color: #b59e7d;
    font-size: 48px;
    font-weight: bold;
    font-family: cursive;
    position: absolute;
    line-height: 1;
}

.quote-left {
    top: -15px;
    left: 0;
}

.quote-right {
    display: inline-block;
    transform: rotate(180deg);
    animation: flipIn 0.6s ease-out forwards;
    bottom: -20px;
    right: 20px;
}

.info {
    margin-top: 10px;
    color: #5a4d3e;
}

/* 底部信息区域 */
.directory-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 5px;
    border-top: 1px solid #e8dfd3;
}

.creation-date {
    color: #7a6c5a;
    font-size: 14px;
}

.expand-btn {
    background-color: #e8dfd3;
    border: none;
    border-radius: 6px;
    margin-top: 5px;;
    padding: 8px 16px;
    font-size: 14px;
    color: #5a4d3e;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.expand-btn:hover {
    background-color: #d9cdbc;
    transform: translateY(-2px);
}

.expand-icon {
    transition: transform 0.3s;
}

.expanded .expand-icon {
    transform: rotate(180deg);
}

/* 目录条目列表 */
.directory-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.expanded .directory-content {
    max-height: 1000px;
    margin-top: 25px;
}

.directory-list {
    list-style: none;
}

.directory-item {
    padding: 20px;
    border-bottom: 1px solid #e8dfd3;
    transition: background-color 0.2s;
}

.directory-item:hover {
    background-color: #f5f0e8;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.item-name {
    font-weight: 700;
    font-size: 18px;
    color: #2c6fb7;
    text-decoration: none;
    transition: color 0.2s;
}

.item-name:hover {
    color: #1a4d8c;
    text-decoration: underline;
}

.item-type {
    font-size: 13px;
    color: #7a6c5a;
    background-color: #f0e9df;
    padding: 4px 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.item-recommendation {
    position: relative;
    padding: 0 20px;
    margin-top: 8px;
}

.item-recommendation-text {
    font-size: 14px;
    line-height: 1.5;
    color: #7a6c5a;
    font-style: italic;
    padding: 0 10px;
}

.item-quote {
    color: #b59e7d;
    font-size: 32px;
    font-family: Georgia, "Times New Roman", serif;
    position: absolute;
    line-height: 1;
}

.item-quote-left {
    top: -8px;
    left: 0;
}

.item-quote-right {
    bottom: -15px;
    right: 0;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .directory-container {
        padding: 20px;
    }
    
    .directory-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .stats {
        gap: 10px;
    }
    
    .item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .quote {
        font-size: 36px;
    }
    
    .quote-left {
        top: -10px;
    }
    
    .quote-right {
        bottom: -18px;
    }
    
    .item-quote {
        font-size: 24px;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 10px;
    }
    
    .search-input-wrapper {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.7rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .query-examples {
        flex-direction: column;
    }
}