/* 瞬间标签与评论间距 */
.moment_tag_gap {
    margin-right: 10px;
}

/* 灯箱视频格式 */
.fancybox-slide--video .fancybox-content {
    width: auto !important;
    height: auto !important;
    background: transparent;
}

.fancybox-slide--video video.fancybox-video {
    width: auto !important;
    height: auto !important;
    max-height: 75dvh !important;
    max-width: 75dvw !important;
    object-fit: contain;
}

/* 片刻视频容器鼠标样式 */
.fancybox.mo_img {
    cursor: zoom-in;
}

/* 图库视频图标hover放大 */
.video-fancybox .play-icon {
    transition: all 0.4s ease !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.video-fancybox:hover .play-icon {
    transform: scale(1.3) !important;
    opacity: 1;
}

/* 目录左边距：贴紧左侧边栏 */
.listree-box {
    margin-left: 0;
}

@media (min-width: 960px) and (max-width: 1359.98px) {
    .listree-box {
        margin-left: calc((100vw - 860px) / 2 + 284px + 50px);
    }
}

@media (min-width: 1360px) {
    .listree-box {
        margin-left: calc((100vw - 1400px) / 2 + 291px + 50px);
    }
}

/* 登录容器 */
.custom-login-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all .25s ease;
}

.custom-login-modal.show {
    opacity: 1;
    visibility: visible;
}

.login-modern-card {
    width: 250px;
    background: #ffffff;
    padding: 30px 25px;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.login-modern-card::before {
    position: absolute;
    content: "";
    width: 360px;
    height: 360px;
    background: #e6f9ee;
    transform: rotate(45deg);
    left: -230px;
    bottom: 20px;
    border-radius: 40px;
    z-index: 0;
}

.login-modern-form {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.login-modern-title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 15px;
}

.login-modern-input-wrapper {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.login-modern-icon {
    position: absolute;
    left: 2px;
    font-size: 18px;
    color: #6b7280;
}

.custom-login-modal input.login-modern-input {
    width: 100%;
    height: 38px;
    padding-left: 30px;
    font-size: 0.9rem;
    color: #1f2937;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    border-bottom: 2px solid #cbd5e1 !important;
    transition: border-color .2s;
}

.custom-login-modal input.login-modern-input::placeholder {
    color: #94a3b8;
}

.custom-login-modal input.login-modern-input:focus {
    border-bottom: 2px solid #22c55e !important;
}

.login-modern-submit {
    width: 100%;
    height: 35px;
    border: none;
    border-radius: 6px;
    background: #22c55e;
    color: white;
    font-size: 0.9rem;
    letter-spacing: .5px;
    cursor: pointer;
    transition: background .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
}

.login-modern-submit:hover {
    background: #16a34a;
}

.login-modern-submit:disabled {
    background: #a7d7bd;
    cursor: not-allowed;
    color: #f0fdf4;
}

.login-modern-submit:disabled:hover {
    background: #a7d7bd;
}

.close-modal-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    border: none;
    background: transparent;
    font-size: 22px;
    color: #9ca3af;
    cursor: pointer;
    z-index: 3;
}

/* 退出登录 */
.pixar-notice-wrapper {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1999;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.35);
    font-family: "Arial Rounded MT Bold", "Helvetica Rounded", Arial, sans-serif;
}

.pixar-notice-card {
    --pixar-ui-blue: #5c99e2;
    --pixar-ui-green: #61c470;
    --pixar-ui-green-shadow: #45a253;
    --pixar-ui-red: #e65e5e;
    --pixar-ui-red-shadow: #c14242;
    --pixar-ui-cream: #f5f1e8;
    --pixar-ui-dark: #4d4c4a;
    --pixar-ui-green-border: #2e7d32;
    --pixar-ui-red-border: #8f2d2d;
    --pixar-button-depth: 0.15em;
    width: 19em;
    max-width: 300px;
    background: var(--pixar-ui-cream);
    border-radius: 1.5em;
    padding: 1.2em;
    border: 0.2em solid var(--pixar-ui-dark);
    box-shadow: 0.6em 0.6em 0 var(--pixar-ui-dark);
    display: flex;
    flex-direction: column;
    transition: transform .2s cubic-bezier(.34, 1.56, .64, 1),
        box-shadow .2s cubic-bezier(.34, 1.56, .64, 1);
}

.pixar-notice-card:hover {
    transform: translateY(-.5em) rotate(-2deg);
    box-shadow: .8em .8em 0 var(--pixar-ui-dark);
}

.pixar-notice-header {
    display: flex;
    align-items: center;
    margin-bottom: 1em;
}

.pixar-notice-avatar {
    width: 3.5em;
    height: 3.5em;
    border-radius: 50%;
    background: linear-gradient(45deg, #f9a86d, #f48a58);
    border: .2em solid var(--pixar-ui-dark);
    box-shadow: .2em .2em 0 var(--pixar-ui-dark);
    transition: transform .3s ease;
}

.pixar-notice-card:hover .pixar-notice-avatar {
    transform: scale(1.05) rotate(5deg);
}

.pixar-notice-username {
    margin-left: .8em;
    font-size: 1.2em;
    font-weight: 700;
    color: var(--pixar-ui-dark);
}

.pixar-notice-image-area {
    background: #d8d2c6;
    border-radius: 1em;
    padding: .8em;
    border: .2em solid var(--pixar-ui-dark);
    box-shadow: inset .2em .2em 0 #b3ac9f;
}

.pixar-notice-caption {
    margin: 10px 5px !important;
    font-size: .9em;
    line-height: 1.4;
    color: var(--pixar-ui-dark);
    font-weight: 600;
}

.pixar-notice-actions {
    display: flex;
    justify-content: space-around;
    margin-top: 1.5em;
}

.pixar-notice-btn {
    border: .2em solid var(--pixar-ui-dark);
    border-radius: 1em;
    padding: .5em .8em;
    font-size: 1.6em;
    cursor: pointer;
    background: var(--pixar-ui-green);
    box-shadow:
        0 var(--pixar-button-depth) 0 var(--pixar-ui-green-shadow),
        0 .4em 0 var(--pixar-ui-dark);
    transition: transform .1s ease,
        box-shadow .1s ease;
}

.pixar-notice-btn:active {
    transform: translateY(var(--pixar-button-depth));
    box-shadow:
        0 0 0 var(--pixar-ui-green-shadow),
        0 var(--pixar-button-depth) 0 var(--pixar-ui-dark);
}

.pixar-notice-btn-close:disabled,
.pixar-notice-btn-confirm:disabled {
    cursor: not-allowed;
    transform: translateY(var(--pixar-button-depth));
    box-shadow:
        0 0 0 var(--pixar-ui-green-shadow),
        0 var(--pixar-button-depth) 0 var(--pixar-ui-dark);
}

.pixar-notice-btn-close {
    background: var(--pixar-ui-red);
    box-shadow:
        0 var(--pixar-button-depth) 0 var(--pixar-ui-red-shadow),
        0 .4em 0 var(--pixar-ui-dark);
}

.pixar-notice-btn-close:active {
    box-shadow:
        0 0 0 var(--pixar-ui-red-shadow),
        0 var(--pixar-button-depth) 0 var(--pixar-ui-dark);
}

.pixar-notice-btn-confirm:hover {
    border-color: var(--pixar-ui-green-border) !important;
}

.pixar-notice-btn-close:hover {
    border-color: var(--pixar-ui-red-border) !important;
}

/* 按钮禁用样式 */
.push_item:disabled {
    background: #c7d4ce;
    cursor: not-allowed;
    color: #f0fdf4;
}

/* 删除确认弹窗样式 */
.moments-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1999;
    padding: 20px;
    box-sizing: border-box;
    animation: momentsFadeIn 0.2s ease;
}

.moments-card-widget {
    overflow: hidden;
    position: relative;
    background-color: #ffffff;
    text-align: left;
    border-radius: 0.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: momentsSlideUp 0.3s ease;
}

.moments-card-header {
    padding: 1.5rem;
    background-color: #ffffff;
}

.moments-header-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.moments-icon-wrapper {
    display: flex;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    background-color: #fee2e2;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
}

.moments-icon-wrapper svg {
    color: #dc2626;
    width: 1.5rem;
    height: 1.5rem;
}

.moments-text-content {
    flex: 1;
    text-align: left;
}

.moments-title-text {
    color: #111827;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5rem;
    display: block;
}

.moments-message-text {
    margin-top: 0.5rem;
    margin-bottom: 0;
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.25rem;
}

.moments-button-group {
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
    flex-direction: row;
}

.moments-btn-confirm {
    flex: 1;
    display: inline-flex;
    padding: 0.5rem 1rem;
    background-color: #dc2626;
    color: #ffffff;
    font-size: 0.9rem;
    line-height: 1.3rem;
    font-weight: 500;
    justify-content: center;
    border-radius: 0.375rem;
    border-width: 1px;
    border-color: transparent;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.moments-btn-confirm:hover {
    background-color: #b91c1c;
}

.moments-btn-cancel {
    flex: 1;
    display: inline-flex;
    padding: 0.5rem 1rem;
    background-color: #ffffff;
    color: #374151;
    font-size: 0.9rem;
    line-height: 1.3rem;
    font-weight: 500;
    justify-content: center;
    border-radius: 0.375rem;
    border: 1px solid #d1d5db;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.moments-btn-cancel:hover {
    background-color: #f3f4f6;
}

.moments-btn-confirm:disabled {
    background-color: #fecaca;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.7;
}

.moments-btn-cancel:disabled,
.push_close:disabled {
    background-color: #e7f0e5;
    color: #9ca3af;
    border-color: #e7f0e5;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.7;
}

/* --- 追加：黄色警告模式 --- */
.theme-yellow .moments-icon-wrapper {
    background-color: #fef3c7;
}

.theme-yellow .moments-icon-wrapper svg {
    color: #d97706;
}

.theme-yellow .moments-btn-confirm {
    background-color: #d97706;
}

.theme-yellow .moments-btn-confirm:hover {
    background-color: #b45309;
}

/* --- 追加：绿色确认模式 --- */
.theme-green .moments-icon-wrapper {
    background-color: #d1fae5;
}

.theme-green .moments-icon-wrapper svg {
    color: #059669;
}

.theme-green .moments-btn-confirm {
    background-color: #059669;
}

.theme-green .moments-btn-confirm:hover {
    background-color: #047857;
}

/* --- 追加：红色保持默认，这里只是为了统一命名，可不加 --- */
.theme-red .moments-icon-wrapper {
    background-color: #fee2e2;
}

.theme-red .moments-icon-wrapper svg {
    color: #dc2626;
}

.theme-red .moments-btn-confirm {
    background-color: #dc2626;
}

@keyframes momentsFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes momentsSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* --- 删除动画 --- */
/* 飘散消失动画 (持续 0.8s) */
.moments-delete-disperse {
    animation: momentsDeleteDisperse 0.8s ease-in forwards;
    transform-origin: center bottom;
    pointer-events: none;
}

@keyframes momentsDeleteDisperse {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg) scale(1);
        filter: blur(0);
    }

    20% {
        opacity: 0.9;
        transform: translateY(-10px) rotate(2deg) scale(1.02);
    }

    100% {
        opacity: 0;
        transform: translateY(-120px) rotate(-8deg) scale(0.6);
        filter: blur(3px);
    }
}

.douban_page #post_item {
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0;
    row-gap: 0;
    align-items: center;
}

.douban_page #post_item .loading_box {
    text-align: center;
    grid-column: 1 / -1;
}

.douban_page #post_item > .no-results {
    grid-column: 1 / -1;
    width: 100%;
}

.douban_page #post_item > #prev_pagination {
    grid-column: 1 / -1;
}

.douban_page #post_item .douban_card_item {
    width: 100%;
    margin: 0;
    padding: 0 40px;
    border-right: 1px solid #e5e7eb;
    display: flex;
    align-items: flex-start;
}

.douban_page #post_item .douban_card_item:nth-child(2n) {
    border-right: none;
}

.douban_page #post_item .douban_card_inner {
    display: grid !important;
    grid-template-columns: 100px 1fr;
    grid-template-rows: auto auto 1fr;
    column-gap: 16px;
    row-gap: 3px;
    padding: 20px 0;
    background: transparent;
    width: 100%;
    align-items: start;
}

.douban_page #post_item .douban_media_col {
    width: 100px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    grid-column: 1;
    grid-row: 2 / 4;
}


.douban_page #post_item {
    align-items: stretch !important;
}

.douban_page #post_item .douban_poster_link,
.douban_page #post_item .douban_poster_img {
    width: 100px;
}

.douban_page #post_item .douban_poster_img {
    display: block;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

}

.douban_page #post_item .douban_rating_wrap {
    display: none;
}

.douban_page #post_item .douban_text_col {
    display: contents;
}

.douban_page #post_item .douban_title_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 6px;
    text-align: left;
}

.douban_page #post_item .douban_title_text {
    min-width: 0;
    overflow: hidden;
    color: var(--pix-theme);
    font-size: 16px;
    line-height: 1.35;
    font-weight: 650;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.douban_page #post_item .douban_title_text:hover {
    color: var(--hilight-color);
}

.douban_page #post_item .douban_title_text_plain,
.douban_page #post_item .douban_title_text_plain:hover {
    color: #000;
}

.douban_page #post_item .douban_detail_link {
    flex: 0 0 auto;
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 5px;
    border-radius: 4px;
    color: var(--pix-theme);
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;
    visibility: hidden;
    pointer-events: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.douban_page #post_item .douban_detail_link.is-visible {
    visibility: visible;
    pointer-events: auto;
}

.douban_page #post_item .douban_detail_link:hover {
    background: var(--pix-background);
    color: var(--hilight-color);
}

.douban_page #post_item .douban_sub_meta {
    display: flex;
    align-items: center;
    gap: 0px;
    margin-bottom: 6px;
    flex-wrap: wrap;
    grid-column: 2;
    grid-row: 2;
    align-self: start;
}

.douban_page #post_item .douban_time_text {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(168, 85, 247, 0.12);
    color: #8b5cf6;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 500;
    margin-right: 7px;
}

.douban_page #post_item .douban_type_badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(14, 165, 233, 0.13);
    color: #0284c7;
    font-size: 12px;
    line-height: 1.4;
    vertical-align: middle;
    font-weight: 500;
    margin-right: 7px;
}

.douban_page #post_item .douban_score_badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(249, 115, 22, 0.14);
    color: #ea580c;
    font-size: 12px;
    line-height: 1.4;
    vertical-align: middle;
    font-weight: 500;
}

.douban_page #post_item .douban_content_box {
    color: #55716a;
    grid-column: 2;
    grid-row: 3;
    align-self: start;
}

.douban_page #post_item .douban_content_main {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #43584d;
    white-space: pre-wrap;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
}

.douban_page #post_item .douban_expand_btn {
    display: inline-block;
    padding: 0;
    color: var(--pix-theme);
    font-size: 14px;
    font-weight: 500;
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.6;
}

.douban_page #post_item .douban_content_meta {
    margin: 8px 0 0;
    font-size: 12px;
    color: #76937f;
    line-height: 1.5;
}

.douban_detail_page #post_item {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.douban_detail_page #post_item .douban_card_item {
    grid-column: 1 / -1;
    border-right: none;
    padding: 35px 58px;
}

.douban_detail_page #post_item .douban_detail_link {
    display: none;
}

.douban_detail_page #post_item .douban_title_text {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
}

.douban_detail_page #post_item .douban_content_main {
    display: block;
    overflow: visible;
    overflow-wrap: anywhere;
    -webkit-line-clamp: unset;
    -webkit-box-orient: initial;
}

@media only screen and (max-width:1359px) {
    .douban_page #post_item {
        grid-template-columns: 1fr;
    }

    .douban_page #post_item .douban_card_item {
        border-right: none !important;
    }
}

@media only screen and (max-width:540px) {
    .douban_page #post_item .douban_card_item {
        padding: 0 20px;
    }

    .douban_page #post_item .douban_card_inner {
        column-gap: 11px;
        row-gap: 0px;
    }

    .douban_detail_page #post_item .douban_card_item {
        padding: 0 20px;
    }
}

.equipments_page #post_item {
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0;
    row-gap: 0;
    align-items: stretch;
}

.equipments_page #post_item .loading_box,
.equipments_page #post_item > .no-results,
.equipments_page #post_item > #prev_pagination {
    grid-column: 1 / -1;
}

.equipments_page #post_item .equipment_item {
    width: 100%;
    margin: 0;
    padding: 10px 40px;
    border: 0;
    display: flex;
    align-items: center;
}

.equipments_page #post_item .equipment_card_inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.equipments_page #post_item .equipment_visual {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    line-height: 1;
}

.equipments_page #post_item .equipment_visual > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.equipments_page #post_item .equipment_overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    overflow: auto;
    border-radius: 50%;
    background: radial-gradient(
        circle closest-side at center,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.5) 70%,
        rgba(0, 0, 0, 0.3) 85%,
        rgba(0, 0, 0, 0) 100%
    );
    color: #fff;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.equipments_page #post_item .equipment_visual:hover .equipment_overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.equipments_page #post_item .equipment_description {
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    overflow: auto;
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 16px;
}

@media only screen and (max-width:1366px) {
    .equipments_page #post_item {
        grid-template-columns: 1fr;
    }

    .equipments_page #post_item .equipment_item {
        width: 70%;
        margin-left: auto;
        margin-right: auto;
    }
}

@media only screen and (max-width:540px) {
    .equipments_page #post_item {
        grid-template-columns: 1fr;
    }

    .equipments_page #post_item .equipment_item {
        width: 100%;
        padding: 10px 20px;
    }

    .equipments_page #post_item .equipment_overlay {
        padding: 24px;
    }
}
