/* ============================================
   流年书 - 前台样式
   文艺简约时间轴风格
   ============================================ */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
    background: #f5f3ef;
    color: #4a4a4a;
    line-height: 1.8;
    min-height: 100vh;
}

/* 模块背景图（三模块各自不同默认渐变） */
body.bg-words {
    background: linear-gradient(135deg, #f0ece4 0%, #e8dfd2 50%, #f5f0e8 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body.bg-stories {
    background: linear-gradient(135deg, #e8e0d4 0%, #d8cfc0 50%, #efe8de 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body.bg-albums {
    background: linear-gradient(135deg, #e4e8e0 0%, #d5dcd0 50%, #eef2ea 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* 兼容旧类名 */
body.has-bg-image {
    background-image: url('/static/images/bg-time.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body.has-bg-color {
    background: linear-gradient(135deg, #f8f6f2 0%, #ede8e0 100%);
}

a {
    color: #6b5b4e;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #a08060;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部 */
.site-header {
    background: linear-gradient(135deg, #f8f6f2 0%, #ede8e0 100%);
    border-bottom: 1px solid #e0d8cc;
    padding: 40px 0 30px;
    text-align: center;
}

.site-title {
    margin-bottom: 8px;
}

.site-title img {
    max-height: 72px;
    width: auto;
}

.site-title a {
    display: inline-block;
}

.site-subtitle {
    font-size: 14px;
    color: #a09080;
    letter-spacing: 4px;
    font-weight: 300;
}

.site-nav {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.nav-modules {
    display: flex;
    gap: 4px;
    background: rgba(255,255,255,0.6);
    border-radius: 8px;
    padding: 3px;
}

.nav-home {
    font-size: 13px;
    color: #6b5b4e;
    padding: 5px 12px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.25s;
    white-space: nowrap;
    font-weight: 500;
}

.nav-home:hover {
    color: #5a4a3a;
    background: rgba(255,255,255,0.8);
}

.nav-module {
    font-size: 13px;
    color: #8a7a6a;
    padding: 5px 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.25s;
    white-space: nowrap;
}

.nav-module:hover {
    color: #5a4a3a;
    background: rgba(255,255,255,0.8);
}

.nav-module.active {
    color: #fff;
    background: #6b5b4e;
}

.nav-module-soon {
    color: #c0b8a8;
    cursor: default;
}

.nav-module-soon:hover {
    color: #c0b8a8;
    background: transparent;
}

/* 模块下拉菜单 */
.nav-module-wrap {
    position: relative;
    display: inline-block;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #fff;
    border: 1px solid #e8e0d4;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    padding: 6px 0;
    min-width: 110px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: 100;
    pointer-events: none;
}

.nav-module-wrap:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.nav-dropdown-item {
    display: block;
    padding: 8px 18px;
    font-size: 13px;
    color: #6b5b4e;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.nav-dropdown-item:hover {
    background: #f5f0e8;
    color: #5a4a3a;
}

.nav-dropdown-disabled {
    color: #c0b8a8;
    cursor: default;
}

.nav-dropdown-disabled:hover {
    background: transparent;
    color: #c0b8a8;
}

/* 导航区搜索 */
.nav-search {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.7);
    border-radius: 8px;
    padding: 3px 8px;
    border: 1px solid #e8e0d4;
}

.nav-search-select,
.nav-search-input {
    padding: 4px 8px;
    border: none;
    background: transparent;
    font-size: 12px;
    color: #5a4a3a;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
}

.nav-search-select {
    width: 72px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E") no-repeat right 4px center;
    padding-right: 16px;
}

.nav-search-input {
    width: 70px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.nav-search-input:focus {
    border-bottom-color: #c8b8a0;
}

.nav-search-input::placeholder {
    color: #b8a898;
    font-size: 12px;
}

.nav-search-keyword {
    width: 110px;
}

.nav-search-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #8a7a6a;
    padding: 2px 4px;
    line-height: 1;
    transition: color 0.2s;
}

.nav-search-btn:hover {
    color: #5a4a3a;
}

.nav-search-clear {
    font-size: 14px;
    color: #b0a090;
    text-decoration: none;
    padding: 0 2px;
    line-height: 1;
    transition: color 0.2s;
}

.nav-search-clear:hover {
    color: #e06050;
}

/* 搜索结果条 */
.search-result-bar {
    text-align: center;
    font-size: 13px;
    color: #a09080;
    padding: 10px 0 0;
    letter-spacing: 0.5px;
}

/* 导航用户区 */
.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-user a {
    font-size: 13px;
    color: #7a6a5a;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 6px;
    transition: all 0.25s;
    white-space: nowrap;
}

.nav-user a:hover {
    color: #5a4a3a;
    background: rgba(255,255,255,0.6);
}

/* ========== 流年故事 / 相册 / 话语 发布页 ========== */
.post-create,
.story-create,
.album-create {
    max-width: 720px;
    margin: 0 auto;
    background: rgba(255,255,255,0.92);
    border-radius: 12px;
    padding: 36px 40px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}

.post-create h2,
.story-create h2,
.album-create h2 {
    font-size: 24px;
    font-weight: 300;
    color: #5a4a3a;
    letter-spacing: 4px;
    text-align: center;
    margin-bottom: 8px;
}

.create-desc {
    text-align: center;
    font-size: 14px;
    color: #b0a090;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.post-form,
.story-form,
.album-form {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
}

.story-form .form-group,
.album-form .form-group,
.post-form .form-group {
    margin-bottom: 22px;
}

.story-form label,
.album-form label,
.post-form label {
    display: block;
    font-size: 13px;
    color: #6b5b4e;
    margin-bottom: 8px;
    font-weight: 500;
}

.story-form input[type="text"],
.album-form input[type="text"],
.story-form textarea,
.album-form textarea,
.post-form input[type="text"],
.post-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e0d8cc;
    border-radius: 8px;
    font-size: 14px;
    color: #4a4a4a;
    font-family: inherit;
    transition: border-color 0.3s;
    box-sizing: border-box;
    background: #fff;
}

.story-form input[type="text"]:focus,
.album-form input[type="text"]:focus,
.story-form textarea:focus,
.album-form textarea:focus,
.post-form input[type="text"]:focus,
.post-form textarea:focus {
    outline: none;
    border-color: #a08060;
}

.required {
    color: #d06050;
}

.form-hint {
    font-size: 12px;
    color: #b0a090;
    margin-top: 4px;
    display: block;
}

.form-hint-inline {
    font-size: 12px;
    color: #b0a090;
    font-weight: 300;
}

/* WangEditor 工具栏 */
#editorToolbar {
    border: 1px solid #e0d8cc;
    border-radius: 8px 8px 0 0;
    background: #faf8f5;
}

#editorContent {
    height: 400px;
    min-height: 200px;
    max-height: 800px;
    border: 1px solid #e0d8cc;
    border-top: none;
    border-radius: 0 0 8px 8px;
    resize: vertical;
    overflow: auto;
}

/* 故事列表页 */
.story-list-page,
.album-list-page {
    max-width: 800px;
    margin: 0 auto;
}

.story-list-header,
.album-list-header {
    text-align: center;
    margin-bottom: 30px;
}

.story-list-header h2,
.album-list-header h2 {
    font-size: 24px;
    font-weight: 300;
    color: #5a4a3a;
    letter-spacing: 4px;
    margin-bottom: 8px;
}

.story-list-desc,
.album-list-desc {
    font-size: 13px;
    color: #a09080;
    letter-spacing: 1px;
}

.story-search {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.story-search-input {
    flex: 1;
    min-width: 120px;
    padding: 8px 14px;
    border: 1px solid #e0d8cc;
    border-radius: 6px;
    font-size: 13px;
    color: #4a4a4a;
    background: #fff;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.story-search-input:focus {
    outline: none;
    border-color: #a08060;
}

.story-search-author {
    max-width: 140px;
}

.story-search-btn {
    padding: 8px 18px;
    background: #6b5b4e;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.story-search-btn:hover {
    background: #5a4a3a;
}

.story-search-clear {
    font-size: 13px;
    color: #a09080;
    text-decoration: none;
    padding: 8px 12px;
    border: 1px solid #e0d8cc;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

.story-search-clear:hover {
    color: #5a4a3a;
    border-color: #a08060;
}

/* 故事卡片 */
.story-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.story-card {
    background: rgba(255,255,255,0.92);
    border-radius: 10px;
    padding: 24px 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.story-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.story-card-title {
    font-size: 18px;
    font-weight: 500;
    color: #5a4a3a;
    margin: 0 0 8px;
    line-height: 1.4;
}

.story-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.story-card-title a:hover {
    color: #a08060;
}

.story-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #a09080;
    flex-wrap: wrap;
}

.story-card-author {
    font-weight: 500;
    color: #8a7a6a;
}

.story-card-excerpt {
    font-size: 14px;
    line-height: 1.8;
    color: #6b5b4e;
    margin: 0;
}

.story-card-link {
    align-self: flex-end;
    font-size: 13px;
    color: #a08060;
    text-decoration: none;
    padding: 4px 0;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
}

.story-card-link:hover {
    color: #5a4a3a;
    border-bottom-color: #a08060;
}

/* 故事详情页 */
.story-view {
    max-width: 760px;
    margin: 0 auto;
}

.story-article {
    background: rgba(255,255,255,0.92);
    border-radius: 12px;
    padding: 40px 48px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}

.story-header {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0ebe4;
}

.story-author-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.story-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    flex-shrink: 0;
}

.story-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.story-author-name {
    font-size: 15px;
    font-weight: 500;
    color: #5a4a3a;
}

.story-author-date {
    font-size: 12px;
    color: #b0a090;
}

.story-header-tags {
    display: flex;
    align-items: center;
    gap: 10px;
}

.story-title {
    font-size: 26px;
    font-weight: 500;
    color: #4a3a2a;
    line-height: 1.4;
    margin: 0 0 14px;
    letter-spacing: 1px;
}

.story-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: #a09080;
    flex-wrap: wrap;
}

.story-author {
    font-weight: 500;
    color: #8a7a6a;
}

.story-content {
    font-size: 16px;
    line-height: 2;
    color: #4a4a4a;
    word-break: break-word;
}

.story-content.has-paper {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    border-radius: 8px;
    border: 1px solid #e0d8cc;
    padding: 32px 28px;
    min-height: 300px;
}

.story-content h1,
.story-content h2,
.story-content h3 {
    color: #5a4a3a;
    margin: 24px 0 12px;
}

.story-content p {
    margin: 0 0 16px;
}

.story-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 12px 0;
}

.story-content blockquote {
    border-left: 3px solid #c8b8a0;
    padding: 12px 20px;
    margin: 16px 0;
    background: #faf8f5;
    border-radius: 0 6px 6px 0;
    color: #6b5b4e;
}

.story-content a {
    color: #a08060;
    text-decoration: none;
    border-bottom: 1px solid #e0d8cc;
    transition: all 0.2s;
}

.story-content a:hover {
    color: #5a4a3a;
    border-bottom-color: #a08060;
}

.story-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #f0ebe4;
}

.story-nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.story-nav-link {
    flex: 1;
    text-align: center;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

a.story-nav-link:hover {
    background: #f5f0e8;
}

.story-nav-label {
    display: block;
    font-size: 12px;
    color: #a09080;
    margin-bottom: 4px;
}

.story-nav-title {
    display: block;
    font-size: 14px;
    color: #5a4a3a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.story-nav-disabled {
    color: #d0c8b8;
}

.story-nav-list {
    flex: 0 0 auto;
    background: #f5f0e8;
    font-size: 13px;
    color: #8a7a6a;
}

/* 故事标题行（标题 + 管理按钮） */
.story-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.story-title-row .story-title {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.btn-manage-story {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 16px;
    background: #f5f0e8;
    border: 1px solid #e0d8cc;
    border-radius: 6px;
    color: #6b5b4e;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    flex-shrink: 0;
    white-space: nowrap;
}

.btn-manage-story:hover {
    background: #6b5b4e;
    color: #fff;
    border-color: #6b5b4e;
}

/* 故事/相册编辑页面通用样式 */
.edit-form-actions {
    margin-top: 24px;
}

.edit-delete-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0d8cc;
}

.edit-back-link {
    margin-top: 16px;
    text-align: center;
}

.edit-back-link a {
    color: #8a7a6a;
    font-size: 13px;
    text-decoration: none;
}

.edit-back-link a:hover {
    color: #a08060;
}

#editFeedbackMsg .alert {
    margin-bottom: 16px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
}

/* 相册编辑页照片列表 */
.edit-photos-section {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e0d8cc;
}

.edit-photos-section h3 {
    font-size: 15px;
    color: #5a4a3a;
    margin: 0 0 14px;
}

.edit-photos-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.edit-photo-thumb {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e0d8cc;
}

.edit-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
    padding: 20px 0;
}

.pagination-btn {
    padding: 8px 18px;
    background: rgba(255,255,255,0.9);
    border: 1px solid #e0d8cc;
    border-radius: 6px;
    color: #6b5b4e;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}

.pagination-btn:hover {
    background: #6b5b4e;
    color: #fff;
    border-color: #6b5b4e;
}

.pagination-info {
    font-size: 13px;
    color: #a09080;
}

/* ========== 流年相册 ========== */
/* 相册列表 */
.album-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.album-card {
    background: rgba(255,255,255,0.92);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.album-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.album-card-cover {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f5f0e8;
}

.album-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.album-card:hover .album-card-cover img {
    transform: scale(1.05);
}

.album-card-no-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 48px;
    color: #d0c8b8;
}

.album-card-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
}

.album-card-info {
    padding: 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.album-card-title {
    font-size: 15px;
    font-weight: 500;
    color: #5a4a3a;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-card-desc {
    font-size: 12px;
    color: #a09080;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.album-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #b8a898;
    margin-top: auto;
}

/* 相册详情 */
.album-view {
    max-width: 860px;
    margin: 0 auto;
}

.album-article {
    background: rgba(255,255,255,0.92);
    border-radius: 12px;
    padding: 32px 40px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}

.album-header {
    margin-bottom: 24px;
}

.album-author-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.album-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    flex-shrink: 0;
}

.album-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.album-author-name {
    font-size: 15px;
    font-weight: 500;
    color: #5a4a3a;
}

.album-author-date {
    font-size: 12px;
    color: #b0a090;
}

.album-header-tags {
    display: flex;
    align-items: center;
    gap: 10px;
}

.album-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.album-title-row .album-title {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.album-title {
    font-size: 24px;
    font-weight: 500;
    color: #4a3a2a;
    margin: 0 0 12px;
    letter-spacing: 1px;
}

.btn-manage-album {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 16px;
    background: #f5f0e8;
    border: 1px solid #e0d8cc;
    border-radius: 6px;
    color: #6b5b4e;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    flex-shrink: 0;
    white-space: nowrap;
}

.btn-manage-album:hover {
    background: #6b5b4e;
    color: #fff;
    border-color: #6b5b4e;
}

.album-description {
    font-size: 14px;
    line-height: 1.8;
    color: #6b5b4e;
    margin: 12px 0 0;
}

/* 照片网格 */
.album-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 30px;
}

.album-photo-item {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    background: #f5f0e8;
}

.album-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.album-photo-item:hover img {
    transform: scale(1.05);
}

/* 图片灯箱 */
.photo-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 6px;
    object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 50%;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.3);
}

.lightbox-close {
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    font-size: 24px;
    line-height: 1;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    font-size: 28px;
    line-height: 1;
}

.lightbox-prev {
    left: -56px;
}

.lightbox-next {
    right: -56px;
}

.lightbox-counter {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 13px;
}

.album-footer {
    margin-top: 30px;
}

/* 照片上传区 */
.photo-upload-area {
    border: 2px dashed #e0d8cc;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fdfcf9;
}

.photo-upload-area:hover,
.photo-upload-area.drag-over {
    border-color: #a08060;
    background: #f8f4ee;
}

.photo-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.photo-upload-icon {
    font-size: 40px;
    color: #c8b8a0;
}

.photo-upload-placeholder span {
    font-size: 14px;
    color: #8a7a6a;
}

.photo-upload-hint {
    font-size: 12px;
    color: #b0a090;
}

.photo-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    justify-content: center;
}

.photo-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e0d8cc;
}

.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-remove-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.photo-remove-btn:hover {
    background: rgba(200,60,50,0.8);
}

.photo-upload-count {
    font-size: 12px;
    color: #a09080;
    margin-top: 8px;
    text-align: center;
}

/* 主体 */
.site-main {
    padding: 40px 0 60px;
}

/* 时间轴介绍 */
.timeline-intro {
    text-align: center;
    margin-bottom: 50px;
}

.timeline-intro h2 {
    font-size: 24px;
    font-weight: 300;
    color: #5a4a3a;
    letter-spacing: 4px;
    margin-bottom: 8px;
}

.timeline-intro p {
    font-size: 14px;
    color: #a09080;
    letter-spacing: 2px;
}

/* 时间轴 */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, #d0c8b8 10%, #d0c8b8 90%, transparent);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    display: flex;
    justify-content: flex-start;
}

.timeline-item:nth-child(odd) {
    justify-content: flex-start;
    padding-right: 52%;
}

.timeline-item:nth-child(even) {
    justify-content: flex-end;
    padding-left: 52%;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 20px;
    width: 12px;
    height: 12px;
    background: #c8b8a0;
    border: 3px solid #f5f3ef;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 1;
    transition: all 0.3s;
}

.timeline-item:hover .timeline-dot {
    background: #a08060;
    transform: translateX(-50%) scale(1.3);
}

.timeline-top .timeline-dot {
    background: #e8a060;
    box-shadow: 0 0 0 3px rgba(232, 160, 96, 0.2);
}

.timeline-content {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.timeline-content:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.timeline-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.timeline-date {
    font-size: 12px;
    color: #b0a090;
}

.tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    letter-spacing: 1px;
}

.tag-top {
    background: #fff3e0;
    color: #e8a060;
}

.tag-mood {
    background: #f0ebe4;
    color: #8a7a6a;
}

.timeline-text {
    font-size: 16px;
    line-height: 1.9;
    color: #5a4a3a;
    margin-bottom: 16px;
    padding: 16px;
    border-radius: 6px;
}

.timeline-text a {
    color: #5a4a3a;
    display: block;
}

.timeline-text a:hover {
    color: #a08060;
}

.timeline-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #b0a090;
    padding-top: 12px;
    border-top: 1px solid #f0ebe4;
}

.timeline-author {
    font-style: italic;
}

/* 卡片视图 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px 0;
}

.card-item {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
    cursor: pointer;
    position: relative;
}

.card-item:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: #d0c8b8;
}

.card-item:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.card-top {
    border-left: 3px solid #e8a060;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    position: relative;
}

.card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0ebe4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #6b5b4e;
    font-weight: 400;
    flex-shrink: 0;
    overflow: hidden;
}

.card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.card-user-info {
    flex: 1;
    min-width: 0;
}

.card-nickname {
    display: block;
    font-size: 14px;
    color: #5a4a3a;
    font-weight: 500;
    line-height: 1.4;
}

.card-date {
    display: block;
    font-size: 12px;
    color: #b0a090;
    line-height: 1.4;
}

.card-top-tag {
    position: absolute;
    top: 0;
    right: 0;
}

.card-body {
    flex: 1;
    margin-bottom: 16px;
    padding: 16px;
    border-radius: 6px;
}

.card-body a {
    display: block;
    font-size: 15px;
    line-height: 1.9;
    color: #5a4a3a;
    word-break: break-word;
}

.card-body a:hover {
    color: #a08060;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid #f0ebe4;
}

.card-views {
    font-size: 12px;
    color: #b0a090;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #b0a090;
}

.empty-state p {
    margin-bottom: 20px;
    font-size: 16px;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border: 1px solid #d0c8b8;
    border-radius: 4px;
    font-size: 14px;
    color: #6b5b4e;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn:hover {
    background: #f8f6f2;
    border-color: #b0a090;
    color: #5a4a3a;
}

.btn-primary {
    background: #6b5b4e;
    border-color: #6b5b4e;
    color: #fff;
}

.btn-primary:hover {
    background: #5a4a3a;
    border-color: #5a4a3a;
    color: #fff;
}

.btn-block {
    display: block;
    width: 100%;
}

/* 加载更多 */
.load-more {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0 60px;
}

.load-more-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e0d8cc;
    border-top-color: #6b5b4e;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 文章详情 */
.post-detail {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.post-header {
    margin-bottom: 30px;
    text-align: center;
}

.post-title {
    font-size: 22px;
    font-weight: 300;
    color: #5a4a3a;
    letter-spacing: 4px;
    margin-top: 12px;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 12px;
    align-items: center;
}

.post-date {
    font-size: 13px;
    color: #b0a090;
}

.post-content {
    font-size: 17px;
    line-height: 2;
    color: #5a4a3a;
    margin-bottom: 30px;
    padding: 30px 0;
    border-top: 1px solid #f0ebe4;
    border-bottom: 1px solid #f0ebe4;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #b0a090;
    margin-bottom: 30px;
}

.post-actions {
    text-align: center;
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* 认证页面 */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.auth-card {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.auth-card h2 {
    font-size: 22px;
    font-weight: 300;
    color: #5a4a3a;
    letter-spacing: 4px;
    margin-bottom: 8px;
}

.auth-desc {
    font-size: 13px;
    color: #b0a090;
    margin-bottom: 30px;
}

.auth-form {
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #6b5b4e;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e0d8cc;
    border-radius: 4px;
    font-size: 14px;
    color: #4a4a4a;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #a08060;
}

.form-hint {
    display: block;
    font-size: 12px;
    color: #b0a090;
    margin-top: 4px;
}

/* 行内表单组（标签和输入框在同一行） */
.form-group-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.form-group-inline label {
    display: inline;
    margin-bottom: 0;
    white-space: nowrap;
    min-width: auto;
}

.form-group-inline input {
    width: auto;
    flex: 1;
    min-width: 150px;
}

.form-group-inline .form-hint {
    width: 100%;
    margin-top: 2px;
}

.required {
    color: #e74c3c;
}

.auth-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f0ebe4;
}

.auth-footer p {
    font-size: 13px;
    color: #b0a090;
    margin-bottom: 6px;
}

/* 用户中心 */
.user-center {
    max-width: 700px;
    margin: 0 auto;
}

.user-profile {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
}

.user-avatar {
    flex-shrink: 0;
}

.avatar-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d0c8b8, #c8b8a0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    font-weight: 300;
}

.user-info h2 {
    font-size: 22px;
    font-weight: 400;
    color: #5a4a3a;
    margin-bottom: 4px;
}

.user-username {
    font-size: 14px;
    color: #b0a090;
    margin-bottom: 4px;
}

.user-email {
    font-size: 13px;
    color: #b0a090;
    margin-bottom: 4px;
}

.user-joined {
    font-size: 12px;
    color: #c0b0a0;
}

.user-posts h3 {
    font-size: 18px;
    font-weight: 300;
    color: #5a4a3a;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.post-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.post-item {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border-left: 3px solid #d0c8b8;
}

.post-status-0 { border-left-color: #f0ad4e; }
.post-status-1 { border-left-color: #5cb85c; }
.post-status-2 { border-left-color: #d9534f; }

.post-status-tag {
    margin-bottom: 10px;
}

.status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
}

.status.pending { background: #fff3e0; color: #f0ad4e; }
.status.approved { background: #e8f5e9; color: #5cb85c; }
.status.rejected { background: #fce4ec; color: #d9534f; }

.post-item .post-content {
    font-size: 15px;
    line-height: 1.8;
    color: #5a4a3a;
    border: none;
    padding: 0;
    margin-bottom: 10px;
}

.post-item .post-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #b0a090;
    justify-content: flex-start;
}

.mood-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mood-option {
    cursor: pointer;
}

.mood-option input {
    display: none;
}

.mood-option span {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid #e0d8cc;
    border-radius: 20px;
    font-size: 13px;
    color: #7a6a5a;
    transition: all 0.3s;
}

.mood-option input:checked + span {
    background: #6b5b4e;
    border-color: #6b5b4e;
    color: #fff;
}

.mood-option:hover span {
    border-color: #a08060;
}

.create-tips {
    background: #faf8f5;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #f0ebe4;
}

.create-tips h4 {
    font-size: 14px;
    color: #6b5b4e;
    margin-bottom: 10px;
    font-weight: 400;
}

.create-tips ul {
    list-style: none;
    padding: 0;
}

.create-tips li {
    font-size: 13px;
    color: #a09080;
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
}

.create-tips li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: #c8b8a0;
}

/* ========== 返回顶部 ========== */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 34px;
    z-index: 999;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(107, 91, 78, 0.85);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    transition: all 0.3s;
    opacity: 0.7;
}

.back-to-top:hover {
    opacity: 1;
    background: #5a4a3a;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.back-to-top.show {
    display: flex;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 0.7; transform: translateY(0); }
}

/* 页脚 */
.site-footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid #e0d8cc;
    background: #f0ebe4;
}

.site-footer p {
    font-size: 13px;
    color: #b0a090;
    letter-spacing: 1px;
}

/* 响应式 */
@media (max-width: 768px) {
    .site-header {
        padding: 24px 0 20px;
    }

    .site-title {
        margin-bottom: 6px;
    }

    .site-title img {
        max-height: 54px;
    }

    .site-nav {
        gap: 10px;
    }

    .nav-modules {
        order: 1;
        width: 100%;
        justify-content: center;
    }

    .nav-search {
        order: 2;
        width: 100%;
        flex-wrap: wrap;
        gap: 4px;
    }

    .nav-search-select {
        flex: 1;
        min-width: 60px;
    }

    .nav-search-input {
        flex: 1;
        min-width: 60px;
    }

    .nav-search-keyword {
        flex: 2;
    }

    .nav-user {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .timeline-line {
        left: 20px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 50px;
        padding-right: 0;
        justify-content: flex-start;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .timeline-dot {
        left: 20px;
    }

    .post-detail {
        padding: 24px;
    }

    .user-profile {
        flex-direction: column;
        text-align: center;
    }

    .story-create,
    .album-create,
    .post-create {
        padding: 24px 20px;
    }

    .post-form,
    .story-form,
    .album-form {
        padding: 20px 16px;
    }

    .story-article {
        padding: 24px 20px;
    }

    .story-content.has-paper {
        padding: 20px 16px;
        min-height: 200px;
    }

    .story-author-bar {
        gap: 10px;
    }

    .story-avatar {
        width: 38px;
        height: 38px;
    }

    .story-title {
        font-size: 20px;
    }

    .story-nav-links {
        flex-direction: column;
        gap: 10px;
    }

    .album-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .album-article {
        padding: 24px 20px;
    }

    .album-author-bar {
        gap: 10px;
    }

    .album-avatar {
        width: 38px;
        height: 38px;
    }

    .album-title {
        font-size: 20px;
    }

    .album-photos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }
}

/* 提示框 */
.alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 14px;
}
.alert-error {
    background: #fff1f0;
    border: 1px solid #ffa39e;
    color: #cf1322;
}
.alert-success {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #389e0d;
}

/* ============================================
   音乐播放器
   ============================================ */
.music-player {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* 唱片按钮 */
.music-disc {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6b5b4e, #8a7a6a);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(107, 91, 78, 0.3);
    transition: all 0.3s;
    position: relative;
}

.music-disc:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(107, 91, 78, 0.4);
}

.music-disc.playing {
    animation: discRotate 8s linear infinite;
}

@keyframes discRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.disc-inner {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.disc-icon {
    color: rgba(255, 255, 255, 0.9);
}

/* 播放器面板 */
.music-panel {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 280px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: scale(0.9) translateY(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform-origin: bottom right;
}

.music-panel.show {
    transform: scale(1) translateY(0);
    opacity: 1;
    visibility: visible;
}

.music-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px 10px;
    border-bottom: 1px solid #f0ebe4;
}

.music-title-text {
    font-size: 14px;
    font-weight: 500;
    color: #5a4a3a;
    letter-spacing: 2px;
}

.music-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #b0a090;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.music-close:hover {
    color: #6b5b4e;
}

/* 歌曲信息 */
.music-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
}

.music-cover {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f0ebe4, #e8e0d4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #a09080;
}

.music-detail {
    flex: 1;
    min-width: 0;
}

.music-song-title {
    font-size: 14px;
    color: #5a4a3a;
    font-weight: 500;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-artist {
    font-size: 12px;
    color: #b0a090;
}

/* 进度条 */
.music-progress {
    padding: 0 16px 8px;
}

.music-progress-bar {
    width: 100%;
    height: 4px;
    background: #f0ebe4;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.music-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #a08060, #6b5b4e);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.music-time {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #b0a090;
    margin-top: 4px;
}

/* 控制按钮 */
.music-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 8px 16px;
}

.music-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #6b5b4e;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.music-btn:hover {
    background: #f0ebe4;
    color: #5a4a3a;
}

.music-btn-play {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #6b5b4e, #8a7a6a);
    color: #fff;
    border-radius: 50%;
}

.music-btn-play:hover {
    background: linear-gradient(135deg, #5a4a3a, #7a6a5a);
    color: #fff;
    transform: scale(1.05);
}

/* 音量 */
.music-volume {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 16px 10px;
    color: #a09080;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    height: 3px;
    background: #f0ebe4;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #6b5b4e;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #6b5b4e;
    cursor: pointer;
    border: none;
}

/* 播放列表 */
.music-list {
    max-height: 180px;
    overflow-y: auto;
    border-top: 1px solid #f0ebe4;
}

.music-list::-webkit-scrollbar {
    width: 4px;
}

.music-list::-webkit-scrollbar-thumb {
    background: #d0c8b8;
    border-radius: 2px;
}

.music-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #faf8f5;
}

.music-list-item:hover {
    background: #faf8f5;
}

.music-list-item.active {
    background: #f8f6f2;
}

.music-list-item.active .list-title {
    color: #6b5b4e;
    font-weight: 500;
}

.list-index {
    font-size: 12px;
    color: #c0b0a0;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.list-title {
    font-size: 13px;
    color: #5a4a3a;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-artist {
    font-size: 11px;
    color: #b0a090;
    flex-shrink: 0;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .music-player {
        bottom: 20px;
        right: 16px;
    }

    .music-panel {
        width: 260px;
        right: -6px;
    }

    .back-to-top {
        bottom: 80px;
        right: 20px;
    }
}

/* ============================================
   话语详情弹窗
   ============================================ */
.post-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.post-modal.show {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-container {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 680px;
    aspect-ratio: 3 / 4;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    animation: modalSlideUp 0.3s ease;
    overflow: hidden;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    font-size: 20px;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 1;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

/* 导航栏 */
.modal-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-top: 1px solid #f0ebe4;
    background: #faf8f5;
    flex-shrink: 0;
}

.modal-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border: 1px solid #e0d8cc;
    border-radius: 20px;
    background: #fff;
    font-size: 13px;
    color: #6b5b4e;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.modal-nav-btn:hover:not(:disabled) {
    background: #6b5b4e;
    border-color: #6b5b4e;
    color: #fff;
}

.modal-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.modal-nav-btn svg {
    flex-shrink: 0;
}

/* 内容区 */
.modal-body {
    padding: 24px 28px;
    overflow-y: auto;
    flex: 1;
}

.modal-loading {
    text-align: center;
    padding: 40px;
    color: #b0a090;
    font-size: 14px;
}

.modal-post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.modal-post-date {
    font-size: 13px;
    color: #b0a090;
}

.modal-post-content {
    font-size: 20px;
    line-height: 2.2;
    color: #5a4a3a;
    padding: 24px 20px;
    border-top: 1px solid #f0ebe4;
    border-bottom: 1px solid #f0ebe4;
    margin-bottom: 20px;
    word-break: break-word;
    border-radius: 6px;
    letter-spacing: 1px;
}

.modal-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #b0a090;
}

.modal-post-author {
    font-style: italic;
    color: #8a7a6a;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .modal-container {
        width: 92%;
        max-height: 88vh;
        border-radius: 10px;
        max-width: 380px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-nav {
        padding: 10px 16px;
    }

    .modal-nav-btn span {
        display: none;
    }

    .modal-post-content {
        font-size: 18px;
        line-height: 2;
    }
}

/* ============================================
   欢迎遮罩层
   ============================================ */
.welcome-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: linear-gradient(135deg, rgba(248,246,242,0.88) 0%, rgba(237,232,224,0.88) 50%, rgba(232,224,212,0.88) 100%);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.welcome-overlay.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.welcome-content {
    text-align: center;
    animation: welcomeFadeIn 1s ease;
}

@keyframes welcomeFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-title {
    max-width: 280px;
    height: auto;
    margin-bottom: 12px;
}

.welcome-subtitle {
    font-size: 16px;
    color: #a09080;
    letter-spacing: 6px;
    margin-bottom: 50px;
}

.welcome-btn {
    padding: 14px 40px;
    border: 1px solid #c8b8a0;
    border-radius: 30px;
    background: transparent;
    font-size: 15px;
    color: #6b5b4e;
    letter-spacing: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.welcome-btn:hover {
    background: #6b5b4e;
    border-color: #6b5b4e;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 91, 78, 0.3);
}

/* 已访问过则不显示遮罩 */
.welcome-overlay.skip {
    display: none;
}

/* ============================================
   时光流动画布
   ============================================ */
#flowCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
}

/* 确保内容在画布之上 */
.site-header,
.site-main,
.site-footer {
    position: relative;
    z-index: 1;
}

/* 内容区半透明，让流动画若隐若现 */
.site-header {
    background: linear-gradient(135deg, rgba(248,246,242,0.92) 0%, rgba(237,232,224,0.92) 100%);
}

.site-footer {
    background: rgba(240, 235, 228, 0.92);
}

.timeline-content,
.card-item {
    background: rgba(255, 255, 255, 0.88);
}

/* ============================================
   弹窗内发布表单
   ============================================ */
.modal-create-form {
    padding: 10px 0;
}

.create-form-title {
    font-size: 18px;
    font-weight: 400;
    color: #5a4a3a;
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-align: center;
}

.mc-field {
    margin-bottom: 18px;
}

.mc-field label {
    display: block;
    font-size: 14px;
    color: #6b5b4e;
    margin-bottom: 6px;
}

.mc-field input[type="text"],
.mc-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e0d8cc;
    border-radius: 6px;
    font-size: 14px;
    color: #4a4a4a;
    font-family: inherit;
    transition: border-color 0.3s;
    resize: vertical;
    box-sizing: border-box;
}

.mc-field input[type="text"]:focus,
.mc-field textarea:focus {
    outline: none;
    border-color: #a08060;
}

.mc-hint {
    display: block;
    font-size: 12px;
    color: #a09080;
    margin-top: 4px;
}

/* 弹窗表单行内布局（标签和输入框同行） */
.mc-field-inline {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mc-field-inline label {
    display: inline;
    margin-bottom: 0;
    white-space: nowrap;
    min-width: auto;
}

.mc-field-inline input[type="text"] {
    width: auto;
    flex: 1;
    min-width: 120px;
}

.mc-moods {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mc-mood-item {
    cursor: pointer;
}

.mc-mood-item input {
    display: none;
}

.mc-mood-item span {
    display: inline-block;
    padding: 4px 14px;
    border: 1px solid #e0d8cc;
    border-radius: 16px;
    font-size: 13px;
    color: #7a6a5a;
    transition: all 0.2s;
}

.mc-mood-item input:checked + span {
    background: #6b5b4e;
    border-color: #6b5b4e;
    color: #fff;
}

.mc-mood-item:hover span {
    border-color: #a08060;
}

.mc-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.mc-actions .btn {
    flex: 1;
}

/* 发布按钮高亮 */
.modal-nav-create.active {
    background: #6b5b4e;
    border-color: #6b5b4e;
    color: #fff;
}

/* ============================================
   稿纸背景样式（图片形式）
   ============================================ */

/* --- 通用稿纸背景（卡片 + 弹窗） --- */
.card-body.has-paper {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    border-radius: 6px;
    border: 1px solid #e0d8cc;
    padding: 20px;
    min-height: 140px;
}

.modal-post-content.has-paper {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    border-radius: 6px;
    border: 1px solid #e0d8cc;
    padding: 28px 24px;
    min-height: 220px;
}

/* --- 稿纸选择器 --- */
.paper-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.paper-option {
    cursor: pointer;
}

.paper-option input {
    display: none;
}

.paper-swatch {
    display: block;
    width: 80px;
    height: 60px;
    border: 2px solid #e0d8cc;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
}

.paper-swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.paper-swatch-default {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    font-size: 13px;
    color: #8a7a6a;
}

.paper-option input:checked + .paper-swatch {
    border-color: #6b5b4e;
    box-shadow: 0 0 0 2px rgba(107, 91, 78, 0.2);
}

.paper-option:hover .paper-swatch {
    border-color: #a08060;
}

/* ========== 流年书签显示 ========== */
.card-bookmark {
    display: inline-block;
    background: #f0ebe4;
    color: #6b5b4e;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    letter-spacing: 1px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: auto;
}

.modal-bookmark {
    display: inline-block;
    background: #f0ebe4;
    color: #6b5b4e;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 10px;
    margin-left: auto;
}

/* 凭书签删除入口 */
.bookmark-delete-entry {
    text-align: center;
    padding: 30px 0 20px;
}

.bookmark-delete-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.85);
    border: 1px solid #d8cfc0;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 13px;
    color: #8a7a6a;
    cursor: pointer;
    transition: all 0.25s;
    backdrop-filter: blur(6px);
}

.bookmark-delete-btn:hover {
    background: rgba(255,255,255,0.95);
    border-color: #b0a090;
    color: #5a4a3a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* 凭书签删除弹窗 */
.delete-bookmark-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-bookmark-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.delete-bookmark-box {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 380px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.2);
    animation: modalSlideUp 0.3s ease;
}

.delete-bookmark-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    font-size: 22px;
    color: #b0a090;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.delete-bookmark-close:hover {
    background: #f5f0ea;
    color: #6b5b4e;
}

.delete-bookmark-box h4 {
    font-size: 18px;
    color: #5a4a3a;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.delete-bm-desc {
    font-size: 13px;
    color: #a09080;
    margin-bottom: 18px;
}

.delete-bookmark-box .form-group {
    margin-bottom: 14px;
}

.delete-bookmark-box label {
    display: block;
    font-size: 13px;
    color: #6b5b4e;
    margin-bottom: 4px;
}

.delete-bookmark-box input[type="text"],
.delete-bookmark-box input[type="number"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e0d8cc;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
}

.delete-bookmark-box input[type="text"] {
    letter-spacing: 3px;
    font-family: 'Courier New', monospace;
    text-align: center;
}

.btn-danger {
    background: #cf1322;
    border-color: #cf1322;
    color: #fff;
}

.btn-danger:hover {
    background: #a80715;
    border-color: #a80715;
}

.btn-block {
    display: block;
    width: 100%;
}

#deleteBmMessage .alert {
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
}

/* ========== 头像选择器 ========== */
.avatar-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.avatar-option {
    cursor: pointer;
}

.avatar-option input[type="radio"] {
    display: none;
}

.avatar-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #faf8f5;
    border: 2px solid #e0d8cc;
    transition: all 0.2s;
    overflow: hidden;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-option input[type="radio"]:checked + .avatar-preview {
    border-color: #a08060;
    background: #f0ebe4;
    box-shadow: 0 2px 8px rgba(160, 128, 96, 0.3);
    transform: scale(1.1);
}

.avatar-preview:hover {
    border-color: #b0a090;
    transform: scale(1.05);
}

/* 弹窗表单头像选择器 */
.mc-avatar-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mc-avatar-item {
    cursor: pointer;
}

.mc-avatar-item input[type="radio"] {
    display: none;
}

.mc-avatar-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #faf8f5;
    border: 2px solid #e0d8cc;
    transition: all 0.2s;
    overflow: hidden;
}

.mc-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.mc-avatar-item input[type="radio"]:checked + .mc-avatar-preview {
    border-color: #a08060;
    background: #f0ebe4;
    box-shadow: 0 2px 8px rgba(160, 128, 96, 0.3);
    transform: scale(1.1);
}

.mc-avatar-preview:hover {
    border-color: #b0a090;
}

/* 弹窗详情头像 */
.modal-post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.modal-post-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f0ebe4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    overflow: hidden;
}

.modal-post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.modal-post-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.modal-post-nickname {
    font-size: 15px;
    font-weight: 500;
    color: #5a4a3a;
}

.modal-post-user-info .modal-post-date {
    font-size: 12px;
    color: #a09080;
}

/* ========== 弹窗内删除按钮 ========== */
.modal-delete-btn {
    background: none;
    border: 1px solid #e0d0c0;
    border-radius: 4px;
    padding: 3px 12px;
    font-size: 12px;
    color: #b0a090;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-delete-btn:hover {
    border-color: #cf1322;
    color: #cf1322;
    background: #fff1f0;
}

/* ========== 删除确认弹窗 ========== */
.modal-delete-dialog {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-delete-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-delete-box {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    width: 90%;
    max-width: 360px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    animation: modalSlideUp 0.3s ease;
}

.modal-delete-box h4 {
    font-size: 17px;
    color: #5a4a3a;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.modal-delete-desc {
    font-size: 13px;
    color: #a09080;
    margin-bottom: 16px;
}

.modal-delete-form {
    margin-bottom: 16px;
}

.modal-delete-form input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e0d8cc;
    border-radius: 6px;
    font-size: 16px;
    letter-spacing: 3px;
    font-family: 'Courier New', monospace;
    text-align: center;
    box-sizing: border-box;
}

.modal-delete-form input:focus {
    outline: none;
    border-color: #a08060;
}

.modal-delete-actions {
    display: flex;
    gap: 10px;
}

.modal-delete-actions .btn {
    flex: 1;
}

#modalDeleteMsg .alert {
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
}

/* ========== 底部 ICP 备案与意见建议 ========== */
.footer-icp {
    margin-top: 6px;
}

.footer-icp a {
    color: #b0a090;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s;
}

.footer-icp a:hover {
    color: #8a7a6a;
}

.footer-feedback-btn {
    display: inline-block;
    margin-top: 10px;
    background: none;
    border: 1px solid #d8cfc0;
    border-radius: 16px;
    padding: 5px 18px;
    font-size: 13px;
    color: #8a7a6a;
    cursor: pointer;
    transition: all 0.25s;
}

.footer-feedback-btn:hover {
    border-color: #a08060;
    color: #5a4a3a;
    background: rgba(255,255,255,0.6);
}

/* ========== 意见建议弹窗 ========== */
.feedback-modal {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
}

.feedback-box {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.feedback-box h4 {
    font-size: 18px;
    font-weight: 400;
    color: #5a4a3a;
    letter-spacing: 3px;
    margin-bottom: 6px;
    text-align: center;
}

.feedback-desc {
    font-size: 13px;
    color: #a09080;
    text-align: center;
    margin-bottom: 18px;
}

.feedback-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 22px;
    color: #b0a090;
    cursor: pointer;
    line-height: 1;
}

.feedback-close:hover {
    color: #5a4a3a;
}

.feedback-field {
    margin-bottom: 14px;
}

.feedback-field input,
.feedback-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e0d8cc;
    border-radius: 6px;
    font-size: 14px;
    color: #4a4a4a;
    font-family: inherit;
    transition: border-color 0.3s;
    resize: vertical;
    box-sizing: border-box;
}

.feedback-field input:focus,
.feedback-field textarea:focus {
    outline: none;
    border-color: #a08060;
}

.feedback-box .btn-block {
    width: 100%;
    margin-top: 4px;
}

#feedbackMsg .alert {
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
}

/* ========== 故事/相册列表卡片补充样式 ========== */

/* 故事卡片内容链接 */
.card-body-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.card-body-link:hover .story-card-title {
    color: #a08060;
}

/* 卡片底部阅读更多 */
.card-read-more {
    margin-left: auto;
    font-size: 12px;
    color: #a08060;
    cursor: pointer;
    transition: color 0.2s;
}

.card-read-more:hover {
    color: #6b5b4e;
}

/* 故事卡片可点击提示 */
#cardView .card-item {
    cursor: pointer;
}

/* ============================================
   故事详情弹窗
   ============================================ */
.story-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.story-modal.show {
    display: flex;
}

.story-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.25s ease;
}

.story-modal-container {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 92%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    animation: modalSlideUp 0.3s ease;
    overflow: hidden;
}

.story-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    font-size: 20px;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 1;
    line-height: 1;
}

.story-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

/* 故事弹窗内容区 */
.story-modal-body {
    padding: 28px 32px;
    overflow-y: auto;
    flex: 1;
}

/* 故事弹窗头部作者信息 */
.sm-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.sm-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8dfd4, #d4c8b8);
    font-size: 18px;
    color: #8a7a6a;
}

.sm-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sm-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sm-nickname {
    font-size: 15px;
    font-weight: 500;
    color: #5a4a3a;
}

.sm-date {
    font-size: 13px;
    color: #b0a090;
}

.sm-tags {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sm-views {
    font-size: 13px;
    color: #b0a090;
}

.sm-manage-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 10px;
    border: 1px solid #e0d8c8;
    border-radius: 14px;
    background: #fff;
    font-size: 12px;
    color: #8a7a6a;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    margin-right: 36px;
}

.sm-manage-btn:hover {
    background: #6b5b4e;
    border-color: #6b5b4e;
    color: #fff;
}

/* 故事弹窗标题 */
.sm-title {
    font-size: 22px;
    font-weight: 600;
    color: #4a3a2a;
    line-height: 1.4;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0ebe4;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sm-title-mood {
    font-size: 12px;
    flex-shrink: 0;
}

/* 故事弹窗富文本内容 */
.sm-content {
    font-size: 16px;
    line-height: 2;
    color: #5a4a3a;
    word-break: break-word;
    margin-bottom: 20px;
}

.sm-content.has-paper {
    padding: 24px 20px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.sm-content p {
    margin-bottom: 1em;
    text-indent: 2em;
}

.sm-content p:last-child {
    margin-bottom: 0;
}

.sm-content h1, .sm-content h2, .sm-content h3, .sm-content h4 {
    color: #4a3a2a;
    margin: 1.2em 0 0.6em;
    text-indent: 0;
}

.sm-content blockquote {
    border-left: 3px solid #c8b8a0;
    padding-left: 16px;
    margin: 1em 0;
    color: #8a7a6a;
    font-style: italic;
}

.sm-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1em 0;
}

.sm-content ul, .sm-content ol {
    padding-left: 2em;
    margin: 1em 0;
}

/* 故事弹窗底部导航 */
.story-modal-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-top: 1px solid #f0ebe4;
    background: #faf8f5;
    flex-shrink: 0;
}

.story-modal-list-btn {
    text-decoration: none;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .story-modal-container {
        width: 95%;
        max-height: 92vh;
        border-radius: 10px;
    }

    .story-modal-body {
        padding: 20px 16px;
    }

    .story-modal-nav {
        padding: 10px 16px;
    }

    .story-modal-nav .modal-nav-btn span {
        display: none;
    }

    .sm-title {
        font-size: 18px;
    }

    .sm-content {
        font-size: 15px;
        line-height: 1.9;
    }

    .sm-header {
        flex-wrap: wrap;
    }

    .sm-tags {
        margin-left: 0;
        width: 100%;
        margin-top: 4px;
    }
}

/* 相册卡片（全卡片可点击） */
.album-card-full {
    text-decoration: none;
    color: inherit;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.album-card-full .card-header {
    padding: 18px 20px 10px;
}

.album-card-cover-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f5f0ea;
}

.album-card-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.album-card-full:hover .album-card-cover-img {
    transform: scale(1.05);
}

.album-card-full .album-card-no-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 48px;
    color: #d4c5b0;
}

.album-card-full .album-card-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
}

.album-card-full .album-card-info {
    padding: 14px 20px 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.album-card-full .album-card-title {
    font-size: 15px;
    font-weight: 500;
    color: #5a4a3a;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.album-card-full .album-card-desc {
    font-size: 12px;
    color: #a09080;
    margin: 0;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.album-card-full .card-footer {
    padding: 8px 20px 16px;
    margin-top: auto;
}

/* 相册卡片网格稍大 */
.card-grid-album {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
    .card-grid-album {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .card-grid-album {
        grid-template-columns: 1fr;
    }
}
