/* ===========================
   故事显示样式
   用于连续文本模式的故事展示
   =========================== */

/* 连续文本故事样式 */
.story-paragraph {
    margin-bottom: 0;
    line-height: 1.8;
    font-size: 16px;
    animation: fadeIn 0.5s;
    display: inline;
}

/* 用户输入文本 - 亮红色 */
.user-text {
    color: #ff6666;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(255,102,102,0.5);
    background: linear-gradient(90deg,
        rgba(255,102,102,0.15) 0%,
        rgba(255,102,102,0.05) 50%,
        rgba(255,102,102,0.15) 100%);
    padding: 2px 4px;
    border-radius: 4px;
}

/* AI生成文本 - 白色 */
.ai-text {
    color: #f0f0f0;
    opacity: 0.95;
    font-weight: 400;
}


/* 系统消息样式 - 用于标题和提示 */
.story-segment.system {
    background: rgba(0,0,0,0.6);
    border-left: 3px solid #ff3333;
    color: #ffaaaa;
    text-align: center;
    padding: 10px 15px;
    margin: 15px 0;
    border-radius: 8px;
}


/* 故事操作按钮 */
.story-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.story-actions button {
    padding: 6px 12px;
    border: 1px solid rgba(255,0,0,0.3);
    border-radius: 6px;
    background: rgba(30,0,0,0.8);
    color: white;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.story-actions button:hover {
    background: rgba(255,0,0,0.2);
    border-color: #ff3333;
    box-shadow: 0 2px 8px rgba(255,0,0,0.3);
}


/* 故事续写提示 */
.continue-prompt {
    padding: 15px;
    background: linear-gradient(135deg, rgba(80,0,0,0.3), rgba(100,0,0,0.3));
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
    border: 1px solid rgba(255,0,0,0.2);
}

.continue-prompt p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 10px;
    font-size: 14px;
}

.continue-options {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.continue-options button {
    padding: 8px 16px;
    border: 2px solid #ff6666;
    border-radius: 20px;
    background: rgba(30,0,0,0.8);
    color: #ff6666;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.continue-options button:hover {
    background: #ff3333;
    color: white;
    box-shadow: 0 2px 10px rgba(255,51,51,0.4);
}

/* 打字机效果 */
.typing-effect {
    position: relative;
}

.typing-effect::after {
    content: '|';
    animation: blink 1s infinite;
    color: var(--primary-color);
    font-weight: bold;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}


/* 章节分隔符 */
.chapter-divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.chapter-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.chapter-divider span {
    background: rgba(10,0,0,0.9);
    padding: 0 20px;
    position: relative;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
}


/* 警告提示 */
.content-warning {
    padding: 10px 15px;
    background: rgba(100,0,0,0.3);
    border: 1px solid rgba(255,0,0,0.5);
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-warning .icon {
    font-size: 20px;
    color: #ff6666;
}

.content-warning .text {
    flex: 1;
    font-size: 13px;
    color: #ffaaaa;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .story-paragraph {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 15px;
    }


    .story-actions {
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 12px;
        padding-top: 12px;
    }

    .story-actions button {
        font-size: 12px;
        padding: 5px 10px;
    }

    .continue-prompt {
        padding: 12px;
    }

    .continue-prompt p {
        font-size: 13px;
    }

    .continue-options {
        gap: 8px;
    }

    .continue-options button {
        font-size: 12px;
        padding: 6px 12px;
    }


    .chapter-divider {
        margin: 20px 0;
    }

    .chapter-divider span {
        padding: 0 15px;
        font-size: 12px;
    }


    .content-warning {
        padding: 8px 12px;
    }

    .content-warning .icon {
        font-size: 18px;
    }

    .content-warning .text {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .story-paragraph {
        font-size: 13px;
    }


    .story-actions button {
        font-size: 11px;
        padding: 4px 8px;
    }

    .continue-options button {
        font-size: 11px;
        padding: 5px 10px;
    }
}