/* ============================================================
   三栏首页布局 home-3col.css
   ============================================================ */

/* ===== 三栏容器 ===== */
.three-col-layout {
    display: grid;
    /* ★ 中间列用 minmax(0, 1fr)，防止被长内容撑开导致右栏被挤出 */
    grid-template-columns: 280px minmax(0, 1fr) 320px;
    gap: 24px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 24px 32px 40px;
    align-items: start;
}

/* ===== 左右栏 ===== */
.col-left,
.col-right {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    scrollbar-width: thin;
    /* ★ 防止左右栏自身被内容撑破 */
    min-width: 0;
}

.col-left::-webkit-scrollbar,
.col-right::-webkit-scrollbar {
    width: 4px;
}
.col-left::-webkit-scrollbar-thumb,
.col-right::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* ===== 通用卡片 ===== */
.side-card {
    background: #fff;
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #f1f5f9;
    /* ★ 卡片不撑破父容器 */
    min-width: 0;
}

/* ===== 卡片头部 ===== */
.card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid #eef2ff;
}

.card-head-icon { font-size: 16px; }

.card-head-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    flex: 1;
}

.card-head-more {
    font-size: 12px;
    color: #3b82f6;
    text-decoration: none;
    padding: 2px 10px;
    border-radius: 12px;
    background: #eef2ff;
    transition: all 0.2s;
}
.card-head-more:hover {
    background: #3b82f6;
    color: #fff;
}

/* ============================================================
   左栏 - 时间卡片
   ============================================================ */
.datetime-card {
    text-align: center;
    padding: 20px 20px 16px;
}

.datetime-gregorian {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.datetime-lunar {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 10px;
}

.datetime-clock {
    font-size: 36px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: 2px;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.datetime-clock .seconds {
    font-size: 22px;
    color: #94a3b8;
    font-weight: 500;
}

.holiday-countdown {
    margin-top: 12px;
    padding: 6px 14px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    flex-wrap: wrap;
    justify-content: center;
}
.holiday-countdown[data-status="during"] {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}
.holiday-countdown[data-status="countdown"] {
    background: #eef2ff;
    color: #3b82f6;
}
.holiday-countdown .holiday-timer strong {
    font-size: 14px;
    margin: 0 2px;
}

/* ============================================================
   左栏 - 个人简介
   ============================================================ */
.profile-card { text-align: center; }

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 10px;
    display: block;
    background: #e2e8f0;
    border: 3px solid #eef2ff;
}

.profile-name {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.profile-mbti-tag {
    font-size: 12px;
    color: #64748b;
    display: inline-block;
    background: #f1f5f9;
    padding: 3px 14px;
    border-radius: 16px;
    margin-bottom: 8px;
}

.profile-tagline {
    font-size: 13px;
    color: #475569;
    margin-bottom: 12px;
}

.profile-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.profile-email,
.profile-about-btn {
    font-size: 12px;
    padding: 4px 14px;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.2s;
}
.profile-email { color: #3b82f6; background: #eef2ff; }
.profile-email:hover { background: #dbeafe; }
.profile-about-btn { color: #64748b; background: #f1f5f9; }
.profile-about-btn:hover { background: #3b82f6; color: #fff; }

/* ============================================================
   左栏 - 随机友链
   ============================================================ */
.links-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s;
    min-width: 0;
}
.link-item:hover { background: #f0f7ff; }

.link-icon { font-size: 14px; flex-shrink: 0; }

.link-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.link-name {
    font-size: 13px;
    font-weight: 500;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}
.link-item:hover .link-name { color: #3b82f6; }

.link-desc {
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

/* ============================================================
   中栏 - 文章列表
   ============================================================ */
.col-main-center {
    min-width: 0;
    /* ★ 防止内部长内容撑破 grid 单元 */
    max-width: 100%;
    overflow: hidden;
}

.posts-container {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #f1f5f9;
    min-width: 0;
}

.posts-header {
    padding: 16px 20px;
    border-bottom: 1px solid #eef2ff;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.posts-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.filter-tabs {
    display: flex;
    gap: 4px;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 20px;
}

.filter-tab {
    font-size: 12px;
    padding: 4px 16px;
    border-radius: 16px;
    text-decoration: none;
    color: #64748b;
    transition: all 0.2s;
    white-space: nowrap;
}
.filter-tab:hover { color: #1e293b; }
.filter-tab.active {
    background: #fff;
    color: #3b82f6;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.posts-count {
    font-size: 12px;
    color: #64748b;
    background: #f1f5f9;
    padding: 3px 12px;
    border-radius: 16px;
    margin-left: auto;
}

.post-list { padding: 4px 0; }

.post-item {
    padding: 14px 20px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
    min-width: 0;
}
.post-item:last-child { border-bottom: none; }
.post-item:hover { background: #f8fafc; }
.post-item.is-say { background: transparent; }
.post-item.is-say:hover { background: #f8fafc; }

.post-item-head { margin-bottom: 4px; }

.post-item-title {
    font-size: 15px;
    font-weight: 500;
    color: #1e293b;
    text-decoration: none;
    line-height: 1.4;
    display: inline;
    word-break: break-word;
}
.post-item-title:hover { color: #3b82f6; }

.post-type-badge {
    font-size: 11px;
    background: #fef3c7;
    color: #d97706;
    padding: 1px 8px;
    border-radius: 10px;
    margin-right: 6px;
    font-weight: 500;
    white-space: nowrap;
}

.post-item-excerpt {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin: 4px 0 6px;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.post-item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    font-size: 12px;
    color: #94a3b8;
}

.meta-tags { display: flex; gap: 4px; flex-wrap: wrap; }

.meta-tag {
    font-size: 11px;
    color: #3b82f6;
    background: #eef2ff;
    padding: 0 8px;
    border-radius: 10px;
    line-height: 1.7;
}

/* ★ 评论图标（现在是链接） */
.meta-comment {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.meta-comment:hover {
    color: #3b82f6;
    text-decoration: none;
}

/* 分页 */
.pagination-wrapper {
    padding: 16px 20px;
    border-top: 1px solid #eef2ff;
    display: flex;
    justify-content: center;
}

.page-navigator {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}
.page-navigator li { display: inline-flex; }

.page-navigator a,
.page-navigator span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 13px;
    text-decoration: none;
    color: #475569;
    background: #fff;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}
.page-navigator a:hover { background: #f1f5f9; border-color: #cbd5e1; }
.page-navigator .current {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}

/* ============================================================
   右栏 - 歌曲卡片（封面 + 歌曲名 + 演唱者）
   ============================================================ */
.songs-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.song-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #f8fafc;
    transition: background 0.2s;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}
.song-item:hover { background: #f0f7ff; }

.song-cover {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    overflow: hidden;
}
.song-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.song-title {
    font-size: 13px;
    font-weight: 500;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}
.song-item:hover .song-title { color: #3b82f6; }

.song-artist {
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    margin-top: 2px;
}

/* ★ 网易云外链播放器样式 */
.song-item-wrap {
    margin-bottom: 10px;
    min-width: 0;
}
.song-item-wrap:last-child {
    margin-bottom: 0;
}

.song-player {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: #f8fafc;
}

.song-player iframe {
    display: block;
    width: 100%;
    border: none;
    border-radius: 8px;
}

/* ============================================================
   右栏 - 番剧（紧凑版：海报 + 名称）
   ============================================================ */
.anime-list-col {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.anime-item-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
    transition: transform 0.2s;
    min-width: 0;
}
.anime-item-col:hover { transform: translateY(-2px); }

.anime-poster-col {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 8px;
    overflow: hidden;
    background: #e2e8f0;
}
.anime-poster-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.anime-info-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.anime-title-col {
    font-size: 11px;
    font-weight: 500;
    color: #0f172a;
    line-height: 1.3;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-all;
}
.anime-item-col:hover .anime-title-col { color: #3b82f6; }

.anime-tag-col {
    font-size: 9px;
    padding: 0 6px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    line-height: 1.6;
    align-self: center;
}
.anime-tag-col.watching  { background: #dcfce7; color: #16a34a; }
.anime-tag-col.watched   { background: #dbeafe; color: #2563eb; }
.anime-tag-col.unwatched { background: #f1f5f9; color: #64748b; }
.anime-tag-col.dropped   { background: #fee2e2; color: #dc2626; }

/* ============================================================
   右栏 - 标签云
   ============================================================ */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.tag-cloud-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 10px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #eef2ff;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.3;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.tag-cloud-item:hover {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.tag-cloud-count {
    font-size: 0.7em;
    color: #94a3b8;
    font-weight: 400;
}
.tag-cloud-item:hover .tag-cloud-count {
    color: rgba(255, 255, 255, 0.85);
}
/* ============================================================
   空状态 + Toast
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
    font-size: 14px;
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1e293b;
    color: #fff;
    padding: 10px 24px;
    border-radius: 12px;
    font-size: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 99999;
    pointer-events: none;
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============================================================
   响应式
   ============================================================ */
@media (min-width: 1800px) {
    .three-col-layout {
        max-width: 1800px;
        grid-template-columns: 320px minmax(0, 1fr) 360px;
    }
}

@media (max-width: 1280px) {
    .three-col-layout {
        grid-template-columns: 260px minmax(0, 1fr);
    }
    .col-right { display: none; }
}

/* ★★★ 移动端：隐藏左栏和右栏，只用悬浮按钮 + 抽屉 ★★★ */
@media (max-width: 992px) {
    .three-col-layout {
        display: block;
        max-width: 100%;
        padding: 16px 20px 32px;
    }

    .col-left {
        display: none !important;
    }

    .col-right {
        display: none !important;
    }

    .col-center {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin-bottom: 16px;
        position: static;
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 768px) {
    .three-col-layout {
        padding: 12px 16px 24px;
    }

    .datetime-clock { font-size: 30px; }
    .datetime-clock .seconds { font-size: 18px; }

    .posts-header { padding: 12px 16px; gap: 8px; }
    .filter-tab { font-size: 11px; padding: 3px 12px; }
    .post-item { padding: 12px 16px; }
    .post-item-title { font-size: 14px; }
    .post-item-excerpt { font-size: 12px; }
}

@media (max-width: 480px) {
    .three-col-layout { padding: 10px 12px 20px; }
    .side-card { padding: 14px 16px; border-radius: 14px; }
    .posts-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .posts-count { margin-left: 0; }
    .filter-tabs { width: 100%; justify-content: stretch; }
    .filter-tab { flex: 1; text-align: center; }
}

/* ============================================================
   中栏强制样式 - 防止颜色被污染
   ============================================================ */

.col-center .posts-container {
    background: #ffffff !important;
}

.col-center .post-item {
    background: transparent !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.col-center .post-item:hover {
    background: #f8fafc !important;
}

.col-center .post-item.is-say {
    background: transparent !important;
}

.col-center .filter-tabs {
    background: #f1f5f9 !important;
    padding: 3px !important;
    border-radius: 20px !important;
    display: inline-flex !important;
    gap: 4px !important;
}

.col-center .filter-tab {
    background: transparent !important;
    color: #64748b !important;
    padding: 4px 16px !important;
    border-radius: 16px !important;
    font-size: 12px !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
    border: none !important;
}

.col-center .filter-tab:hover {
    color: #1e293b !important;
}

.col-center .filter-tab.active {
    background: #ffffff !important;
    color: #3b82f6 !important;
    font-weight: 600 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
}

/* ============================================================
   ★ 说说内容的 Markdown 元素样式
   ★ 只对 .say-card 生效（说说专属 class），不影响番剧/文章
   ★ 图片作为小缩略图，跟随文字自然排列
   ============================================================ */

/* 说说正文容器 */
.col-center .post-item.say-card .post-item-excerpt {
    font-size: 14px;
    color: #1e293b;
    line-height: 1.75;
    margin: 4px 0 8px 0;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* 段落间距 */
.col-center .post-item.say-card .post-item-excerpt p {
    margin: 0 0 8px 0;
}
.col-center .post-item.say-card .post-item-excerpt p:last-child {
    margin-bottom: 0;
}

/* ★ 说说里的图片 = 80×80 小方图，行内跟随文字 */
.col-center .post-item.say-card .post-item-excerpt img {
    width: 80px;
    height: 80px;
    max-width: 80px;
    max-height: 80px;
    object-fit: cover;
    border-radius: 6px;
    margin: 4px 6px 4px 0;
    display: inline-block;
    vertical-align: middle;
    cursor: zoom-in;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.col-center .post-item.say-card .post-item-excerpt img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 说说里图片的包裹容器（say-image-wrapper，如果有）也跟着缩 */
.col-center .post-item.say-card .post-item-excerpt .say-image-wrapper {
    display: inline-block;
    width: 80px;
    height: 80px;
    margin: 4px 6px 4px 0;
    vertical-align: middle;
    border-radius: 6px;
    overflow: hidden;
    cursor: zoom-in;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.col-center .post-item.say-card .post-item-excerpt .say-image-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.col-center .post-item.say-card .post-item-excerpt .say-image-wrapper img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    border-radius: 0;
    display: block;
}

/* 说说里的行内元素 */
.col-center .post-item.say-card .post-item-excerpt a {
    color: #3b82f6;
    text-decoration: none;
    word-break: break-all;
}
.col-center .post-item.say-card .post-item-excerpt a:hover {
    text-decoration: underline;
}

.col-center .post-item.say-card .post-item-excerpt code {
    background: #f1f5f9;
    padding: 1px 6px;
    border-radius: 4px;
    font-family: ui-monospace, monospace;
    font-size: 0.9em;
}

.col-center .post-item.say-card .post-item-excerpt pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 10px 14px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 13px;
}

.col-center .post-item.say-card .post-item-excerpt pre code {
    background: none;
    padding: 0;
}

.col-center .post-item.say-card .post-item-excerpt blockquote {
    border-left: 3px solid #3b82f6;
    padding-left: 12px;
    color: #64748b;
}

/* ============================================================
   ★ 说说里的列表（有序 / 无序）—— 增强版
   ============================================================ */
.col-center .post-item.say-card .post-item-excerpt ul,
.col-center .post-item.say-card .post-item-excerpt ol {
    padding-left: 26px;
    margin: 6px 0;
}

.col-center .post-item.say-card .post-item-excerpt ul {
    list-style-type: disc;
}

.col-center .post-item.say-card .post-item-excerpt ol {
    list-style-type: decimal;
}

.col-center .post-item.say-card .post-item-excerpt li {
    line-height: 1.7;
    margin: 2px 0;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* 嵌套列表 */
.col-center .post-item.say-card .post-item-excerpt ul ul {
    list-style-type: circle;
    margin: 2px 0;
    padding-left: 22px;
}

.col-center .post-item.say-card .post-item-excerpt ol ol {
    list-style-type: lower-alpha;
    margin: 2px 0;
    padding-left: 22px;
}

/* 混合嵌套 */
.col-center .post-item.say-card .post-item-excerpt ul ol,
.col-center .post-item.say-card .post-item-excerpt ol ul {
    margin: 2px 0;
    padding-left: 22px;
}

/* ★ 覆盖1：引用卡片里的图片保持原样（不受说说图片规则影响） */
.col-center .post-item.say-card .post-item-excerpt .quote-card img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 280px !important;
    object-fit: contain !important;
    border-radius: 8px !important;
    margin: 6px 0 !important;
    display: block !important;
}

/* ★ 覆盖2：番剧迷你卡片里的海报保持原样 */
.col-center .post-item.say-card .post-item-excerpt [id^="anime-card-"] img {
    width: 70px !important;
    height: 98px !important;
    max-width: 70px !important;
    max-height: 98px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    margin: 0 !important;
    display: block !important;
}

/* ============================================================
   ★ 说说内容：展开/收起
   ============================================================ */
.say-card .post-item-excerpt-wrap {
    position: relative;
}

.say-card .post-item-excerpt {
    position: relative;
    max-height: 200px;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.say-card .post-item-excerpt.is-expanded {
    max-height: 5000px;
}

.say-card .post-item-excerpt.say-no-collapse {
    max-height: none;
    overflow: visible;
}

.say-card .post-item-excerpt:not(.is-expanded):not(.say-no-collapse)::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff);
    pointer-events: none;
    transition: opacity 0.25s;
}

.say-card .post-item-excerpt.say-no-collapse::after {
    display: none !important;
}

.say-expand-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    padding: 2px 12px;
    font-size: 12px;
    color: #3b82f6;
    background: #eef2ff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    line-height: 1.8;
}
.say-expand-btn:hover {
    background: #3b82f6;
    color: #fff;
}
.say-expand-btn .arrow {
    font-size: 10px;
    transition: transform 0.2s;
}
.say-expand-btn.expanded .arrow {
    transform: rotate(180deg);
}

/* ============================================================
   番剧模式卡片
   ============================================================ */
.col-center .anime-feed-card {
    display: flex;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
    align-items: flex-start;
    background: #ffffff;
    min-width: 0;
}

.col-center .anime-feed-card:last-child {
    border-bottom: none;
}

.col-center .anime-feed-card:hover {
    background: #f8fafc;
}

.col-center .anime-feed-poster {
    flex-shrink: 0;
    width: 100px;
    height: 140px;
    border-radius: 10px;
    overflow: hidden;
    background: #e2e8f0;
}

.col-center .anime-feed-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.col-center .anime-feed-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.col-center .anime-feed-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.col-center .anime-feed-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* ★ 番剧 feed 标题链接 */
.col-center .anime-feed-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.col-center .anime-feed-title-link:hover {
    color: #3b82f6;
}

.col-center .anime-feed-status {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 12px;
    flex-shrink: 0;
}

.col-center .anime-feed-status.tag-watching  { background: #dcfce7; color: #16a34a; }
.col-center .anime-feed-status.tag-watched   { background: #dbeafe; color: #2563eb; }
.col-center .anime-feed-status.tag-unwatched { background: #f1f5f9; color: #64748b; }
.col-center .anime-feed-status.tag-dropped   { background: #fee2e2; color: #dc2626; }

.col-center .anime-feed-names {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    font-size: 12px;
    color: #94a3b8;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.col-center .anime-feed-names b {
    font-size: 9px;
    color: #b9c2d0;
    background: #f1f5f9;
    padding: 0 5px;
    border-radius: 3px;
    font-weight: 400;
}

.col-center .anime-feed-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    font-size: 13px;
    color: #64748b;
}

.col-center .anime-feed-rating {
    color: #f59e0b;
    font-weight: 600;
}

.col-center .anime-feed-comment {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.col-center .anime-feed-comment:hover {
    color: #3b82f6;
}

.col-center .anime-feed-progress {
    margin-top: 4px;
    padding: 8px 12px;
    background: #f0f7ff;
    border-radius: 10px;
    border: 1px solid #dbeafe;
}

.col-center .anime-feed-progress-text {
    font-size: 12px;
    color: #3b82f6;
    font-weight: 600;
    margin-bottom: 6px;
}

.col-center .anime-feed-progress-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.col-center .anime-feed-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #60a5fa, #3b82f6);
    border-radius: 6px;
    transition: width 0.4s ease;
}

.col-center .anime-feed-progress-unknown {
    width: 100%;
    background: #cbd5e1;
}

.col-center .anime-feed-comment-text {
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
    padding-top: 4px;
    border-top: 1px dashed #eef2ff;
    margin-top: 2px;
    word-break: break-word;
    overflow-wrap: anywhere;
}

@media (max-width: 480px) {
    .col-center .anime-feed-card {
        padding: 12px 14px;
        gap: 12px;
    }
    .col-center .anime-feed-poster {
        width: 76px;
        height: 106px;
    }
    .col-center .anime-feed-title {
        font-size: 14px;
    }
    .col-center .anime-feed-meta {
        font-size: 11px;
        gap: 4px 10px;
    }
}
/* ============================================================
   ★ 加载更多按钮
   ============================================================ */
.col-center .load-more-wrap {
    padding: 24px 20px 28px;
    text-align: center;
    background: transparent;
}

.col-center .load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 40px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.col-center .load-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.col-center .load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.col-center .load-more-btn:hover::before {
    left: 100%;
}

.col-center .load-more-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.col-center .load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.col-center .load-more-btn .spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.col-center .load-more-btn.loading .spinner {
    display: inline-block;
}

.col-center .load-more-btn.loading .btn-text {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.col-center .load-more-done {
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    padding: 20px 0;
    margin: 0;
    letter-spacing: 1px;
}

/* ============================================================
   ★ 文章卡片（缩略图 + 标题 + 元信息）
   ============================================================ */
.col-center .post-item.post-item-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 20px;
    min-width: 0;
}

.col-center .post-card-thumb {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    display: block;
    transition: all 0.2s ease;
}

.col-center .post-card-thumb:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.col-center .post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.col-center .post-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    min-height: 100px;
}

.col-center .post-card-body .post-item-head {
    margin-bottom: 0;
}

.col-center .post-card-body .post-item-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.col-center .post-card-body .post-item-title:hover {
    color: #3b82f6;
}

.col-center .post-card-body .post-item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    font-size: 12px;
    color: #94a3b8;
}

@media (max-width: 768px) {
    .col-center .post-item.post-item-card {
        gap: 10px;
        padding: 12px 16px;
    }
    .col-center .post-card-thumb {
        width: 76px;
        height: 76px;
        border-radius: 10px;
    }
    .col-center .post-card-body {
        min-height: 76px;
        gap: 4px;
    }
    .col-center .post-card-body .post-item-title {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .col-center .post-card-thumb {
        width: 64px;
        height: 64px;
    }
    .col-center .post-card-body {
        min-height: 64px;
    }
    .col-center .post-card-body .post-item-title {
        font-size: 13px;
    }
}

/* ============================================================
   ★ 番剧海报光标强制覆盖
   ============================================================ */
.col-center .anime-feed-card,
.col-center .anime-feed-poster,
.col-center .anime-feed-poster img {
    cursor: default !important;
}

[id^="anime-card-"],
[id^="anime-card-"] img,
[id^="anime-card-"] * {
    cursor: default !important;
}

.anime-detail-card,
.anime-detail-card img,
.anime-detail-poster,
.anime-detail-poster img {
    cursor: default !important;
}

.col-center .post-item.say-card .post-item-excerpt [id^="anime-card-"],
.col-center .post-item.say-card .post-item-excerpt [id^="anime-card-"] * {
    cursor: default !important;
}

/* ============================================================
   ★ 卡片封面尺寸占位
   ============================================================ */
.col-center .anime-feed-poster {
    aspect-ratio: 3 / 4;
}

.anime-poster-col {
    aspect-ratio: 3 / 4;
}

.song-cover {
    aspect-ratio: 1 / 1;
}

.col-center .post-card-thumb {
    aspect-ratio: 1 / 1;
}

.music-card-cover {
    aspect-ratio: 1 / 1;
}

.music-mini-cover {
    aspect-ratio: 1 / 1;
}

.anime-poster-col img,
.song-cover img,
.music-card-cover img,
.music-mini-cover img,
.col-center .anime-feed-poster img,
.col-center .post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================================
   ★ 迷你音乐卡片
   ============================================================ */
.music-mini-card {
    display: flex;
    gap: 12px;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #eef2ff;
    margin: 6px 0;
    align-items: center;
    max-width: 100%;
}

.music-mini-cover {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #eef2ff, #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #3b82f6;
}

.music-mini-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.music-mini-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.music-mini-title {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.music-mini-artist {
    font-size: 12px;
    color: #64748b;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-mini-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

.music-mini-stars {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    font-size: 12px;
}

.music-mini-stars .mini-star-full  { color: #f59e0b; }
.music-mini-stars .mini-star-empty { color: #d1d5db; }

.music-mini-comment {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.music-mini-comment:hover {
    color: #3b82f6;
}

.col-center .post-item.say-card .post-item-excerpt .music-mini-card img,
.article-content .music-mini-card img,
.music-mini-card img {
    width: 60px !important;
    height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    border-radius: 8px !important;
    margin: 0 !important;
    cursor: default !important;
    object-fit: cover !important;
    display: block !important;
}

.col-center .post-item.say-card .post-item-excerpt .music-mini-card,
.article-content .music-mini-card,
.music-mini-card {
    cursor: default !important;
}

@media (max-width: 480px) {
    .music-mini-card {
        gap: 10px;
        padding: 8px 10px;
        border-radius: 10px;
    }
    .music-mini-cover {
        width: 52px;
        height: 52px;
        border-radius: 6px;
        font-size: 20px;
    }
    .music-mini-title {
        font-size: 13px;
    }
    .music-mini-artist {
        font-size: 11px;
    }
    .music-mini-meta {
        font-size: 10px;
        gap: 8px;
    }
    .music-mini-stars {
        font-size: 11px;
    }

    .col-center .post-item.say-card .post-item-excerpt .music-mini-card img,
    .article-content .music-mini-card img,
    .music-mini-card img {
        width: 52px !important;
        height: 52px !important;
        max-width: 52px !important;
        max-height: 52px !important;
    }
}

/* ============================================================
   ★ 九宫格相册 [grid]
   ============================================================ */
.grid-album {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 12px 0;
    max-width: 360px;
}

.grid-album.grid-single {
    display: block;
    max-width: 100%;
}
.grid-album.grid-single .grid-cell {
    aspect-ratio: auto;
    border-radius: 12px;
    overflow: hidden;
    cursor: zoom-in;
}
.grid-album.grid-single .grid-cell img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    display: block;
    border-radius: 12px;
    background: #f8fafc;
}

.grid-cell {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
    cursor: zoom-in;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.grid-cell:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    z-index: 2;
}
.grid-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}

.grid-more {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.col-center .post-item.say-card .post-item-excerpt .grid-album {
    max-width: 240px;
    gap: 4px;
    margin: 8px 0;
}
.col-center .post-item.say-card .post-item-excerpt .grid-album .grid-cell {
    border-radius: 6px;
}
.col-center .post-item.say-card .post-item-excerpt .grid-more {
    font-size: 16px;
}

.article-content .grid-album {
    max-width: 420px;
    gap: 8px;
    margin: 16px 0;
}
.article-content .grid-album .grid-cell {
    border-radius: 10px;
}

.col-center .post-item.say-card .post-item-excerpt .grid-album img,
.col-center .post-item.say-card .post-item-excerpt .grid-album .grid-cell img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border-radius: 0 !important;
    margin: 0 !important;
    object-fit: cover !important;
    display: block !important;
}
.col-center .post-item.say-card .post-item-excerpt .grid-album.grid-single img {
    height: auto !important;
    max-height: 500px !important;
    object-fit: contain !important;
    border-radius: 12px !important;
}

.article-content .grid-album img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    margin: 0 !important;
    object-fit: cover !important;
    display: block !important;
}
.article-content .grid-album.grid-single img {
    height: auto !important;
    max-height: 500px !important;
    object-fit: contain !important;
    border-radius: 12px !important;
}

@media (max-width: 480px) {
    .grid-album {
        gap: 4px;
        max-width: 100%;
    }
    .article-content .grid-album {
        gap: 4px;
        max-width: 100%;
    }
    .col-center .post-item.say-card .post-item-excerpt .grid-album {
        max-width: 100%;
    }
}

/* ============================================================
   ★ 菜单树：无链接一级分组标题 + 二级项缩进 + 三级缩进
   ============================================================ */
.left-panel .menu-group-item,
.mobile-drawer .menu-group-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    cursor: default;
    user-select: none;
}

.left-panel .menu-group-item .menu-icon,
.mobile-drawer .menu-group-item .menu-icon {
    font-size: 15px;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.7;
}

.left-panel .menu-group-item .menu-text,
.mobile-drawer .menu-group-item .menu-text {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.left-panel .menu-link.menu-child,
.mobile-drawer .menu-link.menu-child {
    padding-left: 30px;
    font-size: 12.5px;
}

.left-panel .menu-link.menu-child .menu-child-icon,
.mobile-drawer .menu-link.menu-child .menu-child-icon {
    font-size: 12px;
    color: #94a3b8;
    width: 14px;
    transition: color 0.15s;
}

.left-panel .menu-link.menu-child:hover .menu-child-icon,
.left-panel .menu-link.menu-child.active .menu-child-icon,
.mobile-drawer .menu-link.menu-child:hover .menu-child-icon,
.mobile-drawer .menu-link.menu-child.active .menu-child-icon {
    color: #3b82f6;
}

.left-panel .menu-nolink,
.mobile-drawer .menu-nolink {
    cursor: default;
    color: #94a3b8;
}

.left-panel .menu-nolink:hover,
.mobile-drawer .menu-nolink:hover {
    background: transparent;
    color: #94a3b8;
}

.mobile-drawer .menu-link.menu-child {
    padding-left: 34px;
    font-size: 12px;
}

.mobile-drawer .menu-link.menu-child .menu-child-icon {
    font-size: 11px;
}

.mobile-drawer .menu-group-item {
    padding: 6px 12px;
    font-size: 12px;
    color: #b9c2d0;
}

.left-panel .menu-link.menu-child-lv3,
.mobile-drawer .menu-link.menu-child-lv3 {
    padding-left: 48px;
    font-size: 12px;
}

.left-panel .menu-link.menu-child-lv3 .menu-child-icon,
.mobile-drawer .menu-link.menu-child-lv3 .menu-child-icon {
    font-size: 11px;
    color: #b9c2d0;
}

.left-panel .menu-group-item.menu-child-lv3,
.mobile-drawer .menu-group-item.menu-child-lv3 {
    padding-left: 48px;
    font-size: 12px;
}

.mobile-drawer .menu-link.menu-child-lv3 {
    padding-left: 52px;
    font-size: 11.5px;
}

.left-panel .menu-children,
.mobile-drawer .menu-children {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* ============================================================
   ★ 农历后面的节气提醒
   ============================================================ */
.datetime-lunar .solar-term-inline {
    color: #64748b;
    font-weight: 500;
}

.datetime-lunar .solar-term-season {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.6;
    padding: 0 6px;
    border-radius: 8px;
    margin: 0 2px;
    vertical-align: 1px;
    white-space: nowrap;
}
.datetime-lunar .solar-term-season.season-春 {
    background: #dcfce7;
    color: #15803d;
}
.datetime-lunar .solar-term-season.season-夏 {
    background: #fee2e2;
    color: #b91c1c;
}
.datetime-lunar .solar-term-season.season-秋 {
    background: #fef3c7;
    color: #b45309;
}
.datetime-lunar .solar-term-season.season-冬 {
    background: #dbeafe;
    color: #1d4ed8;
}

.datetime-lunar .solar-term-gap {
    color: #94a3b8;
    font-size: 11px;
    margin-left: 2px;
}

/* ============================================================
   ★★★ 新增：非首页主内容容器（单栏，全屏铺满不溢出）★★★
   ============================================================ */
.main-content-wrap {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 24px 32px 40px;
    min-height: calc(100vh - 200px);
    box-sizing: border-box;
    overflow-x: hidden;
}

.main-content-wrap .col-center {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-bottom: 16px;
    position: static;
    max-height: none;
    overflow: visible;
}

@media (max-width: 992px) {
    .main-content-wrap {
        padding: 16px 20px 32px;
    }
}

@media (max-width: 768px) {
    .main-content-wrap {
        padding: 12px 16px 24px;
    }
}

@media (max-width: 480px) {
    .main-content-wrap {
        padding: 10px 12px 20px;
    }
}

/* ============================================================
   ★★★ 文章目录按钮 + 面板（有 h2/h3 时显示）★★★
   ★ 由 footer.php 的「目录检测 JS」动态创建
   ============================================================ */

/* 按钮：右上角悬浮 */
.article-toc-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99998;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 24px;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.article-toc-btn:hover {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.article-toc-btn.active {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}

.article-toc-btn .toc-icon {
    font-size: 16px;
    line-height: 1;
}

/* 面板 */
.article-toc-panel {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 99999;
    width: 280px;
    max-width: calc(100vw - 40px);
    max-height: 60vh;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
}

.article-toc-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.article-toc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #eef2ff;
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
    flex-shrink: 0;
}

.article-toc-close {
    background: none;
    border: none;
    font-size: 16px;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    font-family: inherit;
    transition: all 0.15s;
}

.article-toc-close:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.article-toc-list {
    padding: 6px 0;
    overflow-y: auto;
    flex: 1;
}

.article-toc-item {
    display: block;
    padding: 6px 20px;
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: all 0.15s;
    line-height: 1.5;
    word-break: break-word;
}

.article-toc-item.level-3 {
    padding-left: 36px;
    font-size: 12.5px;
}

.article-toc-item:hover {
    color: #3b82f6;
    background: #f8fafc;
}

.article-toc-item.active {
    color: #3b82f6;
    font-weight: 600;
    border-left-color: #3b82f6;
    background: #eef2ff;
}

@media (max-width: 768px) {
    .article-toc-btn {
        top: 12px;
        right: 12px;
        padding: 8px 14px;
        font-size: 12px;
    }
    .article-toc-btn .toc-text {
        display: none;
    }
    .article-toc-panel {
        top: 60px;
        right: 12px;
        width: 240px;
        max-height: 50vh;
    }
}

.music-card-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.music-card-title-link:hover {
    color: #3b82f6;
}

/* ============================================================
   ★ 新增：说说内容的 Markdown 表格样式（解决说说表格不解析/样式错乱问题）
   ============================================================ */
.col-center .post-item.say-card .post-item-excerpt table.markdown-table,
.modal-say-item .post-item-excerpt table.markdown-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 12px 0 !important;
    font-size: 13px !important;
    display: table !important; /* 强制以表格显示 */
    overflow-x: auto !important;
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
}

.col-center .post-item.say-card .post-item-excerpt table.markdown-table th,
.modal-say-item .post-item-excerpt table.markdown-table th {
    background: #f8fafc !important;
    color: #1e293b !important;
    font-weight: 600 !important;
    padding: 8px 12px !important;
    border: 1px solid #e2e8f0 !important;
    text-align: left !important;
}

.col-center .post-item.say-card .post-item-excerpt table.markdown-table td,
.modal-say-item .post-item-excerpt table.markdown-table td {
    padding: 8px 12px !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    vertical-align: middle !important;
}

.col-center .post-item.say-card .post-item-excerpt table.markdown-table tr:nth-child(even),
.modal-say-item .post-item-excerpt table.markdown-table tr:nth-child(even) {
    background: #fcfcfc !important;
}

/* 表格内的链接 */
.col-center .post-item.say-card .post-item-excerpt table.markdown-table a,
.modal-say-item .post-item-excerpt table.markdown-table a {
    color: #3b82f6 !important;
    text-decoration: none !important;
}

.col-center .post-item.say-card .post-item-excerpt table.markdown-table a:hover,
.modal-say-item .post-item-excerpt table.markdown-table a:hover {
    text-decoration: underline !important;
}

/* ===== Safari 颜文字兼容修复 ===== */
.post-item-excerpt,
.article-content {
    /* 强制引入 Mac/iOS 原生自带的颜文字字体和高覆盖符号字体 */
    font-family: system-ui, -apple-system, "PingFang SC", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Apple Color Emoji", "Segoe UI Symbol", sans-serif;
}

/* 如果只想针对颜文字所在区域，可以加点强制回退 */
.post-item-excerpt *,
.article-content * {
    font-family: inherit;
}


/* ============================================================
   ★ 修复：标签云筛选弹窗/列表里的间距与统一卡片样式
   ============================================================ */

/* 1. 统一文章卡片和说说卡片的基础样式 */
.modal-list-page .modal-post-row,
.modal-list-page .modal-say-item {
    margin-bottom: 12px !important;
    padding: 16px 20px !important;
    background: #f8fafc !important; /* 统一浅灰底色 */
    border: 1px solid transparent !important; /* 默认透明边框 */
    border-radius: 14px !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}

/* 2. 去掉原有的干扰边框或底纹 */
.modal-list-page .modal-post-row,
.modal-list-page .modal-say-item {
    border-bottom: 1px solid transparent !important;
}

/* 3. 悬浮效果：底色变白，边框变蓝，微微上浮 */
.modal-list-page .modal-post-row:hover,
.modal-list-page .modal-say-item:hover {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
    transform: translateY(-1px);
}

/* 4. 统一内部文字和 meta 的间距 */
.modal-post-row .modal-post-main {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modal-say-item .post-item-meta {
    margin-top: 12px !important;
    padding-top: 12px !important;
    border-top: 1px dashed #eef2ff !important;
}

/* 5. 文章和说说最后一项不留间距 */
.modal-list-page [data-feed-item]:last-child {
    margin-bottom: 0 !important;
}

/* ============================================================
   ★ 修复：标签云弹窗内的文章缩略图样式
   ============================================================ */
.modal-list-page .modal-post-row {
    display: flex !important;
    align-items: flex-start;
    gap: 14px;
}

.modal-post-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
    display: block;
}

.modal-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-post-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}