/**
 * 午夜树洞主题专属样式
 * 深空星空风格
 */

/* ================= 主题变量 ================= */
:root {
    --th-body-bg: #f0f4f8;
    --th-body-gradient: linear-gradient(150deg, #f0f4f8, #ffffff, #e8eef5);
    --th-text: #2d3748;
    --th-text-heading: #1a202c;
    --th-text-muted: #718096;
    --th-text-light: #4a5568;
    --th-text-highlight: #5d3fd4;
    --th-primary: #7c5ce8;
    --th-primary-light: #8e6ef5;
    --th-primary-dark: #5d3fd4;
    --th-primary-soft: #b4a8f0;
    --th-header-bg: rgba(255, 255, 255, 0.85);
    --th-header-border: rgba(124, 115, 216, 0.15);
    --th-card-bg: rgba(255, 255, 255, 0.78);
    --th-card-border: rgba(124, 115, 216, 0.15);
    --th-card-hover-border: rgba(124, 115, 216, 0.3);
    --th-input-bg: #ffffff;
    --th-input-border: #e2e8f0;
    --th-input-text: #2d3748;
    --th-input-placeholder: #a0aec0;
    --th-input-focus-border: rgba(124, 92, 232, 0.5);
    --th-tag-bg: rgba(124, 115, 216, 0.12);
    --th-tag-text: #7c5ce8;
    --th-tag-border: rgba(124, 115, 216, 0.25);
    --th-time-text: #718096;
    --th-dropdown-bg: rgba(255, 255, 255, 0.98);
    --th-dropdown-border: rgba(124, 115, 216, 0.18);
    --th-star: #7c5ce8;
    --th-shadow: rgba(0, 0, 0, 0.08);
    --th-search-box-bg: rgba(255, 255, 255, 0.98);
    --th-search-input-bg: #ffffff;
    --th-timeline-line: linear-gradient(to bottom, #7c73d8, var(--th-primary-soft), #7c73d8);
    --th-timeline-dot: #7c73d8;
    --th-sticky-text: #222;
    --th-sticky-shadow: rgba(0, 0, 0, 0.25);
    --th-sticky-hover-shadow: rgba(0, 0, 0, 0.35);
    --th-chat-avatar-bg: #e2e8f0;
    --th-card-solid-bg: rgba(240, 244, 248, 0.8);
    --th-card-dark-bg: rgba(255, 255, 255, 0.65);
    --th-code-bg: #f5f7fa;
    --th-inline-code-bg: rgba(124, 92, 232, 0.1);
    --th-log-header-bg: linear-gradient(135deg, rgba(124, 92, 232, 0.08), rgba(180, 168, 240, 0.05));
    --th-log-emotion-badge-text: #fff;
    --th-log-hr-bg: var(--th-body-bg);
    --th-success-color: #2e7d32;
    --th-success-bg: rgba(76, 175, 80, 0.15);
    --th-success-border: rgba(76, 175, 80, 0.3);
    --th-error-color: #c62828;
    --th-error-bg: rgba(244, 67, 54, 0.15);
    --th-error-border: rgba(244, 67, 54, 0.3);
    --th-resonance-color: #e84393;
    --th-resonance-soft: #fd79a8;
    --th-resonance-bg: rgba(232, 67, 147, 0.2);
    --th-resonance-bg-light: rgba(232, 67, 147, 0.12);
    --th-resonance-border: rgba(232, 67, 147, 0.3);
}

[data-theme="dark"] {
    --th-body-bg: #0a0e1f;
    --th-body-gradient: linear-gradient(150deg, #0a0e1f, #141a33, #0b1025);
    --th-text: #e2e8f0;
    --th-text-heading: #f0ebff;
    --th-text-muted: #a9b2d3;
    --th-text-light: #b4bdd8;
    --th-text-highlight: #e0d9ff;
    --th-primary: #7c5ce8;
    --th-primary-light: #8e6ef5;
    --th-primary-dark: #5d3fd4;
    --th-primary-soft: #b4a8f0;
    --th-header-bg: rgba(10, 14, 31, 0.6);
    --th-header-border: rgba(150, 135, 220, 0.12);
    --th-card-bg: rgba(25, 30, 60, 0.5);
    --th-card-border: rgba(150, 135, 220, 0.15);
    --th-card-hover-border: rgba(150, 135, 220, 0.3);
    --th-input-bg: rgba(11, 15, 35, 0.6);
    --th-input-border: #383e66;
    --th-input-text: #e2e8f0;
    --th-input-placeholder: #6b7299;
    --th-input-focus-border: rgba(124, 92, 232, 0.5);
    --th-tag-bg: rgba(124, 115, 216, 0.15);
    --th-tag-text: #b4a8f0;
    --th-tag-border: rgba(124, 115, 216, 0.25);
    --th-time-text: #6b7299;
    --th-dropdown-bg: rgba(20, 25, 55, 0.95);
    --th-dropdown-border: rgba(150, 135, 220, 0.15);
    --th-star: #fff;
    --th-shadow: rgba(0, 0, 0, 0.3);
    --th-search-box-bg: rgba(20, 25, 55, 0.98);
    --th-search-input-bg: rgba(11, 15, 35, 0.6);
    --th-timeline-line: linear-gradient(to bottom, #7c73d8, var(--th-primary-soft), #7c73d8);
    --th-timeline-dot: #7c73d8;
    --th-sticky-text: #222;
    --th-sticky-shadow: rgba(0, 0, 0, 0.25);
    --th-sticky-hover-shadow: rgba(0, 0, 0, 0.35);
    --th-chat-avatar-bg: #2a2f4a;
    --th-card-solid-bg: rgba(25, 30, 60, 0.4);
    --th-card-dark-bg: rgba(11, 15, 35, 0.5);
    --th-code-bg: #0d0f1c;
    --th-inline-code-bg: rgba(124, 92, 232, 0.1);
    --th-log-header-bg: linear-gradient(135deg, rgba(124, 92, 232, 0.08), rgba(180, 168, 240, 0.05));
    --th-log-emotion-badge-text: #fff;
    --th-log-hr-bg: #141937;
    --th-success-color: #a5d6a7;
    --th-success-bg: rgba(76, 175, 80, 0.15);
    --th-success-border: rgba(76, 175, 80, 0.3);
    --th-error-color: #ef9a9a;
    --th-error-bg: rgba(244, 67, 54, 0.15);
    --th-error-border: rgba(244, 67, 54, 0.3);
    --th-resonance-color: #e84393;
    --th-resonance-soft: #fd79a8;
    --th-resonance-bg: rgba(232, 67, 147, 0.2);
    --th-resonance-bg-light: rgba(232, 67, 147, 0.12);
    --th-resonance-border: rgba(232, 67, 147, 0.3);
}

/* ================= 基础覆盖 ================= */
html, body {
    font-family: "Microsoft YaHei", system-ui, -apple-system, sans-serif;
    background: var(--th-body-gradient) !important;
    color: var(--th-text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    width: 92%;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* 隐藏原有侧边栏 */
.blog-container .row {
    display: block;
}
.blog-container .column-big {
    max-width: 100%;
    flex: 0 0 100%;
}
.blog-container .column-small,
.side-toolbar,
.blog-footer .footinfo .widget,
footer .side-toolbar {
    display: none !important;
}

/* ================= 星空背景 ================= */
.star-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}
.star {
    position: absolute;
    background: var(--th-star);
    border-radius: 50%;
    opacity: 0.6;
    animation: twinkle 4s infinite ease-in-out;
}
@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* ================= 导航栏 ================= */
.site-header {
    background: var(--th-header-bg) !important;
    backdrop-filter: blur(12px);
    box-shadow: none !important;
    border-bottom: 1px solid var(--th-header-border) !important;
    position: sticky !important;
    top: 0;
    z-index: 1200;
}
.header-wrap {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 22px;
    font-weight: 600;
    color: var(--th-text-highlight);
    letter-spacing: 2px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.logo-img {
    max-height: 40px;
    width: auto;
    display: block;
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 15px;
}
.nav-menu a {
    color: var(--th-text-light);
    text-decoration: none;
    transition: color 0.3s;
}
.nav-menu a:hover {
    color: var(--th-text-highlight);
}
.user-menu {
    position: relative;
    margin-left: 4px;
}
.user-menu-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: none;
    transition: all 0.3s ease;
}
.user-menu-trigger:hover {
    background: rgba(124, 92, 232, 0.12);
}
.user-menu-trigger .header-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(150, 135, 220, 0.4);
    background: var(--th-input-bg);
}
.user-menu-label,
.nav-search-label {
    display: none;
}
.user-menu:hover .user-dropdown-menus {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.user-dropdown-menus {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 120px;
    background: var(--th-dropdown-bg);
    border: 1px solid var(--th-card-border);
    border-radius: 12px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}
.user-dropdown-menus .nav-link {
    display: block;
    padding: 8px 16px;
    color: var(--th-text-light);
    font-size: 13px;
    transition: all 0.2s;
}
.user-dropdown-menus .nav-link:hover {
    background: rgba(124, 92, 232, 0.12);
    color: var(--th-text-highlight);
}
.nav-search-item {
    position: relative;
    margin-left: 4px;
}
.nav-search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--th-text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;
}
.nav-search-toggle:hover {
    background: rgba(124, 92, 232, 0.12);
    color: var(--th-text-highlight);
}
.nav-search-toggle img {
    display: block;
    width: 18px;
    min-width: 18px;
    height: 18px;
    object-fit: contain;
    filter: none;
}
[data-theme="dark"] .nav-search-toggle img {
    filter: brightness(0) invert(1);
}
.nav-search-submit img {
    display: block;
    width: 16px;
    min-width: 16px;
    height: 16px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}
.nav-search-box {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 280px;
    background: var(--th-search-box-bg);
    border: 1px solid rgba(150, 135, 220, 0.2);
    border-radius: 16px;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    z-index: 1001;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
}
.nav-search-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-search-box form {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-search-input {
    flex: 1;
    height: 40px;
    padding: 0 14px;
    background: var(--th-input-bg);
    border: 1px solid var(--th-card-border);
    border-radius: 50px;
    color: var(--th-text-highlight);
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}
.nav-search-input::placeholder {
    color: var(--th-time-text);
}
.nav-search-input:focus {
    border-color: rgba(124, 92, 232, 0.5);
    box-shadow: 0 0 12px rgba(124, 92, 232, 0.15);
}
.nav-search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c5ce8, #5d3fd4);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: none;
}
.nav-search-submit:hover {
    background: linear-gradient(135deg, #8e6ef5, #6d50e0);
    box-shadow: 0 0 16px rgba(124, 92, 232, 0.4);
}

/* 大屏幕隐藏汉堡按钮 */
.blog-header-toggle {
    display: none;
}

/* 遮罩层默认隐藏 */
.nav-overlay {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 抽屉打开时锁定页面滚动 */
body.nav-open {
    overflow: hidden;
}

/* 小屏幕导航：汉堡按钮 + 左侧抽屉 */
@media (max-width: 767px) {
    .header-wrap {
        flex-direction: row !important;
        position: relative;
    }
    .logo {
        padding-right: 52px;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .blog-header-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(124, 92, 232, 0.12);
        color: var(--th-text-light);
        cursor: pointer;
        transition: all 0.3s ease;
        -webkit-tap-highlight-color: transparent;
    }
    .blog-header-toggle:hover,
    .blog-header-toggle:focus {
        background: rgba(124, 92, 232, 0.22);
        color: var(--th-text-highlight);
        outline: none;
    }
    .blog-header-toggle .blogtoggle-icon {
        width: 20px;
        height: 14px;
    }
    .nav-menu {
        display: block;
        width: auto;
    }
    .blog-header-nav {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        background: var(--th-dropdown-bg);
        border-right: 1px solid var(--th-card-border);
        z-index: 1300;
        overflow-y: auto;
        padding: 20px 0;
        box-shadow: 2px 0 12px var(--th-shadow);
        backdrop-filter: blur(10px);
        text-align: left;
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s;
    }
    .blog-header-nav.show {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
    .nav-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1150;
        backdrop-filter: blur(2px);
        transform: translateX(-100%);
        visibility: hidden;
        transition: transform 0s 0.3s, opacity 0.3s ease, visibility 0.3s;
    }
    .nav-overlay.show {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        transition: opacity 0.3s ease, visibility 0.3s;
    }
    [data-theme="dark"] .nav-overlay {
        background: rgba(0, 0, 0, 0.7);
    }
    .blog-header-nav .nav-list {
        display: block;
        padding: 0 15px;
        margin: 0;
    }
    .blog-header-nav .nav-list > .list-menu {
        width: 100%;
        line-height: 1.5;
        margin: 0;
    }
    .blog-header-nav .nav-list > .list-menu > .nav-link {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 10px 15px;
        color: var(--th-text);
        text-decoration: none;
        border-radius: 10px;
        transition: all 0.2s;
        font-size: 15px;
    }
    .blog-header-nav .nav-list > .list-menu > .nav-link:hover {
        background: rgba(124, 92, 232, 0.12);
        color: var(--th-text-highlight);
    }
    .blog-header-nav .dropdown-menus {
        position: static;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0 0 0 15px;
        margin: 0;
    }
    .blog-header-nav .dropdown-menus .list-menu {
        margin: 0;
    }
    .blog-header-nav .dropdown-menus .nav-link {
        color: var(--th-text-muted);
        padding: 8px 15px;
        display: block;
        font-size: 14px;
        border-radius: 8px;
    }
    .blog-header-nav .dropdown-menus .nav-link:hover {
        color: var(--th-text-highlight);
        background: rgba(124, 92, 232, 0.1);
    }
    /* 用户菜单在抽屉中的样式 */
    .blog-header-nav .user-menu-trigger {
        justify-content: center;
        width: 100%;
        padding: 10px 15px;
        height: auto;
        border-radius: 10px;
        gap: 12px;
    }
    .blog-header-nav .user-menu-trigger .header-avatar {
        display: inline-block !important;
        width: 36px;
        height: 36px;
    }
    .blog-header-nav .user-menu-label {
        display: inline-flex;
        align-items: center;
        color: var(--th-text);
        font-size: 15px;
    }
    .blog-header-nav .user-dropdown-menus {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0 0 0 15px;
        min-width: auto;
    }
    .blog-header-nav .user-dropdown-menus .list-menu:first-child {
        display: none;
    }
    .blog-header-nav .user-dropdown-menus .nav-link {
        color: var(--th-text-muted);
        padding: 8px 15px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .blog-header-nav .user-dropdown-menus .nav-link:hover {
        color: var(--th-text-highlight);
        background: rgba(124, 92, 232, 0.1);
    }
    /* 搜索在抽屉中的样式 */
    .blog-header-nav .nav-search-item {
        position: relative;
        margin: 0;
    }
    .blog-header-nav .nav-search-toggle {
        width: 100%;
        height: auto;
        border-radius: 10px;
        padding: 10px 15px;
        justify-content: center;
        background: transparent;
        color: var(--th-text);
        font-size: 15px;
        gap: 12px;
    }
    .blog-header-nav .nav-search-toggle:hover {
        background: rgba(124, 92, 232, 0.12);
        color: var(--th-text-highlight);
    }
    .blog-header-nav .nav-search-toggle img {
        display: inline-block;
        width: 18px;
        height: 18px;
        filter: none;
    }
    [data-theme="dark"] .blog-header-nav .nav-search-toggle img {
        filter: brightness(0) invert(1);
    }
    .blog-header-nav .nav-search-label {
        display: inline-flex;
        align-items: center;
        color: inherit;
    }
    .blog-header-nav .nav-search-box {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 8px 0 0;
        margin: 0;
    }
    .blog-header-nav .nav-search-box.active {
        display: block;
    }
    .blog-header-nav .nav-search-box form {
        flex-direction: column;
        gap: 8px;
    }
    .blog-header-nav .nav-search-input {
        width: 100%;
        background: var(--th-input-bg);
        color: var(--th-input-text);
    }
}

/* ================= 首屏区域 ================= */
.hero-block {
    text-align: center;
    padding: 50px 0 40px;
}
.hero-block h1 {
    font-size: 42px;
    margin-bottom: 18px;
    color: var(--th-text-heading);
    font-weight: 600;
    letter-spacing: 1px;
}
.hero-desc {
    max-width: 650px;
    margin: 0 auto 35px;
    font-size: 17px;
    line-height: 1.8;
    color: var(--th-text-muted);
}
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-fill {
    display: inline-block;
    padding: 14px 38px;
    background: #7c5ce8;
    color: #fff;
    border-radius: 50px;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(124, 92, 232, 0.35);
    border: none;
    cursor: pointer;
}
.btn-fill:hover {
    background: #8e6ef5;
    transform: translateY(-3px);
    box-shadow: 0 0 28px rgba(124, 92, 232, 0.5);
}
.btn-outline-light {
    display: inline-block;
    padding: 14px 38px;
    background: transparent;
    color: var(--th-text-highlight);
    border: 1px solid #7c5ce8;
    border-radius: 50px;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-outline-light:hover {
    background: rgba(124, 92, 232, 0.12);
    color: var(--th-text-highlight);
}

/* 快速投稿卡片 */
.quick-submit-card {
    max-width: 700px;
    margin: 50px auto 0;
    background: var(--th-card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(150, 135, 220, 0.18);
    border-radius: 18px;
    padding: 28px;
}
.quick-submit-card h3 {
    margin-bottom: 16px;
    color: var(--th-text-heading);
    font-size: 18px;
}
.quick-submit-card textarea,
.quick-submit-card input[type="text"] {
    width: 100%;
    background: var(--th-input-bg);
    border: 1px solid var(--th-input-border);
    border-radius: 12px;
    padding: 14px;
    color: var(--th-text);
    font-size: 14px;
    outline: none;
    transition: border 0.3s;
    font-family: inherit;
}
.quick-submit-card textarea {
    min-height: 120px;
    resize: none;
}
.quick-submit-card textarea:focus,
.quick-submit-card input[type="text"]:focus {
    border-color: #7c5ce8;
}
.quick-submit-card textarea::placeholder,
.quick-submit-card input[type="text"]::placeholder {
    color: var(--th-time-text);
}
.quick-submit-card .btn-submit-small {
    margin-top: 14px;
    padding: 10px 28px;
    background: #7c5ce8;
    border: none;
    border-radius: 40px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}
.quick-submit-card .btn-submit-small:hover {
    background: #8e6ef5;
    box-shadow: 0 0 16px rgba(124, 92, 232, 0.4);
}
.quick-submit-row {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}
.quick-submit-row input[type="text"] {
    flex: 1;
    margin-bottom: 0;
}
.quick-submit-card select,
.quick-submit-select {
    flex: 0 0 140px;
    background: var(--th-input-bg);
    border: 1px solid var(--th-input-border);
    border-radius: 12px;
    padding: 14px;
    color: var(--th-text);
    font-size: 14px;
    outline: none;
    transition: border 0.3s;
    font-family: inherit;
    cursor: pointer;
}
.quick-submit-card select:focus,
.quick-submit-select:focus {
    border-color: #7c5ce8;
}

/* ================= 情绪标签 ================= */
.tag-row {
    padding: 10px 0 30px;
    text-align: center;
}
.tag-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.tag-item {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 50px;
    background: var(--th-tag-bg);
    color: var(--th-primary-soft);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid var(--th-tag-border);
}
.tag-item:hover {
    background: rgba(124, 115, 216, 0.35);
    color: var(--th-text-highlight);
    transform: translateY(-1px);
}

/* 标签页头部 */
.tag-page-header {
    text-align: center;
    padding: 40px 0 20px;
}
.tag-page-header h1 {
    font-size: 32px;
    color: var(--th-text-heading);
    margin-bottom: 8px;
}
.tag-page-header p {
    color: var(--th-text-muted);
    font-size: 15px;
}

/* ================= 心事内容区 ================= */
.content-block {
    padding: 20px 0 60px;
}
.block-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--th-text-heading);
    margin-bottom: 24px;
    text-align: center;
}

/* ================= 时间线列表 ================= */
.timeline-list {
    position: relative;
    padding-left: 30px;
}
.timeline-list::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--th-timeline-line);
    opacity: 0.5;
    border-radius: 2px;
}
.timeline-item {
    display: block;
    position: relative;
    margin-bottom: 24px;
    text-decoration: none;
    color: inherit;
}
.timeline-dot {
    position: absolute;
    left: -30px;
    top: 14px;
    width: 10px;
    height: 10px;
    background: var(--th-timeline-dot);
    border-radius: 50%;
    border: 2.5px solid var(--th-body-bg);
}
.timeline-content {
    background: var(--th-card-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--th-card-border);
    border-radius: 12px;
    padding: 18px 22px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.timeline-item:hover .timeline-content {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--th-tag-bg);
    border-color: var(--th-card-hover-border);
}
.timeline-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--th-text-heading);
    margin: 0 0 6px;
}
.timeline-text {
    font-size: 14px;
    color: var(--th-text-muted);
    margin: 0 0 10px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.timeline-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

/* ================= 便利贴墙 ================= */
.sticky-wall {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding: 10px 0;
}
.sticky-card {
    display: block;
    border-radius: 4px;
    padding: 22px;
    box-shadow: 3px 4px 10px var(--th-sticky-shadow);
    text-decoration: none;
    color: var(--th-sticky-text);
    transition: transform 0.25s, box-shadow 0.25s;
    font-family: "Microsoft YaHei", system-ui, sans-serif;
}
.sticky-card:hover {
    transform: rotate(0deg) scale(1.04) !important;
    box-shadow: 5px 8px 18px var(--th-sticky-hover-shadow);
    z-index: 2;
}
.sticky-text {
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sticky-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

/* ================= Pinterest 瀑布流 ================= */
.masonry-grid::after {
    content: '';
    display: block;
    clear: both;
}
.masonry-item {
    display: block;
    width: calc(33.333% - 15px);
    margin-bottom: 22px;
    text-decoration: none;
    color: inherit;
    float: left;
}
.masonry-content {
    background: var(--th-card-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--th-card-border);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px var(--th-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}
.masonry-item:hover .masonry-content {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px var(--th-tag-bg);
    border-color: var(--th-card-hover-border);
}
.masonry-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--th-text-heading);
    margin: 0 0 8px;
    line-height: 1.4;
}
.masonry-text {
    font-size: 14px;
    color: var(--th-text-muted);
    margin: 0 0 12px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.masonry-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

/* ================= 对话气泡 ================= */
.chat-list {
    max-width: 780px;
    margin: 0 auto;
    padding: 10px 0;
}
.chat-item {
    display: flex;
    gap: 14px;
    margin-bottom: 28px;
    text-decoration: none;
    color: inherit;
    align-items: flex-start;
}
.chat-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--th-chat-avatar-bg);
}
.chat-avatar svg {
    display: block;
    width: 100%;
    height: 100%;
}
.chat-body {
    flex: 1;
    min-width: 0;
}
.chat-bubble {
    background: var(--th-card-bg);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    padding: 16px 20px;
    box-shadow: 0 2px 8px var(--th-shadow);
    border: 1px solid var(--th-card-border);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.chat-item:hover .chat-bubble {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--th-tag-bg);
    border-color: var(--th-card-hover-border);
}
.chat-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--th-text-heading);
    margin: 0 0 6px;
    line-height: 1.4;
}
.chat-text {
    font-size: 14px;
    color: var(--th-text-muted);
    margin: 0;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.chat-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding: 0 4px;
    font-size: 12px;
}

/* ================= 单栏沉浸卡片 ================= */
.bigcard-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px 0;
}
.bigcard-item {
    display: block;
    margin-bottom: 24px;
    text-decoration: none;
    color: inherit;
}
.bigcard-content {
    background: var(--th-card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(150, 135, 220, 0.18);
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 4px 12px var(--th-shadow);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    position: relative;
    overflow: hidden;
}
.bigcard-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7c5ce8, var(--th-primary-soft), #7c5ce8);
    opacity: 0.7;
}
.bigcard-item:hover .bigcard-content {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(124, 115, 216, 0.2);
    border-color: rgba(150, 135, 220, 0.35);
}
.bigcard-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--th-text-heading);
    margin: 0 0 10px;
    line-height: 1.4;
}
.bigcard-text {
    font-size: 15px;
    color: var(--th-text-muted);
    margin: 0 0 16px;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bigcard-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

/* ================= 极简纯文字列表 ================= */
.minimal-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px 0;
}
.minimal-item {
    display: block;
    padding: 20px 0;
    border-bottom: 1px solid rgba(150, 135, 220, 0.1);
    text-decoration: none;
    color: inherit;
    transition: padding-left 0.2s;
}
.minimal-item:hover {
    padding-left: 8px;
}
.minimal-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--th-text-heading);
    margin: 0 0 6px;
    line-height: 1.4;
}
.minimal-text {
    font-size: 14px;
    color: var(--th-text-muted);
    margin: 0 0 10px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.minimal-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

/* ================= 便签瀑布流 ================= */
.sticky-masonry-grid::after {
    content: '';
    display: block;
    clear: both;
}
.sticky-masonry-item {
    display: block;
    width: calc(33.333% - 15px);
    margin-bottom: 22px;
    text-decoration: none;
    color: var(--th-sticky-text);
    float: left;
    padding: 20px;
    border-radius: 3px;
    box-shadow: 3px 4px 10px var(--th-sticky-shadow);
    font-family: "Microsoft YaHei", system-ui, sans-serif;
    transition: transform 0.25s, box-shadow 0.25s;
}
.sticky-masonry-item:hover {
    transform: rotate(0deg) scale(1.04) !important;
    box-shadow: 5px 8px 18px var(--th-sticky-hover-shadow);
    z-index: 2;
}
.sticky-masonry-text {
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sticky-masonry-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

/* ================= 日记本卷轴 ================= */
.diary-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px 0;
}
.diary-item {
    display: block;
    margin-bottom: 24px;
    text-decoration: none;
    color: inherit;
}
.diary-date {
    font-size: 13px;
    color: var(--th-primary-soft);
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: 1px;
}
.diary-item .diary-content {
    background: var(--th-card-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--th-header-border);
    border-radius: 12px;
    padding: 22px 26px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 31px,
        rgba(150, 135, 220, 0.06) 31px,
        rgba(150, 135, 220, 0.06) 32px
    );
    background-size: 100% 32px;
}
.diary-item:hover .diary-content {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 115, 216, 0.12);
    border-color: rgba(150, 135, 220, 0.25);
}
.diary-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--th-text-heading);
    margin: 0 0 8px;
    line-height: 1.4;
}
.diary-text {
    font-size: 14px;
    color: var(--th-text-muted);
    margin: 0 0 12px;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.diary-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

/* ================= 通用标签/时间样式 ================= */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.card-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    background: rgba(124, 115, 216, 0.2);
    color: var(--th-primary-soft);
    font-size: 12px;
}
.card-time {
    color: var(--th-time-text);
    font-size: 12px;
}

/* ================= 查看更多 ================= */
.more-link {
    text-align: center;
    margin: 30px 0 10px;
}
.more-link a {
    display: inline-block;
    padding: 10px 30px;
    border: 1px solid var(--th-card-hover-border);
    color: var(--th-primary-soft);
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s;
    font-size: 14px;
}
.more-link a:hover {
    background: rgba(124, 92, 232, 0.15);
    color: var(--th-text-highlight);
    border-color: #7c5ce8;
}

/* ================= 分页 ================= */
.pagination {
    text-align: center;
    margin-top: 30px;
}
.pagination a,
.pagination span {
    display: inline-block;
    margin: 0 4px;
    padding: 7px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    color: var(--th-text-muted);
    background: var(--th-card-solid-bg);
    border: 1px solid var(--th-card-border);
    transition: all 0.3s;
}
.pagination a:hover,
.pagination .current {
    background: #7c5ce8;
    color: #fff;
    border-color: #7c5ce8;
    box-shadow: 0 0 12px rgba(124, 92, 232, 0.4);
}

/* ================= 隐私框 & 页脚 ================= */
.privacy-box-wrap {
    padding: 20px 0;
}
.privacy-box {
    background: var(--th-card-solid-bg);
    backdrop-filter: blur(6px);
    border: 1px solid var(--th-header-border);
    border-radius: 10px;
    padding: 14px 20px;
    font-size: 13px;
    color: var(--th-text-muted);
    text-align: center;
}
.site-footer {
    background: transparent !important;
    border-top: 1px solid rgba(150, 135, 220, 0.1) !important;
    padding: 25px 0 35px;
    text-align: center;
    font-size: 13px;
    color: var(--th-time-text);
}
.site-footer a {
    color: var(--th-time-text);
    text-decoration: none;
    margin: 0 6px;
    transition: color 0.3s;
}
.site-footer a:hover {
    color: var(--th-primary-soft);
}

/* ================= 详情页 ================= */
/* 阅读进度条 */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #7c5ce8, var(--th-primary-soft), #7c5ce8);
    z-index: 9999;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(124, 92, 232, 0.5);
}

/* 详情页容器 */
.log-con {
    max-width: 800px;
    margin: 0 auto;
    background: var(--th-card-dark-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--th-header-border);
    border-radius: 24px;
    padding: 0;
    margin-top: 30px;
    margin-bottom: 30px;
    position: relative;
    overflow: visible;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* 头部毛玻璃卡片 */
.log-header-card {
    background: var(--th-log-header-bg);
    border-bottom: 1px solid var(--th-header-border);
    border-radius: 24px 24px 0 0;
    padding: 25px 25px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.log-header-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(124, 92, 232, 0.06), transparent 60%);
    pointer-events: none;
}

/* 情绪标签大徽章 */
.log-emotion-badge {
    display: inline-block;
    padding: 8px 28px;
    border-radius: 50px;
    color: var(--th-log-emotion-badge-text);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 24px;
    box-shadow: 0 6px 24px var(--th-shadow);
    text-shadow: 0 1px 3px var(--th-shadow);
    position: relative;
    z-index: 1;
    animation: badgeFloat 3s ease-in-out infinite;
}
@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* 标题 */
.log-title {
    font-size: 34px;
    font-weight: 800;
    color: var(--th-text-heading);
    margin-bottom: 8px;
    line-height: 1.35;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
    text-align: center;
}
.log-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--th-primary), var(--th-primary-soft));
    border-radius: 3px;
    margin: 18px auto 0;
    opacity: 0.6;
}

/* 元信息 pill 行 */
.log-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-top: 22px;
    position: relative;
    z-index: 1;
}
.log-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 16px;
    border-radius: 50px;
    background: var(--th-card-bg);
    border: 1px solid rgba(150, 135, 220, 0.18);
    color: var(--th-text-muted);
    font-size: 12px;
    transition: all 0.3s ease;
}
.log-meta-pill:hover {
    background: rgba(124, 92, 232, 0.12);
    border-color: rgba(150, 135, 220, 0.35);
    color: var(--th-text-muted);
}
.log-meta-pill svg {
    opacity: 0.7;
}
.log-meta-location {
    color: var(--th-primary-soft);
    border-color: rgba(124, 115, 216, 0.3);
}
.log-meta-anon {
    color: var(--th-primary-soft);
    border-color: rgba(124, 115, 216, 0.3);
}

/* 装饰分割线 */
.log-divider-fancy {
    height: 40px;
    margin: 0;
    position: relative;
    overflow: hidden;
}
.log-divider-fancy svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* 文章内容 */
.log-content-markdown {
    font-size: 16.5px;
    line-height: 1.95;
    color: var(--th-text-muted);
    padding:25px 25px 20px;
}
.log-content-markdown > p:first-of-type::first-letter {
    float: left;
    font-size: 64px;
    line-height: 0.85;
    font-weight: 800;
    color: var(--th-primary-soft);
    margin-right: 10px;
    margin-top: 6px;
    text-shadow: 0 0 20px rgba(180, 168, 240, 0.3);
}
.log-content-markdown p {
    margin-bottom: 20px;
}
.log-content-markdown h1,
.log-content-markdown h2,
.log-content-markdown h3 {
    color: var(--th-text-heading);
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 700;
}
.log-content-markdown h2 {
    font-size: 24px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--th-header-border);
}
.log-content-markdown h3 {
    font-size: 20px;
}
.log-content-markdown hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(150, 135, 220, 0.2) 50%, transparent 100%);
    margin: 36px 0;
    position: relative;
}
.log-content-markdown hr::after {
    content: '✦';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: rgba(150, 135, 220, 0.4);
    font-size: 14px;
    background: var(--th-log-hr-bg);
    padding: 0 12px;
}

/* 引用块 */
.log-content-markdown blockquote {
    border: none;
    background: linear-gradient(135deg, rgba(124, 92, 232, 0.06), rgba(180, 168, 240, 0.04));
    padding: 20px 24px 20px 52px;
    border-radius: 14px;
    margin: 22px 0;
    color: var(--th-text-muted);
    position: relative;
    border-left: 3px solid transparent;
    border-image: linear-gradient(180deg, var(--th-primary), var(--th-primary-soft)) 1;
}
.log-content-markdown blockquote::before {
    content: '"';
    position: absolute;
    top: 8px;
    left: 18px;
    font-size: 48px;
    line-height: 1;
    color: rgba(124, 92, 232, 0.25);
    font-family: Georgia, serif;
    font-weight: 700;
}
.log-content-markdown blockquote p:last-child {
    margin-bottom: 0;
}

/* 图片 */
.log-content-markdown img {
    max-width: 100%;
    border-radius: 14px;
    box-shadow: 0 8px 32px var(--th-shadow);
    margin: 10px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.log-content-markdown img:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px var(--th-shadow);
}

/* 代码块 */
.log-content-markdown pre {
    background: var(--th-code-bg);
    border: 1px solid var(--th-header-border);
    border-radius: 14px;
    padding: 20px;
    margin: 22px 0;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.7;
}
.log-content-markdown pre code {
    background: transparent;
    padding: 0;
    border-radius: 0;
    color: var(--th-text-muted);
    font-family: 'Fira Code', 'SF Mono', Consolas, monospace;
}
.log-content-markdown code {
    background: var(--th-inline-code-bg);
    color: var(--th-primary-soft);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.88em;
    font-family: 'Fira Code', 'SF Mono', Consolas, monospace;
}

/* 复制代码按钮 */
.code-copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--th-card-border);
    border: 1px solid rgba(150, 135, 220, 0.2);
    color: var(--th-primary-soft);
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0;
    z-index: 2;
}
.log-content-markdown pre:hover .code-copy-btn {
    opacity: 1;
}
.code-copy-btn:hover {
    background: var(--th-card-hover-border);
    color: var(--th-text-heading);
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(124, 92, 232, 0.3), rgba(180, 168, 240, 0.2));
    border: 1px solid rgba(150, 135, 220, 0.25);
    color: var(--th-primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px var(--th-shadow);
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: linear-gradient(135deg, rgba(124, 92, 232, 0.5), rgba(180, 168, 240, 0.35));
    color: var(--th-text-heading);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(124, 92, 232, 0.25);
}

/* 标签区域 */
.log-tags-section {
    margin: 30px 0 10px;
    padding: 20px 50px 0;
    border-top: 1px solid rgba(150, 135, 220, 0.1);
}
.log-tags-label {
    display: inline-block;
    font-size: 12px;
    color: var(--th-time-text);
    margin-right: 8px;
    margin-bottom: 8px;
}
.log-tag-chip {
    display: inline-block;
    margin: 0 6px 8px 0;
    padding: 5px 16px;
    background: rgba(124, 115, 216, 0.12);
    color: var(--th-primary-soft);
    border-radius: 50px;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid rgba(124, 115, 216, 0.2);
    transition: all 0.3s;
}
.log-tag-chip:hover {
    background: rgba(124, 115, 216, 0.3);
    color: var(--th-text-highlight);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--th-tag-bg);
}

/* 上下篇导航卡片 */
.neighbor-log {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 36px;
    padding: 0 50px 40px;
    border-top: none;
}
.neighbor-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: var(--th-card-dark-bg);
    border: 1px solid var(--th-header-border);
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.neighbor-card:hover {
    background: var(--th-input-bg);
    border-color: rgba(150, 135, 220, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 115, 216, 0.1);
}
.neighbor-prev {
    text-align: left;
}
.neighbor-next {
    text-align: right;
    flex-direction: row-reverse;
}
.neighbor-empty {
    opacity: 0.5;
    pointer-events: none;
}
.neighbor-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--th-tag-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--th-primary-soft);
}
.neighbor-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.neighbor-label {
    font-size: 11px;
    color: var(--th-time-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.neighbor-title {
    font-size: 14px;
    color: var(--th-text-muted);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.neighbor-card:hover .neighbor-title {
    color: var(--th-text-highlight);
}

/* ================= 评论 ================= */
.comment-box {
    max-width: 800px;
    margin: 0 auto 60px;
}
.comment-box h3 {
    font-size: 18px;
    color: var(--th-text-heading);
    margin-bottom: 20px;
}

/* 评论表单容器 */
.comment-post {
    background: var(--th-card-solid-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--th-header-border);
    border-radius: 14px;
    padding: 24px 50px;
    margin-bottom: 30px;
}
.commentform {
    margin: 0;
}

/* 评论输入框 - 覆盖默认白底 */
.commentform .form-control,
.commentform .com_control,
.commentform textarea,
.commentform input[type="text"],
.commentform input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 12px;
    border: 1px solid var(--th-input-border);
    border-radius: 10px;
    font-size: 14px;
    background: var(--th-card-dark-bg) !important;
    color: var(--th-text) !important;
    outline: none;
    transition: border 0.3s;
    font-family: inherit;
    box-shadow: none !important;
}
.commentform textarea {
    min-height: 100px;
    resize: vertical;
}
.commentform .form-control::placeholder,
.commentform .com_control::placeholder,
.commentform textarea::placeholder,
.commentform input::placeholder {
    color: var(--th-time-text) !important;
}
.commentform .form-control:focus,
.commentform .com_control:focus,
.commentform textarea:focus,
.commentform input:focus {
    border-color: #7c5ce8;
    background: var(--th-input-bg) !important;
}

/* 评论信息行 */
.comment-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 4px;
}

/* 提交按钮 */
.com_submit_p {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 6px;
}
.com_submit_p .btn {
    padding: 10px 28px;
    background: #7c5ce8;
    color: #fff;
    border: none;
    border-radius: 40px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}
.com_submit_p .btn:hover {
    background: #8e6ef5;
    box-shadow: 0 0 16px rgba(124, 92, 232, 0.4);
}
.com_submit_p .cancel-reply {
    background: var(--th-card-border);
    color: var(--th-primary-soft);
}
.com_submit_p .cancel-reply:hover {
    background: var(--th-card-hover-border);
    color: var(--th-text-highlight);
    box-shadow: none;
}

/* 评论区域对齐 */
.comments {
    padding: 0 50px;
}
.pagenavi {
    padding: 0 50px 30px;
}

/* 评论列表 */
.comment-list .comment {
    background: var(--th-card-solid-bg);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(150, 135, 220, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 14px;
}
.comment-list .comment-name {
    font-weight: 600;
    color: var(--th-primary-soft);
    font-size: 14px;
    margin-bottom: 6px;
}
.comment-list .comment-content {
    font-size: 14px;
    color: var(--th-text-muted);
    line-height: 1.6;
}
.comment-list .comment-time {
    font-size: 12px;
    color: var(--th-time-text);
    margin-top: 8px;
}

/* ================= 投稿页 & 隐私页 ================= */
.submit-form,
.privacy-con {
    max-width: 700px;
    margin: 30px auto 60px;
    background: var(--th-card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--th-card-border);
    border-radius: 16px;
    padding: 35px;
}
.submit-form h2,
.privacy-con h2 {
    font-size: 22px;
    color: var(--th-text-heading);
    margin-bottom: 20px;
}
.submit-form label {
    display: block;
    margin: 16px 0 6px;
    font-size: 14px;
    color: var(--th-text-light);
}
.submit-form input[type="text"],
.submit-form textarea,
.submit-form select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--th-input-border);
    border-radius: 10px;
    font-size: 14px;
    background: var(--th-card-dark-bg);
    color: var(--th-text);
    outline: none;
    transition: border 0.3s;
    font-family: inherit;
}
.submit-form input[type="text"]::placeholder,
.submit-form textarea::placeholder {
    color: var(--th-time-text);
}
.submit-form input[type="text"]:focus,
.submit-form textarea:focus,
.submit-form select:focus {
    border-color: #7c5ce8;
}
.submit-form select {
    appearance: auto;
}
.submit-form select option {
    background: var(--th-body-bg);
    color: var(--th-text);
}
.submit-form button,
.submit-btn {
    padding: 12px 32px;
    background: #7c5ce8;
    color: #fff;
    border: none;
    border-radius: 40px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}
.submit-form button:hover,
.submit-btn:hover {
    background: #8e6ef5;
    box-shadow: 0 0 20px rgba(124, 92, 232, 0.4);
}
.submit-wrap,
.privacy-wrap {
    max-width: 700px;
    margin: 30px auto 60px;
    background: var(--th-card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--th-card-border);
    border-radius: 16px;
    padding: 35px;
}
.submit-title {
    font-size: 22px;
    color: var(--th-text-heading);
    margin-bottom: 20px;
}
.submit-msg {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}
.submit-msg.success {
    background: var(--th-success-bg);
    border: 1px solid var(--th-success-border);
    color: var(--th-success-color);
}
.submit-msg.error {
    background: var(--th-error-bg);
    border: 1px solid var(--th-error-border);
    color: var(--th-error-color);
}
.form-row {
    margin-bottom: 16px;
}
.form-row label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--th-text-light);
}
.form-row input[type="text"],
.form-row textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--th-input-border);
    border-radius: 10px;
    font-size: 14px;
    background: var(--th-card-dark-bg);
    color: var(--th-text);
    outline: none;
    transition: border 0.3s;
    font-family: inherit;
}
.form-row input[type="text"]::placeholder,
.form-row textarea::placeholder {
    color: var(--th-time-text);
}
.form-row input[type="text"]:focus,
.form-row textarea:focus {
    border-color: #7c5ce8;
}
.submit-tips {
    margin-top: 24px;
    padding: 16px;
    background: var(--th-card-solid-bg);
    border: 1px solid var(--th-header-border);
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.8;
    color: var(--th-text-muted);
}
.privacy-wrap h2 {
    font-size: 20px;
    color: var(--th-text-heading);
    margin: 24px 0 12px;
}
.privacy-wrap h2:first-child {
    margin-top: 0;
}
.privacy-wrap p,
.privacy-wrap li {
    font-size: 14px;
    line-height: 1.8;
    color: var(--th-text-muted);
}
.privacy-wrap ul {
    padding-left: 20px;
    margin-bottom: 16px;
}
.log-divider {
    border: 0;
    border-top: 1px solid var(--th-card-border);
    margin: 20px 0;
}

/* ================= 登录模态框 ================= */
.auth-modal-mask {
    z-index: 1400 !important;
}
.auth-modal {
    z-index: 1410 !important;
}
.auth-modal-card {
    background: var(--th-card-solid-bg) !important;
    backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(150, 135, 220, 0.2) !important;
    border-radius: 16px !important;
    color: var(--th-text);
}
.auth-modal-head h3 {
    color: var(--th-text-heading);
}
.auth-form-row input {
    background: var(--th-input-bg) !important;
    border: 1px solid var(--th-input-border) !important;
    color: var(--th-text) !important;
}
.auth-form-row input::placeholder {
    color: var(--th-time-text) !important;
}
.auth-form-row input:focus {
    border-color: #7c5ce8 !important;
}
.auth-submit {
    background: #7c5ce8 !important;
    border: none !important;
}
.auth-submit:hover {
    background: #8e6ef5 !important;
    box-shadow: 0 0 16px rgba(124, 92, 232, 0.4) !important;
}
.auth-modal-switch a {
    color: var(--th-primary-soft) !important;
}
.auth-modal-switch a:hover {
    color: var(--th-text-highlight) !important;
}

/* ================= 移动端自适应 ================= */
@media (max-width: 860px) {
    .hero-block h1 {
        font-size: 30px;
    }
    .sticky-wall {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .masonry-item {
        width: calc(50% - 11px);
    }
    .sticky-masonry-item {
        width: calc(50% - 11px);
    }
    .blog-header-nav .nav-list {
        gap: 14px;
    }
    .header-wrap {
        flex-wrap: wrap;
        gap: 10px;
        padding-block: 1em;
    }
}
@media (max-width: 560px) {
    .hero-block h1 {
        font-size: 26px;
    }
    .hero-desc {
        font-size: 15px;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .btn-fill, .btn-outline-light {
        width: 80%;
        text-align: center;
    }
    .timeline-list {
        padding-left: 22px;
    }
    .timeline-dot {
        left: -22px;
        width: 9px;
        height: 9px;
    }
    .sticky-wall {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .sticky-card {
        transform: rotate(0deg) !important;
    }
    .masonry-item {
        width: 100%;
        float: none;
    }
    .chat-item {
        gap: 10px;
        margin-bottom: 20px;
    }
    .chat-avatar {
        width: 34px;
        height: 34px;
    }
    .chat-bubble {
        padding: 12px 14px;
        border-radius: 14px;
        border-bottom-left-radius: 3px;
    }
    .chat-title {
        font-size: 14px;
    }
    .chat-text {
        font-size: 13px;
    }
    .bigcard-content {
        padding: 20px 22px;
    }
    .bigcard-title {
        font-size: 16px;
    }
    .bigcard-text {
        font-size: 14px;
    }
    .sticky-masonry-item {
        width: 100%;
        float: none;
        transform: rotate(0deg) !important;
    }
    .diary-content {
        padding: 16px 18px;
    }
    .diary-title {
        font-size: 15px;
    }
    .log-con {
        padding: 28px 22px;
        border-radius: 16px;
    }
    .log-title {
        font-size: 22px;
    }
    .log-meta-row {
        gap: 8px;
    }
    .log-meta-pill {
        font-size: 11px;
        padding: 4px 10px;
    }
    .neighbor-log {
        grid-template-columns: 1fr;
    }
    .neighbor-next {
        flex-direction: row-reverse;
    }
    .comment-post {
        padding: 18px 24px;
    }
    .comments,
    .pagenavi {
        padding: 0 24px;
    }
    .comment-info {
        grid-template-columns: 1fr;
    }
    .com_submit_p {
        flex-wrap: wrap;
    }
    .submit-form,
    .privacy-con {
        padding: 22px;
    }
}

/* ================= 共鸣按钮 ================= */
.resonance-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--th-time-text);
    cursor: pointer;
    user-select: none;
    transition: color 0.3s, transform 0.2s;
    position: relative;
    overflow: visible;
    padding: 2px 6px;
    border-radius: 12px;
    background: transparent;
    border: 1px solid transparent;
}
.resonance-btn:hover {
    color: var(--th-primary-soft);
    background: rgba(150, 135, 220, 0.08);
    border-color: var(--th-card-border);
}
.resonance-btn.resonated {
    color: var(--th-resonance-color);
}
.resonance-btn.resonated svg {
    fill: var(--th-resonance-bg);
    stroke: var(--th-resonance-color);
}
.resonance-btn:active {
    transform: scale(0.92);
}
.resonance-count {
    font-weight: 500;
    min-width: 14px;
    text-align: center;
}
.resonance-ripple {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 6px;
    background: var(--th-resonance-bg);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1);
    animation: resonanceRipple 0.6s ease-out forwards;
    pointer-events: none;
}
@keyframes resonanceRipple {
    to {
        transform: translate(-50%, -50%) scale(8);
        opacity: 0;
    }
}
/* 详情页共鸣按钮 */
.resonance-detail {
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(150, 135, 220, 0.2);
    background: rgba(150, 135, 220, 0.08);
    color: var(--th-primary-soft);
    cursor: pointer;
}
.resonance-detail:hover {
    background: var(--th-card-border);
    border-color: var(--th-card-hover-border);
}
.resonance-detail.resonated {
    background: var(--th-resonance-bg-light);
    border-color: var(--th-resonance-border);
    color: var(--th-resonance-soft);
}
.resonance-detail.resonated svg {
    fill: var(--th-resonance-bg);
    stroke: var(--th-resonance-soft);
}
/* 各列表样式中的共鸣按钮位置微调 */
.sticky-foot .resonance-btn,
.masonry-foot .resonance-btn,
.sticky-masonry-foot .resonance-btn {
    margin-left: auto;
}
.chat-meta .resonance-btn {
    margin-left: auto;
}
.bigcard-foot .resonance-btn,
.minimal-foot .resonance-btn,
.diary-foot .resonance-btn,
.timeline-foot .resonance-btn {
    margin-left: auto;
}

/* ================= 白天/黑夜主题切换按钮 ================= */
.theme-toggle {
    position: fixed;
    right: 20px;
    bottom: 80px;
    z-index: 999;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: var(--th-primary);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(124, 92, 232, 0.35);
    transition: all 0.3s ease;
    padding: 0;
}
.theme-toggle:hover {
    background: var(--th-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 92, 232, 0.45);
}
.theme-toggle svg {
    width: 22px;
    height: 22px;
    display: none;
}
.theme-toggle .theme-icon-moon {
    display: block;
}
[data-theme="light"] .theme-toggle .theme-icon-moon {
    display: none;
}
[data-theme="light"] .theme-toggle .theme-icon-sun {
    display: block;
}
