/* --- 【全新】优化版未读标记样式 --- */
.list-item-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center; /* 垂直居中对齐 */
    margin-left: 8px; /* 和左侧信息拉开距离 */
    flex-shrink: 0; /* 防止被压缩 */
}

.unread-badge {
    background-color: #FF3B30;
    color: white;
    border-radius: 10px; /* 使用更柔和的圆角 */
    font-size: 12px;
    font-weight: 500;
    min-width: 18px; /* 调整尺寸 */
    height: 18px;
    padding: 0 5px; /* 调整内边距 */
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 新增：仅显示一个小红点的样式 */
.unread-badge.dot {
    min-width: 10px;
    width: 10px;
    height: 10px;
    padding: 0;
    font-size: 0; /* 隐藏数字 */
}
/* --- 在这里添加或替换新样式 --- */

/* 列表项总容器 */
.music-search-result-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    gap: 12px;
}
.music-search-result-item:last-child {
    border-bottom: none;
}

/* 左侧图标占位符 */
.music-search-result-item .cover {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    flex-shrink: 0;
    background-color: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 中间的信息区域 */
.music-search-result-item .info {
    flex-grow: 1; /* 关键：占据所有剩余空间 */
    overflow: hidden; /* 关键：防止文字过长撑破布局 */
    min-width: 0;
}

/* 歌曲标题 */
.music-search-result-item .title {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex; /* 让标题和徽章在同一行对齐 */
    align-items: center;
}

/* 歌手名 */
.music-search-result-item .artist {
    font-size: 13px;
    color: var(--secondary-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 4px;
}

/* 来源徽章 */
.music-search-result-item .source-badge {
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 4px;
    color: white;
    margin-left: 8px;
    flex-shrink: 0; /* 防止被压缩 */
}

/* 右侧的添加按钮 */
.music-search-result-item .add-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 24px;
    font-weight: bold;
    line-height: 32px;
    cursor: pointer;
    flex-shrink: 0; /* 固定大小，不被压缩 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    padding-bottom: 2px; /* 微调"+"号垂直居中 */
    transition: background-color 0.2s, transform 0.2s;
}

.music-search-result-item .add-btn:hover {
    transform: scale(1.1);
}

.music-search-result-item .add-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
/* --- 【全新V2.0】AI音乐分享气泡样式 --- */
.chat-bubble.bubble-music-share {
    background-color: #FFFFFF !important;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0; /* 内边距由内部元素控制 */
    width: 250px;
    display: flex;
    align-items: center;
    gap: 0; /* 移除gap，由内边距控制 */
    transition: background-color 0.2s;
    overflow: hidden;
}

/* 核心可点击区域：封面和信息 */
.music-share-main {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    cursor: pointer;
    min-width: 0;
}
.music-share-main:hover {
    background-color: #f7f7f7;
}

.music-share-cover {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}
.music-share-info {
    flex-grow: 1;
    min-width: 0;
}
.music-share-title {
    font-weight: 500;
    color: var(--primary-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.music-share-artist {
    font-size: 13px;
    color: var(--secondary-text);
    margin-top: 4px;
}
.add-song-to-playlist-btn {
    background: transparent;
    border: none;
    border-left: 1px solid var(--border-color); /* 在按钮左侧加一条分割线 */
    width: 50px; /* 增加按钮宽度 */
    height: 74px; /* 让按钮和卡片一样高 */
    align-self: stretch; /* 强制拉伸 */
    border-radius: 0;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color); /* 图标使用主题色 */
    transition: all 0.2s;
}
.add-song-to-playlist-btn:hover {
    background-color: #e6f2ff;
    transform: none; /* 移除缩放效果 */
}
.add-song-to-playlist-btn:disabled {
    background-color: #4CAF50;
    color: white;
    cursor: default;
}
.add-song-to-playlist-btn .svg-icon {
    width: 22px;
    height: 22px;
}
/* --- 【全新】游戏中心 (Game Portal) 样式 --- */
#game-portal-page .page-content {
    background-color: #f7f7f7; /* 经典的浅灰色背景 */
    padding: 15px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); /* 响应式网格 */
    gap: 15px;
}

.game-card {
    cursor: pointer;
    text-align: center;
    border-radius: 8px;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.game-card .game-cover {
    width: 100%;
    aspect-ratio: 1 / 1; /* 保持正方形 */
    background-color: #e9ecef;
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px; /* 图标大小 */
    color: var(--secondary-text);
}

.game-card .game-title {
    font-size: 13px;
    color: var(--primary-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* 确保你有类似这样的样式来定义“破坏性”操作按钮 */
.btn.destructive {
    background-color: #e53935; /* 红色背景 */
    color: white; /* 白色文字 */
    border-color: #e53935;
}

.btn.destructive:hover {
    background-color: #c62828; /* 鼠标悬停时深一点的红色 */
    border-color: #c62828;
}
/* ---【新增】拍立得照片区域样式 --- */
.polaroid-photo-area {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    height: 180px; /* 根据卡片高度调整 */
    overflow: hidden;
    cursor: pointer;
    background-color: #ddd; /* 图片加载前的占位符颜色 */
}

/* 调整不同卡片照片区域的高度 */
#summary-collage-timeline .polaroid-photo-area { height: 170px; }
#summary-collage-memories .polaroid-photo-area { height: 160px; }

.polaroid-photo-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* 更换照片的悬浮层 */
.change-photo-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* 让它自身不可点击 */
}
.change-photo-overlay .svg-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 5px;
}
.polaroid-photo-area:hover .change-photo-overlay {
    opacity: 1;
}
.polaroid-photo-area:hover img {
    transform: scale(1.05); /* 图片轻微放大效果 */
}

.polaroid-style .content-wrapper {
    display: none; /* ← 直接添加或修改成这一行 */
}
/* --- 多巴胺装饰 V2 --- */
.summary-deco.denim-star svg {
    width: 100%;
    height: 100%;
    fill: #4a6c9b;  /* 牛仔蓝填充 */
    stroke: #ffffff; /* 白色车缝线 */
    stroke-width: 0.5; /* 线条粗细 */
    stroke-dasharray: 2 1.5; /* 虚线效果，模拟针脚 */
    filter: drop-shadow(2px 2px 3px rgba(0,0,0,0.3)); /* 加一点阴影 */
}
#deco-denim-star-1 {
    top: 250px;
    left: 15px;
    width: 80px;
    height: 80px;
    transform: rotate(-15deg);
}
#deco-denim-star-2 {
    bottom: 30px;
    right: 140px;
    width: 60px;
    height: 60px;
    transform: rotate(20deg);
}
#deco-hand-drawn-heart svg {
    color: #8367a8; /* 紫色手绘笔迹 */
    stroke: currentColor;
    fill: none;
}
#deco-hand-drawn-heart {
    bottom: 275px; /* 定位在中间卡片的右下角 */
    right: 45px;
    width: 35px;
    height: 35px;
    transform: rotate(15deg);
}
#deco-ribbon-bow svg {
    color: #3b5998; /* 深蓝色绸带 */
}
#deco-ribbon-bow {
    top: 48px;
    left: 210px;
    width: 30px;
    height: 30px;
    transform: rotate(15deg);
}
/* ---【全新】记忆碎片内页美化 (标签卡风格) --- */
#summary-detail-page-memories {
    padding: 20px 15px; /* 给整个容器一点边距 */
}

/* 隐藏JS生成的默认分割线 */
#summary-detail-page-memories hr {
    display: none; 
}

/* 将 h4 和 p 组合成一个视觉上的卡片单元 */
#summary-detail-content-memories h4,
#summary-detail-content-memories p {
    background-color: #fff;
    padding-left: 20px;
    padding-right: 15px;
    margin: 0 0 0 10px; /* 左侧留出空位给装饰条 */
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    position: relative; /* 为伪元素定位 */
}

/* 内容部分的样式 (Value) */
#summary-detail-content-memories p {
    padding-top: 12px;
    padding-bottom: 15px;
    border-radius: 8px; /* 改为这个 */
    margin-bottom: 20px; /* 卡片之间的垂直间距 */
    color: var(--secondary-text);
    line-height: 1.6;
    font-size: 14px;
}

/* 核心装饰：使用伪元素制作左侧的彩色标签条 */
#summary-detail-content-memories h4::before,
#summary-detail-content-memories p::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 0;
    bottom: 0;
    width: 10px;
    background: linear-gradient(135deg, #a8e6cf, #dcedc1); /* 多巴胺色系：薄荷绿渐变 */
}

/* 让装饰条的圆角和卡片匹配 */
#summary-detail-content-memories h4::before {
    border-radius: 8px 0 0 0;
}

#summary-detail-content-memories p::before {
    border-radius: 0 0 0 8px;
}

/* 让奇数和偶数卡片颜色不同，更有趣 */
#summary-detail-content-memories h4:nth-of-type(2n)::before,
#summary-detail-content-memories p:nth-of-type(2n)::before {
    background: linear-gradient(135deg, #ffc3a0, #ffafbd); /* 多巴胺色系：粉橘色渐变 */
}
/* ▼▼▼ 在 .summary-card p 样式之后添加 ▼▼▼ */
.summary-card-actions {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    text-align: right;
}
.summary-card-actions button {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--secondary-text);
    padding: 4px 10px;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 8px;
}
.timeline-item-actions {
    text-align: right;
    margin-top: 8px;
    display: none;
}
.timeline-item:hover .timeline-item-actions {
    display: block;
}
.timeline-item-actions button {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--secondary-text);
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 5px;
}
/* --- 【新增】时间轴拖动排序样式 --- */
.timeline-item {
    cursor: grab; /* 鼠标悬浮时显示为可抓取手势 */
}
.timeline-item.dragging {
    opacity: 0.5;
    background: #e9ecef;
    cursor: grabbing; /* 拖动时显示为抓取中手势 */
}
.timeline-item.drag-over {
    border-top: 2px solid var(--accent-color);
}
/* --- 【全新】记忆碎片管理样式 --- */
#summary-detail-page-memories .page-content {
    padding: 15px; /* 给整个容器一点边距 */
}

/* 隐藏旧版渲染可能产生的分割线 */
#summary-detail-page-memories hr {
    display: none;
}

.memory-fragment-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.memory-fragment-card .key {
    font-weight: 600;
    font-size: 16px;
    color: var(--primary-text);
    margin: 0 0 8px 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}
.memory-fragment-card .value {
    font-size: 14px;
    color: var(--secondary-text);
    line-height: 1.6;
    white-space: pre-wrap; /* 尊重原文的换行 */
}
.memory-fragment-card .actions {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    text-align: right;
}
.memory-fragment-card .actions button {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--secondary-text);
    padding: 4px 10px;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 8px;
}
.memory-fragment-card .actions button:hover {
    background-color: #f8f9fa;
}
/* --- 极简论坛专属样式 --- */
#forum-page .page-content {
    background-color: #fff;
    color: #000;
    line-height: 1.6;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    padding: 0; /* 我们让论坛自己控制内边距 */
    display: block; /* 覆盖默认的 flex 布局，让论坛自由发挥 */
}
/* 【新增/替换】帖子内容中的表情包样式 */
#forum-page .full-post-stickers img {
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
    vertical-align: middle;
    display: inline-block; /* 确保间距和对齐生效 */
    margin: 2px 4px; /* 上下2px，左右4px间距 */
}
/* --- 在这里添加 --- */

/* 【新增】限制帖子内容中图片（如表情包）的最大尺寸，防止溢出 */
#forum-page .post-content img,
#forum-page .full-post-content img {
    max-width: 100%; /* 核心：图片最大宽度不能超过其父容器 */
    height: auto;    /* 自动调整高度以保持图片原始比例 */
}
/* 【新增】发帖时表情包预览样式，解决表情过大问题 */
#forum-sticker-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    border: 1px solid #eee;
    border-radius: 4px;
}

#forum-sticker-panel .sticker-preview-item {
    position: relative;
    width: 60px; /* 限制预览表情的大小 */
    height: 60px;
}

#forum-sticker-panel .sticker-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 保持表情比例，完整显示 */
}

#forum-sticker-panel .sticker-preview-item .remove-sticker-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
}


#forum-page .forum-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 */
#forum-page header {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 100;
}

#forum-page nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#forum-page .logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -1px;
}

#forum-page .nav-links {
    display: flex;
    gap: 15px;
    list-style: none;
}

#forum-page .nav-links a {
    color: #000;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
}

#forum-page .nav-links a:hover {
    opacity: 0.5;
}

/* 主内容区 */
#forum-page .main-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    padding: 40px 0;
}

/* Tab切换 */
#forum-page .tabs {
    display: flex;
    gap: 15px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

#forum-page .tab {
    padding: 10px 0;
    cursor: pointer;
    font-size: 14px;
    position: relative;
    transition: opacity 0.3s;
}

#forum-page .tab:hover {
    opacity: 0.5;
}

#forum-page .tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #000;
}

#forum-page .tab-content {
    display: none;
}

#forum-page .tab-content.active {
    display: block;
}

/* 发帖框 */
#forum-page .post-box {
    border: 1px solid transparent;
    max-height: 0; /* 默认高度为0 */
    padding-top: 0; /* 默认上下内边距为0 */
    padding-bottom: 0;
    margin-bottom: 0;
    opacity: 0;
    overflow: hidden; /* 隐藏超出的内容 */
    transition: all 0.4s ease-in-out; /* 添加平滑动画 */
}
/* 再在它下面，添加一个新的 .open 状态的样式 */
#forum-page .post-box.open {
    margin-bottom: 20px;
    border-radius: 8px;
    opacity: 1;
    border-color: var(--border-color);
    max-height: 500px; /* 展开后的最大高度 */
    padding-top: 20px; /* 恢复内边距 */
    padding-bottom: 20px;
}

#forum-page .post-box textarea {
    width: 100%;
    border: none;
    resize: none;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    min-height: 100px;
    background: transparent;
    color: #000;
}

#forum-page .post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #000;
}

#forum-page .post-icons {
    display: flex;
    gap: 15px;
}

#forum-page .icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: opacity 0.3s;
    color: #000;
}

#forum-page .icon-btn:hover {
    opacity: 0.5;
}

#forum-page .btn {
    display: inline-block; /* 修复按钮样式 */
    background: #000;
    color: #fff;
    border: none;
    padding: 8px 24px;
    cursor: pointer;
    font-size: 14px;
    transition: opacity 0.3s;
    width: auto; /* 修复按钮样式 */
    text-align: center; /* 修复按钮样式 */
    border-radius: 0; /* 修复按钮样式 */
}

#forum-page .btn:hover {
    opacity: 0.8;
}

/* 帖子卡片 */
#forum-page .post-card {
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    transition: opacity 0.3s;
}

#forum-page .post-card:hover {
    opacity: 0.8;
}

#forum-page .post-header {
    display: flex;
    justify-content: space-between; /* <-- 核心修改 */
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}
/* 【新增】帖子卡片左侧（头像和名字） */
#forum-page .post-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden; /* 防止名字过长时撑开布局 */
}
/* 【新增】帖子卡片右侧的动作按钮容器 */
#forum-page .post-card-actions {
    display: flex;
    flex-shrink: 0; /* 防止按钮被压缩 */
    gap: 8px;
}


#forum-page .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}
#forum-page .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%; /* 核心：让图片本身也变成圆形 */
}


#forum-page .post-info h3 {
    font-size: 14px;
    font-weight: 600;
}

#forum-page .post-meta {
    font-size: 12px;
    color: #666;
}

#forum-page .post-content {
    margin-bottom: 15px;
    font-size: 15px;
}

#forum-page .post-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

#forum-page .tag {
    background: #f0f0f0;
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s;
    color: #000;
}

#forum-page .tag:hover {
    background: #000;
    color: #fff;
}

#forum-page .post-stats {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #666;
}

#forum-page .stat {
    cursor: pointer;
    transition: color 0.3s;
}

#forum-page .stat:hover {
    color: #000;
}

/* 侧边栏 */
#forum-page .sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

#forum-page .widget {
    margin-bottom: 30px;
}

#forum-page .widget-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

#forum-page .trending-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: opacity 0.3s;
}

#forum-page .trending-item:hover {
    opacity: 0.5;
}

#forum-page .trending-rank {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

#forum-page .trending-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

#forum-page .trending-count {
    font-size: 12px;
    color: #666;
}

/* 个人界面 */
#forum-page .profile-header {
    text-align: center;
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

#forum-page .profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #000;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 36px;
    font-weight: 700;
}

#forum-page .profile-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

#forum-page .profile-bio {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

#forum-page .profile-stats {
    display: flex;
    gap: 30px;
    justify-content: center;
    font-size: 14px;
}

#forum-page .profile-stat strong {
    font-weight: 700;
}

#forum-page .btn-outline {
    background: #fff;
    color: #000;
    border: 1px solid var(--border-color);
    padding: 8px 24px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 20px;
    transition: all 0.3s;
}

#forum-page .btn-outline:hover {
    background: #000;
    color: #fff;
}

/* 搜索框 */
#forum-page .search-box {
    margin-bottom: 30px;
}

#forum-page .search-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    background: transparent;
    color: #000;
}

/* 标签云 */
#forum-page .tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#forum-page .tag-cloud .tag {
    font-size: 13px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    #forum-page .main-content {
        grid-template-columns: 1fr;
    }
}
/* 论坛主导航切换Tab的样式 */
#forum-page .main-tab-content { display: none; } 
#forum-page .main-tab-content.active { display: block; }

/* 扩展功能区总容器 */
#forum-post-extended-options {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: none; /* 默认不显示 */
}

/* 各个功能面板的通用样式 */
.forum-option-panel {
    display: none; /* 各个面板默认也隐藏 */
    animation: fadeIn 0.3s ease;
}

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

/* 图片预览 */
#forum-image-panel {
    position: relative;
    width: 150px;
    height: 150px;
}
#forum-image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
}
#remove-forum-image-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-weight: bold;
    line-height: 24px;
    text-align: center;
}

/* 话题输入 */
#forum-topic-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#forum-topic-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    outline: none;
    font-size: 14px;
    border-radius: 4px;
    background: transparent;
}
#forum-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
/* 复用 .fanfic-char-pill 样式，但加个前缀更安全 */
.forum-tag-pill {
    background-color: #f0f0f0;
    color: #333;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}
.forum-tag-pill-remove {
    background: #ddd;
    border: none;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    cursor: pointer;
    font-size: 12px;
    line-height: 16px;
    font-weight: bold;
    color: #666;
}

/* 位置输入 */
#forum-location-panel input {
    width: 100%;
    border: 1px solid #ccc;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 4px;
    outline: none;
    background: transparent;
}

/* --- 在 .post-card 样式之后添加 --- */
/* 帖子卡片中的图片 */
.post-card-image-container {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; 
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap; /* <-- 添加这一行 */
}

.post-card-image {
    width: 100%; aspect-ratio: 1 / 1; height: auto;
    border-radius: 4px;
    object-fit: cover;
    cursor: pointer;
}


/* 帖子卡片中的位置信息 */
.post-card-location {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #666;
    margin-top: 15px;
}
.post-card-location .svg-icon {
    width: 14px;
    height: 14px;
}
/* 在已有论坛样式的末尾添加 */
#forum-page .post-stats .svg-icon {
    width: 18px; /* 调整图标大小 */
    height: 18px;
    vertical-align: bottom; /* 让图标和数字对齐 */
    margin-right: 4px; /* 图标和数字的间距 */
}
/* ---【新增 V2.0】新版论坛帖子详情页样式 --- */
#forum-post-detail-page .page-content {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    background: #fafafa;
    color: #000;
    line-height: 1.6;
}

#forum-post-detail-page .page-content * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* 主容器 */
#forum-post-detail-page .container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    min-height: 100%;
}

/* 帖子主体 */
#forum-post-detail-page .post-main {
    padding: 32px 20px;
    border-bottom: 8px solid #fafafa;
}

#forum-post-detail-page .author-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

#forum-post-detail-page .author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #000 0%, #434343 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

#forum-post-detail-page .author-details {
    flex: 1;
}

#forum-post-detail-page .author-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

#forum-post-detail-page .post-time {
    font-size: 13px;
    color: #8e8e8e;
}

#forum-post-detail-page .follow-button {
    background: #000;
    color: #fff;
    border: none;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    transition: opacity 0.2s;
}
#forum-post-detail-page .follow-button:hover {
    opacity: 0.8;
}

/* 帖子内容 */
#forum-post-detail-page .post-content {
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 24px;
    color: #262626;
}

#forum-post-detail-page .post-content p:not(:last-child) {
    margin-bottom: 16px;
}

/* 图片网格 */
#forum-post-detail-page .post-images {
    margin-bottom: 24px;
}

#forum-post-detail-page .image-grid {
    display: grid;
    gap: 4px;
    border-radius: 8px; /* 增加圆角 */
    overflow: hidden;
}

#forum-post-detail-page .image-grid.single { grid-template-columns: 1fr; }
#forum-post-detail-page .image-grid.double { grid-template-columns: 1fr 1fr; }
#forum-post-detail-page .image-grid.triple { grid-template-columns: repeat(3, 1fr); }

#forum-post-detail-page .post-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #8e8e8e;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
/* 新占位图样式 */
#forum-post-detail-page .post-image::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid #d0d0d0;
    border-radius: 8px;
}
#forum-post-detail-page .post-image::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #d0d0d0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


/* 标签 */
#forum-post-detail-page .post-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
#forum-post-detail-page .tag {
    background: #fafafa;
    color: #262626;
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #efefef;
}
#forum-post-detail-page .tag:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* 互动统计 */
#forum-post-detail-page .post-stats {
    display: flex;
    gap: 24px;
    padding: 20px 0;
    border-top: 1px solid #efefef;
    border-bottom: 1px solid #efefef;
    margin-bottom: 12px;
}
#forum-post-detail-page .stat-item { display: flex; align-items: center; gap: 8px; cursor: pointer; transition: opacity 0.2s; }
#forum-post-detail-page .stat-item:hover { opacity: 0.6; }
#forum-post-detail-page .stat-count { font-size: 14px; font-weight: 500; }
/* 新增：为SVG图标设置通用样式 */
#forum-post-detail-page .svg-icon {
    width: 20px;
    height: 20px;
    color: #000; /* 或 currentColor */
}

/* 调整统计区域的图标样式 */
#forum-post-detail-page .stat-item .svg-icon {
    color: #262626;
}

/* 调整底部操作按钮的Flex布局，因为现在只有图标了 */
#forum-post-detail-page .action-btn {
    gap: 0;
}
#forum-post-detail-page .full-post-stickers img {
    max-width: 80px;
    max-height: 80px;
    vertical-align: middle;
    margin: 0 4px;
}

/* 操作按钮组 */
#forum-post-detail-page .action-buttons { display: flex; gap: 12px; padding: 12px 0; }
#forum-post-detail-page .action-btn { flex: 1; padding: 10px; background: #fafafa; border: 1px solid #efefef; cursor: pointer; font-size: 14px; font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 6px; transition: all 0.2s; border-radius: 4px; }
#forum-post-detail-page .action-btn:hover { background: #000; color: #fff; border-color: #000; }

/* 评论区 */
#forum-post-detail-page .comments-section { padding: 24px 20px; }
#forum-post-detail-page .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
#forum-post-detail-page .section-title { font-size: 17px; font-weight: 700; }
#forum-post-detail-page .sort-button { background: none; border: 1px solid #dbdbdb; padding: 6px 12px; font-size: 13px; cursor: pointer; border-radius: 4px; transition: all 0.2s; }
#forum-post-detail-page .sort-button:hover { background: #fafafa; }
#forum-post-detail-page .comment-composer { display: flex; gap: 12px; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid #efefef; }
#forum-post-detail-page .comment-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #000 0%, #434343 100%); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; font-size: 14px; flex-shrink: 0; }
#forum-post-detail-page .comment-input-wrapper { flex: 1; display: flex; flex-direction: column; gap: 12px; }
#forum-post-detail-page .comment-input { width: 100%; padding: 12px 16px; border: 1px solid #dbdbdb; border-radius: 4px; font-size: 14px; font-family: inherit; resize: vertical; min-height: 80px; outline: none; transition: border-color 0.2s; }
#forum-post-detail-page .comment-input:focus { border-color: #000; }
#forum-post-detail-page .comment-actions { display: flex; justify-content: flex-end; gap: 8px; }
#forum-post-detail-page .cancel-btn { background: none; border: 1px solid #dbdbdb; padding: 8px 20px; font-size: 14px; cursor: pointer; border-radius: 4px; transition: all 0.2s; }
#forum-post-detail-page .cancel-btn:hover { background: #fafafa; }
#forum-post-detail-page .submit-btn { background: #000; color: #fff; border: none; padding: 8px 20px; font-size: 14px; font-weight: 500; cursor: pointer; border-radius: 4px; transition: opacity 0.2s; }
#forum-post-detail-page .submit-btn:hover { opacity: 0.8; }
#forum-post-detail-page .submit-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* 评论列表 */
#forum-post-detail-page .comment-item { display: flex; gap: 12px; padding: 20px 0; border-bottom: 1px solid #efefef; }
#forum-post-detail-page .comment-body { flex: 1; }
#forum-post-detail-page .comment-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
#forum-post-detail-page .comment-author { font-size: 14px; font-weight: 600; }
#forum-post-detail-page .comment-time { font-size: 12px; color: #8e8e8e; }
#forum-post-detail-page .comment-content { font-size: 14px; line-height: 1.6; color: #262626; margin-bottom: 12px; }
#forum-post-detail-page .comment-footer { display: flex; gap: 20px; align-items: center; }
#forum-post-detail-page .comment-action { font-size: 13px; color: #8e8e8e; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: color 0.2s; }
#forum-post-detail-page .comment-action:hover { color: #000; }
#forum-post-detail-page .comment-like-count { font-weight: 500; }

/* 评论区的回复 */
#forum-post-detail-page .replies { margin-top: 16px; padding-left: 48px; } /* 注意：这是新设计里的回复区，你可能需要适配 */
#forum-post-detail-page .reply-item { padding: 12px 0; border-top: 1px solid #efefef; }
#forum-post-detail-page .reply-header { display: flex; gap: 8px; margin-bottom: 6px; font-size: 13px; align-items: center; }
#forum-post-detail-page .reply-author { font-weight: 600; }
#forum-post-detail-page .reply-to { color: #8e8e8e; }
#forum-post-detail-page .reply-content { font-size: 13px; line-height: 1.5; color: #262626; margin-bottom: 8px; }

/* 响应式调整 */
@media (max-width: 768px) {
    #forum-post-detail-page .container { padding: 0; }
    #forum-post-detail-page .post-main { padding: 24px 16px; }
    #forum-post-detail-page .comments-section { padding: 20px 16px; }
    #forum-post-detail-page .post-content { font-size: 15px; }
}


/* --- 【全新】论坛“我的”页面样式 ---  */
#forum-page .forum-profile-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

#forum-page .forum-profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    padding: 30px;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

#forum-page .forum-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

#forum-page .forum-profile-info {
    flex-grow: 1;
}

#forum-page .forum-profile-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

#forum-page .forum-profile-stats {
    display: flex;
    gap: 25px;
    font-size: 14px;
    color: #666;
}

#forum-page .forum-profile-stats strong {
    color: #000;
    font-weight: 600;
}

#forum-page .forum-profile-edit-btn {
    background: #fff;
    color: #000;
    border: 1px solid var(--border-color);
    padding: 6px 18px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
    flex-shrink: 0;
}

#forum-page .forum-profile-edit-btn:hover {
    background: #000;
    color: #fff;
}

#forum-page .forum-profile-section {
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

#forum-page .forum-list-item {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.3s;
}

#forum-page .forum-list-item:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

#forum-page .forum-list-item:hover {
    background: #f0f0f0;
}

#forum-page .forum-list-item .svg-icon {
    width: 20px;
    height: 20px;
    color: #333;
}
/* --- 同人浏览页专属样式 --- */
/* --- 推特风格闲聊帖样式 --- */
/* 推特风格卡片 */
.tweet-card {
    background: #fff;
    border-radius: 0;
    padding: 10px 16px 25px !important;;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #eff3f4;  /* 添加这行,添加分割线 */
    grid-column: span 2;
}
.tweet-title {
    font-weight: 700; /* 加粗 */
    margin-bottom: 4px; /* 和下面的文字拉开一点距离 */
}


.tweet-card:hover {
    background: #fafafa;
}

.tweet-header {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.tweet-avatar {
    width: 40px;  /* 原来可能是 48px，改小一点 */
    height: 40px;
    background: #1d9bf0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;  /* 字体也相应改小一点 */
}

.tweet-header-info {
    flex: 1;
    min-width: 0;
}

.tweet-user {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 2px;
}

.tweet-username {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-text);
}

.tweet-handle {
    font-size: 15px;
    color: var(--secondary-text);
}

.tweet-time {
    font-size: 15px;
    color: var(--secondary-text);
}

.tweet-content {
    font-size: 15px;
    line-height: 1.5;
    color: var(--primary-text);
    margin-bottom: 12px;
    word-wrap: break-word;
}

.tweet-actions {
    display: flex;
    justify-content: space-between;
    max-width: 425px;
    padding-top: 4px; 
}

.tweet-action {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-text);
    font-size: 13px;
    cursor: pointer;
    transition: color 0.2s;
}

.tweet-action:hover {
    color: var(--primary-text);
}


/* 新增：其他作品类型卡片 */

/* === 投票卡片样式 === */
.poll-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    grid-column: span 2; /* 投票卡片占满两列 */
}
.poll-question {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}
.poll-options .option {
    margin-bottom: 12px;
}
.poll-options label {
    display: block;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.poll-options input[type="radio"] {
    display: none; /* 隐藏原始的单选按钮 */
}
.poll-options input[type="radio"]:checked + label {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}
.poll-options.voted label {
    cursor: not-allowed;
    position: relative;
    overflow: hidden;
}
.poll-options.voted .result-bar {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    background: rgba(0, 122, 255, 0.2);
    width: var(--result-percent, 0%);
    transition: width 0.5s ease-in-out;
    pointer-events: none;
}
.poll-options.voted .result-text {
    position: relative;
    z-index: 2;
}

/* === 捡手机文学卡片样式 === */
.found-phone-card {
    background: #1c1c1e; /* 深色手机背景 */
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 12px;
    color: white;
    grid-column: span 2;
    aspect-ratio: 9 / 18; /* 模拟手机长宽比 */
    max-height: 480px;
    display: flex;
    flex-direction: column;
}
.phone-screen-header {
    text-align: center;
    padding: 8px;
    font-size: 14px;
    font-weight: 500;
}
.phone-messages-area {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    background: #000;
    border-radius: 8px;
}
.phone-message {
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.5;
}
.phone-message .sender {
    font-weight: 600;
    color: #8c8c8c;
    margin-bottom: 2px;
}
.phone-message .text {
    padding: 8px 12px;
    border-radius: 16px;
    display: inline-block;
    max-width: 80%;
}
.phone-message.ai .text {
    background: #333;
}
.phone-message.user {
    text-align: right;
}
.phone-message.user .text {
    background: var(--accent-color);
    text-align: left;
}


/* === 仿论坛体卡片样式 === */
.forum-thread-card {
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 16px;
    grid-column: span 2;
}
.forum-thread-title {
    font-size: 17px;
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 16px;
}
.forum-floor {
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
}
.forum-floor:last-child {
    border-bottom: none;
}
.floor-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}
.floor-author {
    font-weight: 600;
    color: #555;
}
.floor-content {
    font-size: 14px;
    line-height: 1.7;
}

/* --- 全新SVG图标样式 --- */

/* 1. 图标容器通用设置 (这部分不变) */
.action-icon {
    width: 18px;
    height: 18px;
    /* 关键: 让SVG作为背景图显示 */
    background-color: currentColor; /* 将图标颜色与父元素的文字颜色关联 */
    -webkit-mask-size: 100%;
    mask-size: 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

/* 2. 为每个图标设置不同的SVG形状 (mask) */
.comment-icon {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'%3E%3C/path%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'%3E%3C/path%3E%3C/svg%3E");
}

.retweet-icon {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='17 1 21 5 17 9'%3E%3C/polyline%3E%3Cpath d='M3 11V9a4 4 0 0 1 4-4h14'%3E%3C/path%3E%3Cpolyline points='7 23 3 19 7 15'%3E%3C/polyline%3E%3Cpath d='M21 13v1a4 4 0 0 1-4 4H3'%3E%3C/path%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='17 1 21 5 17 9'%3E%3C/polyline%3E%3Cpath d='M3 11V9a4 4 0 0 1 4-4h14'%3E%3C/path%3E%3Cpolyline points='7 23 3 19 7 15'%3E%3C/polyline%3E%3Cpath d='M21 13v1a4 4 0 0 1-4 4H3'%3E%3C/path%3E%3C/svg%3E");
}

.like-icon {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'%3E%3C/path%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'%3E%3C/path%3E%3C/svg%3E");
}

.share-icon {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8'%3E%3C/path%3E%3Cpolyline points='16 6 12 2 8 6'%3E%3C/polyline%3E%3Cline x1='12' y1='2' x2='12' y2='15'%3E%3C/line%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8'%3E%3C/path%3E%3Cpolyline points='16 6 12 2 8 6'%3E%3C/polyline%3E%3Cline x1='12' y1='2' x2='12' y2='15'%3E%3C/line%3E%3C/svg%3E");
}

/* 标签样式 (这个不用动) */
.tweet-tag {
    color: var(--accent-color);
    font-weight: 400;
}
.tweet-tag:hover {
    text-decoration: underline;
}


/* 标签样式 */
.tweet-tag {
    color: var(--accent-color);
    font-weight: 400;
}
.tweet-tag:hover {
    text-decoration: underline;
}

#fanfic-browse-page .page-content {
    /* 这里应用了原来 body 的样式，并做了适配 */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    background: #fff;
    color: #000;
    line-height: 1.6;
    /* 新增内边距，让内容不会紧贴着头部 */
    padding: 20px;
}

#fanfic-browse-page .page-content * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* 横幅区域 */
#fanfic-browse-page .banner {
    height: 240px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border-radius: 8px;
    margin-bottom: 30px; /* 修改了外边距 */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#fanfic-browse-page .banner-content {
    text-align: center;
    z-index: 1;
}

#fanfic-browse-page .banner-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

#fanfic-browse-page .banner-subtitle {
    font-size: 16px;
    color: #666;
}

#fanfic-browse-page .banner-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

#fanfic-browse-page .banner-pattern::before,
#fanfic-browse-page .banner-pattern::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid #000;
}

#fanfic-browse-page .banner-pattern::before {
    top: -100px;
    left: -100px;
    border-radius: 50%;
}

#fanfic-browse-page .banner-pattern::after {
    bottom: -100px;
    right: -100px;
    transform: rotate(45deg);
}

/* 分类标签栏 */
#fanfic-browse-page .category-tabs {
    display: flex;
    gap: 8px;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#fanfic-browse-page .category-tabs::-webkit-scrollbar {
    display: none;
}

#fanfic-browse-page .category-tab {
    padding: 8px 20px;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

#fanfic-browse-page .category-tab:hover {
    background: #f0f0f0;
}

#fanfic-browse-page .category-tab.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* 筛选和排序 */
#fanfic-browse-page .filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    flex-wrap: wrap;
    gap: 12px;
}

#fanfic-browse-page .filter-left {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

#fanfic-browse-page .filter-btn {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

#fanfic-browse-page .filter-btn:hover {
    background: #fafafa;
}

#fanfic-browse-page .filter-btn.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

#fanfic-browse-page .view-toggle {
    display: flex;
    gap: 4px;
}

#fanfic-browse-page .view-btn {
    width: 32px;
    height: 32px;
    background: #fff;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

#fanfic-browse-page .view-btn:hover {
    background: #fafafa;
}

#fanfic-browse-page .view-btn.active {
    background: #000;
    border-color: #000;
}

#fanfic-browse-page .view-btn.active .view-icon {
    background: #fff;
}

#fanfic-browse-page .view-icon {
    width: 16px;
    height: 16px;
    background: #000;
    mask-size: contain;
}

#fanfic-browse-page .grid-icon {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3C/svg%3E");
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3C/svg%3E");
}

#fanfic-browse-page .list-icon {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='4' width='18' height='3'/%3E%3Crect x='3' y='10' width='18' height='3'/%3E%3Crect x='3' y='16' width='18' height='3'/%3E%3C/svg%3E");
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='4' width='18' height='3'/%3E%3Crect x='3' y='10' width='18' height='3'/%3E%3Crect x='3' y='16' width='18' height='3'/%3E%3C/svg%3E");
}

/* 作品网格 */
#fanfic-browse-page .works-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 20px 0 40px;
}

#fanfic-browse-page .work-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

#fanfic-browse-page .work-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

#fanfic-browse-page .work-cover {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    position: relative;
    overflow: hidden;
}

#fanfic-browse-page .work-cover::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border: 3px solid #d0d0d0;
    border-radius: 12px;
}

#fanfic-browse-page .work-cover::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #d0d0d0;
}

#fanfic-browse-page .work-type {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#fanfic-browse-page .work-info {
    padding: 16px;
}

#fanfic-browse-page .work-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#fanfic-browse-page .work-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

#fanfic-browse-page .author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #000 0%, #434343 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

#fanfic-browse-page .author-name {
    font-size: 13px;
    color: #666;
}

#fanfic-browse-page .work-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

#fanfic-browse-page .work-tag {
    background: #f5f5f5;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 12px;
    color: #666;
}

#fanfic-browse-page .work-stats {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #999;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

#fanfic-browse-page .stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 列表视图 */
#fanfic-browse-page .works-list {
    display: none;
}

#fanfic-browse-page .works-list.active {
    display: block;
}

#fanfic-browse-page .works-grid.active {
    display: grid;
}

#fanfic-browse-page .work-list-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

#fanfic-browse-page .work-list-item:hover {
    background: #fafafa;
}

#fanfic-browse-page .work-list-cover {
    width: 120px;
    height: 160px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
}

#fanfic-browse-page .work-list-cover::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 2px solid #d0d0d0;
    border-radius: 8px;
}

#fanfic-browse-page .work-list-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#fanfic-browse-page .work-list-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

#fanfic-browse-page .work-list-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

#fanfic-browse-page .work-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#fanfic-browse-page .work-list-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 加载更多 */
#fanfic-browse-page .load-more {
    text-align: center;
    padding: 40px 0;
}

#fanfic-browse-page .load-more-btn {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 12px 32px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

#fanfic-browse-page .load-more-btn:hover {
    background: #fafafa;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #fanfic-browse-page .banner {
        height: 180px;
    }

    #fanfic-browse-page .banner-title {
        font-size: 28px;
    }

    #fanfic-browse-page .banner-subtitle {
        font-size: 14px;
    }

    #fanfic-browse-page .works-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    #fanfic-browse-page .work-cover {
        aspect-ratio: 2/3;
    }

    #fanfic-browse-page .work-info {
        padding: 12px;
    }

    #fanfic-browse-page .work-title {
        font-size: 14px;
    }

    #fanfic-browse-page .work-list-item {
        flex-direction: column;
    }

    #fanfic-browse-page .work-list-cover {
        width: 100%;
        height: 200px;
    }

    #fanfic-browse-page .filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    #fanfic-browse-page .view-toggle {
        width: 100%;
        justify-content: flex-end;
    }
}
/* --- 在这里添加 --- */

/* 手书/视频卡片 - 视觉冲击力强 */
.video-card {
    background: #fff;
    border: 1px solid var(--border-color);  /* <-- 修改这里 */
    border-radius: 4px;     /* <-- 修改这里 */
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    grid-column: span 2;
    position: relative;       /* <-- 添加这行 */
}

.video-card:hover {
    opacity: 0.8; /* <-- 修改为这个 */
}


.video-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #333 0%, #ddd 100%);
    position: relative;
    overflow: hidden;
}

/* 播放按钮叠加层 */
.video-card .play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.video-card:hover .play-overlay {
    background: rgba(0,0,0,0.5);
}

.video-card .play-button {
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}
.video-card:hover .play-button {
    transform: scale(1.1);
}
.video-card .play-button::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 16px solid #fff;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    margin-left: 4px;
}

.video-card .video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
}

.video-card .video-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.video-card .video-info {
    padding: 16px;
    display: flex;
    gap: 12px;
}

.video-card .video-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.video-card .video-main-info {
    flex: 1;
}

.video-card .video-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card .video-author {
    font-size: 13px;
    font-weight: 500;
    color: var(--secondary-text);
    margin-bottom: 8px;
}

.video-card .video-stats {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #999;
}

/* 同人小说卡片专属样式 V1.0 */
.fanfic-novel-card {
    background-color: transparent;  /* 透明背景 */
    margin: 0 0 24px 0;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid #e5e6eb;  /* 更明显的灰色 */
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    cursor: pointer;
    transition: opacity 0.2s;
    grid-column: 1 / -1; 
}

.fanfic-novel-card:hover {
    opacity: 0.8;
}


.fanfic-novel-card:active {
    transform: scale(0.98);
}

/* 头部：分类和状态 */
.fanfic-novel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px; /* 和标题拉开一点距离 */
}
.fanfic-novel-category {
    background-color: #f2f3f5;  /* 浅灰背景 */
    color: #86909c;  /* 深灰文字 */
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 4px;
}

.fanfic-novel-status {
    font-size: 12px;
    color: #86909c;  /* 统一改成灰色 */
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 4px;
}

.fanfic-novel-status::before {
    width: 6px;
    height: 6px;
}


/* 标题 */
.fanfic-novel-title {
    font-size: 16px;  /* 改小一点 */
    font-weight: 600;
    color: #1d2129;
    line-height: 1.5;
    margin: 0;
}

/* 简介 */
.fanfic-novel-snippet {
    font-size: 13px;  /* 改小一点 */
    color: #86909c;  /* 更淡的灰色 */
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
}


/* 页脚：作者信息 */
.fanfic-novel-footer {
    padding-top: 0;  /* 删除上边距 */
    border-top: none;  /* 删除上边框 */
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fanfic-novel-author-avatar {
    width: 32px;  /* 改小 */
    height: 32px;
    border-radius: 50%;
     background: #4e5969;  /* 深灰色 */
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    font-size: 13px;
    flex-shrink: 0;
}

.fanfic-novel-author-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.fanfic-novel-author-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-text);
}
.fanfic-novel-author-stats {
    font-size: 12px;
    color: var(--secondary-text);
    display: flex;
    gap: 8px; /* 统计数据之间的间距 */
    align-items: center; /* 垂直居中对齐 */
}
/* --- 【全新】同人闲聊/讨论帖详情页样式 --- */
/* 页面背景和基本字体 */
#fanfic-discussion-detail-page .page-content {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    background: #f4f5f7;
    color: #1f1f1f;
    line-height: 1.7;
    padding: 12px 12px 0; /* 移除底部内边距，让内容区自己处理滚动 */
}

/* 主内容容器 */
#fanfic-discussion-detail-page .container {
    padding-bottom: 80px; /* 为底部互动栏留出滚动空间 */
    max-width: 900px;
    margin: 0 auto;
}

/* 楼主的主楼 */
#fanfic-discussion-detail-page .main-post-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* 作者信息 */
#fanfic-discussion-detail-page .author-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

#fanfic-discussion-detail-page .author-details {
    display: flex;
    align-items: center;
    gap: 12px;
}

#fanfic-discussion-detail-page .author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8BC6EC 0%, #9599E2 100%);
    display:flex; align-items:center; justify-content:center; font-weight:700; font-size:16px; color: #fff;
}

#fanfic-discussion-detail-page .author-meta h3 {
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

#fanfic-discussion-detail-page .op-tag { /* OP = Original Poster 楼主 */
    background: #e3f2fd;
    color: #1e88e5;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
}

#fanfic-discussion-detail-page .author-meta p {
    font-size: 12px;
    color: #999;
}

#fanfic-discussion-detail-page .follow-btn {
    background: #fff;
    color: #1e88e5;
    border: 1px solid #1e88e5;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 16px;
    transition: all 0.2s;
}
#fanfic-discussion-detail-page .follow-btn:hover { background: #e3f2fd; }
#fanfic-discussion-detail-page .follow-btn.followed { background: #f0f0f0; color: #999; border-color: #e0e0e0; }

/* 帖子内容 */
#fanfic-discussion-detail-page .post-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
}

#fanfic-discussion-detail-page .post-content p {
    font-size: 16px;
    margin-bottom: 16px;
}

#fanfic-discussion-detail-page .post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

#fanfic-discussion-detail-page .tag {
    background: #f5f5f5; color: #666; padding: 6px 14px; font-size: 13px; border-radius: 16px;
}

/* 回复区 */
#fanfic-discussion-detail-page .replies-section {
    margin-top: 12px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

#fanfic-discussion-detail-page .replies-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 12px;
}

#fanfic-discussion-detail-page .replies-title { font-size: 16px; font-weight: 700; }

#fanfic-discussion-detail-page .sort-options { font-size: 13px; color: #666; }

/* 回复列表 */
#fanfic-discussion-detail-page .reply-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}
#fanfic-discussion-detail-page .reply-item:last-child { border-bottom: none; }

#fanfic-discussion-detail-page .reply-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    display:flex; align-items:center; justify-content:center; font-weight:600; font-size:14px; color: #fff;
    flex-shrink: 0;
}

#fanfic-discussion-detail-page .reply-body { flex: 1; }

#fanfic-discussion-detail-page .reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

#fanfic-discussion-detail-page .reply-author {
    font-size: 14px;
    font-weight: 600;
}

#fanfic-discussion-detail-page .floor-number {
     font-size: 12px;
     color: #aaa;
     font-weight: 500;
}

#fanfic-discussion-detail-page .reply-content {
    font-size: 15px;
    margin-bottom: 12px;
    color: #333;
    word-break: break-all;
}

#fanfic-discussion-detail-page .reply-footer {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 12px;
    color: #999;
}

#fanfic-discussion-detail-page .reply-action { cursor: pointer; display: flex; align-items: center; gap: 4px; }
#fanfic-discussion-detail-page .reply-action:hover { color: #1e88e5; }

/* 嵌套回复 */
#fanfic-discussion-detail-page .nested-reply {
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 12px;
    margin-top: 12px;
    font-size: 14px;
}
#fanfic-discussion-detail-page .nested-reply-author { font-weight: 600; color: #555; }

/* 响应式 */
@media (max-width: 768px) {
    #fanfic-discussion-detail-page .page-content {
        padding: 12px 0 0;
    }
    #fanfic-discussion-detail-page .container {
        padding-bottom: 80px;
    }
    #fanfic-discussion-detail-page .main-post-card, 
    #fanfic-discussion-detail-page .replies-section {
        border-radius: 0;
        box-shadow: none;
        border-bottom: 8px solid #f4f5f7;
    }
    #fanfic-discussion-detail-page .post-title { font-size: 20px; }
    #fanfic-discussion-detail-page .post-content { font-size: 15px; }
}
/* --- 同人小说详情页 (新) --- */
#fanfic-article-detail-page .page-content {
    background: #fff;
    color: #000;
    line-height: 1.8;
}

#fanfic-article-detail-page .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px 80px; /* 底部padding为互动栏留出空间 */
}

#fanfic-article-detail-page .article-header {
    padding: 40px 0 32px;
    border-bottom: 1px solid #e0e0e0;
}

#fanfic-article-detail-page .article-category {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

#fanfic-article-detail-page .article-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;  /* 缩小 */
    text-align: center;
    padding: 16px 0 12px;  /* 缩小 */
    color: #111;
}



#fanfic-article-detail-page .article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;  /* 改成这个,让关注按钮靠右 */
    gap: 16px;
    padding: 20px 0;
}


#fanfic-article-detail-page .author-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

#fanfic-article-detail-page .author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

#fanfic-article-detail-page .author-info h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

#fanfic-article-detail-page .author-info p {
    font-size: 12px;
    color: #999;
}

#fanfic-article-detail-page .follow-btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}
#fanfic-article-detail-page .follow-btn.followed {
    background: #f0f0f0;
    color: #666;
}

#fanfic-article-detail-page .article-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

#fanfic-article-detail-page .tag {
    background: #f5f5f5;
    padding: 6px 14px;
    font-size: 13px;
    color: #666;
}

#fanfic-article-detail-page .chapter-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

#fanfic-article-detail-page .chapter-select {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    background: #fff;
    font-size: 14px;
    min-width: 200px;
}

#fanfic-article-detail-page .nav-btns {
    display: flex;
    gap: 8px;
}

#fanfic-article-detail-page .nav-btn {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    background: #fff;
    font-size: 13px;
}

#fanfic-article-detail-page .author-note {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 16px 0;  /* 缩小间距 */
}
#fanfic-article-detail-page .author-note-title {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    margin-bottom: 8px;
}
#fanfic-article-detail-page .author-note-content {
    font-size: 15px;
    color: #333;
    line-height: 1.6;
}

#fanfic-article-detail-page .article-stats {
    display: flex;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
    color: #666;
}

#fanfic-article-detail-page .article-content {
    padding: 20px 0;  /* 改小 */
    font-size: 17px;
    line-height: 2;
    letter-spacing: 0.3px;
}


#fanfic-article-detail-page .article-content p {
    margin-bottom: 24px;
}

#fanfic-article-detail-page .article-content p:first-child::first-letter {
    font-size: 3em;
    font-weight: 700;
    float: left;
    line-height: 1;
    margin-right: 8px;
}

#fanfic-article-detail-page .chapter-end {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    margin: 40px 0;
}
#fanfic-article-detail-page .chapter-end::before {
    content: '— END —';
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #999;
}

/* 底部互动栏样式 */
#fanfic-article-detail-page .interaction-bar {
    position: absolute; /* 让它在页面容器内底部固定 */
    bottom: 0; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 12px 16px;
    display: flex;
    gap: 12px;
    align-items: center;
}
#fanfic-article-detail-page .comment-input {
    flex: 1;
    background: #f5f5f5;
    border: none;
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 14px;
}
#fanfic-article-detail-page .action-btn {
    background: none; border: none; cursor: pointer; display: flex;
    flex-direction: column; align-items: center; gap: 2px; min-width: 50px;
}
#fanfic-article-detail-page .action-icon {
    width: 20px; height: 20px; position: relative;
}
#fanfic-article-detail-page .action-text {
    font-size: 11px; color: #666;
}
#fanfic-article-detail-page .action-btn.active .action-text {
    color: #000; font-weight: 600;
}
#fanfic-article-detail-page .like-icon::before {
    content: ''; position: absolute; width: 9px; height: 9px;
    border: 2px solid #666; border-radius: 50%; top: 2px; left: 0;
}
#fanfic-article-detail-page .like-icon::after {
    content: ''; position: absolute; width: 9px; height: 9px;
    border: 2px solid #666; border-radius: 50%; top: 2px; right: 0;
}
#fanfic-article-detail-page .action-btn.active .like-icon::before,
#fanfic-article-detail-page .action-btn.active .like-icon::after {
    border-color: #000;
}
#fanfic-article-detail-page .bookmark-icon::before {
    content: ''; position: absolute; width: 14px; height: 18px;
    border: 2px solid #666; top: 0; left: 3px;
}
#fanfic-article-detail-page .bookmark-icon::after {
    content: ''; position: absolute; width: 0; height: 0;
    border-left: 7px solid transparent; border-right: 7px solid transparent;
    border-top: 8px solid #666; bottom: 0; left: 3px;
}
#fanfic-article-detail-page .action-btn.active .bookmark-icon::before {
    border-color: #000; background: #000;
}
#fanfic-article-detail-page .action-btn.active .bookmark-icon::after {
    border-top-color: #000;
}
/* ---【新增】同人图详情页专属样式 (白色主题版) --- */
#artwork-detail-page { /* 替代 body */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    color: #1a1a1a;  /* 主文字颜色: 深灰色 */
    line-height: 1.6;
}
#artwork-detail-page .page-content * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


#artwork-detail-page .page-content {
    background: #ffffff; /* 页面背景: 白色 */
}

/* 图片查看器 */
#artwork-detail-page .image-viewer {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; 
    background: #f8f9fa;
}

#artwork-detail-page .image-container {
    width: 100%;
    max-width: 1200px;
    position: relative;
    background: #f0f2f5; /* 为图片容器提供一个浅灰色背景 */
}

#artwork-detail-page .main-image {
    width: 100%;
    height: auto;
    display: block;
    background: linear-gradient(135deg, #f0f2f5 0%, #e0e2e5 100%); /* 渐变占位符背景 */
    position: relative;
}

/* 图片占位效果 */
#artwork-detail-page .main-image::before {
    content: '';
    display: block;
    padding-top: 133.33%;
}

#artwork-detail-page .main-image::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border: 3px solid #dcdcdc; /* 边框颜色变浅 */
    border-radius: 16px;
}

/* 图片导航 */
#artwork-detail-page .image-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

#artwork-detail-page .nav-btn {
    background: rgba(0, 0, 0, 0.2); /* 按钮背景: 半透明黑色 */
    backdrop-filter: blur(10px);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: all 0.2s;
}

#artwork-detail-page .nav-btn:hover {
    background: rgba(0, 0, 0, 0.3); /* 悬停时加深 */
    transform: scale(1.1);
}

#artwork-detail-page .nav-arrow {
    width: 12px;
    height: 12px;
    border-left: 2px solid #fff; /* 箭头颜色: 白色 */
    border-bottom: 2px solid #fff;
}

#artwork-detail-page .nav-btn.prev .nav-arrow {
    transform: rotate(45deg);
    margin-left: 4px;
}

#artwork-detail-page .nav-btn.next .nav-arrow {
    transform: rotate(-135deg);
    margin-right: 4px;
}

/* 图片信息指示器 */
#artwork-detail-page .image-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5); /* 背景: 半透明黑色 */
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: #fff; /* 文字: 白色 */
}

/* 缩略图预览 */
#artwork-detail-page .thumbnail-strip {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #f8f9fa; /* 缩略图区域背景 */
}

#artwork-detail-page .thumbnail-strip::-webkit-scrollbar {
    display: none;
}

#artwork-detail-page .thumbnail {
    width: 60px;
    height: 80px;
    background: #e9ecef; /* 缩略图背景 */
    border-radius: 4px;
    flex-shrink: 0;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    position: relative;
}

#artwork-detail-page .thumbnail.active {
    border-color: #007aff; /* 激活时边框: 蓝色 */
}

#artwork-detail-page .thumbnail:hover {
    opacity: 0.8;
}

#artwork-detail-page .thumbnail::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 2px solid #dcdcdc; /* 占位符边框 */
    border-radius: 4px;
}

/* 作品信息区 */
#artwork-detail-page .artwork-info {
    background: #ffffff; /* 背景: 白色 */
    padding: 32px 20px;
}

#artwork-detail-page .info-container {
    max-width: 1200px;
    margin: 0 auto;
}

#artwork-detail-page .artwork-header {
    margin-bottom: 24px;
}

#artwork-detail-page .artwork-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    color: #1a1a1a;
}

#artwork-detail-page .artwork-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    color: #6c757d;  /* 次要文字颜色: 灰色 */
}

#artwork-detail-page .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 作者信息 */
#artwork-detail-page .author-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-top: 1px solid #dee2e6; /* 分割线颜色 */
    border-bottom: 1px solid #dee2e6;
}

#artwork-detail-page .author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

#artwork-detail-page .author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

#artwork-detail-page .author-details h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1a1a1a;
}

#artwork-detail-page .author-details p {
    font-size: 13px;
    color: #6c757d;
}

#artwork-detail-page .follow-btn {
    background: #007aff;  /* 关注按钮背景: 蓝色 */
    color: #fff; /* 文字: 白色 */
    border: none;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.2s; /* 过渡效果 */
}

#artwork-detail-page .follow-btn:hover {
    opacity: 0.8;
}

#artwork-detail-page .follow-btn.followed {
    background: #e9ecef; /* 已关注背景: 灰色 */
    color: #6c757d;   /* 文字: 灰色 */
    border: 1px solid #dee2e6;
}

/* 作品描述 */
#artwork-detail-page .artwork-description {
    padding: 24px 0;
    line-height: 1.8;
    color: #495057; /* 描述文字颜色 */
    font-size: 15px;
    border-bottom: 1px solid #dee2e6;
}

#artwork-detail-page .description-text {
    margin-bottom: 16px;
}

#artwork-detail-page .read-more {
    color: #007aff; /* "阅读更多"颜色: 蓝色 */
    cursor: pointer;
    font-size: 14px;
    text-decoration: none; /* 移除下划线 */
}

/* 标签 */
#artwork-detail-page .artwork-tags {
    padding: 24px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 1px solid #dee2e6;
}

#artwork-detail-page .tag {
    background: #f1f3f5; /* 标签背景: 浅灰色 */
    color: #495057;   /* 标签文字颜色 */
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

#artwork-detail-page .tag:hover {
    background: #e9ecef;
    color: #000;
}

/* 统计数据 */
#artwork-detail-page .artwork-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 24px 0;
    border-bottom: 1px solid #dee2e6;
}

#artwork-detail-page .stat-box {
    text-align: center;
}

#artwork-detail-page .stat-value {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #1a1a1a;
}

#artwork-detail-page .stat-label {
    font-size: 12px;
    color: #868e96;
}

/* 互动按钮 */
#artwork-detail-page .interaction-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 24px 0;
    border-bottom: 1px solid #dee2e6;
}

#artwork-detail-page .interact-btn {
    background: #f8f9fa; /* 互动按钮背景: 浅灰 */
    border: 1px solid #dee2e6;
    padding: 14px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    color: #495057; /* 文字颜色 */
}

#artwork-detail-page .interact-btn:hover {
    background: #e9ecef;
    border-color: #ced4da;
}

#artwork-detail-page .interact-btn.liked {
    background: rgba(244, 67, 54, 0.1); /* 已点赞背景 */
    border-color: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

#artwork-detail-page .interact-btn.collected {
    background: rgba(255, 193, 7, 0.1); /* 已收藏背景 */
    border-color: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

/* 响应式 */
@media (max-width: 768px) {
    #artwork-detail-page .artwork-title {
        font-size: 20px;
    }
    #artwork-detail-page .artwork-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    #artwork-detail-page .interaction-buttons {
        grid-template-columns: 1fr;
    }
    #artwork-detail-page .nav-btn {
        width: 40px;
        height: 40px;
    }
    #artwork-detail-page .image-navigation {
        padding: 0 10px;
    }
}
/* --- 【全新】手书/视频详情页专属样式 --- */
#fanfic-storyboard-detail-page .storyboard-player {
    width: 100%;
    /* aspect-ratio 会自动计算高度 */
    aspect-ratio: 16 / 9;
    background: #000;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#fanfic-storyboard-detail-page #frameImage {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.1s linear;
}

#fanfic-storyboard-detail-page .player-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* 改成这个 */
    background: rgba(0,0,0,0);
    opacity: 0;
    transition: opacity 0.3s;
}

#fanfic-storyboard-detail-page .storyboard-player:hover .player-overlay {
     opacity: 1;
}

#fanfic-storyboard-detail-page .player-overlay.visible {
    opacity: 1;
}

#fanfic-storyboard-detail-page .big-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 20;
}
#fanfic-storyboard-detail-page .big-play-button:hover { 
    transform: translate(-50%, -50%) scale(1.1);
}
#fanfic-storyboard-detail-page .big-play-button.hidden {
    opacity: 0;
    pointer-events: none;
}
#fanfic-storyboard-detail-page .big-play-button svg { width: 32px; height: 32px; fill: #fff; margin-left: 5px; }

#fanfic-storyboard-detail-page .controls-bar {
    padding: 8px 16px;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    display: flex;
    align-items: center;
    gap: 16px;
}

#fanfic-storyboard-detail-page .play-pause-btn,
#fanfic-storyboard-detail-page .fullscreen-btn {
    background: none; border: none; cursor: pointer; color: #fff; padding: 0;
    width: 20px; height: 20px; display: flex; align-items: center;
}
#fanfic-storyboard-detail-page .play-pause-btn svg,
#fanfic-storyboard-detail-page .fullscreen-btn svg { width: 100%; height: 100%; fill: #fff; }

#fanfic-storyboard-detail-page .time-display {
    font-size: 13px;
    color: #eee;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

#fanfic-storyboard-detail-page .progress-bar-container {
    flex: 1;
    height: 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

#fanfic-storyboard-detail-page .progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    position: relative;
}

#fanfic-storyboard-detail-page .progress-filled {
    width: 0;
    height: 100%;
    background: #fff;
    border-radius: 2px;
}

#fanfic-storyboard-detail-page .artwork-info-container {
    background: #fff;
    padding: 24px 20px;
}
/* -- 新增样式：卡片右上角的选项按钮 -- */
.tweet-card, .fanfic-novel-card, .video-card, .work-card {
    position: relative; /* 让绝对定位的子元素相对于卡片定位 */
}

.card-options-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5; /* 确保在其他元素之上 */
}

.card-options-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.card-options-btn svg {
    width: 18px;
    height: 18px;
    fill: #86909c; /* 图标颜色 */
}
/* ---【新增】同人图卡片样式 --- */
.artwork-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    grid-column: span 1; /* 每个卡片占一列 */
    display: flex;
    flex-direction: column;
}
.artwork-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.artwork-image-grid {
    display: grid;
    gap: 2px;
}
.artwork-image-item {
    padding-bottom: 100%; /* 关键：创建正方形 */
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: #f0f0f0; /* 图片加载前的占位符颜色 */
}
.artwork-image-more {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    background-color: rgba(0,0,0,0.5);
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 50%;
}
.artwork-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* 让信息区填满剩余空间 */
}
.artwork-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}
.artwork-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto; /* 关键：将作者信息推到底部 */
    padding-top: 8px;
}
/* ---【新增】图片描述弹窗样式 --- */
#image-description-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000; /* 确保在最上层 */
    display: flex;
    align-items: center;
    justify-content: center;
}
#image-description-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}
#image-description-modal .modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    width: calc(100% - 40px);
    max-width: 500px;
    position: relative;
    z-index: 1;
    color: #333;
    animation: modal-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#image-description-modal .modal-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
#image-description-modal .modal-content p {
    line-height: 1.7;
    font-size: 15px;
    max-height: 60vh;
    overflow-y: auto;
}
#image-description-modal .modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
}
@keyframes modal-pop {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}
/* --- 请用下面这段全新的CSS，替换掉所有旧的截图样式 --- */

/* === 全新 V2.0：仿微信/iMessage 聊天截图样式 === */
.generated-chat-screenshot {
    background-color: #d3dce3; /* 范例图中的那种灰蓝色背景 */
    padding: 15px 10px;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
    display: flex;
    flex-direction: column;
    gap: 15px; /* 消息与消息之间的间距 */
}

/* 截图顶部的日期时间戳 */
.screenshot-timestamp {
    text-align: center;
    align-self: center;
    margin-bottom: 10px;
    padding: 4px 12px;
    background-color: #c9c9c9; /* 灰色背景 */
    color: white;
    border-radius: 20px;
    font-size: 12px;
}

/* 每一条消息的容器行 */
.screenshot-message-row {
    display: flex;
    align-items: flex-end; /* 头像和气泡底部对齐 */
    gap: 8px;
    width: 100%;
}

/* --- 左边（对方）的样式 --- */
.screenshot-message-row.ai {
    justify-content: flex-start; /* 内容靠左 */
}

.screenshot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #eee;
    flex-shrink: 0;
}

.screenshot-message-content {
    max-width: 75%;
    position: relative;
}

/* 气泡本体 */
.screenshot-bubble {
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 16px;
    line-height: 1.4;
    word-break: break-word;
}

/* 左边白色气泡 */
.screenshot-message-row.ai .screenshot-bubble {
    background-color: #FFFFFF;
    color: #000;
    border-top-left-radius: 4px; /* 靠近头像的那个角更尖一点 */
}

/* 左边气泡的小尾巴（用伪元素制作） */
.screenshot-message-row.ai .screenshot-bubble::before {
    content: '';
    position: absolute;
    left: -6px; /* 伸出去的长度 */
    bottom: 8px; /* 尾巴的垂直位置 */
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 8px 6px 0;
    border-color: transparent #FFFFFF transparent transparent;
}


/* --- 右边（我/用户）的样式 --- */
.screenshot-message-row.user {
    justify-content: flex-end; /* 内容靠右 */
}

/* 右边黄色气泡 */
.screenshot-message-row.user .screenshot-bubble {
    background-color: #FFEC4F; /* 范例图中的那种黄色 */
    color: #000;
    border-top-right-radius: 4px; /* 靠近自己的角更尖一点 */
}

/* 右边气泡的小尾巴 */
.screenshot-message-row.user .screenshot-bubble::before {
    content: '';
    position: absolute;
    right: -6px; /* 伸出去的长度 */
    bottom: 8px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 0 6px 8px;
    border-color: transparent transparent transparent #FFEC4F;
}

/* 在详情页的大图样式，确保图片宽度100%，不变形 */
.post-content .detail-screenshot-placeholder img {
    max-width: 100%;
    height: auto !important; /* !important 确保覆盖其他可能冲突的样式 */
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.post-card-image-container .post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持比例，裁剪多余部分，填满容器 */
    border-radius: 4px; /* 给小图一点圆角 */
}
    }
}
}

