/* ===== 小剧场 Mini Theater ===== */
/* 风格: 浅色（灰/白底），深色文字，无渐变、无 emoji */

#layer-mini-theater {
    background: #f2f2f2;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10000;
    display: none;
    flex-direction: column;
}
#layer-mini-theater.show {
    display: flex;
}
#layer-mini-theater .nav-bar {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    flex-shrink: 0;
}
#mini-theater-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* 区块标题 */
.mt-section-title {
    font-size: 12px;
    color: #999;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* 快速生成区 */
.mt-quick-gen {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
}

/* 联系人选择横向滚动 */
.mt-contact-select {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 12px;
    scrollbar-width: none;
}
.mt-contact-select::-webkit-scrollbar { display: none; }

.mt-contact-chip {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    color: #555;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    flex-shrink: 0;
}
.mt-contact-chip.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* 输入框 */
.mt-input {
    width: 100%;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    color: #222;
    resize: none;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
}
.mt-input::placeholder { color: #999; }
.mt-input:focus { border-color: #888; }

/* 选项标签行 */
.mt-options-row {
    display: flex;
    gap: 8px;
    margin: 12px 0;
    flex-wrap: wrap;
}
.mt-option-tag {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 14px;
    padding: 4px 12px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.mt-option-tag.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* 生成按钮 */
.mt-gen-btn {
    width: 100%;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    transition: background 0.2s;
}
.mt-gen-btn:active { background: #000; }
.mt-gen-btn:disabled {
    background: #ccc;
    color: #888;
    cursor: not-allowed;
}

/* 生成结果展示 */
.mt-result {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 20px;
    margin-top: 16px;
}
.mt-result-title {
    font-size: 18px;
    color: #222;
    font-weight: 600;
    margin-bottom: 8px;
}
.mt-result-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 16px;
}
.mt-result-body {
    font-size: 14px;
    color: #444;
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-word;
}
.mt-result-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}
.mt-action-btn {
    flex: 1;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px;
    font-size: 12px;
    color: #555;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s;
}
.mt-action-btn:active { background: #e0e0e0; }

/* 历史列表 */
.mt-history-item {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background 0.15s;
}
.mt-history-item:active { background: #f0f0f0; }
.mt-history-title {
    font-size: 14px;
    color: #222;
    font-weight: 500;
}
.mt-history-sub {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}
.mt-history-fav {
    color: #f0a020;
    font-size: 11px;
    float: right;
    opacity: 0.9;
}

/* 推荐场景 */
.mt-suggest-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.15s;
}
.mt-suggest-card:active { background: #f0f0f0; }
.mt-suggest-text {
    font-size: 13px;
    color: #555;
}

/* Loading 动画 */
.mt-loading {
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 13px;
}
.mt-loading-dots {
    display: inline-flex;
    gap: 4px;
    margin-top: 12px;
}
.mt-loading-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #888;
    animation: mtDot 1.4s infinite;
}
.mt-loading-dot:nth-child(2) { animation-delay: 0.2s; }
.mt-loading-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes mtDot {
    0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1); }
}

/* 空状态 */
.mt-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 13px;
}
.mt-empty i {
    font-size: 32px;
    color: #ccc;
    margin-bottom: 12px;
    display: block;
}

/* 历史页面头部 */
.mt-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.mt-history-back {
    font-size: 13px;
    color: #666;
    cursor: pointer;
}
.mt-history-back:active { color: #000; }

/* 详情阅读页 */
.mt-read-page {
    padding: 20px 4px;
}
.mt-read-title {
    font-size: 20px;
    color: #222;
    font-weight: 600;
    margin-bottom: 6px;
}
.mt-read-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}
.mt-read-body {
    font-size: 15px;
    color: #444;
    line-height: 1.9;
    white-space: pre-wrap;
    word-break: break-word;
}
.mt-read-actions {
    display: flex;
    gap: 8px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

/* 删除确认 */
.mt-confirm-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 10100;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mt-confirm-box {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 24px;
    width: 280px;
    text-align: center;
}
.mt-confirm-title {
    font-size: 15px;
    color: #222;
    margin-bottom: 16px;
}
.mt-confirm-btns {
    display: flex;
    gap: 10px;
}
.mt-confirm-btn {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 13px;
    cursor: pointer;
    background: #f0f0f0;
    color: #555;
}
.mt-confirm-btn.danger {
    background: #fa5151;
    color: #fff;
    border-color: #fa5151;
}
