/* CSS???? */
:root {
    /* ???? */
    --bg-primary: #f3f4f7;
    --bg-secondary: #e3e9f1;
    --bg-tertiary: #c3c9d1;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-tertiary: #94a3b8;
    --border-color: #d0d7e3;
    --border-light: #e8ecf2;
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --shadow-light: rgba(99, 102, 241, 0.06);
    --shadow-medium: rgba(99, 102, 241, 0.12);
    --shadow-heavy: rgba(99, 102, 241, 0.18);
    --scrollbar-track: transparent;
    --scrollbar-thumb: rgba(99, 102, 241, 0.4);
    --scrollbar-thumb-hover: rgba(99, 102, 241, 0.65);
    --icon-filter: none;
}

/* ???? */
[data-theme="dark"] {
    --bg-primary: #0f0f0f;
    --bg-secondary: #161616;
    --bg-tertiary: #1e1e1e;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-tertiary: #cbd5e1;
    --border-color: #222;
    --border-light: #252538;
    --accent-primary: #7c6aff;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #7c6aff 0%, #8b5cf6 100%);
    --shadow-light: rgba(0, 0, 0, 0.4);
    --shadow-medium: rgba(0, 0, 0, 0.6);
    --shadow-heavy: rgba(0, 0, 0, 0.8);
    --scrollbar-track: #0a0a15;
    --scrollbar-thumb: rgba(124, 106, 255, 0.4);
    --scrollbar-thumb-hover: rgba(124, 106, 255, 0.65);
    --icon-filter: invert(1);
}

/* ???? */
body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ?????????? */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) transparent;
}

/* Webkit???????? */
*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

*::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
    transition: all 0.3s ease;
    animation: scrollbar-fade-in 0.3s ease;
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

*::-webkit-scrollbar-thumb:active {
    background: var(--scrollbar-thumb-hover);
}

*::-webkit-scrollbar-corner {
    background: transparent;
}

@keyframes scrollbar-fade-in {
    from {
        opacity: 0.5;
    }

    to {
        opacity: 1;
    }
}

/* ????????? */
.scrollbar-fade-out *::-webkit-scrollbar-thumb {
    animation: scrollbar-fade-out 0.3s ease 2s forwards;
}

@keyframes scrollbar-fade-out {
    from {
        background: rgba(99, 102, 241, 0.65);
    }

    to {
        background: rgba(99, 102, 241, 0.4);
    }
}

/* ?????iframe??????? */
.page-modal-body iframe::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.page-modal-body iframe::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

.page-modal-body iframe::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.page-modal-body iframe::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

.page-modal-body iframe::-webkit-scrollbar-corner {
    background: transparent;
}

/* ?????????? */
.detail-modal-content::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.detail-modal-content::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

.detail-modal-content::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.detail-modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

.detail-modal-content::-webkit-scrollbar-corner {
    background: transparent;
}

/* ??????????*/
.banner-section {
    display: none;
    margin: 10px 0;
}


/* ???????????? fa-spinner? */
.ai-assistant-label {
    font-size: 11px;
}

.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    vertical-align: middle;
    animation: spin 0.8s linear infinite;
}

.version-info {
    position: fixed;
    bottom: 0;
    right: 0;
    border-radius: 8px 0 0 0;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.5px;
    user-select: none;
    pointer-events: none;
    z-index: 10001;
    /* ???????? */
    opacity: 0.8;
    background: var(--bg-primary);
}

@media (max-width: 768px) {
    .version-info {
        display: none;
    }
}

/* ???????? */
.dynamic-modal {
    display: flex;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.dynamic-modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 90%;
    max-height: 80%;
    overflow: auto;
    position: relative;
}

.dynamic-modal-close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.dynamic-modal-grid {
    display: flex;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    flex-wrap: wrap;
}

/* ????????? */
.qr-code-container {
    width: 220px;
    height: 220px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.qr-code-loading {
    text-align: center;
    color: #666;
}

.qr-code-loading .spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #07c160;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.qr-code-image {
    width: 200px;
    height: 200px;
    border-radius: 8px;
}

/* ?????? */
.scrolling-notice {
    margin: 10px 0;
    height: 40px;
    line-height: 40px;
    overflow: hidden;
    position: relative;
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 0 15px;
    box-sizing: border-box;
}

.scrolling-notice-container {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.scrolling-notice-content {
    display: block;
    height: 100%;
    position: relative;
}

.scrolling-notice-item {
    display: block;
    height: 100%;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    color: var(--text-secondary);
    font-size: 14px;
    text-decoration: none;
    transition: opacity 0.5s ease-in-out;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scrolling-notice-item.active {
    opacity: 1;
    position: relative;
    z-index: 1;
}

.scrolling-notice-item::before {
    margin-right: 8px;
    color: #ff6b6b;
}

@keyframes notice-slide-up {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(0%);
        opacity: 1;
    }
}

/* ??????? - ???????? */
.page-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 75%;
    height: 100vh;
    display: none;
    transition: width 0.3s ease;
}

.page-modal-content {
    width: 100%;
    height: 100%;
}

.page-modal-body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.page-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ??????????? - PC?????????? */
.page-modal-back-btn {
    position: absolute;
    top: 30px;
    left: 35px;
    z-index: 1001;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgb(102, 126, 234);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: none;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-modal-back-btn:hover {
    background: rgba(102, 126, 234, 1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateX(-2px) translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ????????????????????? */
.page-modal-back-btn.scroll-to-top {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    padding: 0;
    justify-content: center;
    gap: 0;
}

.page-modal-back-btn.scroll-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* AI???????? */
.ai-assistant-toggle-btn {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 10000;
    width: 50px;
    height: 75px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(99, 102, 241, 0.9);
    backdrop-filter: blur(10px);
    color: #fff;
    border-radius: 18px 0 0 18px;
    border-right: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.ai-assistant-toggle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ai-assistant-toggle-btn:hover::before {
    opacity: 1;
}

.ai-assistant-toggle-btn:hover {
    background: rgba(124, 106, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) translateX(-3px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.ai-assistant-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.ai-assistant-toggle-btn:hover .ai-assistant-icon {
    opacity: 1;
    transform: scale(1.05);
}

/* ?????? */
.ai-assistant-toggle-btn.expanded {
    right: 640px;
    background: rgba(99, 102, 241, 1);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.ai-assistant-toggle-btn.expanded::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%);
}

.ai-assistant-toggle-btn.expanded .ai-assistant-icon {
    opacity: 1;
    transform: scale(1.1);
}

.ai-assistant-toggle-btn.expanded:hover {
    background: rgba(124, 106, 255, 1);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5);
}

/* AI??????? */
.ai-assistant-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 640px;
    height: 100vh;
    z-index: 9999;
    display: none;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-light);
}

.ai-assistant-content {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--bg-primary);
}

.ai-assistant-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ????????????1440px???AI???? */
@media (max-width: 1439px) {
    .ai-assistant-toggle-btn {
        display: none !important;
    }
}

/* ?AI??????????????? */
.page-modal.assistant-expanded {
    width: calc(100% - 640px - 90px);
    right: 640px;
}

/* ?????????? */
.platform-header {
    display: flex;
    align-items: center;
    cursor: pointer;
    text-align: center;
    flex-direction: column;
    color: var(--text-primary);
}

/* ?????????? */
[data-theme="dark"] .platform-header {
    color: var(--text-primary);
}

/* ????????? */
.quick-action-item.selected {
    pointer-events: none;
    font-size: 0.9rem;
    height: 50px;
    border: none;
    border-right: 2px solid #fff;
}

.feature-card.selected {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 0.9rem;
    height: 60px;
    border: none;
    opacity: 1;
}

.gallery-grid {
    display: block;
    width: 100%;
    font-size: 0;
    /* ??inline-block?? */
    border-radius: 12px;
    overflow: hidden;
}

.waterfall-column {
    display: inline-block;
    vertical-align: top;
    font-size: 14px;
    /* ?????? */
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: block;
    width: 100%;
    margin-bottom: 1px;
}

/* ???????? */
.image-task-right {
    position: relative;
    height: 250px;
    width: 100%;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 2px 8px var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

/* ???????? */
.image-task-right:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px var(--shadow-medium), 0 0 20px rgba(102, 126, 234, 0.3);
    border: 1px solid rgba(102, 126, 234, 0.6);
}

/* ???????? */
.image-task-right:active {
    transform: translateY(-4px) scale(0.98);
    box-shadow: 0 6px 12px var(--shadow-light);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ?????????????? */
.image-task-right:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.4), 0 12px 24px var(--shadow-medium);
    transform: translateY(-8px) scale(1.02);
    border: 1px solid rgba(102, 126, 234, 0.8);
}

/* ?????????? */
.image-task-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0) 0%, rgba(102, 126, 234, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.image-task-right:hover::before {
    opacity: 1;
}

/* ???? */
.image-task-right::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 12px;
    background: linear-gradient(45deg,
            rgba(102, 126, 234, 0.4) 0%,
            rgba(118, 75, 162, 0.4) 25%,
            rgba(102, 126, 234, 0.4) 50%,
            rgba(118, 75, 162, 0.4) 75%,
            rgba(102, 126, 234, 0.4) 100%);
    background-size: 300% 300%;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: borderGlow 3s ease-in-out infinite;
}

.image-task-right:hover::after {
    opacity: 1;
}

@keyframes borderGlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ??????????? */
.image-task-right>div:last-of-type {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    position: relative;
}

/* ?????????? */
.image-task-right video {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    position: relative;
    z-index: 0;
}

.image-task-right:hover video {
    transform: scale(1.05);
}

/* ???????? */
.image-task-right>div[style*="rotate(45deg)"] {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-task-right:hover>div[style*="rotate(45deg)"] {
    transform: rotate(45deg) scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
}

/* ?????????? */
.normal-features-section {
    animation: sectionFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

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

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

/* ?????? */
@keyframes cardFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* ?????????? - ??GPU?????? */
.image-task-right {
    animation: cardFadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards;
    will-change: transform, opacity;
}

/* ???????will-change???? */
@media (prefers-reduced-motion: no-preference) {
    .image-task-right {
        animation: cardFadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards;
    }
}

/* ?????????????? */
@media (prefers-reduced-motion: reduce) {
    .image-task-right {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .image-task-right:hover {
        transform: none;
        box-shadow: 0 4px 12px var(--shadow-medium);
    }
}

/* ???? - ????????? */
.image-task-right:nth-child(1) {
    animation-delay: 0s;
}

.image-task-right:nth-child(2) {
    animation-delay: 0.1s;
}

.image-task-right:nth-child(3) {
    animation-delay: 0.2s;
}

.image-task-right:nth-child(4) {
    animation-delay: 0.3s;
}

.image-task-right:nth-child(5) {
    animation-delay: 0.4s;
}

.image-task-right:nth-child(6) {
    animation-delay: 0.5s;
}

.image-task-right:nth-child(7) {
    animation-delay: 0.6s;
}

.image-task-right:nth-child(8) {
    animation-delay: 0.7s;
}

.image-task-right:nth-child(9) {
    animation-delay: 0.8s;
}

.image-task-right:nth-child(10) {
    animation-delay: 0.9s;
}

.right-story {
    /* JS????????????? */
    width: 100%;
}

/* ?????.gallery-item???gallery-item-info?? */
.gallery-item:hover .gallery-item-info {
    opacity: 1;
}

.gallery-item-image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.gallery-item-image {
    margin-bottom: 2px;
    width: calc(100% - 2px);
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.gallery-item-image.loaded {
    opacity: 1;
}

.gallery-item-image:hover {
    transform: scale(1.05);
}

.gallery-item-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 57px;
    height: 60px;
    padding-left: 3px;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0.9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-item-play-icon {
    background: var(--primary-color);
    color: white;
    opacity: 1;
}

.gallery-item-info {
    padding: 6px;
    padding-top: 16px;
    position: absolute;
    bottom: 0;
    width: calc(100% - 12px);
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery-item-author {
    display: flex;
    align-items: center;
}

.gallery-item-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 6px;
}

.gallery-item-username {
    color: #fff;
}

.gallery-item-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #fff;
}

.gallery-item-likes {
    display: flex;
    align-items: center;
}

.gallery-item-time {
    padding-right: 10px;
    color: rgba(255, 255, 255, 0.5);
}

.loading-message {
    text-align: center;
    padding: 40px;
    color: #666;
}

.no-data {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

/* ??????? */
.detail-modal {
    display: none;
    position: fixed;
    z-index: 20000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.detail-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    margin: auto;
    padding: 15px;
    border-radius: 16px;
    width: calc(95vw - 30px);
    height: calc(90vh - 30px);
    min-width: 320px;
    min-height: 400px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
    outline: none;
    /* ?????????????? */
}

.detail-modal-content:focus {
    outline: none;
    /* ????????????? */
}

.detail-modal-body {
    display: flex;
    flex: 1;
    gap: 20px;
    overflow: hidden;
}

.detail-image-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 12px;
    overflow: hidden;
    min-width: 0;
    position: relative;
}

/* ??????? */
.detail-image-section::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%),
        linear-gradient(-45deg, #f0f0f0 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f0f0f0 75%),
        linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    opacity: 0.05;
    z-index: 0;
}

.detail-info-section {
    width: 380px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* ????????? */
.detail-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.detail-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.detail-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 10px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.detail-video {
    max-width: 100%;
    max-height: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 10px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    background: #000;
}

/* ?????? */
.original-image-buttons {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1002;
}

.original-image-btn {
    background: white;
    color: black;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    min-width: 60px;
}

.original-image-btn:hover {
    background: rgba(74, 144, 226, 0.2);
    color: white;
    transform: scale(1.05);
}

.original-image-btn.active {
    background: rgba(74, 144, 226, 0.9);
    color: white;
}

/* ???????? */
.image-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 1002;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.image-nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

/* ??????? */
.image-counter {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 1002;
}

/* ???????? */
.image-comparison-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 10px;
}

.image-comparison-container .detail-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.image-comparison-container .original-image {
    z-index: 2;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
    transition: clip-path 0.1s ease;
}

.image-comparison-container .work-image {
    z-index: 1;
}

/* ????? */
.comparison-divider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 3;
    transform: translateX(-50%);
    transition: left 0.1s ease;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

.comparison-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.comparison-divider::after {
    content: '?';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #333;
    font-size: 12px;
    font-weight: bold;
}

/* ?????? */
.image-label {
    position: absolute;
    top: 15px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 12px;
    border-radius: 4px;
    z-index: 4;
}

.image-label.work-label {
    right: 65px;
}

.image-label.original-label {
    left: 15px;
}

/* ?????? */
.detail-image:not([src]),
.detail-image[src=""] {
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-image:not([src])::after,
.detail-image[src=""]::after {
    content: '???...';
    color: #999;
    font-size: 14px;
}

.detail-info {
    padding: 0;
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.detail-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.detail-author {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    justify-content: space-between;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.detail-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 12px;
    border: 2px solid var(--bg-primary);
    box-shadow: 0 2px 8px var(--shadow-light);
}

.detail-username {
    font-weight: bold;
    color: var(--text-primary);
    font-size: 15px;
}

.detail-params {
    background: rgba(0, 100, 200, 0.1);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(0, 100, 200, 0.2);
}

.detail-params-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
}

.detail-param-item {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

/* ?????? */
.detail-resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.detail-resource-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.detail-resource-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.detail-resource-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    background: rgba(0, 0, 0, 0.3);
}

.detail-resource-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4px 6px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    font-size: 11px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ?????? */
.detail-resource-portrait-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 10;
    line-height: 1;
}

.detail-like-btn {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
    margin-right: 10px;
    padding: 8px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.detail-like-btn:hover {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
    border-color: rgba(255, 71, 87, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 71, 87, 0.2);
}

.detail-like-btn.liked {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.15);
    border-color: rgba(255, 71, 87, 0.3);
}

.detail-like-count {
    margin-left: 5px;
    font-weight: 600;
}

.detail-time {
    font-size: 12px;
    color: #999;
    background: rgba(255, 255, 255, 0.8);
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* ?????? */
.detail-comments {
    margin-top: 20px;
    border-top: 2px solid var(--border-light);
    flex: 1;
    min-height: 0;
    padding-top: 15px;
}

.comments-title {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-size: 16px;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border-left: 4px solid var(--accent-primary);
}

.comment-input-area {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.comment-input-area textarea {
    width: calc(100% - 22px);
    min-height: 80px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-family: inherit;
    resize: vertical;
}

.comment-input-area textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--shadow-light);
    background: var(--bg-primary);
}

.comment-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.comment-count {
    font-size: 12px;
    color: var(--text-secondary);
}

.btn-comment {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow-medium);
}

.btn-comment:hover {
    background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-medium);
}

.btn-comment:disabled {
    background: var(--text-tertiary);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.comment-login-prompt {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 8px var(--shadow-light);
}

.comment-login-prompt a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.comment-login-prompt a:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

.comments-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.comments-loading {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-tertiary);
    font-style: italic;
}

.comment-item {
    padding: 15px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px var(--shadow-light);
}

.comment-item:hover {
    background: var(--bg-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px var(--shadow-medium);
}

.comment-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    padding: 2px 8px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.comment-time {
    font-size: 12px;
    color: var(--text-tertiary);
    background: var(--bg-primary);
    padding: 2px 6px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.comment-content {
    line-height: 1.6;
    font-size: 14px;
    word-wrap: break-word;
    color: var(--text-secondary);
    padding: 8px 0;
}

.comment-actions-item {
    margin-top: 10px;
    text-align: right;
}

.comment-delete {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    cursor: pointer;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.comment-delete:hover {
    background: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

.no-comments {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 2px dashed var(--border-color);
    color: var(--text-tertiary);
    font-style: italic;
}

/* ????? */
.main-container {
    display: flex;
    min-height: 100vh;
}

.left-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 90px;
    padding: 10px 0;
    overflow-y: auto;
    position: fixed;
    height: calc(100vh - 20px);
    z-index: 100;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-light);
}

/* ??????????? */
.left-sidebar {
    background: var(--accent-primary);
    border-right: 1px solid var(--border-light);
}

/* ????????????? */
.left-sidebar .feature-card {
    color: #fff;
}

.left-sidebar .quick-action-item {
    color: var(--text-primary);
}

.left-sidebar .user-section {
    color: var(--text-primary);
}

.left-sidebar .auth-btn {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
    border: 1px solid var(--border-color);
}

.left-sidebar .auth-btn:hover {
    background: var(--bg-primary);
}

/* ??????????? */
[data-theme="dark"] .left-sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
}

/* ????????????? */
[data-theme="dark"] .left-sidebar .feature-card {
    color: var(--text-primary);
}

[data-theme="dark"] .left-sidebar .quick-action-item {
    color: var(--text-primary);
}

[data-theme="dark"] .left-sidebar .user-section {
    color: var(--text-primary);
}

[data-theme="dark"] .left-sidebar .auth-btn {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .left-sidebar .auth-btn:hover {
    background: var(--bg-primary);
}

/* ????????????? */
[data-theme="dark"] .detail-params {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .detail-resource-grid {
    background: rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .detail-resource-item {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .detail-resource-icon {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .detail-params-title {
    color: var(--text-primary);
}

[data-theme="dark"] .detail-param-item {
    color: var(--text-secondary);
}

[data-theme="dark"] .detail-like-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

[data-theme="dark"] .detail-like-btn:hover {
    background: rgba(255, 71, 87, 0.2);
    border-color: #ff4757;
    color: #ff4757;
}

[data-theme="dark"] .detail-like-btn.liked {
    background: rgba(255, 71, 87, 0.25);
    border-color: #ff4757;
    color: #ff4757;
}

[data-theme="dark"] .detail-time {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

[data-theme="dark"] .detail-author {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .detail-avatar {
    border: 2px solid var(--bg-primary);
    box-shadow: 0 2px 8px var(--shadow-medium);
}

[data-theme="dark"] .detail-username {
    color: var(--text-primary);
}

[data-theme="dark"] .detail-comments {
    border-top: 2px solid var(--border-color);
}

.right-content {
    flex: 1;
    margin-left: 100px;
    padding: 5px 15px 15px 5px;
    overflow-y: auto;
    height: 100vh;
    box-sizing: border-box;
}

/* ???????? */
.user-section {
    border-radius: 16px;
    color: var(--text-primary);
    text-align: right;
}

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

.auth-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    background: var(--bg-primary);
    color: var(--accent-primary);
}

.login-btn {
    color: var(--accent-primary);
}

.register-btn {
    color: var(--accent-primary);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.user-info {
    display: flex;
    align-items: center;
    cursor: pointer;
    flex-direction: column;
}

.user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    margin: 8px;
}

.user-details {
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
}

.nickname {
    font-weight: bold;
    margin-bottom: 5px;
}

/* ?????? */
.section-title {
    font-weight: bold;
    color: var(--text-primary);
    padding-bottom: 5px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 5px;
}

/* ????????? */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    gap: 15px;
}

.section-header .section-title {
    margin-bottom: 0;
    flex-shrink: 0;
}

/* ?????? */
.filter-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-tag {
    padding: 6px 12px;
    border-radius: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-tag:hover {
    color: white;
}

.filter-tag.active {
    background: var(--bg-tertiary);
}

/* ????? */
.search-box {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.search-box input {
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 7px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 12px;
    width: 150px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    border-color: var(--accent-primary);
}

.search-box button {
    padding: 2px 8px;
    border: 1px solid var(--accent-primary);
    border-radius: 7px;
    background: var(--accent-primary);
    color: white;
    cursor: pointer;
    font-size: 1px;
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background: var(--accent-secondary);
    border-color: var(--accent-secondary);
}

/* Right content visual refresh */
.right-content {
    padding: 16px 24px 24px 18px;
    background: var(--bg-primary);
}

.right-content .article-view {
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.right-content .scrolling-notice {
    height: 36px;
    line-height: 36px;
    margin: 0 auto 18px;
    padding: 0 16px;
    width: min(100%, 1680px);
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    box-shadow: 0 8px 22px var(--shadow-light);
    backdrop-filter: blur(10px);
}

.right-content .scrolling-notice-item {
    color: var(--text-secondary);
    font-size: 13px;
}

.right-content .normal-features-section,
.right-content .inspiration-section {
    width: min(100%, 1680px);
    margin: 0 auto;
}

.right-content .normal-features-section {
    margin-bottom: 8px;
}

.right-content #normalFeaturesGrid {
    gap: 5px !important;
}

.right-content .section-title {
    min-height: 38px;
    margin: 0 0 12px;
    padding: 0;
    gap: 10px;
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: 0;
    font-weight: 800;
}

.right-content .section-title::before {
    content: '';
    width: 3px;
    height: 18px;
    border-radius: 99px;
    background: var(--accent-primary);
    flex: 0 0 auto;
}

.right-content .section-title {
    justify-content: flex-start;
}

.right-content .gallery-filter-controls {
    margin-left: auto;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.right-content .filter-tags {
    gap: 4px;
    padding: 3px;
    border: 1px solid var(--border-light);
    border-radius: 999px;
    background: var(--bg-secondary);
    box-shadow: inset 0 1px 0 var(--border-light);
}

.right-content .filter-tag {
    min-height: 26px;
    padding: 0 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 12px;
}

.right-content .filter-tag:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.right-content .filter-tag.active {
    color: #fff;
    background: var(--accent-primary);
    box-shadow: 0 6px 16px var(--shadow-medium);
}

.right-content .search-box {
    min-height: 34px;
    padding: 3px 4px 3px 12px;
    gap: 8px;
    border: 1px solid var(--border-light);
    border-radius: 999px;
    background: var(--bg-secondary);
    box-shadow: 0 8px 20px var(--shadow-light);
}

.right-content .search-box:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px var(--shadow-light);
}

.right-content .search-box input {
    width: 210px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 13px;
}

.right-content .search-box button {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-primary);
    box-shadow: none;
}

.right-content .search-box button:hover {
    background: var(--accent-secondary);
}

.right-content .gallery-container {
    padding-top: 0;
}

.right-content .image-task-right {
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background-color: var(--bg-secondary);
    box-shadow: 0 8px 22px var(--shadow-light);
    isolation: isolate;
    box-sizing: border-box;
}

.right-content .image-task-right:hover,
.right-content .image-task-right:focus {
    transform: translateY(-2px);
    border-color: var(--accent-primary);
    box-shadow: 0 14px 30px var(--shadow-medium);
}

.right-content .image-task-right:active {
    transform: translateY(0) scale(0.99);
    box-shadow: 0 8px 18px var(--shadow-light);
}

.right-content .image-task-right::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.28));
    opacity: 1;
    z-index: 2;
}

.right-content .image-task-right::after {
    display: none;
}

.right-content .image-task-right.image-task-fallback::after {
    content: '';
    display: block;
    position: absolute;
    inset: 1px;
    border-radius: 9px;
    background:
        linear-gradient(145deg,
            color-mix(in srgb, var(--accent-primary) 18%, var(--bg-secondary)),
            var(--bg-secondary) 46%,
            color-mix(in srgb, var(--accent-secondary) 12%, var(--bg-tertiary))),
        var(--bg-secondary);
    z-index: 0;
}

.right-content .image-task-right.image-task-fallback::before {
    background:
        radial-gradient(circle at 30% 20%, var(--shadow-medium), transparent 34%),
        linear-gradient(180deg, transparent, var(--shadow-light));
}

.right-content .image-task-right:hover::before {
    opacity: 1;
}

.right-content .image-task-right video {
    transform: none;
}

.right-content .image-task-right:hover video {
    transform: scale(1.02);
}

.right-content .image-task-right>div:last-of-type {
    bottom: 8px !important;
    padding: 0 12px !important;
    box-sizing: border-box;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.right-content .image-task-right>div[style*="rotate(45deg)"] {
    box-shadow: 0 2px 8px var(--shadow-medium) !important;
}

.right-content .gallery-grid {
    width: 100%;
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
}

.right-content .waterfall-column {
    padding: 0;
    box-sizing: border-box;
}

.right-content .gallery-item {
    margin-bottom: 1px;
    border-radius: 10px;
    background: transparent;
    border: 0;
    box-shadow: none;
    transition: transform 0.22s ease;
}

.right-content .gallery-item:hover {
    transform: none;
}

.right-content .gallery-item-image-container {
    border-radius: 10px;
}

.right-content .gallery-item-image {
    width: 100%;
    margin-bottom: 0;
    border-radius: 10px;
}

.right-content .hist-video-thumb-img {
    opacity: 1;
}

.right-content .gallery-item-image:hover {
    transform: scale(1.025);
}

.right-content .gallery-item-info {
    width: 100%;
    padding: 26px 10px 10px;
    box-sizing: border-box;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(8, 13, 23, 0.78));
}

.right-content .gallery-item-title {
    font-size: 13px;
}

.right-content .gallery-item-stats {
    gap: 8px;
}

.right-content .gallery-item-avatar {
    width: 22px;
    height: 22px;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.right-content .gallery-item-play-icon {
    width: 52px;
    height: 52px;
    backdrop-filter: blur(8px);
}

.right-content .loading-message,
.right-content .no-data {
    padding: 64px 20px;
    border: 1px dashed rgba(148, 163, 184, 0.35);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.42);
    color: var(--text-secondary);
    font-size: 14px;
}

[data-theme="dark"] .right-content {
    background: var(--bg-primary);
}

[data-theme="dark"] .right-content .scrolling-notice,
[data-theme="dark"] .right-content .filter-tags,
[data-theme="dark"] .right-content .search-box,
[data-theme="dark"] .right-content .loading-message,
[data-theme="dark"] .right-content .no-data {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
}

[data-theme="dark"] .right-content .image-task-right {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
}

[data-theme="dark"] .right-content .filter-tag.active {
    background: var(--accent-primary);
    color: #fff;
}

[data-theme="dark"] .right-content .search-box button {
    background: var(--accent-primary);
    color: #fff;
}

[data-theme="dark"] .right-content .gallery-item {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

/* Right content detail polish */
.right-content {
    padding: 18px clamp(18px, 2vw, 28px) 28px clamp(12px, 1.4vw, 18px);
}

.right-content .scrolling-notice {
    height: 34px;
    line-height: 34px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.right-content .scrolling-notice-item {
    font-size: 13px;
    font-weight: 500;
}

.right-content .normal-features-section {
    margin-bottom: 18px;
}

.right-content .inspiration-section {
    padding-top: 2px;
}

.right-content .section-title {
    min-height: 36px;
    margin-bottom: 10px;
    gap: 9px;
    font-size: 18px;
    font-weight: 800;
}

.right-content .section-title::before {
    width: 3px;
    height: 17px;
    box-shadow: 0 0 0 3px var(--shadow-light);
}

.right-content .gallery-filter-controls {
    gap: 8px !important;
}

.right-content .filter-tags {
    min-height: 32px;
    padding: 3px;
    gap: 3px;
    border-radius: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.right-content .filter-tags::-webkit-scrollbar {
    display: none;
}

.right-content .filter-tag {
    min-height: 24px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.right-content .filter-tag.active {
    box-shadow: 0 5px 12px var(--shadow-medium);
}

.right-content .search-box {
    min-height: 32px;
    padding: 2px 3px 2px 11px;
    border-radius: 8px;
}

.right-content .search-box input {
    width: 205px;
    font-size: 12px;
    font-weight: 500;
}

.right-content .search-box button {
    width: 26px;
    height: 26px;
    border-radius: 15px;
}

.right-content .search-box button img {
    width: 17px !important;
    height: 17px !important;
}

.right-content .image-task-right {
    border-radius: 8px;
    box-shadow: 0 8px 20px var(--shadow-light);
}

.right-content .image-task-right:hover,
.right-content .image-task-right:focus {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px var(--shadow-medium);
}

.right-content .image-task-right::before {
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.42) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), transparent 35%);
}

.right-content .image-task-right.image-task-fallback::after {
    inset: 0;
    border-radius: 8px;
}

.right-content .image-task-right.image-task-fallback::before {
    background:
        radial-gradient(circle at 24% 20%, var(--shadow-medium), transparent 30%),
        radial-gradient(circle at 78% 72%, var(--shadow-light), transparent 34%),
        linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.22));
}

.right-content .image-task-right>div:last-of-type {
    bottom: 0 !important;
    left: 0 !important;
    transform: none !important;
    width: 100% !important;
    min-height: 42px;
    padding: 18px 10px 10px !important;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.34));
    font-size: 13px !important;
    line-height: 1.2;
}

.right-content .image-task-right.image-task-fallback>div:last-of-type {
    color: var(--text-primary) !important;
    text-shadow: none;
    background: linear-gradient(180deg, transparent, var(--shadow-light));
}

.right-content .image-task-right>div[style*="rotate(45deg)"] {
    top: 8px !important;
    right: -27px !important;
    padding: 2px 0 !important;
    font-size: 10px !important;
    letter-spacing: 0;
    opacity: 0.92;
}

.right-content .gallery-grid {
    border-radius: 8px;
}

.right-content .gallery-item {
    border-radius: 10px;
}

.right-content .gallery-item-image-container,
.right-content .gallery-item-image {
    border-radius: 10px;
}

.right-content .gallery-item-info {
    padding: 24px 9px 9px;
}

.right-content .gallery-item-avatar {
    width: 20px;
    height: 20px;
}

.right-content .gallery-item-stats {
    font-size: 11px;
}

.right-content .gallery-item-username,
.right-content .gallery-item-time,
.right-content .gallery-item-likes {
    line-height: 20px;
}

.right-content .loading-message,
.right-content .no-data {
    padding: 56px 20px;
    border-radius: 8px;
    background: var(--bg-secondary);
    border-color: var(--border-light);
}

[data-theme="dark"] .right-content .image-task-right.image-task-fallback>div:last-of-type {
    color: var(--text-primary) !important;
}

.back-btn {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease;
}

.back-btn:hover {
    background: var(--accent-secondary);
}

/* ??????? */
.quick-actions {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    color: var(--text-primary);
}

.quick-action-item {
    display: flex;
    align-items: center;
    flex-direction: column;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 10px;
}

.quick-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-action-item span {
    font-size: 14px;
    font-weight: 500;
}

/* ???????? */
.features-grid {
    display: grid;
    grid-template-columns: 1;
    gap: 20px;
    justify-content: center;
}

.feature-card {
    position: relative;
    overflow: hidden;
    color: var(--text-primary);
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0.7;
    padding: 0 5px;
}

.feature-card b2 {
    position: absolute;
    right: 0.5rem;
    top: -1.2rem;
    font-size: 0.6rem;
}

/* ??????? */
.page-modal {
    display: none;
    position: fixed;
    right: 0;
    top: 0;
    width: calc(100% - 90px);
    height: 100%;
    background: var(--bg-primary);
}

.page-modal-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.page-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--accent-gradient);
    color: white;
}

.page-modal-header h3 {
    margin: 0;
    font-size: 20px;
}

.page-modal-close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: white;
    transition: color 0.3s ease;
}

.page-modal-close:hover {
    color: #ffeb3b;
}

.page-modal-body {
    flex: 1;
    overflow-y: auto;
    height: calc(100vh - 80px);
    box-sizing: border-box;
}

.page-modal-body iframe {
    width: 100%;
    height: calc(100% - 5px);
    border: none;
}

/* ????? */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-primary);
    margin: auto;
    padding: 30px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }

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

/* ???? */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ???????? */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* ???????? */
.wechat-login-section {
    animation: fadeIn 0.3s ease-out;
}

.password-login-section {
    animation: fadeIn 0.3s ease-out;
}

.modal-content h4 {
    color: var(--accent-primary);
    text-align: center;
    margin-bottom: 25px;
    font-size: 20px;
    font-weight: bold;
}

.close {
    color: #999;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    position: absolute;
    right: 15px;
    top: 10px;
}

.close:hover {
    color: #667eea;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    font-size: 14px;
}

.form-group input {
    width: calc(100% - 32px);
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-primary {
    background: var(--accent-gradient);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-radius: 8px;
    display: none;
}

.modal-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.modal-footer a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-footer a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* ?????? */
.platform-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.platform-title {
    text-align: center;
}

.platform-title-main {
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1px;
}

.platform-title-sub {
    font-size: 12px;
    margin-top: 2px;
}

.checkin-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.history-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.user-functions {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-modal-content {
    width: 400px;
    max-width: 70%;
    min-width: 0;
}

.register-modal-content {
    width: 400px;
    max-width: 90%;
    min-width: 0;
}

.page-info-hidden {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.user-app {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ????? */
@media (max-width: 768px) {
    .user-info {
        position: fixed;
        top: 3px;
        right: 8px;
        align-items: normal;
        flex-direction: row;
        z-index: 9999;
    }

    .user-info img {
        border-width: 2px;
        margin: 4px;
    }

    .user-section {
        position: fixed;
        top: 8px;
        right: 12px;
        z-index: 5000;
    }

    .user-details {
        font-size: 0.7rem;
        margin-top: 5px;
    }

    .platform-header .quick-action-item img.checkin-icon {
        display: none;
    }

    .app-functions {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 4px 8px;
        background: var(--accent-primary);
        height: 50px;
        box-sizing: border-box;
        border-top: 1px solid var(--border-light);
    }

    [data-theme="dark"] .app-functions {
        background: var(--bg-secondary);
        border-top: 1px solid var(--border-color);
    }

    .user-app {
        position: fixed;
        left: 55px;
        top: 3px;
        justify-content: space-between;
        flex-direction: unset;
        z-index: 9999;
        gap: 6px;
    }

    .quick-action-item {
        width: 32px;
        height: 32px;
    }

    .quick-action-item img {
        width: 24px !important;
        height: 24px !important;
    }

    .section-title {
        flex-direction: column;
    }

    /* ????????????????? */
    .gallery-filter-controls {
        display: none !important;
    }

    .platform-header {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 1001 !important;
        gap: 8px;
        padding: 4px 8px;
        height: 100%;
        overflow: visible;
    }

    .platform-header>* {
        visibility: visible !important;
        opacity: 1 !important;
    }

    .platform-logo {
        width: 36px !important;
        height: 36px !important;
        margin: 0 !important;
        flex-shrink: 0;
    }

    .platform-title {
        line-height: 16px;
        width: calc(100% - 80px);
    }

    .platform-header .quick-action-item {
        width: 28px !important;
        height: 28px !important;
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        flex-shrink: 0;
    }

    .platform-header .quick-action-item img.checkin-icon {
        width: 20px !important;
        height: 20px !important;
    }

    .search-box input {
        width: 40px;
    }

    .gallery-grid {
        column-count: auto;
    }

    .page-modal {
        width: 100%;
    }

    .banner-slider {
        height: 70px;
    }

    .banner-content p {
        font-size: 0.8rem;
    }

    .gallery-item-stats {
        font-size: 10px;
    }

    .detail-modal-content {
        width: calc(100vw - 40px);
        height: calc(100vh - 30px);
        border-radius: 0;
        max-width: none;
        max-height: none;
    }

    .detail-modal-body {
        flex-direction: column;
        gap: 15px;
    }

    .detail-image-section {
        flex: 0 0 auto;
        height: 60vh;
        max-height: 500px;
        min-height: 250px;
    }

    .detail-info-section {
        flex: 1;
        width: auto;
        min-width: auto;
        min-height: 0;
    }

    .quick-action-item.selected {
        border: none;
        border-bottom: 2px solid #fff;
    }

    .feature-card.selected {
        border: none;
        height: 45px;
    }

    .main-container {
        flex-direction: column;
    }

    .left-sidebar {
        padding: 3px 10px;
        width: calc(100% - 20px);
        height: 45px;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000 !important;
        background: var(--accent-primary) !important;
        border-bottom: 1px solid var(--border-light) !important;
    }

    [data-theme="dark"] .left-sidebar {
        background: var(--bg-secondary) !important;
        border-bottom: 1px solid var(--border-color) !important;
    }

    .features-grid {
        display: flex;
        gap: 6px;
        align-items: center;
        justify-content: space-around;
        height: 100%;
    }

    .feature-card {
        text-align: center;
        height: 40px;
        width: auto;
        min-width: 40px;
        padding: 2px 6px;
        font-size: 0.65rem;
        gap: 3px;
    }

    .feature-card img {
        width: 24px !important;
        height: 24px !important;
        margin: 0 !important;
    }

    .feature-card span {
        line-height: 1;
        margin: 0;
        padding: 0;
    }

    .feature-card b2 {
        display: none;
    }

    .right-content {
        margin: 50px 0 55px 10px;
        overflow-y: clip;
        height: calc(100vh - 105px);
        box-sizing: border-box;
        padding: 10px 10px 5px 0;
    }

    .right-content .scrolling-notice {
        height: 34px;
        line-height: 34px;
        margin-bottom: 10px;
        border-radius: 10px;
    }

    .right-content .normal-features-section,
    .right-content .inspiration-section {
        width: 100%;
    }

    .right-content .section-title {
        min-height: auto;
        margin-bottom: 10px;
        align-items: flex-start;
        gap: 8px;
        font-size: 18px;
    }

    .right-content .section-title::before {
        width: 26px;
        height: 3px;
    }

    .right-content .gallery-grid {
        width: calc(100% + 8px);
        margin: 0 -4px;
    }

    .right-content .waterfall-column {
        padding: 0 4px;
    }

    .right-content .gallery-item {
        margin-bottom: 8px;
        border-radius: 10px;
    }

    .right-content .gallery-item-image-container,
    .right-content .gallery-item-image {
        border-radius: 10px;
    }

    .right-content .image-task-right {
        border-radius: 10px;
    }

    .right-content .image-task-right::before,
    .right-content .image-task-right.image-task-fallback::after {
        border-radius: 10px;
    }

    .right-content .image-task-right>div:last-of-type {
        min-height: 34px;
        padding: 14px 6px 7px !important;
        font-size: 11px !important;
    }

    .right-content .image-task-right>div[style*="rotate(45deg)"] {
        top: 6px !important;
        right: -30px !important;
        font-size: 9px !important;
    }

    .right-content .filter-tags,
    .right-content .search-box {
        border-radius: 8px;
    }

    .gallery-item-image {
        height: auto;
    }

    .page-modal {
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        /* ?????????????? */
        right: 0 !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        position: fixed !important;
        z-index: 10000 !important;
        overflow: hidden !important;
    }

    .page-modal-content {
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .page-modal-body {
        width: 100%;
        height: 100%;
        overflow: hidden;
        position: relative;
    }

    .page-modal-body iframe {
        width: 100%;
        height: 100%;
        border: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* ????????? */
    .page-modal-back-btn {
        position: fixed !important;
        top: 15px !important;
        left: 15px !important;
        z-index: 10001 !important;
        width: 45px !important;
        height: 45px !important;
        border-radius: 50% !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(102, 126, 234, 0.95) !important;
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
        border: 2px solid rgba(255, 255, 255, 0.5) !important;
    }

    .page-modal-back-btn:hover,
    .page-modal-back-btn:active {
        transform: scale(0.95) !important;
        background: rgba(102, 126, 234, 1) !important;
    }

    .page-modal-back-btn i {
        font-size: 18px !important;
    }

    /* ????????????? */
    .image-task-right:hover {
        /* ??????????????????? */
        transform: translateY(-4px) scale(1.01);
        box-shadow: 0 8px 16px var(--shadow-medium), 0 0 15px rgba(102, 126, 234, 0.2);
    }

    .image-task-right:active {
        /* ????????? */
        transform: translateY(-2px) scale(0.99);
        box-shadow: 0 4px 8px var(--shadow-light);
    }

    /* ???????????????? */
    .image-task-right {
        animation-duration: 0.4s;
    }

    .image-task-right:nth-child(1) {
        animation-delay: 0s;
    }

    .image-task-right:nth-child(2) {
        animation-delay: 0.05s;
    }

    .image-task-right:nth-child(3) {
        animation-delay: 0.1s;
    }

    .image-task-right:nth-child(4) {
        animation-delay: 0.15s;
    }

    .image-task-right:nth-child(5) {
        animation-delay: 0.2s;
    }

    .image-task-right:nth-child(6) {
        animation-delay: 0.25s;
    }

    .image-task-right:nth-child(7) {
        animation-delay: 0.3s;
    }

    .image-task-right:nth-child(8) {
        animation-delay: 0.35s;
    }

    .image-task-right:nth-child(9) {
        animation-delay: 0.4s;
    }

    .image-task-right:nth-child(10) {
        animation-delay: 0.45s;
    }
}

/* ========== Universal Prompt/Confirm Modal (No overlay) ========== */
.app-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100000;
    display: none;
    width: min(88vw, 420px);
    max-width: 420px;
}

.app-modal.open {
    display: block;
    animation: appModalFadeIn .18s ease-out;
}

.app-modal .modal-box {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 0px 20px var(--scrollbar-thumb-hover);
    overflow: hidden;
}

.app-modal .modal-header {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 14px;
    background: var(--bg-tertiary);
}

.app-modal .modal-body {
    padding: 16px 14px;
    font-size: 14px;
    line-height: 1.6;
    word-break: break-word;
}

.app-modal .modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    padding: 12px 14px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.app-modal .btn {
    appearance: none;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all .15s ease;
}

.app-modal .btn:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.app-modal .btn-primary {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
}

.app-modal .btn-primary:hover {
    filter: brightness(1.05);
}

@keyframes appModalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -54%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Mobile page modal stability/performance overrides */
.page-modal {
    contain: layout paint size;
    will-change: opacity;
}

.page-modal-content,
.page-modal-body {
    min-height: 0;
    overscroll-behavior: contain;
}

.page-modal-body iframe {
    display: block;
    background: var(--bg-primary);
}

.page-modal {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(18px) scale(0.985);
    transition: width 0.3s ease, opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1), transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0) scale(1);
}

.page-modal.is-closing {
    opacity: 0;
    visibility: visible;
    pointer-events: none;
    transform: translateX(18px) scale(0.985);
}

.page-modal-content {
    transform: translateZ(0);
}

.page-modal-body iframe {
    transition: opacity 0.22s ease;
}

@media (max-width: 768px) {
    .page-modal {
        contain: none;
        will-change: auto;
        height: 100svh !important;
        transform: none !important;
        backface-visibility: visible;
    }

    @supports (height: 100dvh) {
        .page-modal {
            height: 100dvh !important;
        }
    }

    .page-modal-content,
    .page-modal-body {
        height: 100% !important;
        max-height: 100% !important;
        transform: none;
    }

    .page-modal-body iframe {
        height: 100% !important;
        max-height: 100% !important;
        opacity: 1 !important;
        transform: none;
        transition: none !important;
        backface-visibility: visible;
    }

    .page-modal-back-btn {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {

    .page-modal,
    .page-modal-body iframe,
    .page-modal-back-btn {
        transition: none !important;
        animation: none !important;
    }
}

/* Cinematic login experience */
.cinematic-login-modal {
    background:
        radial-gradient(circle at 12% 20%, rgba(0, 229, 255, 0.18), transparent 30%),
        radial-gradient(circle at 72% 18%, rgba(255, 177, 66, 0.16), transparent 24%),
        radial-gradient(circle at 48% 88%, rgba(255, 82, 82, 0.12), transparent 28%),
        linear-gradient(115deg, rgba(2, 6, 13, 0.97), rgba(8, 10, 16, 0.9) 48%, rgba(3, 6, 10, 0.98));
    padding: 28px;
    overflow: hidden;
}

.cinematic-login-modal::before,
.cinematic-login-modal::after {
    content: "";
    position: absolute;
    inset: -22%;
    pointer-events: none;
}

.cinematic-login-modal::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    transform: perspective(600px) rotateX(58deg) translateY(16%);
    animation: cinematicGridDrift 12s linear infinite;
}

.cinematic-login-modal::after {
    background:
        linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.22), transparent),
        linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    opacity: 0.45;
    transform: rotate(-10deg);
    animation: cinematicLightSweep 6s ease-in-out infinite alternate;
}

.cinematic-login-shell {
    width: min(1120px, calc(100vw - 56px)) !important;
    max-width: 1120px !important;
    min-height: min(720px, calc(100vh - 56px));
    padding: 0 !important;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.85fr);
    overflow: hidden;
    border: 1px solid rgba(135, 231, 255, 0.32);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(8, 17, 32, 0.92), rgba(4, 8, 16, 0.98)),
        radial-gradient(circle at 34% 35%, rgba(0, 229, 255, 0.16), transparent 34%),
        radial-gradient(circle at 20% 85%, rgba(255, 177, 66, 0.12), transparent 30%),
        #050910;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.48), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    color: #f8fbff;
    animation: cinematicPanelIn 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.cinematic-login-close {
    position: absolute;
    z-index: 5;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    float: none;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: rgba(4, 8, 16, 0.56);
    color: rgba(255, 255, 255, 0.76);
    font-size: 28px;
    line-height: 1;
    backdrop-filter: blur(12px);
}

.cinematic-login-close:hover {
    color: #ffffff;
    border-color: rgba(0, 229, 255, 0.62);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.22);
}

.cinematic-login-stage {
    position: relative;
    min-height: 100%;
    padding: 42px;
    overflow: hidden;
    isolation: isolate;
}

.cinematic-bg-video {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.52;
    filter: saturate(0.9) contrast(1.08) brightness(0.72);
    pointer-events: none;
}

.cinematic-login-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 120px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 84px),
        radial-gradient(circle at 22% 68%, rgba(255, 177, 66, 0.13), transparent 34%),
        radial-gradient(circle at 78% 28%, rgba(0, 229, 255, 0.18), transparent 32%),
        linear-gradient(135deg, #09131f, #05080f 62%, #020409);
    opacity: 1;
    z-index: -3;
    transform: scale(1.04);
    animation: cinematicBackdropPulse 9s ease-in-out infinite alternate;
}

.cinematic-login-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 12, 0.42), rgba(2, 6, 12, 0.16) 45%, rgba(2, 6, 12, 0.36)),
        linear-gradient(180deg, rgba(2, 6, 12, 0.44), transparent 34%, rgba(2, 6, 12, 0.52)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 16px),
        linear-gradient(rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 18px);
    opacity: 0.62;
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: -1;
}

.cinematic-scanline {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    height: 18%;
    opacity: 0.34;
    mix-blend-mode: screen;
    animation: cinematicScan 5.6s linear infinite;
}

.studio-projector-beam {
    position: absolute;
    left: -18%;
    top: 8%;
    width: 82%;
    height: 78%;
    background: linear-gradient(100deg, rgba(255, 230, 179, 0.22), rgba(0, 229, 255, 0.12) 44%, transparent 78%);
    clip-path: polygon(0 38%, 100% 0, 100% 100%, 0 62%);
    filter: blur(2px);
    opacity: 0.58;
    mix-blend-mode: screen;
    animation: projectorSweep 6.2s ease-in-out infinite alternate;
}

.lens-iris {
    position: absolute;
    right: 42px;
    top: 154px;
    width: 150px;
    height: 150px;
    z-index: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 0.24) 0 3%, transparent 16%),
        radial-gradient(circle, rgba(0, 229, 255, 0.18) 0 18%, transparent 34%),
        radial-gradient(circle, rgba(2, 6, 11, 0.9) 0 18%, rgba(10, 24, 35, 0.64) 19% 35%, transparent 36%),
        conic-gradient(from -10deg, rgba(210, 246, 255, 0.16) 0 22deg, rgba(3, 8, 14, 0.72) 22deg 60deg, rgba(142, 215, 235, 0.12) 60deg 88deg, rgba(3, 8, 14, 0.74) 88deg 132deg, rgba(255, 221, 163, 0.1) 132deg 156deg, rgba(3, 8, 14, 0.72) 156deg 210deg, rgba(140, 221, 242, 0.12) 210deg 246deg, rgba(3, 8, 14, 0.72) 246deg 312deg, rgba(210, 246, 255, 0.14) 312deg 360deg);
    border: 1px solid rgba(198, 245, 255, 0.18);
    box-shadow:
        inset 0 0 0 7px rgba(255, 255, 255, 0.025),
        inset 0 0 0 15px rgba(0, 229, 255, 0.035),
        inset 0 0 42px rgba(0, 0, 0, 0.72),
        0 0 34px rgba(0, 229, 255, 0.13),
        0 22px 50px rgba(0, 0, 0, 0.28);
    opacity: 0.4;
    mix-blend-mode: screen;
    animation: lensBreathe 5s ease-in-out infinite;
}

.lens-iris::before,
.lens-iris::after {
    content: "";
    position: absolute;
    inset: 16px;
    border-radius: 50%;
}

.lens-iris::before {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.14), transparent 16%),
        repeating-radial-gradient(circle, transparent 0 18px, rgba(255, 255, 255, 0.035) 19px 20px);
    box-shadow:
        inset 0 0 0 1px rgba(0, 229, 255, 0.12),
        inset 0 0 32px rgba(0, 229, 255, 0.08);
    animation: cinematicRotate 22s linear infinite;
}

.lens-iris::after {
    inset: 55px;
    background:
        radial-gradient(circle at 42% 35%, rgba(111, 231, 255, 0.24) 0 8%, transparent 18%),
        radial-gradient(circle, #010309 0 46%, rgba(0, 229, 255, 0.26) 49% 53%, rgba(255, 255, 255, 0.05) 54% 62%, transparent 64%);
    box-shadow:
        inset 0 0 20px rgba(0, 0, 0, 0.9),
        0 0 30px rgba(0, 229, 255, 0.42),
        0 0 60px rgba(255, 177, 66, 0.12);
}

.lens-iris i {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 62px;
    height: 40px;
    transform-origin: 0 0;
    border-radius: 8px 54px 10px 34px;
    clip-path: polygon(0 18%, 100% 0, 74% 100%, 0 86%);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 34%),
        linear-gradient(90deg, rgba(10, 22, 32, 0.7), rgba(105, 146, 164, 0.24));
    mix-blend-mode: screen;
    opacity: 0.5;
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.12));
}

.lens-iris i:nth-child(1) { transform: rotate(0deg) translate(20px, -20px); }
.lens-iris i:nth-child(2) { transform: rotate(60deg) translate(20px, -20px); }
.lens-iris i:nth-child(3) { transform: rotate(120deg) translate(20px, -20px); }
.lens-iris i:nth-child(4) { transform: rotate(180deg) translate(20px, -20px); }
.lens-iris i:nth-child(5) { transform: rotate(240deg) translate(20px, -20px); }
.lens-iris i:nth-child(6) { transform: rotate(300deg) translate(20px, -20px); }

.lens-iris b {
    display: none;
}

.clapper-board {
    position: absolute;
    left: 58px;
    bottom: 124px;
    z-index: 2;
    width: 112px;
    display: block;
    transform: rotate(-5deg);
    opacity: 0.34;
    filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.22));
}

.clapper-stripe {
    height: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-radius: 6px 6px 0 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transform-origin: left bottom;
    animation: clapperTap 3.8s ease-in-out infinite;
}

.clapper-stripe i:nth-child(odd) {
    background: rgba(255, 255, 255, 0.9);
}

.clapper-stripe i:nth-child(even) {
    background: rgba(5, 10, 18, 0.9);
}

.clapper-body {
    padding: 8px 9px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-top: 0;
    border-radius: 0 0 6px 6px;
    background: rgba(4, 12, 21, 0.72);
    backdrop-filter: blur(10px);
}

.clapper-body span,
.clapper-body em {
    display: block;
    color: rgba(158, 243, 255, 0.76);
    font-size: 8px;
    font-style: normal;
    letter-spacing: 0.14em;
}

.clapper-body strong {
    display: block;
    margin: 3px 0;
    color: #ffffff;
    font-size: 9px;
    letter-spacing: 0.06em;
}

.cinematic-orbit {
    position: absolute;
    border: 1px solid rgba(0, 229, 255, 0.24);
    border-radius: 50%;
    pointer-events: none;
}

.cinematic-orbit::before,
.cinematic-orbit::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffb142;
    box-shadow: 0 0 18px rgba(255, 177, 66, 0.72);
}

.cinematic-orbit-a {
    width: 420px;
    height: 420px;
    left: -120px;
    top: 120px;
    animation: cinematicRotate 18s linear infinite;
}

.cinematic-orbit-a::before {
    left: 78%;
    top: 10%;
}

.cinematic-orbit-a::after {
    left: 12%;
    bottom: 18%;
    background: #00e5ff;
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.72);
}

.cinematic-orbit-b {
    width: 280px;
    height: 280px;
    right: 62px;
    bottom: 88px;
    border-color: rgba(255, 82, 82, 0.28);
    animation: cinematicRotate 14s linear infinite reverse;
}

.cinematic-orbit-b::before {
    right: 22%;
    top: 0;
    background: #ff5252;
}

.cinematic-orbit-b::after {
    left: 4%;
    top: 62%;
    background: #35d07f;
}

.cinematic-brand {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 700;
}

.cinematic-brand img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 0 24px rgba(0, 229, 255, 0.18);
}

.cinematic-audio-toggle {
    display: none;
    position: relative;
    width: 34px;
    height: 34px;
    margin-left: 2px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: rgba(4, 10, 18, 0.52);
    color: rgba(255, 255, 255, 0.88);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cinematic-audio-toggle:hover {
    border-color: rgba(0, 229, 255, 0.58);
    background: rgba(0, 229, 255, 0.12);
    color: #ffffff;
    transform: translateY(-1px);
}

.cinematic-audio-toggle::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0;
    transform: rotate(-42deg) scaleX(0.2);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cinematic-audio-toggle.is-muted::after {
    opacity: 0.92;
    transform: rotate(-42deg) scaleX(1);
}

.cinematic-audio-glyph {
    position: relative;
    width: 18px;
    height: 18px;
}

.cinematic-audio-glyph::before {
    content: "";
    position: absolute;
    left: 1px;
    top: 5px;
    width: 12px;
    height: 9px;
    background: currentColor;
    clip-path: polygon(0 30%, 35% 30%, 76% 0, 76% 100%, 35% 70%, 0 70%);
}

.cinematic-audio-glyph::after {
    content: "";
    position: absolute;
    right: 0;
    top: 3px;
    width: 8px;
    height: 12px;
    border: 2px solid currentColor;
    border-left: 0;
    border-top-color: transparent;
    border-bottom-color: transparent;
    border-radius: 0 999px 999px 0;
}

.cinematic-audio-toggle.is-muted .cinematic-audio-glyph::after {
    opacity: 0.18;
}

.cinematic-title {
    position: relative;
    z-index: 2;
    max-width: 540px;
    margin-top: 152px;
}

.cinematic-title span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #dffaff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: rgba(1, 13, 22, 0.42);
    backdrop-filter: blur(10px);
}

.cinematic-title strong {
    display: block;
    margin-top: 18px;
    color: #ffffff;
    font-size: clamp(38px, 4.4vw, 62px);
    line-height: 1.02;
    letter-spacing: 0;
    text-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 34px rgba(0, 229, 255, 0.12);
}

.cinematic-title p {
    max-width: 450px;
    margin: 18px 0 0;
    color: rgba(238, 247, 255, 0.72);
    font-size: 16px;
    line-height: 1.8;
}

.cinematic-preview {
    position: absolute;
    left: 42px;
    right: 42px;
    bottom: 96px;
    z-index: 2;
    max-width: 590px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(3, 8, 16, 0.72);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(18px);
    overflow: hidden;
}

.preview-toolbar {
    height: 34px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
}

.preview-toolbar span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.preview-toolbar span:nth-child(1) {
    background: #ff5252;
}

.preview-toolbar span:nth-child(2) {
    background: #ffb142;
}

.preview-toolbar span:nth-child(3) {
    background: #35d07f;
}

.preview-toolbar b {
    margin-left: 8px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.preview-screen {
    position: relative;
    height: 132px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 80px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 44px),
        radial-gradient(circle at 32% 66%, rgba(255, 177, 66, 0.26), transparent 25%),
        radial-gradient(circle at 68% 38%, rgba(0, 229, 255, 0.28), transparent 26%),
        linear-gradient(125deg, #08121f, #04101a 54%, #110c14);
}

.preview-screen::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background:
        linear-gradient(90deg, transparent 49%, rgba(255, 255, 255, 0.22) 50%, transparent 51%),
        linear-gradient(transparent 49%, rgba(255, 255, 255, 0.22) 50%, transparent 51%);
    opacity: 0.5;
}

.preview-screen::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0 8%, rgba(255, 255, 255, 0.12) 11%, transparent 14% 100%);
    opacity: 0.5;
    animation: previewExposureSweep 4.8s linear infinite;
}

.focus-reticle {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 92px;
    height: 92px;
    border: 1px solid rgba(0, 229, 255, 0.68);
    transform: translate(-50%, -50%);
    animation: cinematicFocus 2.4s ease-in-out infinite;
}

.focus-reticle::before,
.focus-reticle::after {
    content: "";
    position: absolute;
    background: rgba(0, 229, 255, 0.75);
}

.focus-reticle::before {
    left: 50%;
    top: -18px;
    width: 1px;
    height: 128px;
}

.focus-reticle::after {
    left: -18px;
    top: 50%;
    width: 128px;
    height: 1px;
}

.motion-subject {
    position: absolute;
    left: 21%;
    bottom: 18px;
    width: 196px;
    height: 92px;
    border-radius: 4px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent 38%),
        linear-gradient(90deg, rgba(0, 229, 255, 0.72), rgba(255, 177, 66, 0.7));
    clip-path: polygon(0 68%, 13% 40%, 27% 52%, 42% 18%, 54% 42%, 67% 12%, 82% 56%, 100% 28%, 100% 100%, 0 100%);
    filter: drop-shadow(0 0 22px rgba(0, 229, 255, 0.28));
    animation: cinematicSubject 5s ease-in-out infinite alternate;
}

.hud-copy {
    position: absolute;
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.72);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    background: rgba(0, 0, 0, 0.24);
    z-index: 2;
}

.hud-copy-a {
    top: 20px;
    right: 20px;
}

.hud-copy-b {
    left: 20px;
    bottom: 20px;
}

.timeline-track {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.5fr 0.7fr 1fr;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.timeline-track i {
    position: relative;
    height: 20px;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.44), rgba(255, 177, 66, 0.36));
    animation: cinematicTimeline 2.8s ease-in-out infinite;
    overflow: hidden;
}

.timeline-track i::before {
    content: attr(data-track);
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.72);
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
}

.timeline-track i:nth-child(2n) {
    background: linear-gradient(90deg, rgba(255, 82, 82, 0.4), rgba(53, 208, 127, 0.32));
    animation-delay: -1s;
}

.timeline-playhead {
    position: absolute;
    left: 12px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: #ffffff;
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.82), 0 0 30px rgba(0, 229, 255, 0.6);
    animation: timelinePlayhead 4.2s linear infinite;
}

.storyboard-wall {
    position: absolute;
    right: 20px;
    bottom: 18px;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 42px);
    gap: 8px;
}

.storyboard-wall i {
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent),
        linear-gradient(145deg, rgba(0, 229, 255, 0.28), rgba(255, 177, 66, 0.18));
    box-shadow: inset 0 -10px 16px rgba(0, 0, 0, 0.18);
    animation: storyboardPulse 3s ease-in-out infinite;
}

.storyboard-wall i:nth-child(2) {
    animation-delay: -1s;
}

.storyboard-wall i:nth-child(3) {
    animation-delay: -2s;
}

.film-strip {
    position: absolute;
    left: -5%;
    width: 110%;
    height: 50px;
    opacity: 0.22;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.34) 0 12px, transparent 12px 30px),
        linear-gradient(180deg, transparent 0 10px, rgba(255, 255, 255, 0.16) 10px 19px, transparent 19px 31px, rgba(255, 255, 255, 0.16) 31px 40px, transparent 40px);
    transform: rotate(-7deg);
}

.film-strip-top {
    top: 20px;
    animation: cinematicStrip 14s linear infinite;
}

.film-strip-bottom {
    bottom: 58px;
    animation: cinematicStrip 16s linear infinite reverse;
}

.pipeline-nodes {
    position: absolute;
    left: 42px;
    right: 42px;
    bottom: 292px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.74);
}

.pipeline-nodes span {
    min-width: 48px;
    padding: 7px 10px;
    border: 1px solid rgba(158, 243, 255, 0.26);
    border-radius: 6px;
    background: rgba(4, 12, 21, 0.68);
    color: rgba(230, 251, 255, 0.88);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    box-shadow: 0 0 22px rgba(0, 229, 255, 0.08);
}

.pipeline-nodes i {
    flex: 1;
    height: 1px;
    min-width: 22px;
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.12), rgba(0, 229, 255, 0.8), rgba(255, 177, 66, 0.2));
    position: relative;
}

.pipeline-nodes i::after {
    content: "";
    position: absolute;
    right: -3px;
    top: -3px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffb142;
    box-shadow: 0 0 14px rgba(255, 177, 66, 0.78);
    animation: pipelineSignal 2.2s ease-in-out infinite;
}

.audio-wave {
    position: absolute;
    left: 42px;
    bottom: 254px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
    height: 26px;
}

.audio-wave i {
    width: 4px;
    height: 9px;
    border-radius: 4px;
    background: linear-gradient(180deg, #9ef3ff, #35d07f);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.34);
    animation: audioMeter 1.1s ease-in-out infinite;
}

.audio-wave i:nth-child(2n) { animation-delay: -0.2s; }
.audio-wave i:nth-child(3n) { animation-delay: -0.45s; }
.audio-wave i:nth-child(4n) { animation-delay: -0.7s; }

.timecode-readout {
    position: absolute;
    right: 42px;
    bottom: 252px;
    z-index: 2;
    padding: 6px 10px;
    border: 1px solid rgba(255, 177, 66, 0.28);
    border-radius: 4px;
    background: rgba(4, 12, 21, 0.66);
    color: #ffcf75;
    font-family: Consolas, Monaco, monospace;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.cinematic-metrics {
    position: absolute;
    left: 254px;
    right: auto;
    top: 132px;
    z-index: 2;
    display: flex;
    gap: 10px;
}

.cinematic-metrics span {
    min-width: 0;
    padding: 8px 10px;
    border-left: 2px solid #00e5ff;
    background: rgba(5, 13, 24, 0.58);
    color: rgba(255, 255, 255, 0.78);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: 0 0 24px rgba(0, 229, 255, 0.1);
}

.cinematic-login-panel {
    position: relative;
    z-index: 3;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 52px 46px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
        rgba(5, 9, 18, 0.78);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(24px);
}

.cinematic-login-panel::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, #00e5ff, #ffb142, transparent);
    animation: cinematicPanelGlow 3.4s ease-in-out infinite;
}

.cinematic-panel-kicker {
    color: #ffcf75;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.cinematic-login-panel h4 {
    margin: 12px 0 10px;
    color: #ffffff;
    text-align: left;
    font-size: 32px;
    line-height: 1.18;
    letter-spacing: 0;
}

.cinematic-panel-copy {
    margin: 0 0 24px;
    color: rgba(237, 246, 255, 0.68);
    font-size: 14px;
    line-height: 1.7;
}

.cinematic-login-panel .wechat-login-section {
    padding: 22px;
    border: 1px solid rgba(0, 229, 255, 0.28);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(0, 229, 255, 0.12), rgba(53, 208, 127, 0.08)),
        rgba(4, 12, 22, 0.66);
    color: #ffffff;
    box-shadow: inset 0 0 28px rgba(0, 229, 255, 0.08), 0 16px 42px rgba(0, 0, 0, 0.18);
}

.wechat-login-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 16px;
    font-weight: 800;
}

.wechat-login-heading img {
    width: 34px;
    height: 34px;
    filter: brightness(0) invert(1);
}

.cinematic-login-panel #wechatQRCode {
    margin: 0;
}

.cinematic-login-panel .qr-code-container {
    width: min(220px, 100%);
    height: auto;
    aspect-ratio: 1;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, #00e5ff, #ffb142, #35d07f) border-box;
    border: 2px solid transparent;
    border-radius: 8px;
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.04), 0 20px 40px rgba(0, 0, 0, 0.26);
}

.cinematic-login-panel .qr-code-loading {
    color: #17202c;
    font-size: 14px;
}

.cinematic-login-panel .qr-code-loading .spinner {
    border-color: rgba(0, 229, 255, 0.18);
    border-top-color: #00b8d4;
}

.cinematic-login-panel .qr-code-image {
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    border-radius: 6px;
}

.wechat-login-tip {
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    text-align: center;
}

.cinematic-login-panel #qrCodeStatus {
    min-height: 18px;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    text-align: center;
}

.login-mode-switch {
    margin-top: 18px;
    text-align: center;
}

.login-mode-switch a,
.cinematic-login-panel .modal-footer a {
    color: #9ef3ff;
    text-decoration: none;
    cursor: pointer;
}

.login-mode-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid rgba(158, 243, 255, 0.28);
    border-radius: 999px;
    background: rgba(0, 229, 255, 0.08);
    font-size: 14px;
    font-weight: 700;
}

.login-mode-switch a:hover,
.cinematic-login-panel .modal-footer a:hover {
    color: #ffffff;
    text-decoration: none;
}

.login-mode-switch.compact {
    margin-top: 14px;
}

.login-mode-switch.compact a {
    min-height: 32px;
    color: #35d07f;
    border-color: rgba(53, 208, 127, 0.32);
    background: rgba(53, 208, 127, 0.08);
    font-size: 13px;
}

.cinematic-login-panel #passwordLoginSection {
    margin-top: 6px;
    animation: fadeIn 0.3s ease-out;
}

.cinematic-login-panel .form-group {
    margin-bottom: 16px;
}

.cinematic-login-panel .form-group label {
    margin-bottom: 8px;
    color: rgba(244, 249, 255, 0.72);
    font-size: 13px;
    font-weight: 700;
}

.cinematic-login-panel .form-group input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(158, 243, 255, 0.24);
    border-radius: 8px;
    background: rgba(2, 8, 15, 0.58);
    color: #ffffff;
    font-size: 15px;
}

.cinematic-login-panel .form-group input::placeholder {
    color: rgba(255, 255, 255, 0.34);
}

.cinematic-login-panel .form-group input:focus {
    border-color: rgba(0, 229, 255, 0.76);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.14), 0 0 26px rgba(0, 229, 255, 0.16);
}

.cinematic-login-panel .btn-primary {
    min-height: 48px;
    border-radius: 8px;
    background: linear-gradient(135deg, #00b8d4, #35d07f 48%, #ffb142);
    color: #06111b;
    font-weight: 900;
    box-shadow: 0 16px 36px rgba(0, 229, 255, 0.22);
}

.cinematic-login-panel .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 42px rgba(53, 208, 127, 0.22);
}

.cinematic-login-panel .error-message {
    border-color: rgba(255, 82, 82, 0.36);
    background: rgba(255, 82, 82, 0.12);
    color: #ffb3b3;
}

.cinematic-login-panel .modal-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.cinematic-login-panel .modal-footer span {
    color: rgba(255, 255, 255, 0.38);
}

.cinematic-login-modal.cinematic-has-video {
    inset: 0;
    width: 100vw;
    height: 100vh;
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
    background:
        radial-gradient(circle at 18% 50%, rgba(0, 229, 255, 0.1), transparent 28%),
        linear-gradient(115deg, rgba(2, 5, 10, 0.94), rgba(3, 6, 10, 0.9));
}

.cinematic-login-modal.cinematic-has-video::before,
.cinematic-login-modal.cinematic-has-video::after {
    display: none;
}

.cinematic-login-modal.cinematic-has-video .cinematic-login-shell {
    position: relative;
    width: 100vw !important;
    max-width: none !important;
    min-height: 100vh;
    height: 100vh;
    border-radius: 0;
    border: 0;
    background: #050910;
    box-shadow: none;
    grid-template-columns: minmax(0, 1fr) clamp(390px, 28vw, 440px);
    align-items: center;
}

.cinematic-login-modal.cinematic-has-video .cinematic-login-stage {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    box-sizing: border-box;
    background: #050910;
    pointer-events: none;
}

.cinematic-login-modal.cinematic-has-video .cinematic-bg-video {
    z-index: -2;
    width: 100%;
    height: 100%;
    opacity: 1;
    object-position: left center;
    filter: saturate(0.98) contrast(1.04) brightness(0.92);
}

.cinematic-login-modal.cinematic-has-video .cinematic-login-stage::before {
    display: none;
}

.cinematic-login-modal.cinematic-has-video .cinematic-login-stage::after {
    display: block;
    z-index: -1;
    opacity: 1;
    mix-blend-mode: normal;
    background:
        linear-gradient(90deg, rgba(2, 5, 10, 0.02) 0%, rgba(2, 5, 10, 0.08) 46%, rgba(4, 8, 14, 0.58) 68%, rgba(5, 9, 16, 0.92) 100%),
        linear-gradient(180deg, rgba(2, 5, 10, 0.34), transparent 34%, rgba(2, 5, 10, 0.52));
}

.cinematic-login-modal.cinematic-has-video .cinematic-scanline,
.cinematic-login-modal.cinematic-has-video .studio-projector-beam,
.cinematic-login-modal.cinematic-has-video .lens-iris,
.cinematic-login-modal.cinematic-has-video .clapper-board,
.cinematic-login-modal.cinematic-has-video .cinematic-title,
.cinematic-login-modal.cinematic-has-video .film-strip {
    display: none;
}

.cinematic-login-modal.cinematic-has-video .cinematic-brand {
    position: absolute;
    top: clamp(22px, 4.6vh, 52px);
    left: clamp(24px, 4.2vw, 60px);
    z-index: 2;
    pointer-events: auto;
    padding: 8px 10px 8px 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(2, 7, 13, 0.54), rgba(2, 7, 13, 0.18));
    backdrop-filter: blur(12px);
}

.cinematic-login-modal.cinematic-has-video .cinematic-audio-toggle {
    display: grid;
}

.cinematic-login-modal.cinematic-has-video .cinematic-login-panel {
    grid-column: 2;
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: min(720px, calc(100vh - 96px));
    justify-self: end;
    align-self: center;
    margin-right: clamp(28px, 4vw, 76px);
    box-sizing: border-box;
    overflow-y: auto;
    border-left: 0;
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(5, 9, 16, 0.58), rgba(8, 12, 20, 0.86) 42%, rgba(10, 14, 22, 0.96)),
        radial-gradient(circle at 18% 18%, rgba(0, 229, 255, 0.08), transparent 28%);
    box-shadow: none;
    backdrop-filter: blur(18px);
}

.cinematic-login-modal.cinematic-has-video .cinematic-login-panel::before {
    display: none;
}

.cinematic-login-modal.cinematic-panel-overlay {
    background: transparent;
}

.cinematic-login-modal.cinematic-panel-overlay::before,
.cinematic-login-modal.cinematic-panel-overlay::after {
    display: none;
}

.cinematic-login-modal.cinematic-panel-overlay .cinematic-login-shell {
    background: transparent;
    box-shadow: none;
    pointer-events: none;
}

.cinematic-login-modal.cinematic-panel-overlay .cinematic-login-stage {
    display: none;
}

.cinematic-login-modal.cinematic-panel-overlay .cinematic-login-panel,
.cinematic-login-modal.cinematic-panel-overlay .cinematic-login-close {
    pointer-events: auto;
}

.cinematic-login-modal.cinematic-has-video .cinematic-panel-kicker {
    color: rgba(255, 207, 117, 0.78);
}

.cinematic-login-modal.cinematic-has-video .form-group input {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.24);
}

.cinematic-login-panel #resetPasswordHint {
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 177, 66, 0.34);
    border-radius: 8px;
    background: rgba(255, 177, 66, 0.1);
    color: rgba(255, 239, 205, 0.9);
    font-size: 13px;
    line-height: 1.6;
}

.cinematic-login-panel .terms-form-group {
    margin-bottom: 16px;
}

.cinematic-login-panel .terms-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: rgba(244, 249, 255, 0.72);
    font-size: 13px;
    line-height: 1.6;
    cursor: pointer;
}

.cinematic-login-panel .terms-check input {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin-top: 2px;
    accent-color: #00e5ff;
    cursor: pointer;
}

.cinematic-login-panel .terms-check a {
    color: #9ef3ff;
    text-decoration: none;
    cursor: pointer;
}

.cinematic-login-panel .terms-check a:hover {
    color: #ffffff;
}

.cinematic-login-panel #verifyCodeSection > div {
    align-items: stretch;
}

.cinematic-login-panel #sendVerifyCodeBtn {
    min-height: 46px;
    padding: 0 14px;
    color: #06111b;
    font-size: 13px;
}

@keyframes cinematicPanelIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.985);
    }

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

@keyframes cinematicGridDrift {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 96px 96px;
    }
}

@keyframes cinematicLightSweep {
    from {
        transform: translateX(-8%) rotate(-10deg);
    }

    to {
        transform: translateX(8%) rotate(-10deg);
    }
}

@keyframes cinematicBackdropPulse {
    from {
        transform: scale(1.04);
        filter: saturate(1);
    }

    to {
        transform: scale(1.09);
        filter: saturate(1.25);
    }
}

@keyframes cinematicScan {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(360%);
    }
}

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

@keyframes cinematicFocus {
    0%,
    100% {
        transform: translate(-50%, -50%) scale(0.92);
        opacity: 0.72;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.06);
        opacity: 1;
    }
}

@keyframes cinematicSubject {
    from {
        transform: translateX(-8px);
    }

    to {
        transform: translateX(18px);
    }
}

@keyframes cinematicTimeline {
    0%,
    100% {
        opacity: 0.62;
    }

    50% {
        opacity: 1;
    }
}

@keyframes cinematicStrip {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 192px 0;
    }
}

@keyframes cinematicPanelGlow {
    0%,
    100% {
        opacity: 0.28;
    }

    50% {
        opacity: 1;
    }
}

@keyframes projectorSweep {
    from {
        transform: translateX(-2%) rotate(-2deg);
        opacity: 0.42;
    }

    to {
        transform: translateX(7%) rotate(3deg);
        opacity: 0.72;
    }
}

@keyframes lensBreathe {
    0%,
    100% {
        transform: scale(0.96) rotate(0deg);
        filter: brightness(0.95);
    }

    50% {
        transform: scale(1.04) rotate(8deg);
        filter: brightness(1.18);
    }
}

@keyframes clapperTap {
    0%,
    68%,
    100% {
        transform: rotate(0deg);
    }

    76% {
        transform: rotate(-12deg);
    }

    84% {
        transform: rotate(2deg);
    }
}

@keyframes previewExposureSweep {
    from {
        transform: translateX(-18%);
    }

    to {
        transform: translateX(118%);
    }
}

@keyframes timelinePlayhead {
    from {
        left: 12px;
    }

    to {
        left: calc(100% - 14px);
    }
}

@keyframes storyboardPulse {
    0%,
    100% {
        transform: translateY(0);
        opacity: 0.58;
    }

    50% {
        transform: translateY(-3px);
        opacity: 1;
    }
}

@keyframes pipelineSignal {
    0%,
    100% {
        transform: scale(0.72);
        opacity: 0.42;
    }

    50% {
        transform: scale(1.22);
        opacity: 1;
    }
}

@keyframes audioMeter {
    0%,
    100% {
        height: 8px;
        opacity: 0.58;
    }

    50% {
        height: 25px;
        opacity: 1;
    }
}

@media (max-width: 980px) {
    .cinematic-login-modal.cinematic-has-video .cinematic-bg-video {
        object-position: center center;
    }

    .cinematic-login-modal {
        padding: 16px;
    }

    .cinematic-login-shell {
        width: min(720px, calc(100vw - 32px)) !important;
        min-height: auto;
        max-height: calc(100vh - 32px);
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .cinematic-login-stage {
        min-height: 360px;
        padding: 30px;
    }

    .cinematic-title {
        margin-top: 138px;
    }

    .cinematic-title strong {
        font-size: 40px;
    }

    .cinematic-preview {
        left: 30px;
        right: 30px;
        bottom: 24px;
    }

    .cinematic-metrics,
    .pipeline-nodes,
    .audio-wave,
    .timecode-readout {
        display: none;
    }

    .lens-iris {
        display: block;
        right: 34px;
        top: 124px;
        width: 104px;
        height: 104px;
        opacity: 0.34;
    }

    .lens-iris::after {
        inset: 38px;
    }

    .lens-iris i {
        width: 42px;
        height: 27px;
    }

    .lens-iris i:nth-child(1) { transform: rotate(0deg) translate(14px, -14px); }
    .lens-iris i:nth-child(2) { transform: rotate(60deg) translate(14px, -14px); }
    .lens-iris i:nth-child(3) { transform: rotate(120deg) translate(14px, -14px); }
    .lens-iris i:nth-child(4) { transform: rotate(180deg) translate(14px, -14px); }
    .lens-iris i:nth-child(5) { transform: rotate(240deg) translate(14px, -14px); }
    .lens-iris i:nth-child(6) { transform: rotate(300deg) translate(14px, -14px); }

    .clapper-board {
        display: none;
    }

    .cinematic-login-panel {
        padding: 36px 30px 34px;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .cinematic-login-modal.cinematic-has-video .cinematic-login-panel {
        grid-column: 1;
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: calc(100vh - 118px);
        align-self: end;
        justify-self: stretch;
        margin: 0;
        border-radius: 8px 8px 0 0;
        border-top: 0;
        background:
            linear-gradient(180deg, rgba(5, 9, 16, 0.28), rgba(8, 12, 20, 0.88) 22%, rgba(10, 14, 22, 0.97)),
            radial-gradient(circle at 18% 18%, rgba(0, 229, 255, 0.08), transparent 28%);
    }

    .cinematic-login-modal.cinematic-has-video .cinematic-login-shell {
        width: 100vw !important;
        max-width: none !important;
        height: 100vh;
        max-height: none;
        min-height: 100vh;
        grid-template-columns: 1fr;
        align-items: stretch;
        border-radius: 0;
    }

    .cinematic-login-modal.cinematic-has-video .cinematic-login-stage {
        min-height: auto;
        padding: 0;
    }
}

@media (max-width: 560px) {
    .cinematic-login-modal {
        align-items: flex-start;
        padding: 10px;
    }

    .cinematic-login-shell {
        width: calc(100vw - 20px) !important;
        max-height: calc(100svh - 20px);
        border-radius: 8px;
    }

    .cinematic-login-modal.cinematic-has-video .cinematic-login-shell {
        width: 100vw !important;
        height: 100svh;
        max-height: none;
        border-radius: 0;
    }

    .cinematic-login-modal.cinematic-has-video .cinematic-login-panel {
        height: auto;
        min-height: 0;
        max-height: calc(100svh - 96px);
        padding: 34px 24px 30px;
    }

    .cinematic-login-close {
        top: 12px;
        right: 12px;
    }

    .cinematic-login-stage {
        min-height: 250px;
        padding: 22px;
    }

    .cinematic-brand span {
        max-width: 160px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .cinematic-title {
        margin-top: 66px;
    }

    .cinematic-title span {
        min-height: 26px;
        font-size: 10px;
    }

    .cinematic-title strong {
        margin-top: 12px;
        font-size: 30px;
    }

    .cinematic-title p,
    .cinematic-preview,
    .film-strip-bottom,
    .cinematic-orbit-b,
    .clapper-board,
    .pipeline-nodes,
    .audio-wave,
    .timecode-readout {
        display: none;
    }

    .lens-iris {
        display: block;
        right: 18px;
        top: 62px;
        width: 78px;
        height: 78px;
        opacity: 0.42;
    }

    .lens-iris::before {
        inset: 10px;
    }

    .lens-iris::after {
        inset: 25px;
    }

    .lens-iris b {
        display: none;
    }

    .lens-iris i {
        display: block;
        width: 29px;
        height: 18px;
    }

    .lens-iris i:nth-child(1) { transform: rotate(0deg) translate(9px, -9px); }
    .lens-iris i:nth-child(2) { transform: rotate(60deg) translate(9px, -9px); }
    .lens-iris i:nth-child(3) { transform: rotate(120deg) translate(9px, -9px); }
    .lens-iris i:nth-child(4) { transform: rotate(180deg) translate(9px, -9px); }
    .lens-iris i:nth-child(5) { transform: rotate(240deg) translate(9px, -9px); }
    .lens-iris i:nth-child(6) { transform: rotate(300deg) translate(9px, -9px); }

    .film-strip-top {
        top: auto;
        bottom: 16px;
    }

    .cinematic-login-panel {
        padding: 28px 18px 24px;
    }

    .cinematic-login-panel h4 {
        font-size: 26px;
    }

    .cinematic-login-panel .wechat-login-section {
        padding: 18px;
    }
}

@media (orientation: portrait) {
    .cinematic-login-modal.cinematic-has-video .cinematic-login-shell {
        height: 100svh;
        min-height: 100svh;
        grid-template-columns: 1fr;
        grid-template-rows: minmax(220px, 40svh) minmax(0, 1fr);
        align-items: stretch;
        overflow: hidden;
    }

    .cinematic-login-modal.cinematic-has-video .cinematic-login-stage {
        position: relative;
        grid-row: 1;
        width: 100%;
        height: 100%;
        min-height: 0;
    }

    .cinematic-login-modal.cinematic-has-video .cinematic-login-stage::after {
        background:
            linear-gradient(180deg, rgba(2, 5, 10, 0.08) 0%, rgba(2, 5, 10, 0.12) 58%, rgba(5, 9, 16, 0.72) 100%),
            linear-gradient(90deg, rgba(2, 5, 10, 0.06), rgba(2, 5, 10, 0.26));
    }

    .cinematic-login-modal.cinematic-has-video .cinematic-brand {
        top: 20px;
        left: 20px;
    }

    .cinematic-login-modal.cinematic-has-video .cinematic-login-panel {
        grid-row: 2;
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: 100%;
        align-self: end;
        justify-self: stretch;
        margin: 0;
        border-radius: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cinematic-login-modal *,
    .cinematic-login-modal::before,
    .cinematic-login-modal::after {
        animation: none !important;
        transition: none !important;
    }
}

/* Application feature cards */
.right-content .app-feature-card {
    --feature-card-tint: #d0e1ff;
    --feature-card-wash: #e8efff;
    --feature-card-hover-tint: #b6d0ff;
    --feature-card-hover-wash: #dce7ff;
    --feature-card-surface: #ffffff;
    --feature-card-border: #e1e9f7;
    --feature-tag-color: #536d9e;
    position: relative;
    display: flex;
    min-width: 0;
    box-sizing: border-box;
    border: 0 !important;
    border-radius: 16px;
    background: var(--feature-card-surface);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -14px 28px rgba(45, 62, 88, 0.035),
        0 2px 5px rgba(31, 41, 55, 0.025);
    color: #273141;
    isolation: isolate;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.right-content .app-feature-card:nth-child(5n + 1) {
    --feature-card-tint: #bce9df;
    --feature-card-wash: #dff5ef;
    --feature-card-hover-tint: #a4dfd2;
    --feature-card-hover-wash: #d0eee6;
    --feature-card-border: #c6e8e0;
    --feature-tag-color: #3f887d;
}

.right-content .app-feature-card:nth-child(5n + 2) {
    --feature-card-tint: #d4eda4;
    --feature-card-wash: #e7f6c9;
    --feature-card-hover-tint: #c0e582;
    --feature-card-hover-wash: #d9f0b5;
    --feature-card-border: #d8eab2;
    --feature-tag-color: #708a3d;
}

.right-content .app-feature-card:nth-child(5n + 3) {
    --feature-card-tint: #ffc9aa;
    --feature-card-wash: #ffe0cd;
    --feature-card-hover-tint: #ffb78e;
    --feature-card-hover-wash: #ffd2b7;
    --feature-card-border: #f6d6c1;
    --feature-tag-color: #b5664b;
}

.right-content .app-feature-card:nth-child(5n + 4) {
    --feature-card-tint: #dcc9f6;
    --feature-card-wash: #ebe2ff;
    --feature-card-hover-tint: #cdb0ef;
    --feature-card-hover-wash: #decdf9;
    --feature-card-border: #dfd0f5;
    --feature-tag-color: #765ea5;
}

.right-content .app-feature-card::before {
    inset: 0;
    border: 0;
    border-radius: 15px;
    background: transparent;
    box-shadow:
        inset 0 0 50px 9px var(--feature-card-surface),
        inset 0 0 60px 40px color-mix(in srgb, var(--feature-card-surface) 50%, transparent);
    opacity: 1;
    z-index: 1;
    pointer-events: none;
}

.right-content .app-feature-card::after {
    display: block;
    inset: 0;
    border-radius: 15px;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.right-content .app-feature-card:hover,
.right-content .app-feature-card:focus-visible {
    --feature-card-tint: var(--feature-card-hover-tint);
    --feature-card-wash: var(--feature-card-hover-wash);
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        inset 0 -14px 28px rgba(45, 62, 88, 0.035),
        0 9px 20px rgba(31, 41, 55, 0.07);
}

.right-content .app-feature-card:hover::after,
.right-content .app-feature-card:focus-visible::after {
    opacity: 0.62;
}

.right-content .app-feature-card:active {
    transform: translateY(0) scale(0.99);
}

.right-content .app-feature-card .feature-card-content {
    position: relative;
    z-index: 2;
    display: flex !important;
    width: auto !important;
    min-width: 0;
    min-height: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    text-shadow: none !important;
}

.right-content .app-feature-card[data-layout="vertical"] {
    align-items: stretch;
    padding: 22px 12px 20px;
    background: linear-gradient(160deg,
        var(--feature-card-tint) -18%,
        var(--feature-card-wash) 32%,
        var(--feature-card-surface) 72%);
}

.right-content .app-feature-card[data-layout="vertical"]::after {
    background: linear-gradient(160deg,
        var(--feature-card-hover-tint) -18%,
        var(--feature-card-hover-wash) 32%,
        transparent 72%);
}

.right-content .app-feature-card[data-layout="vertical"] .feature-card-content {
    width: 100% !important;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: space-between !important;
    gap: 0;
    text-align: center;
}

.right-content .app-feature-card[data-layout="horizontal"] {
    align-items: stretch;
    justify-content: flex-start;
    padding: 22px 24px;
    background: linear-gradient(104deg,
        var(--feature-card-tint) -18%,
        var(--feature-card-wash) 30%,
        var(--feature-card-surface) 64%);
}

.right-content .app-feature-card[data-layout="horizontal"]::after {
    background: linear-gradient(104deg,
        var(--feature-card-hover-tint) -18%,
        var(--feature-card-hover-wash) 30%,
        transparent 64%);
}

.right-content .app-feature-card[data-layout="horizontal"] .feature-card-content {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: 46px minmax(0, 1fr);
    grid-template-rows: 46px minmax(0, 1fr);
    align-items: start;
    align-self: stretch;
    column-gap: 16px;
    row-gap: 0;
    text-align: left;
}

.right-content .app-feature-card[data-layout="horizontal"] .feature-card-icon {
    grid-column: 1;
    grid-row: 1;
    width: 46px;
    height: 46px;
    flex-basis: 46px;
}

.right-content .app-feature-card[data-layout="horizontal"] .feature-card-name {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    justify-self: end;
    max-width: 62%;
    padding-top: 0;
    text-align: right;
}

.right-content .app-feature-card .feature-card-icon {
    display: block;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
}

.right-content .app-feature-card .feature-card-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) saturate(100%) opacity(0.78);
}

.right-content .app-feature-card .feature-card-name {
    min-width: 0;
    color: #273141;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.right-content .app-feature-card[data-layout="vertical"] .feature-card-name {
    max-width: 100%;
}

.right-content .app-feature-card[data-layout="horizontal"] .feature-card-name {
    font-size: 15px;
}

.right-content .app-feature-card .feature-card-badge {
    position: absolute;
    z-index: 3;
    top: 11px;
    right: 11px;
    max-width: calc(100% - 16px);
    padding: 3px 7px;
    overflow: hidden;
    background: var(--feature-tag-color) !important;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 2px 5px rgba(24, 38, 51, 0.1);
}

[data-theme="dark"] .right-content .app-feature-card {
    --feature-card-tint: #3b5992;
    --feature-card-wash: #20334f;
    --feature-card-hover-tint: #5276b8;
    --feature-card-hover-wash: #293d60;
    --feature-card-surface: #151b23;
    --feature-card-border: rgba(110, 136, 183, 0.18);
    --feature-tag-color: #718ec4;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 -16px 30px rgba(0, 0, 0, 0.16),
        0 2px 7px rgba(0, 0, 0, 0.22);
}

[data-theme="dark"] .right-content .app-feature-card:nth-child(5n + 1) {
    --feature-card-tint: #2b897c;
    --feature-card-wash: #1a514a;
    --feature-card-hover-tint: #3aa895;
    --feature-card-hover-wash: #236157;
    --feature-card-border: rgba(77, 148, 139, 0.2);
    --feature-tag-color: #67b9ab;
}

[data-theme="dark"] .right-content .app-feature-card:nth-child(5n + 2) {
    --feature-card-tint: #7d9b41;
    --feature-card-wash: #435524;
    --feature-card-hover-tint: #96ba4e;
    --feature-card-hover-wash: #52672d;
    --feature-card-border: rgba(132, 160, 73, 0.2);
    --feature-tag-color: #9cbe61;
}

[data-theme="dark"] .right-content .app-feature-card:nth-child(5n + 3) {
    --feature-card-tint: #a3654f;
    --feature-card-wash: #543026;
    --feature-card-hover-tint: #c67a5e;
    --feature-card-hover-wash: #663a2e;
    --feature-card-border: rgba(185, 107, 81, 0.2);
    --feature-tag-color: #d18b71;
}

[data-theme="dark"] .right-content .app-feature-card:nth-child(5n + 4) {
    --feature-card-tint: #795fa8;
    --feature-card-wash: #40305c;
    --feature-card-hover-tint: #9278c7;
    --feature-card-hover-wash: #4d3a6d;
    --feature-card-border: rgba(137, 108, 184, 0.2);
    --feature-tag-color: #a98fd2;
}

[data-theme="dark"] .right-content .app-feature-card::before {
    background: transparent;
}

[data-theme="dark"] .right-content .app-feature-card .feature-card-name {
    color: #edf5f2;
}

[data-theme="dark"] .right-content .app-feature-card .feature-card-icon img {
    filter: brightness(0) invert(1) opacity(0.9);
}

@media (max-width: 768px) {
    /* Keep mobile card labels above inherited decorative layers on older WebKit. */
    .right-content .app-feature-card::before {
        display: none;
    }

    .right-content .app-feature-card::after {
        content: attr(data-feature-name);
        position: absolute;
        top: auto;
        right: 2px;
        bottom: 10px;
        left: 2px;
        z-index: 5;
        display: block;
        overflow: hidden;
        margin: 0;
        padding: 0;
        background: transparent;
        color: #273141;
        font-size: 12px;
        font-weight: 600;
        line-height: 16px;
        text-align: center;
        text-overflow: ellipsis;
        white-space: nowrap;
        opacity: 1;
        pointer-events: none;
        transform: none;
        animation: none;
    }

    .right-content .app-feature-card[data-layout="vertical"]::after,
    .right-content .app-feature-card[data-layout="horizontal"]::after {
        background: none !important;
        border: 0 !important;
        border-radius: 0;
        box-shadow: none;
    }

    .right-content .app-feature-card[data-layout="vertical"]::after {
        bottom: 14px;
    }

    [data-theme="dark"] .right-content .app-feature-card::after {
        color: #edf5f2;
    }

    .right-content .app-feature-card[data-layout="vertical"] {
        padding: 16px 8px 14px;
    }

    .right-content .app-feature-card[data-layout="vertical"] .feature-card-content {
        justify-content: flex-start !important;
        gap: 0;
    }

    .right-content .app-feature-card .feature-card-name {
        display: none !important;
    }

    .right-content .app-feature-card[data-layout="horizontal"] {
        padding: 14px;
    }

    .right-content .app-feature-card[data-layout="horizontal"] .feature-card-content {
        grid-template-columns: 36px minmax(0, 1fr);
        grid-template-rows: 36px minmax(0, 1fr);
        column-gap: 10px;
    }

    .right-content .app-feature-card[data-layout="horizontal"] .feature-card-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .right-content .app-feature-card .feature-card-icon {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

    .right-content .app-feature-card .feature-card-name {
        font-size: 12px;
        line-height: 1.25;
    }

    .right-content .app-feature-card[data-layout="horizontal"] .feature-card-name {
        max-width: 68%;
        padding-top: 0;
        font-size: 13px;
    }

    .right-content .app-feature-card .feature-card-badge {
        top: 7px;
        right: 7px;
        padding: 2px 5px;
        font-size: 9px;
    }
}
