    /* 移除移动端点击时的蓝色高亮框 */
    * {
        -webkit-tap-highlight-color: transparent;
    }

    /* 新增：爱心效果的容器 */
    .heart-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 999;
        overflow: hidden;
    }

    /* 回复功能相关样式 */
    .reply-button {
        background: linear-gradient(145deg, #ffffff 0%, #f5f5f5 100%);
        color: #555555;
        border: 1px solid rgba(0, 0, 0, 0.06);
        border-radius: 20px;
        padding: 8px 16px;
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
        margin-top: 12px;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        display: inline-flex;
        align-items: center;
        gap: 6px;
        box-shadow:
            0 2px 6px rgba(0, 0, 0, 0.04),
            0 4px 12px rgba(0, 0, 0, 0.02),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }

    .reply-button:hover {
        background: linear-gradient(145deg, #f8f8f8 0%, #eeeeee 100%);
        color: #333333;
        transform: translateY(-2px);
        box-shadow:
            0 4px 12px rgba(0, 0, 0, 0.06),
            0 8px 24px rgba(0, 0, 0, 0.03),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
        border-color: rgba(0, 0, 0, 0.1);
    }

    .reply-button:active {
        transform: translateY(0);
        box-shadow:
            0 2px 4px rgba(0, 0, 0, 0.04),
            inset 0 1px 2px rgba(0, 0, 0, 0.04);
    }

    /* 删除按钮样式 - 弱化版本 */
    .delete-button {
        background-color: transparent;
        color: #bbbbbb;
        border: none;
        border-radius: 2px;
        padding: 1px 3px;
        font-size: 9px;
        cursor: pointer;
        margin-top: 8px;
        margin-left: 6px;
        transition: all 0.2s ease;
        display: inline-flex;
        align-items: center;
        opacity: 0.5;
    }

    .delete-button:hover {
        color: #e74c3c;
        background-color: rgba(231, 76, 60, 0.08);
        opacity: 1;
    }

    /* 回复删除按钮样式 - 弱化版本 */
    .reply-delete-button {
        background-color: transparent;
        color: #bbbbbb;
        border: none;
        border-radius: 2px;
        padding: 1px 3px;
        font-size: 9px;
        cursor: pointer;
        margin-left: 6px;
        transition: all 0.2s ease;
        opacity: 0.5;
    }

    .reply-delete-button:hover {
        color: #e74c3c;
        background-color: rgba(231, 76, 60, 0.08);
        opacity: 1;
    }

    /* 确认删除模态框样式 */
    .delete-confirm-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .delete-confirm-modal.show {
        opacity: 1;
        visibility: visible;
    }

    .delete-confirm-content {
        background-color: #ffffff;
        padding: 25px;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        max-width: 400px;
        width: 90%;
        text-align: center;
    }

    .delete-confirm-title {
        font-size: 18px;
        font-weight: 600;
        color: #333333;
        margin-bottom: 15px;
    }

    .delete-confirm-message {
        font-size: 14px;
        color: #666666;
        margin-bottom: 20px;
        line-height: 1.5;
    }

    .delete-confirm-buttons {
        display: flex;
        gap: 10px;
        justify-content: center;
    }

    .delete-confirm-cancel {
        background-color: #f5f5f5;
        color: #666666;
        border: 1px solid #dddddd;
        border-radius: 6px;
        padding: 8px 16px;
        cursor: pointer;
        font-size: 14px;
        transition: all 0.2s ease;
    }

    .delete-confirm-cancel:hover {
        background-color: #e0e0e0;
    }

    .delete-confirm-delete {
        background-color: #e74c3c;
        color: white;
        border: none;
        border-radius: 6px;
        padding: 8px 16px;
        cursor: pointer;
        font-size: 14px;
        transition: all 0.2s ease;
    }

    .delete-confirm-delete:hover {
        background-color: #c0392b;
    }



    .reply-form {
        margin-top: 16px;
        display: none;
        background: linear-gradient(145deg, #fafafa 0%, #f5f5f5 100%);
        border-radius: 24px;
        padding: 20px;
        box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.04);
        border: 1px solid rgba(0, 0, 0, 0.04);
        animation: fadeIn 0.3s ease;
    }

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

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .reply-input {
        width: 100%;
        min-height: 80px;
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 16px;
        padding: 16px;
        margin-bottom: 12px;
        background-color: #ffffff;
        font-size: 14px;
        transition: all 0.25s ease;
        resize: vertical;
        box-sizing: border-box;
        max-width: 100%;
        overflow-wrap: break-word;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }

    .reply-input:focus {
        outline: none;
        border-color: rgba(138, 171, 114, 0.5);
        box-shadow: 0 4px 16px rgba(138, 171, 114, 0.12);
    }

    .reply-submit {
        background: linear-gradient(135deg, #8aab72 0%, #7a9a62 100%);
        color: white;
        border: none;
        border-radius: 16px;
        padding: 10px 20px;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 12px rgba(138, 171, 114, 0.35);
    }

    .reply-submit:hover {
        background: linear-gradient(135deg, #7a9a62 0%, #6a8c54 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(138, 171, 114, 0.45);
    }

    .reply-submit:active {
        transform: translateY(0);
        box-shadow: 0 3px 8px rgba(138, 171, 114, 0.35);
    }

    .reply-submit:disabled {
        background: linear-gradient(135deg, #cccccc 0%, #bbbbbb 100%);
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

    .reply-attachment-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: linear-gradient(145deg, #ffffff 0%, #f8f8f8 100%);
        color: #666;
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 12px;
        padding: 8px 14px;
        font-size: 12px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        margin-right: 8px;
    }

    .reply-attachment-btn:hover {
        background: linear-gradient(145deg, #f8f8f8 0%, #f0f0f0 100%);
        border-color: rgba(138, 171, 114, 0.3);
        color: #8aab72;
    }

    .reply-file-previews {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 12px;
        min-height: 0;
    }

    .reply-file-preview {
        background-color: #f0f8ff;
        border: 1px solid #d1e7ff;
        border-radius: 6px;
        padding: 4px;
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 11px;
        max-width: 120px;
        position: relative;
    }

    .reply-file-preview img {
        width: 40px;
        height: 40px;
        object-fit: cover;
        border-radius: 4px;
    }

    .reply-file-preview .file-icon {
        font-size: 16px;
    }

    .reply-file-preview .file-name {
        flex: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 10px;
    }

    .reply-file-preview .remove-btn {
        position: absolute;
        top: -4px;
        right: -4px;
        background: #ff6b6b;
        color: white;
        border: none;
        border-radius: 50%;
        width: 16px;
        height: 16px;
        font-size: 10px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .reply-actions {
        display: flex;
        align-items: center;
        margin-bottom: 12px;
    }

    .replies-container {
        margin-top: 16px;
        padding-top: 0;
        animation: fadeIn 0.5s ease;
    }

    /* 回复分页控件样式 */
    .replies-pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 6px;
        margin-top: 16px;
        padding-top: 12px;
        border-top: 1px solid rgba(0, 0, 0, 0.04);
    }

    .replies-pagination button {
        min-width: 28px;
        height: 28px;
        padding: 0 8px;
        border: none;
        background: linear-gradient(135deg, #f5f5f5 0%, #ebebeb 100%);
        color: #666666;
        border-radius: 8px;
        font-size: 12px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    }

    .replies-pagination button:hover:not(:disabled) {
        background: linear-gradient(135deg, #ebebeb 0%, #e0e0e0 100%);
        transform: translateY(-1px);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .replies-pagination button.active {
        background: linear-gradient(135deg, #8aab72 0%, #7a9a62 100%);
        color: white;
        box-shadow: 0 2px 6px rgba(138, 171, 114, 0.35);
    }

    .replies-pagination button:disabled {
        opacity: 0.4;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

    .replies-pagination .page-info {
        font-size: 12px;
        color: #8aab72;
        font-weight: 500;
        margin: 0 8px;
    }

    .reply-item {
        background-color: #fcfcfc;
        border-radius: 10px;
        padding: 12px 14px;
        margin-bottom: 10px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
        border: 1px solid #f0f0f0;
        transition: all 0.2s ease;
        position: relative;
    }

    .reply-item:hover {
        background-color: #fafafa;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    }

    .reply-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 6px;
        font-size: 13px;
    }

    .reply-name {
        font-weight: bold;
        display: flex;
        align-items: center;
    }

    .reply-time {
        color: #999;
        font-size: 12px;
        font-weight: 400;
    }

    .reply-content {
        font-size: 14px;
        line-height: 1.5;
        word-break: break-word;
        padding-left: 5px;
    }

    /* 回复数量标签 */
    .reply-count {
        display: inline;
        color: #8aab72;
        font-size: 12px;
        font-weight: 600;
        margin-left: 4px;
    }

    @keyframes pulse {
        0% {
            transform: scale(1);
        }

        50% {
            transform: scale(1.05);
        }

        100% {
            transform: scale(1);
        }
    }

    /* 优化后：单个爱心的样式 */
    .heart {
        position: absolute;
        font-size: 24px;
        color: #ff99aa;
        transform: translateY(0) rotate(0);
        animation: floatUp ease-in-out forwards;
    }

    /* 优化后：爱心漂浮动画 */
    @keyframes floatUp {
        0% {
            transform: translate(0, 0) rotate(0);
            opacity: 0;
        }

        20% {
            opacity: 0.5;
        }

        80% {
            opacity: 0;
        }

        100% {
            transform: translate(calc(var(--random-x-offset) * 1px), -120vh) rotate(360deg);
            opacity: 0;
        }
    }

    /* 家庭图片装饰 (右侧logo) */
    .family-decoration {
        position: absolute;
        right: 0;
        top: -120px;
        width: 200px;
        height: auto;
        z-index: 1;
        pointer-events: none;
        border-radius: 8px;
        /* 统一圆角为8px */
    }

    /* 左上角Logo装饰 */
    .safehouse-logo-left {
        position: absolute;
        left: 0;
        top: -140px;
        width: 200px;
        height: auto;
        z-index: 1;
        pointer-events: none;
        border-radius: 8px;
    }

    .lazy-logo {
        opacity: 0;
        transition: opacity 0.5s ease-in-out;
    }

    .lazy-logo.loaded {
        opacity: 1;
    }

    /* ============================ */
    /* SVG动画小房子样式 */
    /* ============================ */
    .animated-house-container {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto 30px auto;
        position: relative;
    }

    #House {
        margin: 0 auto;
        display: block;
        width: 130px;
        height: 130px;
        cursor: pointer;
        transition: transform 0.3s ease;
    }

    #House:hover {
        transform: scale(1.05);
    }

    /* 响应式设计 */
    @media (max-width: 768px) {
        #House {
            width: 110px;
            height: 110px;
        }
    }

    @media (max-width: 480px) {
        #House {
            width: 95px;
            height: 95px;
        }
    }

    /* 动画按钮样式 - 已隐藏，因为现在自动循环播放 */
    .house-animate-btn {
        display: none;
    }

    /* Base Styles - Warm & Inviting */
    :root {
        --warm-bg-light: #fdfaf6;
        --warm-bg-card: #ffffff;
        --warm-text-dark: #333333;
        --warm-text-secondary: #888888;
        --warm-border: #e0e0e0;
        --warm-primary: #8aab72;
        --warm-primary-hover: #6a8c54;
        --warm-shadow: rgba(0, 0, 0, 0.05);
        --warm-radius: 14px;
    }

    html {
        height: 100%;
    }

    body {
        font-family: sans-serif;
        background-color: #fdfaf6;
        color: #333333;
        margin: 0;
        padding: 0;
        line-height: 1.7;
    }

    body.main-content-active {
        min-height: 100vh;
        min-height: -webkit-fill-available;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: fixed;
    }

    @media (max-width: 768px) {
        body.main-content-active {
            min-height: 100vh;
            min-height: -webkit-fill-available;
            background-attachment: scroll;
        }
    }

    /* 内容淡入效果 */
    .fade-in {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }

    /* 交错淡入效果 - 用于列表项 */
    .fade-in-stagger {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .fade-in-stagger.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .container {
        max-width: 960px;
        margin: 0 auto;
        padding: 0 16px;
    }

    /* 密码输入框容器样式 */
    #password-form-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        background-color: #fdfaf6;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: fixed;
        transition: opacity 1.2s ease-in-out;
        z-index: 1000;
    }

    #password-form {
        background: rgba(255, 255, 255, 0.008);
        backdrop-filter: blur(2px) saturate(110%) brightness(102%);
        padding: 30px 25px;
        border-radius: 20px;
        box-shadow:
            0 25px 50px -15px rgba(0, 0, 0, 0.05),
            0 0 0 1px rgba(255, 255, 255, 0.06),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.08);
        max-width: 320px;
        min-width: 280px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-sizing: border-box;
        position: relative;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    /* 背景未加载时的样式（深色半透明） */
    #password-form-container.no-background #password-form {
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(10px) saturate(110%);
        box-shadow:
            0 25px 50px -15px rgba(0, 0, 0, 0.3),
            0 0 0 1px rgba(255, 255, 255, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.15);
    }

    #password-form h2 {
        margin-top: 0;
        margin-bottom: 8px;
        color: rgba(255, 255, 255, 0.9);
        font-size: 22px;
        font-weight: bold;
        letter-spacing: 0.5px;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        opacity: 1;
    }

    /* 背景未加载时的标题样式 */
    #password-form-container.no-background #password-form h2 {
        color: rgba(255, 255, 255, 0.95);
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
    }

    /* 密码表单响应式样式 */
    @media (max-width: 480px) {
        #password-form {
            padding: 25px 20px;
            border-radius: 16px;
            max-width: 280px;
            min-width: 260px;
            margin: 0 10px;
        }

        #password-form h2 {
            font-size: 20px;
            margin-bottom: 6px;
            font-weight: bold;
        }

        #password-form p {
            font-size: 13px;
            margin-bottom: 25px;
        }
    }

    /* 密码表单头部布局 */
    .password-form-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }





    #password-form p {
        color: rgba(255, 255, 255, 0.8);
        font-size: 14px;
        margin-top: 0;
        margin-bottom: 35px;
        font-weight: 300;
        letter-spacing: 0.3px;
        line-height: 1.5;
        opacity: 1;
    }

    /* 背景未加载时的描述文字样式 */
    #password-form-container.no-background #password-form p {
        color: rgba(255, 255, 255, 0.9);
        text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
    }

    #password-form input {
        width: 100%;
        max-width: 320px;
        padding: 18px 24px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 16px;
        font-size: 16px;
        font-weight: 400;
        box-sizing: border-box;
        margin-bottom: 25px;
        background: rgba(255, 255, 255, 0.005);
        color: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(2px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
    }

    /* 背景未加载时的输入框样式 */
    #password-form-container.no-background #password-form input {
        border: 1px solid rgba(255, 255, 255, 0.25);
        background: rgba(255, 255, 255, 0.15);
        color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(4px);
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    }

    #password-form input::placeholder {
        color: rgba(255, 255, 255, 0.6);
        font-weight: 300;
        font-size: 15px;
    }

    /* 背景未加载时的占位符样式 */
    #password-form-container.no-background #password-form input::placeholder {
        color: rgba(255, 255, 255, 0.7);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }

    #password-form input:focus {
        outline: none;
        border-color: rgba(138, 171, 114, 0.4);
        background: rgba(255, 255, 255, 0.08);
        box-shadow:
            0 0 0 2px rgba(138, 171, 114, 0.15),
            0 8px 25px rgba(0, 0, 0, 0.03);
        transform: translateY(-1px);
        color: rgba(255, 255, 255, 1);
    }

    /* 背景未加载时的输入框焦点样式 */
    #password-form-container.no-background #password-form input:focus {
        border-color: rgba(138, 171, 114, 0.6);
        background: rgba(255, 255, 255, 0.25);
        box-shadow:
            0 0 0 2px rgba(138, 171, 114, 0.3),
            0 8px 25px rgba(0, 0, 0, 0.2);
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    }

    #password-form input:hover {
        border-color: rgba(255, 255, 255, 0.2);
        background: rgba(255, 255, 255, 0.06);
    }

    /* 背景未加载时的输入框悬停样式 */
    #password-form-container.no-background #password-form input:hover {
        border-color: rgba(255, 255, 255, 0.35);
        background: rgba(255, 255, 255, 0.2);
    }

    /* 优化：为登录按钮单独设置样式 */
    #login-button {
        width: 100%;
        max-width: 320px;
        padding: 18px 24px;
        font-size: 15px;
        font-weight: 400;
        background: rgba(255, 255, 255, 0.06);
        color: rgba(255, 255, 255, 0.85);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 16px;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        backdrop-filter: blur(8px);
        box-shadow:
            0 8px 25px rgba(0, 0, 0, 0.03),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
        letter-spacing: 0.5px;
    }

    /* 背景未加载时的按钮样式 */
    #password-form-container.no-background #login-button {
        background: rgba(255, 255, 255, 0.2);
        color: rgba(255, 255, 255, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.3);
        box-shadow:
            0 8px 25px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    }

    #login-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg,
                transparent,
                rgba(255, 255, 255, 0.08),
                transparent);
        transition: left 0.6s ease;
    }

    #login-button:hover {
        background: rgba(255, 255, 255, 0.12);
        color: rgba(255, 255, 255, 0.95);
        border-color: rgba(255, 255, 255, 0.25);
        transform: translateY(-2px);
        box-shadow:
            0 12px 35px rgba(0, 0, 0, 0.05),
            0 0 0 1px rgba(255, 255, 255, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.12);
    }

    /* 背景未加载时的按钮悬停样式 */
    #password-form-container.no-background #login-button:hover {
        background: rgba(255, 255, 255, 0.3);
        color: rgba(255, 255, 255, 1);
        border-color: rgba(255, 255, 255, 0.4);
        box-shadow:
            0 12px 35px rgba(0, 0, 0, 0.3),
            0 0 0 1px rgba(255, 255, 255, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.25);
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    }

    #login-button:hover::before {
        left: 100%;
    }

    #login-button:active {
        transform: translateY(-1px);
        box-shadow:
            0 6px 20px rgba(0, 0, 0, 0.04),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .error-message {
        color: #d9534f;
        margin: 5px 0;
        display: none;
        text-align: center;
        font-size: 14px;
    }

    /* 背景未加载时的错误消息样式 */
    #password-form-container.no-background .error-message {
        color: #ff6b6b;
        font-weight: 500;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.3);
        background: rgba(255, 107, 107, 0.15);
        padding: 8px 12px;
        border-radius: 8px;
        border: 1px solid rgba(255, 107, 107, 0.3);
    }

    #main-content {
        display: none;
        opacity: 0;
        transition: opacity 1.2s ease-in-out;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 30px 20px;
        box-sizing: border-box;
        background: transparent;
    }

    @media (max-width: 768px) {
        #main-content {
            padding: 20px 15px;
        }
    }

    /* --- 美化后的标题样式 --- */
    .title-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 0 auto 40px auto;
        position: relative;
        /* 移除固定宽度，让内容自适应 */
    }

    h1 {
        font-size: 42px;
        font-weight: 700;
        text-align: center;
        letter-spacing: 30px;
        margin: 0 0 0 17px;
        /* 再次轻微右移 */
        position: relative;
        color: #8aab72;
    }



    h1 span {
        font-size: 18px;
        color: #888888;
        margin-top: 12px;
        font-weight: 400;
        letter-spacing: 2px;
    }

    h1 .main-title-text {
        display: inline;
    }

    /* 响应式标题调整 */
    @media (max-width: 768px) {
        .title-wrapper {
            margin-bottom: 35px;
        }

        h1 {
            font-size: 32px;
            letter-spacing: 25px;
            margin: 0 0 0 12px;
            /* 平板端再次微调 */
        }
    }

    @media (max-width: 480px) {
        .title-wrapper {
            margin-bottom: 25px;
        }

        h1 {
            font-size: 28px;
            letter-spacing: 20px;
            margin: 0 0 0 9px;
            /* 手机端再次微调 */
        }
    }

    .sub-title {
        text-align: center;
        color: #888888;
        font-size: 24px;
        margin: 30px 0;
        font-weight: 600;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
        letter-spacing: 1px;
    }

    .sub-title::before,
    .sub-title::after {
        content: '';
        flex: 1;
        height: 2px;
        background: linear-gradient(90deg, transparent, #e0e0e0, transparent);
        margin: 0 15px;
    }

    .sub-title::before {
        margin-right: 20px;
    }

    .sub-title::after {
        margin-left: 20px;
    }

    /* 彩虹动画效果 - 自然柔和的渐变 */
    @keyframes rainbow {
        0% {
            color: #ff9aa2;
        }

        /* 柔和的粉色 */
        16% {
            color: #ffb7b2;
        }

        /* 淡珊瑚色 */
        32% {
            color: #ffdac1;
        }

        /* 淡杏色 */
        48% {
            color: #e2f0cb;
        }

        /* 淡绿色 */
        64% {
            color: #b5ead7;
        }

        /* 淡青色 */
        80% {
            color: #c7ceea;
        }

        /* 淡紫色 */
        100% {
            color: #ff9aa2;
        }

        /* 回到粉色 */
    }

    .sub-title {
        animation: rainbow 12s ease-in-out infinite;
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
        transition: color 1.5s ease-in-out;
    }

    /* 动态时间样式 */
    .current-time {
        text-align: center;
        color: #cccccc;
        font-size: 18px;
        margin: -20px 0 30px 0;
        font-weight: 500;
        font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
        letter-spacing: 1px;
        opacity: 0.3;
    }

    .current-time:hover,
    .current-time:active {
        opacity: 1;
        color: #686868;
    }

    /* 响应式设计 */
    @media (max-width: 768px) {
        .current-time {
            font-size: 16px;
            margin: -15px 0 25px 0;
        }
    }

    @media (max-width: 480px) {
        .current-time {
            font-size: 14px;
            margin: -10px 0 20px 0;
        }
    }

    /* ============================ */
    /* 新增：搜索框样式 */
    /* ============================ */
    .search-container {
        margin: 20px 0;
        display: flex;
        justify-content: center;
    }

    #search-form {
        display: flex;
        align-items: center;
        width: 100%;
        max-width: 500px;
        background: linear-gradient(145deg, #faf9f7 0%, #f5f3f0 100%);
        border-radius: 25px;
        border: 1px solid rgba(0, 0, 0, 0.06);
        box-shadow:
            0 2px 8px rgba(0, 0, 0, 0.04),
            0 8px 24px rgba(0, 0, 0, 0.06),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
        padding: 5px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    #search-form:focus-within {
        background: linear-gradient(145deg, #ffffff 0%, #faf9f7 100%);
        border-color: rgba(0, 0, 0, 0.12);
        box-shadow:
            0 4px 16px rgba(0, 0, 0, 0.08),
            0 12px 32px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 1);
        transform: translateY(-2px);
    }

    #search-input {
        flex-grow: 1;
        border: none;
        background: transparent;
        padding: 10px 18px;
        font-size: 15px;
        color: #4a4846;
        outline: none;
        appearance: none;
    }

    #search-input::placeholder {
        color: #a8a5a2;
        opacity: 0.9;
        font-weight: 400;
    }

    /* 注意：不再使用 WebKit 专有的清除按钮选择器，保留标准行为 */

    #search-button,
    #clear-search-button {
        border: none;
        background-color: transparent;
        cursor: pointer;
        padding: 10px 14px;
        font-size: 17px;
        color: #8c8986;
        transition: all 0.25s ease;
        border-radius: 50%;
    }

    #search-button:hover,
    #clear-search-button:hover {
        color: #5a5755;
        background: rgba(0, 0, 0, 0.05);
        transform: scale(1.08);
    }

    #clear-search-button {
        font-size: 19px;
        padding: 10px 12px;
        margin-right: 2px;
    }

    /* ============================ */
    /* 搜索框样式结束 */

    /* ============================ */
    /* 照片墙样式 - 固定5张照片 */
    /* ============================ */
    .photo-wall-container {
        margin: 20px 0;
        padding: 15px 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .photo-wall-grid {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        gap: 12px;
        max-width: 100%;
        width: 100%;
        padding: 0 10px;
    }

    .photo-wall-item {
        position: relative;
        width: 70px;
        height: 70px;
        border-radius: 50%;
        overflow: hidden;
        cursor: pointer;
        opacity: 0;
        transform: scale(0);
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
        background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
        flex-shrink: 0;
    }

    .photo-wall-item.show {
        opacity: 1;
        transform: scale(1);
        animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    .photo-wall-item:hover {
        transform: scale(1.15);
        box-shadow: 0 4px 16px rgba(138, 171, 114, 0.35);
        z-index: 10;
    }

    .photo-wall-item:active {
        transform: scale(1.1);
    }

    .photo-wall-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
        pointer-events: none;
        border-radius: 8px;
        /* 统一圆角为8px */
    }

    .photo-wall-item:hover img {
        transform: scale(1.05);
    }

    .photo-wall-item::before {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        border-radius: 50%;
        border: 2px solid transparent;
        transition: border-color 0.3s ease;
        z-index: 1;
        pointer-events: none;
    }

    .photo-wall-item:hover::before {
        border-color: rgba(138, 171, 114, 0.4);
    }

    .photo-wall-item .photo-loading {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .photo-wall-item .photo-loading::before {
        content: '';
        width: 20px;
        height: 20px;
        border: 2px solid rgba(138, 171, 114, 0.15);
        border-top: 2px solid rgba(138, 171, 114, 0.7);
        border-radius: 50%;
        animation: spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    }

    /* 照片墙项目加载时的脉动效果 */
    .photo-wall-item.loading {
        animation: photoPulse 1.5s ease-in-out infinite;
    }

    @keyframes photoPulse {
        0%, 100% {
            opacity: 0.6;
        }
        50% {
            opacity: 0.9;
        }
    }

    /* 图片淡入缩放动画 */
    @keyframes fadeInScale {
        0% {
            opacity: 0;
            transform: scale(0.8);
            filter: blur(2px);
        }

        100% {
            opacity: 1;
            transform: scale(1);
            filter: blur(0);
        }
    }

    /* 碰碰球弹入动画 */
    @keyframes bounceIn {
        0% {
            transform: scale(0);
            opacity: 0;
        }
        50% {
            transform: scale(1.2);
            opacity: 1;
        }
        70% {
            transform: scale(0.9);
        }
        100% {
            transform: scale(1);
            opacity: 1;
        }
    }

    /* 碰碰球碰撞动画 - 用于相邻元素 */
    @keyframes bounceCollision {
        0% {
            transform: translateX(0) scale(1);
        }
        25% {
            transform: translateX(-5px) scale(1.05);
        }
        50% {
            transform: translateX(3px) scale(0.95);
        }
        75% {
            transform: translateX(-2px) scale(1.02);
        }
        100% {
            transform: translateX(0) scale(1);
        }
    }

    .photo-wall-item.collision {
        animation: bounceCollision 0.4s ease-out;
    }

    .photo-wall-item .photo-error {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: #888888;
        font-size: 24px;
        opacity: 0.5;
    }

    /* 照片墙空状态 */
    .photo-wall-empty {
        text-align: center;
        padding: 30px 20px;
        color: #888888;
        font-size: 14px;
        opacity: 0.6;
        width: 100%;
    }

    /* 响应式设计 - 优化不同设备间距 */
    @media (max-width: 768px) {
        .photo-wall-container {
            margin: 15px 0;
            padding: 12px 0;
        }

        .photo-wall-item {
            width: 60px;
            height: 60px;
        }

        .photo-wall-grid {
            gap: 10px;
            padding: 0 8px;
        }
    }

    @media (max-width: 480px) {
        .photo-wall-container {
            margin: 12px 0;
            padding: 10px 0;
        }

        .photo-wall-item {
            width: 55px;
            height: 55px;
        }

        .photo-wall-grid {
            gap: 8px;
            padding: 0 5px;
        }
    }

    @media (min-width: 1200px) {
        .photo-wall-item {
            width: 75px;
            height: 75px;
        }

        .photo-wall-grid {
            gap: 15px;
        }
    }

    /* ============================ */
    /* 照片墙样式结束 */
    /* ============================ */

    .form-container {
        background: #ffffff;
        padding: 30px;
        border-radius: 14px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        margin-bottom: 40px;
        border: 1px solid #e0e0e0;
        position: relative;
        overflow: visible;
        /* 默认隐藏编辑区域 */
        display: none;
        animation: slideDown 0.3s ease-out;
    }

    .form-container.show {
        display: block;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* 切换按钮样式 - 与诗词区域同风格 */
    .toggle-form-btn {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #999;
        padding: 8px 20px;
        border-radius: 15px;
        font-size: 14px;
        cursor: pointer;
        transition: all 0.3s ease;
        margin: 10px auto 30px auto;
        display: block;
        outline: none;
    }

    .toggle-form-btn:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }

    .toggle-form-btn:active {
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(0);
    }

    .toggle-form-btn .icon {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 50px;
        height: 16px;
    }

    .toggle-form-btn .icon::before {
        content: '';
        width: 12px;
        height: 4px;
        background: #FF5F57;
        border-radius: 2px;
    }

    .toggle-form-btn .icon::after {
        content: '';
        width: 12px;
        height: 4px;
        background: #28CA41;
        border-radius: 2px;
    }

    .toggle-form-btn .icon {
        position: relative;
    }

    .toggle-form-btn .icon span {
        display: block;
        width: 12px;
        height: 4px;
        background: #FFBD2E;
        border-radius: 2px;
    }

    .toggle-form-btn.expanded .icon {
        transform: rotate(180deg);
    }

    /* 点击摇摆动画 */
    @keyframes swing {
        0% { transform: rotate(0deg); }
        15% { transform: rotate(30deg); }
        30% { transform: rotate(-25deg); }
        45% { transform: rotate(20deg); }
        60% { transform: rotate(-15deg); }
        75% { transform: rotate(10deg); }
        90% { transform: rotate(-5deg); }
        100% { transform: rotate(0deg); }
    }

    .toggle-form-btn.animating .icon {
        animation: swing 0.8s ease;
    }

    /* 标签弹出动画 - 更大幅度更慢 */
    @keyframes badge-pop {
        0% {
            transform: scale(0) rotate(-20deg) translateY(-30px);
            opacity: 0;
        }
        40% {
            transform: scale(1.3) rotate(15deg) translateY(5px);
        }
        60% {
            transform: scale(1.1) rotate(-10deg) translateY(-2px);
        }
        80% {
            transform: scale(0.98) rotate(5deg) translateY(1px);
        }
        100% {
            transform: scale(1) rotate(0deg) translateY(0);
            opacity: 1;
        }
    }

    /* 昵称输入容器，现在包含颜色工具 */
    .name-input-container {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 20px;
        background-color: #fdfaf6;
        border: 1px solid #e0e0e0;
        border-radius: 10px;
        padding: 0 10px;
    }

    .name-input-container input {
        flex-grow: 1;
        border: none;
        background-color: transparent;
        margin-bottom: 0;
        padding: 14px 0;
    }

    .name-input-container input:focus {
        outline: none;
        box-shadow: none;
    }

    /* 昵称颜色工具，新样式 */
    .name-color-tool {
        display: flex;
        gap: 5px;
        padding-right: 5px;
    }

    .name-color-swatch {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        cursor: pointer;
        border: 2px solid transparent;
        transition: transform 0.2s, border-color 0.2s;
    }

    .name-color-swatch.selected {
        border-color: #555;
        transform: scale(1.1);
    }

    /* ========== 新的昵称输入区域样式 - 完全一体化设计 ========== */
    .name-input-wrapper {
        position: relative;
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
    }

    .name-input-wrapper input {
        width: 100%;
        height: 44px;
        padding: 0 80px 0 20px;
        font-size: 15px;
        color: #3d3d3d;
        background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
        border: 1px solid rgba(0, 0, 0, 0.06);
        border-radius: 20px;
        outline: none;
        box-sizing: border-box;
        box-shadow:
            0 2px 8px rgba(0, 0, 0, 0.04),
            0 4px 16px rgba(0, 0, 0, 0.02),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }

    .name-input-wrapper input:focus {
        border-color: rgba(138, 171, 114, 0.4);
        background: #ffffff;
        box-shadow:
            0 4px 20px rgba(138, 171, 114, 0.1),
            0 8px 32px rgba(138, 171, 114, 0.05),
            inset 0 1px 0 rgba(255, 255, 255, 1);
    }

    .name-input-wrapper input::placeholder {
        color: #aaa;
    }

    /* 预览操作按钮区域 - 绝对定位在输入框内部右侧 */
    .name-preview-actions {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        height: 44px;
    }

    /* 颜色预览按钮 */
    .preview-btn {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: none;
        background: transparent;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        flex-shrink: 0;
        line-height: 1;
        transition: opacity 0.2s ease;
    }

    .preview-btn:hover {
        opacity: 0.7;
    }

    .color-dot {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background-color: #7a9a62;
        flex-shrink: 0;
        display: block;
    }

    /* 头像预览按钮 */
    .preview-btn.avatar-preview {
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .preview-btn.avatar-preview img {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        object-fit: cover;
        display: block;
        flex-shrink: 0;
    }

    .preview-btn.avatar-preview img[src=""] {
        display: none;
    }

    /* 下拉菜单定位 */
    .name-input-wrapper .format-menu {
        top: calc(100% + 5px);
        right: 0;
        left: auto;
    }

    /* 新增：格式化工具菜单 */
    .format-menu {
        position: absolute;
        top: calc(100% + 5px);
        left: 0;
        z-index: 10;
        background: #ffffff;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        padding: 10px;
        display: none;
        flex-direction: column;
        gap: 8px;
        min-width: 120px;
    }

    .format-menu.show {
        display: flex;
    }

    /* 修复BUG：确保菜单项文字在悬停时可见 */
    .format-menu-item {
        display: block;
        padding: 8px 12px;
        border-radius: 6px;
        cursor: pointer;
        transition: background-color 0.2s;
        color: #333333;
        /* 强制文字颜色，修复悬停消失问题 */
    }

    .format-menu-item:hover {
        background-color: #fdfaf6;
    }

    /* 颜色菜单中的颜色选项 */
    #name-color-options {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        padding: 8px;
        max-width: 120px;
    }

    .color-option {
        width: 22px;
        height: 22px;
        border-radius: 4px;
        /* 改为方形 */
        cursor: pointer;
        transition: transform 0.2s, border 0.2s;
        border: 2px solid transparent;
        /* 默认透明边框 */
        box-sizing: border-box;
    }

    .color-option:hover {
        transform: scale(1.1);
        border-color: #ccc;
    }

    /* 选中效果 */
    .color-option.selected {
        border: 2px solid #555;
        transform: scale(1.1);
    }

    /* 修复颜色选择器菜单显示问题 */
    .format-menu {
        position: absolute;
        top: calc(100% + 5px);
        left: 0;
        z-index: 1000;
        /* 提高z-index确保在最上层 */
        background: #ffffff;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        padding: 10px;
        display: none;
        flex-direction: column;
        gap: 8px;
        min-width: 120px;
        max-height: 300px;
        overflow-y: auto;
    }

    /* 新增：头像选择器样式 */
    #avatar-options {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        max-height: 200px;
        overflow-y: auto;
    }

    .avatar-option {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        cursor: pointer;
        transition: transform 0.2s, border 0.2s;
        border: 2px solid transparent;
        background-color: #f0f0f0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
    }

    .avatar-option:hover {
        transform: scale(1.1);
        border-color: #8aab72;
    }

    .avatar-option.selected {
        border: 2px solid #8aab72;
        transform: scale(1.1);
    }

    /* 消息头像样式 */
    .message-header .avatar {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        margin-right: 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        background-color: transparent;
        color: inherit;
    }

    /* ==================== Quill 编辑器自定义样式 ==================== */
    
    /* 编辑器容器 */
    #editor-container {
        margin-bottom: 15px;
        border-radius: 20px;
        overflow: hidden;
        box-shadow:
            0 2px 8px rgba(0, 0, 0, 0.04),
            0 4px 16px rgba(0, 0, 0, 0.02);
        background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    }

    /* 工具栏样式 */
    #editor-container .ql-toolbar {
        border: 1px solid rgba(0, 0, 0, 0.06);
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 20px 20px 0 0;
        background: linear-gradient(145deg, #f8f9fa 0%, #f0f2f5 100%);
        padding: 12px 15px;
    }

    /* 工具栏按钮样式 */
    #editor-container .ql-toolbar button {
        border-radius: 8px;
        transition: all 0.2s ease;
        margin: 0 2px;
    }

    #editor-container .ql-toolbar button:hover {
        background-color: rgba(138, 171, 114, 0.15);
        color: #7a9a62;
    }

    #editor-container .ql-toolbar button.ql-active {
        background-color: rgba(138, 171, 114, 0.25);
        color: #5a7a42;
    }

    /* 下拉选择框样式 */
    #editor-container .ql-toolbar .ql-picker-label {
        border-radius: 8px;
        transition: all 0.2s ease;
    }

    #editor-container .ql-toolbar .ql-picker-label:hover {
        background-color: rgba(138, 171, 114, 0.15);
        color: #7a9a62;
    }

    /* 编辑器内容区域 */
    #editor-container .ql-container {
        border: 1px solid rgba(0, 0, 0, 0.06);
        border-top: none;
        border-radius: 0 0 20px 20px;
        background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
        font-size: 16px;
        color: #3d3d3d;
    }

    #editor-container .ql-editor {
        min-height: 140px;
        max-height: 400px;
        padding: 20px 24px;
        line-height: 1.7;
    }

    /* 占位符样式 */
    #editor-container .ql-editor.ql-blank::before {
        color: #aaaaaa;
        opacity: 0.7;
        font-style: italic;
        font-size: 16px;
    }

    /* 编辑器聚焦状态 */
    #editor-container:focus-within {
        box-shadow:
            0 4px 20px rgba(138, 171, 114, 0.1),
            0 8px 32px rgba(138, 171, 114, 0.05);
    }

    #editor-container:focus-within .ql-toolbar {
        border-color: rgba(138, 171, 114, 0.3);
    }

    #editor-container:focus-within .ql-container {
        border-color: rgba(138, 171, 114, 0.3);
        background: #ffffff;
    }

    /* 编辑器内的图片样式 */
    #editor-container .ql-editor img {
        max-width: 100% !important;
        height: auto !important;
        display: block;
        margin: 10px 0;
        border-radius: 8px;
        object-fit: contain;
    }

    /* 编辑器内的视频样式 */
    #editor-container .ql-editor iframe,
    #editor-container .ql-editor video {
        max-width: 100% !important;
        height: auto !important;
        display: block;
        margin: 10px 0;
        border-radius: 8px;
    }

    /* 移动端适配 - 简化版 */
    @media (max-width: 768px) {
        #editor-container .ql-toolbar {
            padding: 8px;
        }

        #editor-container .ql-toolbar button {
            width: 28px;
            height: 28px;
            padding: 4px;
        }

        #editor-container .ql-editor {
            min-height: 120px;
            padding: 15px;
            font-size: 15px;
        }
    }

    /* 颜色选择器样式 */
    #editor-container .ql-color-picker .ql-picker-options {
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(0, 0, 0, 0.08);
    }

    /* 下拉菜单样式 */
    #editor-container .ql-picker-options {
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(0, 0, 0, 0.08);
        background: #ffffff;
    }

    /* 移动端颜色选择器位置调整 */
    @media (max-width: 768px) {
        #editor-container .ql-color-picker .ql-picker-options {
            left: auto !important;
            right: 0 !important;
        }
    }

    /* 图片加载失败样式 */
    #editor-container .ql-editor img {
        max-width: 100% !important;
        height: auto !important;
        display: block;
        margin: 10px 0;
        border-radius: 8px;
        object-fit: contain;
    }

    /* 图片加载失败的提示样式 */
    #editor-container .ql-editor img.image-load-error {
        display: none;
    }

    #editor-container .ql-editor .image-error-placeholder {
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #f5f5f5;
        border: 2px dashed #ddd;
        border-radius: 8px;
        padding: 20px;
        margin: 10px 0;
        color: #999;
        font-size: 14px;
        min-height: 100px;
    }

    /* 工具栏分隔线 */
    #editor-container .ql-toolbar .ql-formats {
        margin-right: 12px;
        padding-right: 12px;
        border-right: 1px solid rgba(0, 0, 0, 0.08);
    }

    #editor-container .ql-toolbar .ql-formats:last-child {
        border-right: none;
        margin-right: 0;
        padding-right: 0;
    }

    /* 原有内容编辑区样式（保留兼容） */
    #content-input {
        width: 100%;
        min-height: 140px;
    }

    /* Quill 编辑器字号样式 */
    #editor-container .ql-editor .ql-size-12px {
        font-size: 12px;
    }

    #editor-container .ql-editor .ql-size-14px {
        font-size: 14px;
    }

    #editor-container .ql-editor .ql-size-16px {
        font-size: 16px;
    }

    #editor-container .ql-editor .ql-size-18px {
        font-size: 18px;
    }

    #editor-container .ql-editor .ql-size-20px {
        font-size: 20px;
    }

    #editor-container .ql-editor .ql-size-24px {
        font-size: 24px;
    }

    /* 工具栏字号下拉菜单样式 */
    #editor-container .ql-picker.ql-size .ql-picker-label::before,
    #editor-container .ql-picker.ql-size .ql-picker-item::before {
        content: '字号';
    }

    #editor-container .ql-picker.ql-size .ql-picker-item[data-value="12px"]::before {
        content: '小 (12px)';
        font-size: 12px;
    }

    #editor-container .ql-picker.ql-size .ql-picker-item[data-value="14px"]::before {
        content: '较小 (14px)';
        font-size: 14px;
    }

    #editor-container .ql-picker.ql-size .ql-picker-item[data-value="16px"]::before {
        content: '正常 (16px)';
        font-size: 16px;
    }

    #editor-container .ql-picker.ql-size .ql-picker-item[data-value="18px"]::before {
        content: '较大 (18px)';
        font-size: 18px;
    }

    #editor-container .ql-picker.ql-size .ql-picker-item[data-value="20px"]::before {
        content: '大 (20px)';
        font-size: 20px;
    }

    #editor-container .ql-picker.ql-size .ql-picker-item[data-value="24px"]::before {
        content: '超大 (24px)';
        font-size: 24px;
    }

    input[type="text"] {
        display: block;
        box-sizing: border-box;
        width: 100%;
        margin-bottom: 20px;
        padding: 14px 18px;
        border: 1px solid #e0e0e0;
        border-radius: 10px;
        font-size: 16px;
        color: #333333;
        background-color: #fdfaf6;
        transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
        appearance: none;
    }

    /* 防止某些特定的 input[type="text"] 影响 name-input-wrapper 内的输入框 */
    .name-input-wrapper input[type="text"] {
        margin-bottom: 0;
    }

    /* 隐藏实际的 file input，但保持可访问性和功能（仍可通过 label 触发） */
    input[type="file"].visually-hidden {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0 0 0 0) !important;
        white-space: nowrap !important;
        border: 0 !important;
    }

    /* 现代化的自定义按钮（使用 label[for] 触发隐藏的 input） */
    .custom-file-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: linear-gradient(180deg, #ffffff 0%, #f3f6f0 100%);
        border: 1px solid #e0e0e0;
        color: #333333;
        padding: 10px 14px;
        border-radius: 10px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        transition: transform 0.08s ease, box-shadow 0.12s ease, background-color 0.12s ease;
        user-select: none;
        /* 与富文本编辑区域保持适当间距 */
        margin-top: 12px;
    }

    .custom-file-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    }

    .custom-file-btn:active {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    .custom-file-btn:focus {
        outline: 3px solid rgba(138, 171, 114, 0.18);
        outline-offset: 2px;
    }


    /* 文件信息显示样式 */
    .file-info {
        display: none;
        background-color: #f8f9fa;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 12px 16px;
        margin-bottom: 15px;
        font-size: 14px;
        color: #333333;
    }

    .file-info.visible {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    .file-info-item {
        display: flex;
        justify-content: space-between;
        margin-bottom: 6px;
    }

    .file-info-label {
        font-weight: 500;
        color: #888888;
    }

    .file-info-value {
        color: #333333;
    }

    /* 多文件预览区域样式 */
    .file-previews {
        margin: 10px 0;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .file-preview {
        background-color: #f0f8ff;
        border: 1px solid #d1e7ff;
        border-radius: 8px;
        padding: 8px 12px;
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
        max-width: 280px;
        animation: fadeIn 0.3s ease;
        position: relative;
    }

    .file-preview.has-thumbnail {
        padding: 4px;
        max-width: 200px;
        flex-direction: column;
        align-items: stretch;
    }

    .file-preview-thumbnail {
        width: 100%;
        height: 100px;
        object-fit: cover;
        border-radius: 6px;
        background-color: #f5f5f5;
    }

    .file-preview-thumbnail-container {
        width: 100%;
        height: 100px;
        border-radius: 6px;
        overflow: hidden;
        background-color: #f5f5f5;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .file-preview-icon {
        color: #4a90e2;
        font-size: 16px;
    }

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

    .file-preview.has-thumbnail .file-preview-info {
        padding: 4px 4px 0 4px;
    }

    .file-preview-name {
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .file-preview-size {
        color: #888888;
        font-size: 11px;
    }

    .file-preview-remove {
        background: none;
        border: none;
        color: #ff6b6b;
        cursor: pointer;
        font-size: 14px;
        padding: 2px;
        border-radius: 3px;
        transition: all 0.2s ease;
    }

    .file-preview.has-thumbnail .file-preview-remove {
        position: absolute;
        top: 8px;
        right: 8px;
        background: rgba(255, 255, 255, 0.9);
        width: 24px;
        height: 24px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .file-preview-remove:hover {
        background-color: #ffebee;
        transform: scale(1.1);
    }

    /* 上传进度条样式 */
    .upload-progress {
        display: none;
        margin-bottom: 15px;
    }

    .upload-progress.visible {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    .progress-bar-container {
        width: 100%;
        height: 6px;
        background-color: #e0e0e0;
        border-radius: 3px;
        overflow: hidden;
        margin-bottom: 8px;
    }

    .progress-bar {
        height: 100%;
        background-color: #8aab72;
        border-radius: 3px;
        transition: width 0.3s ease;
        width: 0%;
    }

    .progress-text {
        font-size: 12px;
        color: #888888;
        text-align: center;
    }

    input[type="text"]::placeholder {
        color: #888888;
        opacity: 0.8;
    }

    input[type="text"]:focus {
        border-color: #8aab72;
        box-shadow: 0 0 0 3px rgba(138, 171, 114, 0.2);
        outline: none;
    }

    /* 优化：为提交按钮单独设置样式 */
    #submit-button {
        display: block;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        padding: 12px 28px;
        background: linear-gradient(135deg, #8aab72 0%, #7a9a62 100%);
        color: white;
        border: none;
        border-radius: 24px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        appearance: none;
        font-size: 15px;
        box-shadow: 0 4px 12px rgba(138, 171, 114, 0.3);
    }

    #submit-button:hover {
        background: linear-gradient(135deg, #7a9a62 0%, #6a8c54 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(138, 171, 114, 0.4);
    }

    #submit-button:active {
        transform: translateY(0);
        box-shadow: 0 3px 8px rgba(138, 171, 114, 0.3);
    }

    .spinner {
        display: inline-block;
        width: 14px;
        height: 14px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        border-top-color: #fff;
        animation: spin 1s ease-in-out infinite;
        margin-right: 8px;
        vertical-align: middle;
    }

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

    /* Messages Container */
    .messages-container {
        margin-top: 40px;
    }

    .message-card {
        background: #ffffff;
        padding: 28px 32px;
        border-radius: 40px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
        margin-bottom: 24px;
        border: none;
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .message-card.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .message-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    }

    .message-card.visible:hover {
        transform: translateY(-3px);
    }

    .message-header {
        font-weight: 600;
        color: #2d2d2d;
        margin-bottom: 16px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 16px;
    }

    .message-header .name {
        font-size: 17px;
        font-weight: 700;
        color: #5a5a5a;
        display: flex;
        align-items: center;
        letter-spacing: -0.3px;
    }

    .message-header .name .icon {
        margin-right: 10px;
        font-size: 18px;
        line-height: 1;
    }

    .message-header .timestamp {
        font-size: 13px;
        color: #b0b0b0;
        font-weight: 500;
    }

    .message-content {
        color: #3d3d3d;
        /* 注意：这里不使用 pre-wrap，因为现在是富文本 */
        margin-bottom: 16px;
        font-size: 16px;
        line-height: 1.75;
        word-wrap: break-word;
        /* 确保长单词或URL能自动换行 */
    }

    /* 修复：限制富文本内容中的图片宽度，防止超出留言框范围 */
    .message-content img {
        max-width: 100% !important;
        height: auto !important;
        display: block;
        margin: 10px 0;
        border-radius: 8px;
        /* 统一圆角为8px */
        object-fit: contain;
    }

    /* 确保表格也不会超出容器 */
    .message-content table {
        max-width: 100% !important;
        border-collapse: collapse;
        margin: 10px 0;
    }

    .message-content table td,
    .message-content table th {
        max-width: 100%;
        word-wrap: break-word;
    }

    /* 确保其他媒体元素也不超出容器 */
    .message-content video,
    .message-content iframe,
    .message-content embed {
        max-width: 100% !important;
        height: auto !important;
        display: block;
        margin: 10px 0;
        border-radius: 8px;
        /* 统一圆角为8px */
    }

    /* 新增：附件预览图样式 */
    .attachment-preview {
        max-width: 100%;
        height: auto;
        max-height: 250px;
        display: block;
        margin-top: 15px;
        border-radius: 8px;
        object-fit: contain;
        cursor: pointer;
        transition: transform 0.2s ease-in-out;
    }

    .attachment-preview:hover {
        transform: scale(1.02);
    }

    /* 附件链接样式 */
    .attachment-link {
        display: inline-block;
        margin-top: 10px;
        font-size: 15px;
        color: #8aab72;
        text-decoration: none;
        font-weight: 600;
        transition: color 0.2s ease-in-out;
    }

    .attachment-link:hover {
        color: #7a9a62;
        text-decoration: underline;
    }

    /* 多附件容器样式 */
    .attachments-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }

    /* 图片和视频预览区域 */
    .attachments-container .attachment-preview {
        max-width: 100%;
        max-height: 250px;
        object-fit: contain;
        border-radius: 8px;
        cursor: pointer;
    }

    /* 附件链接区域 */
    .attachments-container .attachment-link {
        max-width: none;
        max-height: none;
        object-fit: none;
        border-radius: 8px;
        /* 统一圆角为8px */
        cursor: pointer;
    }

    .attachments-container .attachment-link {
        display: inline;
        padding: 0;
        background-color: transparent;
        color: #8aab72;
        text-decoration: underline;
        border-radius: 8px;
        /* 统一圆角为8px */
        font-size: 14px;
        font-weight: 500;
        margin-right: 10px;
    }

    .attachments-container .attachment-link:hover {
        background-color: transparent;
        color: #7a9a62;
        text-decoration: underline;
    }

    /* 媒体容器样式 - 图片和视频预览 */
    .attachments-media-container {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 10px;
    }

    /* 图片预览容器 - 现代化长方形比例 */
    .attachments-media-container .image-preview-wrapper {
        width: 280px;
        height: 170px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #f8f9fa;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    /* 添加悬停效果增强交互体验 */
    .attachments-media-container .image-preview-wrapper:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    }

    .attachments-media-container .attachment-preview {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0;
        margin-top: 0;
    }

    /* 视频播放器样式 - 与图片预览保持一致 */
    .attachments-media-container video.attachment-preview {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0;
        margin: 0;
        display: block;
    }

    /* 视频全屏模式样式 - 使用contain避免裁剪 */
    .attachments-media-container video.attachment-preview:fullscreen {
        object-fit: contain;
        background-color: black;
    }

    /* 音频播放器样式 - 与图片和视频预览保持一致 */
    .attachments-media-container audio.attachment-preview {
        width: 100%;
        height: 100%;
        border-radius: 0;
        margin: 0;
    }

    /* 链接容器样式 - 文字附件链接 */
    .attachments-links-container {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
    }

    /* 优化：右下角信息栏的布局，现在改为 flex 布局以允许换行 */
    .extra-info-footer {
        display: flex;
        flex-wrap: wrap;
        /* 关键改动：允许内容自动换行 */
        justify-content: flex-end;
        /* 保持靠右对齐 */
        gap: 12px;
        /* 元素间距 */
        font-size: 12px;
        color: #c0c0c0;
        text-align: right;
        line-height: 1.2;
        padding-top: 16px;
        margin-top: 16px;
    }

    .extra-info-footer span {
        white-space: normal;
        /* 关键改动：允许文本换行 */
        overflow: visible;
        /* 关键改动：允许内容可见 */
        text-overflow: clip;
        /* 关键改动：取消省略号 */
        word-break: break-all;
        /* 确保长字符串也能换行 */
    }

    /* 精准定位信息的样式 */
    .extra-info-footer span a {
        text-decoration: none;
        color: #8aab72;
        transition: all 0.2s ease;
        font-weight: 500;
    }

    .extra-info-footer span a:hover {
        text-decoration: underline;
        opacity: 0.8;
    }

    /* 高精度定位标记样式 - 使用JavaScript添加类 */
    .extra-info-footer span.high-accuracy {
        color: #4caf50;
        font-weight: 500;
    }

    /* 留言内容格式化样式 */
    .message-content strong {
        font-weight: bold;
    }

    .message-content u {
        text-decoration: underline;
    }

    .message-content span.extra-small {
        font-size: 0.8em;
    }

    .message-content span.small {
        font-size: 0.9em;
    }

    .message-content span.medium {
        font-size: 1.1em;
    }

    .message-content span.large {
        font-size: 1.3em;
    }

    .message-content span.extra-large {
        font-size: 1.5em;
    }

    /* 新增：富文本输入框中的格式样式 */
    #content-input strong,
    .message-content strong {
        font-weight: bold;
    }

    /* 波浪线样式：使用标准属性并提供合理的 WebKit 备用属性 */
    #content-input u,
    .message-content u {
        /* 标准写法，按属性拆分以避免语法警告 */
        text-decoration-line: underline;
        text-decoration-style: wavy;
        text-decoration-thickness: 2px;
        text-underline-offset: 4px;
        /* 颜色与继承 */
        color: inherit;
        text-decoration-color: inherit;

        /* 下划线位置（标准） */
        text-underline-position: under;
    }

    #content-input span,
    .message-content span {
        font-size: inherit;
    }

    /* 确保 span 标签有默认样式 */
    #content-input span.extra-small,
    .message-content span.extra-small {
        font-size: 0.8em;
    }

    #content-input span.small,
    .message-content span.small {
        font-size: 0.9em;
    }

    #content-input span.medium,
    .message-content span.medium {
        font-size: 1.1em;
    }

    #content-input span.large,
    .message-content span.large {
        font-size: 1.3em;
    }

    #content-input span.extra-large,
    .message-content span.extra-large {
        font-size: 1.5em;
    }

    .pagination-controls {
        text-align: center;
        margin-top: 20px;
        display: block;
        animation: fadeIn 0.3s ease-in;
    }

    .pagination-controls button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: auto;
        padding: 10px 20px;
        margin: 0 6px;
        font-size: 14px;
        font-weight: 500;
        background: rgba(253, 250, 246, 0.75);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        color: #7a7a7a;
        border: 1px solid rgba(200, 195, 188, 0.5);
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
        box-shadow: 
            0 2px 6px rgba(138, 171, 114, 0.06),
            0 1px 2px rgba(138, 171, 114, 0.04) inset;
    }

    .pagination-controls button:disabled {
        background: rgba(245, 245, 245, 0.6);
        color: #bbb;
        cursor: not-allowed;
        box-shadow: none;
        border-color: rgba(200, 200, 200, 0.3);
    }

    .pagination-controls button:hover:not(:disabled) {
        background: rgba(253, 250, 246, 0.9);
        color: #666;
        transform: translateY(-1px);
        box-shadow: 
            0 3px 10px rgba(138, 171, 114, 0.1),
            0 1px 3px rgba(138, 171, 114, 0.05) inset;
    }

    .pagination-controls button:active:not(:disabled) {
        transform: translateY(0);
        background: rgba(250, 247, 243, 0.9);
    }

    .pagination-controls input[type="number"] {
        display: inline-block;
        width: 50px;
        padding: 8px 10px;
        text-align: center;
        font-size: 14px;
        margin: 0 6px;
        background: rgba(255, 255, 255, 0.6);
        border: 1px solid rgba(200, 195, 188, 0.4);
        border-radius: 10px;
        color: #7a7a7a;
        outline: none;
        transition: all 0.2s ease;
    }

    .pagination-controls input[type="number"]:focus {
        border-color: rgba(138, 171, 114, 0.5);
        box-shadow: 0 0 0 3px rgba(138, 171, 114, 0.1);
    }

    .pagination-controls input[type="number"]::-webkit-inner-spin-button {
        opacity: 0.8;
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        body {
            padding: 20px 15px;
        }

        .sub-title {
            font-size: 16px;
            margin: 20px 0;
        }

        .form-container,
        .message-card {
            padding: 25px;
        }

        input[type="text"] {
            font-size: 15px;
            padding: 12px 16px;
        }

        #content-input {
            font-size: 15px;
            padding: 12px 16px;
        }

        input[type="file"]::before {
            font-size: 15px;
            padding: 12px 16px;
        }

        input[type="file"] {
            padding: 8px 0;
        }

        #login-button {
            padding: 14px 18px;
            font-size: 16px;
        }

        #submit-button {
            padding: 10px 24px;
            font-size: 14px;
        }

        .message-header {
            position: relative;
            padding-right: 60px;
        }

        .message-header .name {
            font-size: 18px;
        }

        .message-header .timestamp {
            font-size: 13px;
            margin-top: 2px;
            opacity: 0.5;
            font-weight: 400;
        }

        .message-header .delete-button {
            position: absolute;
            top: 0;
            right: 0;
            margin: 0;
            font-size: 9px;
            padding: 1px 3px;
            border: none;
            background-color: transparent;
        }

        .reply-header {
            position: relative;
            padding-right: 40px;
        }

        .reply-header .reply-time {
            margin-top: 2px;
            opacity: 0.5;
            font-weight: 400;
        }

        .reply-delete-button {
            position: absolute;
            top: 0;
            right: 0;
            margin: 0;
            font-size: 9px;
            padding: 1px 3px;
        }

        .message-content {
            font-size: 16px;
        }

        .attachment-link {
            font-size: 14px;
        }

        .family-decoration {
            width: 150px;
            right: -20px;
            top: -100px;
            border-radius: 8px;
            /* 统一圆角为8px */
        }

        .safehouse-logo-left {
            width: 150px;
            left: -20px;
            top: -110px;
            border-radius: 8px;
            /* 统一圆角为8px */
        }
    }

    @media (max-width: 480px) {
        body {
            padding: 15px 10px;
        }

        .sub-title {
            font-size: 14px;
            margin: 15px 0;
        }

        .form-container,
        .message-card {
            padding: 20px;
            box-sizing: border-box;
        }

        .name-input-wrapper {
            width: 100%;
            box-sizing: border-box;
            margin-bottom: 15px;
        }

        .name-input-wrapper input {
            width: 100%;
            box-sizing: border-box;
            height: 42px;
            padding: 0 75px 0 15px;
        }

        .name-preview-actions {
            right: 8px;
            height: 42px;
            gap: 6px;
        }

        .preview-btn {
            width: 30px;
            height: 30px;
        }

        .color-dot {
            width: 18px;
            height: 18px;
        }

        .preview-btn.avatar-preview img {
            width: 20px;
            height: 20px;
        }

        #content-input {
            width: 100%;
            box-sizing: border-box;
            padding: 15px 18px;
        }

        .form-container,
        .message-card {
            padding: 20px;
        }

        .message-header {
            flex-direction: column;
            align-items: flex-start;
            margin-bottom: 8px;
            position: relative;
            padding-right: 50px;
        }

        .message-header .name {
            font-size: 17px;
        }

        .message-header .name .icon {
            font-size: 18px;
        }

        .message-header .timestamp {
            margin-top: 4px;
            font-size: 12px;
            opacity: 0.5;
            font-weight: 400;
        }

        .message-header .delete-button {
            position: absolute;
            top: 0;
            right: 0;
            margin: 0;
            font-size: 8px;
            padding: 1px 2px;
            border: none;
            background-color: transparent;
        }

        .reply-header {
            position: relative;
            padding-right: 30px;
        }

        .reply-header .reply-time {
            margin-top: 2px;
            opacity: 0.5;
            font-weight: 400;
        }

        .reply-delete-button {
            position: absolute;
            top: 0;
            right: 0;
            margin: 0;
            font-size: 8px;
            padding: 1px 2px;
        }

        .message-content {
            font-size: 15px;
            line-height: 1.6;
        }

        .attachment-link {
            font-size: 14px;
        }

        .family-decoration {
            width: 120px;
            right: -10px;
            top: -80px;
            border-radius: 8px;
            /* 统一圆角为8px */
        }

        .safehouse-logo-left {
            width: 120px;
            left: -10px;
            top: -90px;
            border-radius: 8px;
            /* 统一圆角为8px */
        }

        .pagination-controls {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
            gap: 8px;
            margin-top: 15px;
        }

        .pagination-controls button {
            padding: 8px 12px;
            font-size: 13px;
            margin: 0;
        }

        .pagination-controls #page-info {
            font-size: 13px;
            margin: 0 5px;
        }

        .pagination-controls input[type="number"] {
            width: 45px !important;
            padding: 6px 5px;
            font-size: 13px;
            margin: 0;
        }
    }

    /* ================================================================== */
    /* ⬇️ AI 聊天功能模块的 CSS 样式 ⬇️ */
    /* ================================================================== */

    /* 1. 浮动触发按钮样式 - 极简透明风格 */
    #open-chat-btn {
        position: fixed;
        bottom: 30px;
        right: 30px;
        width: 40px;
        height: 40px;
        background: transparent;
        color: #bbb;
        border: none;
        border-radius: 50%;
        font-size: 20px;
        cursor: pointer;
        z-index: 999;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: all 0.3s ease;
        opacity: 0.6;
    }

    #open-chat-btn:hover {
        opacity: 1;
        transform: scale(1.1);
    }

    /* 2. 模态窗口样式 */
    .ai-chat-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        display: flex;
        justify-content: center;
        align-items: center;
        /* 默认隐藏，通过 JS 添加 .show 类来显示 */
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .ai-chat-modal.show {
        opacity: 1;
        visibility: visible;
    }

    /* 3. 模态窗口内容区 */
    .ai-chat-content {
        background-color: #ffffff;
        border-radius: 14px;
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
        width: 90%;
        height: 85%;
        max-width: 800px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        transform: scale(0.95);
        transition: transform 0.3s ease;
    }

    .ai-chat-modal.show .ai-chat-content {
        transform: scale(1);
    }

    /* 4. 模态窗口头部 - 轻盈精致风格 */
    .ai-chat-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 16px 8px;
        background: linear-gradient(180deg, rgba(253, 250, 246, 0.95) 0%, rgba(253, 250, 246, 0.7) 100%);
        position: relative;
    }

    .ai-chat-header::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 20px;
        right: 20px;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(138, 171, 114, 0.2), transparent);
    }

    .ai-chat-header h3 {
        margin: 0;
        font-size: 14px;
        font-weight: 500;
        color: #8aab72;
        letter-spacing: 1px;
        opacity: 0.85;
    }

    .close-chat-btn {
        background: none;
        border: none;
        font-size: 22px;
        font-weight: 300;
        color: #bbb;
        cursor: pointer;
        padding: 0;
        line-height: 1;
        transition: all 0.2s ease;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }

    .close-chat-btn:hover {
        color: #8aab72;
        background: rgba(138, 171, 114, 0.1);
    }

    /* 5. 模态窗口主体 (包含iframe) */
    .ai-chat-body {
        flex-grow: 1;
        height: 100%;
        overflow: hidden;
    }

    #chat-iframe {
        width: 100%;
        height: 100%;
        border: none;
    }

    /* 移动端适配 */
    @media (max-width: 768px) {
        .ai-chat-content {
            width: 100%;
            height: 100%;
            border-radius: 0;
        }

        #open-chat-btn {
            width: 36px;
            height: 36px;
            font-size: 22px;
            bottom: 20px;
            right: 20px;
        }
    }

    /* ================================================================== */
    /* ⬆️ AI 聊天功能模块的 CSS 样式结束 ⬆️ */
    /* ================================================================== */

    /* 诗词显示区域样式 */
    .poetry-container {
        margin-top: 8px;
        margin-bottom: 8px;
        padding: 10px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 15px;
        cursor: pointer;
        transition: all 0.3s ease;
        border: 1px solid rgba(255, 255, 255, 0.2);
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .poetry-container:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }

    .poetry-content {
        font-size: 18px;
        line-height: 1.4;
        color: #333333;
        text-align: center;
        margin-bottom: 4px;
        font-family: 'SimSun', '宋体', serif;
        min-height: 25px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .poetry-author {
        font-size: 14px;
        color: #666666;
        text-align: right;
        font-style: italic;
        opacity: 0.8;
        margin-top: 2px;
    }

    .poetry-loading {
        opacity: 0.6;
        pointer-events: none;
    }

    .poetry-loading::after {
        content: '';
        display: inline-block;
        width: 20px;
        height: 20px;
        border: 2px solid #8aab72;
        border-radius: 50%;
        border-top-color: transparent;
        animation: spin 1s linear infinite;
        margin-left: 10px;
    }

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

    /* 待办事项区域样式 */
    .todo-container {
        margin-top: -4px;
        margin-bottom: 0;
        padding: 0;
        background: transparent;
        border-radius: 12px;
        transition: all 0.3s ease;
        border: none;
        width: auto;
        max-width: 80px;
        min-width: auto;
        margin-left: auto;
        margin-right: auto;
        overflow: hidden;
        opacity: 0.5;
        line-height: 1;
    }

    .todo-container.expanded {
        width: 100%;
        max-width: 500px;
        min-width: 280px;
        /* 展开态：更实的磨砂面板，与留言卡片同一视觉语言 */
        background: rgba(255, 255, 255, 0.85);
        border: 1px solid rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(24px) saturate(1.3);
        -webkit-backdrop-filter: blur(24px) saturate(1.3);
        border-radius: 24px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
        opacity: 1;
    }

    .todo-container:hover {
        opacity: 0.8;
    }

    /* 展开态固定颜色，hover 不再变化 */
    .todo-container.expanded:hover {
        opacity: 1;
    }

    .todo-header {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 4px;
        padding: 2px 8px;
        cursor: pointer;
        user-select: none;
        transition: background 0.2s ease;
        line-height: 1;
    }

    .todo-container.expanded .todo-header {
        padding: 12px 16px;
        border-radius: 24px 24px 0 0;
    }

    .todo-header:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .todo-header-title {
        font-size: 11px;
        font-weight: 400;
        color: rgba(255, 255, 255, 0.7);
        letter-spacing: 0.5px;
    }

    .todo-count-badge {
        background: transparent;
        color: rgba(255, 255, 255, 0.6);
        font-size: 16px;
        font-weight: 500;
        padding: 0;
        min-width: auto;
        text-align: center;
        opacity: 0.7;
    }

    /* 七彩变换动画 - 马卡龙色系 */
    .rainbow-text {
        background: linear-gradient(90deg, 
            #FFB3BA, #FFDFBA, #FFFFBA, #BAFFC9, #BAE1FF, 
            #E8BAFF, #FFB3D9, #B3FFE0, #FFE4B3, #B3D9FF,
            #FFB3BA);
        background-size: 300% auto;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: rainbow-flow 8s linear infinite;
        font-weight: bold;
    }

    @keyframes rainbow-flow {
        0% { background-position: 0% center; }
        100% { background-position: 300% center; }
    }

    .todo-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .todo-container.expanded .todo-content {
        max-height: 600px;
        overflow-y: auto;
    }

    .todo-list {
        padding: 0 16px 12px 16px;
    }

    .todo-section {
        margin-bottom: 12px;
    }

    .todo-section:last-child {
        margin-bottom: 0;
    }

    .todo-section-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 0;
        cursor: pointer;
        user-select: none;
    }

    .todo-section-title {
        font-size: 12px;
        color: rgba(0, 0, 0, 0.6);
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .todo-section-count {
        color: rgba(0, 0, 0, 0.4);
        font-weight: 400;
    }

    .todo-section-toggle {
        font-size: 10px;
        color: rgba(0, 0, 0, 0.4);
        transition: transform 0.2s ease;
    }

    .todo-section.collapsed .todo-section-toggle {
        transform: rotate(-90deg);
    }

    .todo-section-content {
        transition: max-height 0.3s ease;
    }

    .todo-section.collapsed .todo-section-content {
        max-height: 0 !important;
        overflow: hidden;
    }

    .todo-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        background: rgba(255, 255, 255, 0.85);
        border: 1px solid rgba(0, 0, 0, 0.05);
        border-radius: 10px;
        margin-bottom: 6px;
        transition: all 0.2s ease;
        animation: todoItemFadeIn 0.3s ease;
        border-left: 3px solid transparent;
    }

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

    .todo-item:hover {
        background: #ffffff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    .todo-item.completed {
        opacity: 0.7;
    }

    .todo-item.completed .todo-text {
        text-decoration: line-through;
        color: rgba(0, 0, 0, 0.5);
    }

    /* 莫兰迪色系：低饱和、带灰调，保证文字可读 */
    .todo-item[data-color="red"] { background: #e8c4bc; border-left: none; }
    .todo-item[data-color="orange"] { background: #ecd4b4; border-left: none; }
    .todo-item[data-color="yellow"] { background: #ece5c2; border-left: none; }
    .todo-item[data-color="green"] { background: #c9d8bf; border-left: none; }
    .todo-item[data-color="blue"] { background: #c3d2da; border-left: none; }
    .todo-item[data-color="purple"] { background: #d5c8d9; border-left: none; }
    .todo-item[data-color="pink"] { background: #e5c6cd; border-left: none; }
    .todo-item[data-color="gray"] { background: #d6d6d4; border-left: none; }

    .todo-item[data-color="red"]:hover { background: #dfb5ac; }
    .todo-item[data-color="orange"]:hover { background: #e6c9a2; }
    .todo-item[data-color="yellow"]:hover { background: #e4dcae; }
    .todo-item[data-color="green"]:hover { background: #bcceB1; }
    .todo-item[data-color="blue"]:hover { background: #b6c8d1; }
    .todo-item[data-color="purple"]:hover { background: #ccbcd2; }
    .todo-item[data-color="pink"]:hover { background: #dcb6c0; }
    .todo-item[data-color="gray"]:hover { background: #ccccca; }

    .todo-checkbox {
        width: 18px;
        height: 18px;
        border: 2px solid #cccccc;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        flex-shrink: 0;
    }

    .todo-checkbox:hover {
        border-color: #999999;
        background: rgba(0, 0, 0, 0.03);
    }

    .todo-checkbox.checked {
        background: #666666;
        border-color: #666666;
    }

    .todo-checkbox.checked::after {
        content: '✓';
        color: white;
        font-size: 11px;
        font-weight: bold;
    }

    .todo-text {
        flex: 1;
        font-size: 14px;
        color: rgba(0, 0, 0, 0.85);
        line-height: 1.4;
        word-break: break-word;
    }

    .todo-color-btn {
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 2px;
        border-radius: 4px;
        transition: all 0.2s ease;
        font-size: 14px;
        opacity: 0.4;
    }

    .todo-item:hover .todo-color-btn {
        opacity: 1;
    }

    .todo-color-btn:hover {
        opacity: 1;
        background: rgba(0, 0, 0, 0.05);
    }

    .todo-delete-btn {
        background: transparent;
        border: none;
        color: #cccccc;
        cursor: pointer;
        padding: 2px 4px;
        border-radius: 4px;
        transition: all 0.2s ease;
        font-size: 14px;
        opacity: 0;
    }

    .todo-item:hover .todo-delete-btn {
        opacity: 0.6;
    }

    .todo-delete-btn:hover {
        color: #e74c3c;
        opacity: 1 !important;
        background: rgba(231, 76, 60, 0.1);
    }

    .todo-color-picker {
        position: absolute;
        background: white;
        border-radius: 8px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
        padding: 8px;
        display: none;
        z-index: 100;
    }

    .todo-color-picker.show {
        display: flex;
        gap: 4px;
    }

    .todo-color-option {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        cursor: pointer;
        border: 2px solid transparent;
        transition: all 0.2s ease;
    }

    .todo-color-option:hover {
        transform: scale(1.15);
    }

    .todo-color-option.selected {
        border-color: #333333;
    }

    .todo-input-container {
        display: none;
        padding: 0 16px 12px 16px;
    }

    .todo-input-container.show {
        display: block;
        animation: fadeIn 0.2s ease;
    }

    .todo-input-row {
        display: flex;
        gap: 8px;
        align-items: stretch;
    }

    .todo-input {
        flex: 1;
        padding: 10px 14px;
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        font-size: 14px;
        background: rgba(255, 255, 255, 0.9);
        color: #333333;
        outline: none;
        transition: all 0.2s ease;
        min-height: 38px;
        max-height: 150px;
        box-sizing: border-box;
        resize: none;
        overflow-y: hidden;
        line-height: 1.4;
        font-family: inherit;
    }

    .todo-input:focus {
        border-color: rgba(0, 0, 0, 0.2);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .todo-input::placeholder {
        color: #aaaaaa;
    }

    .todo-date-hint {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 12px;
        color: #5a7a48;
        background: rgba(138, 171, 114, 0.12);
        border-radius: 8px;
        padding: 5px 10px;
        margin-bottom: 8px;
        width: fit-content;
    }

    .todo-date-hint .hint-clear {
        cursor: pointer;
        color: rgba(0, 0, 0, 0.35);
        font-size: 14px;
        line-height: 1;
        padding: 0 2px;
    }

    .todo-date-hint .hint-clear:hover {
        color: rgba(0, 0, 0, 0.7);
    }

    .todo-submit-btn {
        background: rgba(0, 0, 0, 0.06);
        color: #666666;
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        padding: 0 18px;
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        white-space: nowrap;
        height: 38px;
    }

    .todo-submit-btn:hover {
        background: rgba(0, 0, 0, 0.1);
        border-color: rgba(0, 0, 0, 0.15);
    }

    .todo-submit-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .todo-calendar-container {
        padding: 12px;
        border: none;
        background: rgba(0, 0, 0, 0.035);
        border-radius: 12px;
        margin: 12px 16px 8px;
    }

    .todo-calendar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
    }

    .todo-calendar-title {
        font-size: 14px;
        font-weight: 600;
        color: rgba(0, 0, 0, 0.7);
    }

    .todo-calendar-nav {
        background: rgba(0, 0, 0, 0.04);
        border: none;
        font-size: 18px;
        color: rgba(0, 0, 0, 0.5);
        cursor: pointer;
        padding: 4px 10px;
        border-radius: 6px;
        transition: all 0.2s ease;
    }

    .todo-calendar-nav:hover {
        background: rgba(0, 0, 0, 0.08);
        color: rgba(0, 0, 0, 0.75);
    }

    .todo-calendar-weekdays {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        text-align: center;
        font-size: 11px;
        color: rgba(0, 0, 0, 0.4);
        margin-bottom: 8px;
        font-weight: 500;
    }

    .todo-calendar-weekdays span {
        padding: 4px 0;
    }

    .todo-calendar-days {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 3px;
    }

    .todo-calendar-day {
        aspect-ratio: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        color: rgba(0, 0, 0, 0.75);
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.15s ease;
        position: relative;
    }

    .todo-calendar-day:hover {
        background: rgba(0, 0, 0, 0.06);
    }

    .todo-calendar-day.other-month {
        color: rgba(0, 0, 0, 0.25);
    }

    .todo-calendar-day.today {
        color: rgba(0, 0, 0, 0.9);
        font-weight: 600;
    }

    .todo-calendar-day.today svg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
    }

    .todo-calendar-day.today svg path {
        fill: none;
        stroke: rgba(0, 0, 0, 0.35);
        stroke-width: 2;
        stroke-linecap: round;
    }

    .todo-calendar-day.has-todo {
        color: #e05555;
        font-weight: 600;
    }

    .todo-calendar-day.has-todo svg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
    }

    .todo-calendar-day.has-todo svg path {
        fill: none;
        stroke: #e05555;
        stroke-width: 2;
        stroke-linecap: round;
    }

    .todo-calendar-day.has-todo:hover {
        transform: scale(1.08);
    }

    .todo-calendar-day.selected {
        background: rgba(138, 171, 114, 0.14);
        border: none;
        color: #5a7a48;
        font-weight: 600;
        box-shadow: inset 0 0 0 2px rgba(138, 171, 114, 0.45);
        border-radius: 8px;
    }

    .todo-calendar-day .todo-count-dot {
        position: absolute;
        bottom: -2px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 7px;
        color: #e05555;
        font-weight: bold;
    }

    .todo-calendar-day.has-todo .todo-count-dot {
        color: #e05555;
    }

    .todo-calendar-day.overdue {
        border: 2px dotted rgba(0, 0, 0, 0.25);
        color: rgba(0, 0, 0, 0.45);
    }

    .todo-load-more {
        text-align: center;
        padding: 8px 0;
    }

    .todo-load-more-btn {
        background: transparent;
        border: 1px solid rgba(0, 0, 0, 0.12);
        border-radius: 6px;
        padding: 6px 16px;
        font-size: 12px;
        color: rgba(0, 0, 0, 0.55);
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .todo-load-more-btn:hover {
        background: rgba(0, 0, 0, 0.04);
        border-color: rgba(0, 0, 0, 0.2);
        color: rgba(0, 0, 0, 0.75);
    }

    .todo-empty {
        text-align: center;
        padding: 20px;
        color: rgba(0, 0, 0, 0.4);
        font-size: 14px;
    }

    .todo-loading {
        text-align: center;
        padding: 20px;
        color: rgba(0, 0, 0, 0.5);
        font-size: 14px;
    }

    .todo-loading::after {
        content: '';
        display: inline-block;
        width: 16px;
        height: 16px;
        border: 2px solid rgba(0, 0, 0, 0.12);
        border-radius: 50%;
        border-top-color: rgba(0, 0, 0, 0.5);
        animation: spin 1s linear infinite;
        margin-left: 8px;
        vertical-align: middle;
    }

    /* 图片预览器样式 - 从小森林移植 */
    .image-viewer {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.95);
        z-index: 10000;
        display: none;
        justify-content: center;
        align-items: center;
        touch-action: none;
    }

    .image-viewer.active {
        display: flex;
    }

    .image-viewer .img-container {
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
    }

    .image-viewer img {
        max-width: 95%;
        max-height: 95%;
        object-fit: contain;
        cursor: grab;
        user-select: none;
        -webkit-user-drag: none;
    }

    .image-viewer img.smooth-transition {
        transition: transform 0.3s ease;
    }

    .image-viewer img.zoomed {
        cursor: grab;
    }

    .image-viewer img.zoomed:active {
        cursor: grabbing;
    }

    .image-viewer .close-btn {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        background: rgba(255, 255, 255, 0.2);
        border: none;
        border-radius: 50%;
        color: white;
        font-size: 28px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10001;
        transition: all 0.3s ease;
    }

    .image-viewer .close-btn:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.1);
    }

    .image-viewer .nav-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 50px;
        height: 50px;
        background: rgba(255, 255, 255, 0.2);
        border: none;
        border-radius: 50%;
        color: white;
        font-size: 24px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10001;
        transition: all 0.3s ease;
    }

    .image-viewer .nav-btn:hover {
        background: rgba(255, 255, 255, 0.3);
    }

    .image-viewer .nav-btn.prev {
        left: 20px;
    }

    .image-viewer .nav-btn.next {
        right: 20px;
    }

    .image-viewer .nav-btn:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

    .image-viewer .image-counter {
        position: absolute;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        color: white;
        font-size: 14px;
        background: rgba(0, 0, 0, 0.5);
        padding: 8px 20px;
        border-radius: 20px;
    }

    .image-viewer .zoom-hint {
        position: absolute;
        top: 80px;
        left: 50%;
        transform: translateX(-50%);
        color: white;
        font-size: 12px;
        background: rgba(0, 0, 0, 0.5);
        padding: 6px 16px;
        border-radius: 15px;
        opacity: 0;
        transition: opacity 0.3s;
    }

    .image-viewer .zoom-hint.show {
        opacity: 1;
    }
