    /* 隐藏原生 audio 播放器，防止闪现 */
    .message audio {
        display: none !important;
    }
    /* 限制视频最大高度为480px，宽度自适应 */
    .message video {
        max-height: 480px !important;
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain;
        border-radius: 8px;
    }

    .message-textarea,
    .quick-at-wrapper {
        position: relative;
        overflow: visible;
    }

    .quick-at-box {
        position: absolute;
        left: 0;
        bottom: calc(100% + 5px);
        width: 200px;
        max-width: calc(100vw - 48px);
        max-height: 192px;
        padding: 5px;
        overflow-y: auto;
        overflow-x: hidden;
        box-sizing: border-box;
        overscroll-behavior: contain;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 15px;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
        z-index: 40;
        display: none;
        scrollbar-width: thin;
        scrollbar-color: rgba(156, 163, 175, 0.78) transparent;
    }

    .quick-at-box.is-visible {
        display: block;
    }

    .quick-at-box::-webkit-scrollbar {
        width: 4px;
    }

    .quick-at-box::-webkit-scrollbar-track {
        background: transparent;
        margin: 5px 0;
    }

    .quick-at-box::-webkit-scrollbar-thumb {
        background: rgba(156, 163, 175, 0.78);
        border-radius: 999px;
    }

    .quick-at-item {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 5px 7px;
        border-radius: 9px;
        cursor: pointer;
        transition: background-color 0.15s ease;
    }

    .quick-at-item + .quick-at-item {
        margin-top: 0;
    }

    .quick-at-item:hover,
    .quick-at-item.is-active {
        background-color: #e8e8ea;
    }

    .quick-at-avatar {
        width: 24px;
        height: 24px;
        flex: 0 0 24px;
        border-radius: 6px;
        object-fit: cover;
        background: #eef2f7;
    }

    .quick-at-meta {
        min-width: 0;
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
    }

    .quick-at-name {
        color: #202124;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.15;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .quick-at-source {
        flex: 0 0 auto;
        max-width: 66px;
        color: #a0a8b5;
        font-size: 9px;
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: right;
    }

    .quick-at-empty {
        padding: 10px 8px;
        color: #8a94a6;
        font-size: 10px;
        line-height: 1.3;
        text-align: center;
    }

    .thread-media-pending {
        position: relative;
        overflow: hidden;
        background-color: #f6eee2;
        background-image:
            linear-gradient(110deg, rgba(255, 255, 255, 0) 18%, rgba(255, 255, 255, 0.78) 34%, rgba(255, 255, 255, 0) 52%),
            linear-gradient(180deg, #f2e7d8 0%, #fbf5ec 48%, #f0e4d3 100%);
        background-size: 220% 100%, 100% 100%;
        background-position: 140% 0, 0 0;
        animation: threadMediaPlaceholder 1.35s ease-in-out infinite;
        box-shadow: inset 0 0 0 1px rgba(227, 199, 155, 0.34);
    }

    .thread-media-pending.thread-media-image,
    .thread-media-pending.thread-media-video {
        display: block;
        width: min(100%, 100%);
        min-width: min(220px, 100%);
        min-height: 120px;
        border-radius: 10px;
    }

    .thread-media-pending.thread-media-video {
        min-height: 180px;
    }

    .thread-media-ready {
        animation: none;
        background: transparent;
    }

    .thread-media-error {
        display: block;
        min-width: min(220px, 100%);
        min-height: 90px;
        border-radius: 10px;
        background: #fff6f6;
        border: 1px dashed #efc1c1;
    }

    @keyframes threadMediaPlaceholder {
        0% {
            background-position: 140% 0, 0 0;
        }

        100% {
            background-position: -60% 0, 0 0;
        }
    }
    
    .col-lg-3.d-none.d-lg-block.aside {
        position: -webkit-sticky;
        position: sticky;
        top: 63px;
        height: 100%;
        overflow: auto;
        z-index: 29;
    }

    .delete_ntcwin {
        position: fixed;
        z-index: 501;
        left: 50%;
        top: 20%;
        transform: translate(-50%, -50%);
        display: none;
        /* 初始状态为隐藏 */
        border-radius: 10px;
        background-color: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        padding: 10px;
        opacity: 0;
        animation: drop 0.5s forwards;
    }

    /* 添加掉落动画 */
    @keyframes drop {
        0% {
            top: 15%;
            opacity: 0;
        }

        100% {
            top: 20%;
            opacity: 1;
        }
    }

    /* 苹果风格弹窗样式 */
    .apple-modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 9999;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .apple-modal-overlay.active {
        display: block;
        opacity: 1;
    }

    .apple-modal {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.95);
        background-color: #ffffff;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        width: 90%;
        max-width: 400px;
        overflow: hidden;
        opacity: 0;
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        z-index: 10000;
    }

    .apple-modal-overlay.active .apple-modal {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    .apple-modal-header {
        padding: 24px;
        text-align: center;
    }

    .apple-modal-icon {
        width: 56px;
        height: 56px;
        margin: 0 auto 16px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .apple-modal-icon.warning {
        background-color: #fff5cc;
        color: #ff9500;
    }

    .apple-modal-icon.success {
        background-color: #e6fffa;
        color: #34c759;
    }

    .apple-modal-icon.error {
        background-color: #ffebee;
        color: #ff3b30;
    }

    .apple-modal-title {
        font-size: 18px;
        font-weight: 600;
        color: #1d1d1f;
        margin-bottom: 8px;
    }

    .apple-modal-desc {
        font-size: 14px;
        color: #86868b;
        line-height: 1.5;
    }

    .apple-modal-footer {
        padding: 16px;
        border-top: 1px solid #e6e6e6;
        display: flex;
    }

    .apple-modal-btn {
        flex: 1;
        padding: 12px 0;
        border: none;
        background: transparent;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: background-color 0.2s ease;
        border-radius: 8px;
        margin: 0 8px;
    }

    .apple-modal-btn.cancel {
        color: #1d1d1f;
    }

    .apple-modal-btn.cancel:hover {
        background-color: #f5f5f7;
    }

    .apple-modal-btn.confirm {
        color: #007aff;
    }

    .apple-modal-btn.confirm:hover {
        background-color: #e1f0fe;
    }

    .apple-modal-btn.single {
        flex: none;
        padding: 12px 32px;
    }

    .thread-domain-ticker-module {
        margin: 0.75rem 0 1rem;
    }

    .thread-domain-ticker-panel {
        display: flex;
        align-items: stretch;
        overflow: hidden;
        border-radius: 0.25rem;
        background: linear-gradient(180deg, #fffdf8 0%, #fff9ef 100%);
        box-shadow: 0 6px 14px rgba(104, 80, 52, 0.06);
    }

    .thread-domain-ticker-prefix {
        position: relative;
        z-index: 1;
        display: flex;
        align-items: center;
        flex-shrink: 0;
        padding: 0.5rem 0.2rem 0.5rem 0.9rem;
        background: linear-gradient(135deg, #8a5a00, #b06d00);
        color: #fff;
        white-space: nowrap;
        font-size: 0.88rem;
        font-weight: 700;
        letter-spacing: 0.02em;
    }

    .thread-domain-ticker-prefix::after {
        content: '';
        position: absolute;
        top: -1px;
        right: -10px;
        width: 20px;
        height: calc(100% + 2px);
        background: linear-gradient(135deg, #9d6907, #b06d00);
        transform: skewX(-16deg);
        z-index: -1;
    }

    .thread-domain-ticker-scroller {
        flex: 1;
        min-width: 0;
        display: flex;
        align-items: center;
        overflow: hidden;
        padding: 0.35rem 0.7rem 0.35rem 0.95rem;
    }

    #ajax-comment-section {
        position: relative;
    }

    .comment-loading-mask {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding-top: 1.8rem;
        background: rgba(255, 252, 246, 0.82);
        backdrop-filter: blur(2px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.18s ease, visibility 0.18s ease;
        z-index: 8;
        border-radius: 0.75rem;
    }

    #ajax-comment-section.is-loading .comment-loading-mask {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    #ajax-comment-section.is-loading .card-postlist,
    #ajax-comment-section.is-loading .comment-pagination-nav {
        opacity: 0.55;
        transition: opacity 0.18s ease;
    }

    .comment-loading-panel {
        display: inline-flex;
        align-items: center;
        gap: 0.7rem;
        padding: 0.8rem 1rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.96);
        color: #7c6754;
        box-shadow: 0 10px 24px rgba(104, 80, 52, 0.12);
        font-size: 0.95rem;
        font-weight: 600;
        letter-spacing: 0.01em;
    }

    @media (max-width: 575px) {
        .comment-loading-mask {
            padding-top: 1.2rem;
        }
    }

    .comment-loading-spinner {
        width: 1.1rem;
        height: 1.1rem;
        border-radius: 50%;
        border: 2px solid rgba(147, 113, 74, 0.2);
        border-top-color: #9b7448;
        animation: commentLoadingSpin 0.75s linear infinite;
        flex-shrink: 0;
    }

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

    @media (max-width: 575px) {
        .thread-domain-ticker-module {
            margin-right: 0.2rem;
            margin-left: 0.2rem;
        }
    }

    .thread-domain-ticker-marquee {
        width: 100%;
        overflow: hidden;
        white-space: nowrap;
        position: relative;
    }

    .thread-domain-ticker-track {
        display: inline-flex;
        align-items: center;
        width: max-content;
        min-width: 100%;
        will-change: transform;
    }

    .thread-domain-ticker-group {
        display: inline-flex;
        align-items: center;
        flex-shrink: 0;
    }

    .thread-domain-ticker-item {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        margin-right: 0.65rem;
        padding: 0.24rem 0.55rem;
        border: 1px solid rgba(138, 90, 0, 0.12);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.78);
        color: #8a5a00;
        text-decoration: none;
        font-size: 0.84rem;
        line-height: 1.35;
        transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
    }

    .thread-domain-ticker-item:last-child {
        margin-right: 0.65rem;
    }

    .thread-domain-ticker-item:hover {
        color: #6f4300;
        text-decoration: none;
        background: rgba(255, 250, 236, 0.95);
        border-color: rgba(138, 90, 0, 0.2);
        transform: translateY(-1px);
    }

    .thread-domain-ticker-placeholder,
    .thread-domain-ticker-empty {
        display: inline-flex;
        align-items: center;
        color: #8a5a00;
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .thread-domain-ticker-module.is-ready .thread-domain-ticker-track {
        animation: threadDomainTickerScroll var(--thread-ticker-duration, 28s) linear infinite;
        animation-play-state: paused;
    }

    .thread-domain-ticker-module.is-playing .thread-domain-ticker-track {
        animation-play-state: running;
    }

    .thread-domain-ticker-module.is-ready:hover .thread-domain-ticker-track {
        animation-play-state: paused;
    }

    @keyframes threadDomainTickerScroll {
        from {
            transform: translate3d(0, 0, 0);
        }

        to {
            transform: translate3d(-50%, 0, 0);
        }
    }

    @media (max-width: 680px) {
        .thread-domain-ticker-prefix {
            padding: 0.42rem 0.2rem 0.42rem 0.75rem;
            font-size: 0.8rem;
        }

        .thread-domain-ticker-prefix::after {
            right: -8px;
            width: 16px;
            transform: skewX(-14deg);
        }

        .thread-domain-ticker-scroller {
            padding: 0.3rem 0.55rem 0.3rem 0.78rem;
        }

        .thread-domain-ticker-item {
            font-size: 0.78rem;
            padding: 0.22rem 0.48rem;
            margin-right: 0.5rem;
        }
    }
