/* ========== 故事框架弹窗样式（命名空间 story-framework-modal-） ========== */
.story-framework-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: rgba(0, 0, 0, 0.85);*/
    background: rgba(0, 0, 0, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 21;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);

}


.story-frame-video {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none; /* 确保视频不干扰任何可能的交互（尽管无内容） */
}

.story-frame-modal-bg-image {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    opacity: 0.07;
}

.story-framework-modal-container {
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    background: var(--bg-color);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.2s;
    border: 1px solid var(--text-color-1);
    box-shadow: rgba(255, 255, 255, 0.05) 0px 7px 29px 0px;
}



@media (max-width: 550px) {
    .story-framework-modal-container {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        border-radius: 0;
    }
}
.story-framework-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 12px 24px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.story-framework-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color, #ffffff);
}
.story-framework-modal-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.05);
}
.story-framework-modal-close i {
    font-size: 14px;
    color: var(--text-color-8, rgba(255,255,255,0.8));
}
.story-framework-modal-close:hover {
    background: var(--text-color-1, rgba(255,255,255,0.1));
}
.story-framework-modal-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 24px 24px 28px;
    scrollbar-width: thin;
}
.story-framework-modal-form-group {
    margin-bottom: 28px;
}
.story-framework-modal-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}
.story-framework-modal-field {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    outline: none;
    transition: all 0.2s;
}
.story-framework-modal-field:focus {
    border-color: #7a41db;
    background: rgba(255, 255, 255, 0.08);
}
.story-framework-modal-field.error {
    border-color: var(--danger-color);
}

.story-framework-modal-textarea.error {
    border-color: var(--danger-color);
}

.story-framework-modal-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 400;
    color: #ffffff;
    outline: none;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
    min-height: 200px;
}
.story-framework-modal-textarea:focus {
    border-color: #7a41db;
    background: rgba(255, 255, 255, 0.08);
}
.story-framework-modal-word-count {
    text-align: right;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 6px;
}
.story-framework-modal-word-count.warning {
    color: #e76262;
}
.story-framework-modal-error-msg {
    font-size: 12px;
    color: #e76262;
    margin-top: 6px;
    display: none;
}
.story-framework-modal-footer {
    padding: 20px 24px 28px;
    flex-shrink: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: var(--bg-color, #0A0A0A);
}
.story-framework-modal-submit {
    width: 100%;
    background: var(--primary-btn-bg);
    border: none;
    border-radius: 60px;
    padding: 14px 0;
    font-weight: 600;
    font-size: 17px;
    color: var(--primary-btn-text-color);
    cursor: pointer;
    transition: all 0.2s;
}
.story-framework-modal-submit:hover {
    background: var(--theme-color-0_8);
    transform: scale(0.98);
}