.persona-page{--bg-color: #f1f8e9;--card-bg: #ffffff;--primary-color: #2e7d32;--primary-light: #e8f5e9;--accent-color: #66bb6a;--text-main: #1b5e20;--text-body: #37474f;--text-gray: #78909c;--border-color: #cfd8dc;--input-height: 42px;font-family:Segoe UI,Microsoft YaHei,sans-serif;background-color:var(--bg-color);color:var(--text-main);padding:30px;max-width:1000px;margin:0 auto;line-height:1.6}.persona-page .grid-container{display:grid;gap:20px;margin-bottom:15px}.persona-page .col-4{grid-template-columns:repeat(4,1fr)}.persona-page .col-3{grid-template-columns:repeat(3,1fr)}.persona-page .col-2{grid-template-columns:repeat(2,1fr)}.persona-page .col-1{grid-template-columns:1fr}.persona-page .name-row-layout{display:grid;grid-template-columns:100px 100px 1fr 140px;gap:15px;align-items:end}@media(max-width:768px){.persona-page .col-4,.persona-page .col-3,.persona-page .col-2,.persona-page .name-row-layout{grid-template-columns:1fr}}.persona-page .header-bar{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px;padding-bottom:15px;border-bottom:2px solid #c5e1a5}.persona-page h1{margin:0;font-size:1.8em;color:var(--primary-color);display:flex;align-items:center;gap:10px}.persona-page .card{background:var(--card-bg);border-radius:12px;box-shadow:0 4px 20px #2e7d320d;padding:30px;margin-bottom:25px;border:1px solid rgba(0,0,0,.02);transition:transform .2s}.persona-page .card:hover{transform:translateY(-2px);box-shadow:0 8px 30px #2e7d321a}.persona-page h2{margin-top:0;margin-bottom:20px;font-size:1.25em;color:var(--primary-color);border-bottom:1px dashed var(--border-color);padding-bottom:10px}.persona-page label{display:block;margin-bottom:6px;font-weight:600;font-size:.9em;color:var(--text-main)}.persona-page input[type=text],.persona-page input[type=password],.persona-page select,.persona-page textarea{width:100%;padding:0 12px;border:1px solid var(--border-color);border-radius:6px;box-sizing:border-box;font-family:inherit;font-size:14px;transition:all .3s;background:#fafafa}.persona-page input[type=text],.persona-page input[type=password],.persona-page select{height:var(--input-height);line-height:var(--input-height)}.persona-page textarea{padding:10px;line-height:1.5;resize:vertical}.persona-page input:focus,.persona-page select:focus,.persona-page textarea:focus{border-color:var(--accent-color);background:#fff;box-shadow:0 0 0 3px #66bb6a26;outline:none}.persona-page .icon-btn{background:#fff;border:1px solid var(--border-color);color:var(--text-gray);width:40px;height:40px;border-radius:8px;cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:center;font-size:1.2em}.persona-page .icon-btn:hover{background:var(--primary-light);color:var(--primary-color);border-color:var(--primary-color)}.persona-page .btn{height:var(--input-height);border:none;border-radius:6px;cursor:pointer;font-weight:600;padding:0 20px;transition:all .2s;display:inline-flex;align-items:center;justify-content:center}.persona-page .btn-primary{background:var(--primary-color);color:#fff;width:100%;font-size:1.1em;height:50px}.persona-page .btn-primary:hover{background:#1b5e20;box-shadow:0 4px 10px #2e7d324d}.persona-page .btn-secondary{background:#fff;border:1px solid var(--primary-color);color:var(--primary-color)}.persona-page .btn-secondary:hover{background:var(--primary-light)}.persona-page .btn-danger{background:#fff;border:1px solid #ffcdd2;color:#d32f2f;padding:5px 10px;height:auto;font-size:.8em}.persona-page .btn-edit{background:#fff;border:1px solid #bbdefb;color:#1976d2;padding:5px 10px;height:auto;font-size:.8em;margin-right:5px}.persona-page .checkbox-group{display:flex;flex-wrap:wrap;gap:12px;padding:10px 0}.persona-page .checkbox-item{position:relative}.persona-page .checkbox-item input[type=checkbox]{position:absolute;opacity:0;cursor:pointer}.persona-page .checkbox-label{display:block;background:#fff;border:1px solid var(--border-color);padding:8px 16px;border-radius:20px;font-size:.9em;cursor:pointer;transition:all .2s;color:var(--text-gray)}.persona-page .checkbox-item input:checked+.checkbox-label{background:var(--primary-color);color:#fff;border-color:var(--primary-color);box-shadow:0 2px 5px #2e7d324d}.persona-page details summary{padding:15px;background:var(--primary-light);border-radius:8px;cursor:pointer;font-weight:700;color:var(--primary-color);list-style:none;display:flex;justify-content:space-between;align-items:center}.persona-page details summary:hover{background:#dcedc8}.persona-page details summary:after{content:"✏️ 展开编辑";font-size:.9em;opacity:.8}.persona-page details[open] summary{border-radius:8px 8px 0 0;margin-bottom:0}.persona-page details[open] summary:after{content:"🔼 收起"}.persona-page .details-content{border:1px solid var(--primary-light);border-top:none;padding:20px;border-radius:0 0 8px 8px}.persona-page #outputArea,.persona-page #polishArea{width:100%;min-height:300px;background:#fff;color:var(--text-body);font-family:Segoe UI,Microsoft YaHei,sans-serif;font-size:16px;line-height:1.8;padding:40px;border-radius:8px;margin-top:20px;box-sizing:border-box;border:1px solid #e0e0e0;box-shadow:inset 0 2px 4px #00000005;white-space:pre-wrap;overflow-y:auto}.persona-page .draft-card{background:#fff;border:1px solid #e0e0e0;border-radius:8px;padding:15px;transition:all .2s;position:relative}.persona-page .draft-card:hover{box-shadow:0 4px 12px #00000014;border-color:var(--accent-color)}.persona-page .draft-tag{display:inline-block;background:#f5f5f5;color:#666;padding:2px 6px;border-radius:4px;font-size:.8em;margin-right:5px;margin-bottom:5px}.persona-page .draft-actions{margin-top:10px;display:flex;gap:10px;border-top:1px dashed #eee;padding-top:10px}.persona-page .draft-btn{flex:1;font-size:.85em;padding:5px;cursor:pointer;border-radius:4px;border:1px solid transparent;background:#f9f9f9}.persona-page .draft-btn-use{color:var(--primary-color);border-color:var(--primary-light);background:var(--primary-light)}.persona-page .draft-btn-save{color:var(--text-gray);border-color:#eee}.persona-page .draft-btn-del{color:#d32f2f;background:#ffebee}.persona-page .draft-btn-use:hover{background:var(--primary-color);color:#fff}.persona-page .draft-btn-save:hover{background:#e0e0e0}.persona-page .conflict-text{color:#d32f2f;font-size:.9em;background:#ffebee;padding:2px 5px;border-radius:4px}.persona-page .md-render strong{color:var(--primary-color);font-weight:700;background:#2e7d320d;padding:0 2px;border-radius:2px}.persona-page .md-render h3{margin-top:25px;margin-bottom:10px;color:var(--primary-color);border-left:4px solid var(--accent-color);padding-left:10px;font-size:1.2em}.persona-page .md-render ul{padding-left:20px;margin:10px 0}.persona-page .md-render li{margin-bottom:5px}.persona-page .modal{display:none;position:fixed;z-index:999;left:0;top:0;width:100%;height:100%;background:#0006;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.persona-page .modal-content{background:#fff;margin:5vh auto;padding:30px;border-radius:12px;width:90%;max-width:800px;max-height:90vh;overflow-y:auto;box-shadow:0 20px 50px #0003;position:relative}.persona-page .close-btn{position:absolute;right:20px;top:15px;font-size:24px;cursor:pointer;color:#999}.persona-page .kw-manage-container{display:flex;gap:20px;max-height:300px}.persona-page .kw-column{flex:1;display:flex;flex-direction:column;background:#f9f9f9;padding:10px;border-radius:8px;border:1px solid #eee}.persona-page .kw-column h4{margin:0 0 10px;font-size:1em;color:var(--text-gray);text-align:center;border-bottom:1px solid #e0e0e0;padding-bottom:5px}.persona-page .kw-list-scroll{overflow-y:auto;flex:1;min-height:100px}.persona-page .kw-list-item{display:flex;justify-content:space-between;align-items:center;padding:8px;border:1px solid #fff;background:#fff;margin-bottom:5px;border-radius:4px;box-shadow:0 1px 2px #0000000d;cursor:grab}.persona-page .kw-list-item:active{cursor:grabbing}.persona-page .kw-list-item.dragging{opacity:.5;border:1px dashed var(--primary-color)}.persona-page .kw-column.drag-over{background:#e8f5e9;border-color:var(--primary-color)}.persona-page .section-label{font-size:.9em;color:var(--text-gray);margin-bottom:5px;font-weight:700;border-left:3px solid var(--accent-color);padding-left:8px;margin-top:15px}.theater-page{--primary: #1890ff;--primary-light: #e6f7ff;--primary-border: #91d5ff;--success: #52c41a;--danger: #ff4d4f;--warning: #faad14;--bg-main: #f0f2f5;--bg-card: #ffffff;--bg-section: #fafafa;--border: #e8e8e8;--border-light: #f0f0f0;--text-main: #262626;--text-secondary: #595959;--text-tertiary: #8c8c8c;--text-placeholder: #bfbfbf;--shadow-sm: 0 1px 2px rgba(0,0,0,.06);--shadow-md: 0 2px 8px rgba(0,0,0,.08);--shadow-lg: 0 4px 16px rgba(0,0,0,.12);--radius-sm: 6px;--radius-md: 8px;--radius-lg: 12px}.theater-page{display:flex;height:calc(100vh - 64px);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,sans-serif;background:var(--bg-main);color:var(--text-main)}.theater-page .ai-panel{width:420px;min-width:420px;display:flex;flex-direction:column;background:var(--bg-card);border-right:1px solid var(--border);box-shadow:var(--shadow-md)}.theater-page .ai-panel-header{padding:16px 20px;background:linear-gradient(135deg,var(--primary) 0%,#096dd9 100%);color:#fff}.theater-page .ai-panel-header h3{margin:0;font-size:16px;color:#fff}.theater-page .chat-area{flex:1;overflow-y:auto;padding:16px}.theater-page .chat-input-area{padding:12px 16px;border-top:1px solid #f0f0f0}.theater-page .chat-msg{margin-bottom:16px;padding:12px 16px;border-radius:12px;line-height:1.6;white-space:pre-wrap;word-break:break-word;font-size:14px;box-shadow:var(--shadow-sm)}.theater-page .chat-msg.user{background:linear-gradient(135deg,var(--primary-light),#bae7ff);border:1px solid var(--primary-border);margin-left:40px;border-bottom-right-radius:4px}.theater-page .chat-msg.assistant{background:#f6f6f6;border:1px solid var(--border-light);margin-right:40px;border-bottom-left-radius:4px}.theater-page .chat-msg h3{font-size:14px;margin:8px 0 4px}.theater-page .chat-msg strong{font-weight:600}.theater-page .chat-msg code{background:#0000000f;padding:1px 5px;border-radius:4px;font-size:12px}.theater-page .quick-prompts{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}.theater-page .quick-prompt{padding:4px 10px;background:#f0f0f0;border:1px solid var(--border);border-radius:12px;font-size:12px;cursor:pointer;transition:background .2s,border-color .2s,color .2s;-webkit-user-select:none;user-select:none}.theater-page .quick-prompt:hover{background:var(--primary-light);border-color:var(--primary);color:var(--primary)}.theater-page .quick-prompt-import{padding:4px 10px;background:#e6fffb;color:#13c2c2;border:1px solid #87e8de;border-radius:12px;font-size:12px;cursor:pointer;transition:background .2s,box-shadow .2s;-webkit-user-select:none;user-select:none;font-weight:600}.theater-page .quick-prompt-import:hover{background:#b5f5ec;box-shadow:0 0 0 2px #13c2c21a}.theater-page .confirm-card{margin:12px 0;padding:16px;background:#f6ffed;border:1px solid #b7eb8f;border-radius:var(--radius-lg);box-shadow:var(--shadow-md)}.theater-page .confirm-card-title{font-size:15px;font-weight:700;color:#52c41a;margin-bottom:12px;display:flex;align-items:center;gap:8px}.theater-page .confirm-card-preview{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}.theater-page .confirm-preview-item{background:#00000008;border-radius:8px;padding:10px 12px}.theater-page .confirm-preview-item .cpi-label{font-size:10px;color:#888;text-transform:uppercase;margin-bottom:4px}.theater-page .confirm-preview-item .cpi-value{font-size:13px;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.theater-page .confirm-tags-row{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:10px}.theater-page .confirm-tag{padding:2px 8px;border-radius:10px;font-size:10px;background:#f0f0f0;color:#666}.theater-page .confirm-var-chip{padding:3px 10px;border-radius:8px;font-size:11px;background:#e6fffb;color:#13c2c2}.theater-page .confirm-ending-chip{padding:3px 10px;border-radius:8px;font-size:11px}.theater-page .confirm-ending-chip.good{background:#f6ffed;color:#52c41a}.theater-page .confirm-ending-chip.bad{background:#fff2f0;color:#ff4d4f}.theater-page .confirm-ending-chip.normal{background:#fffbe6;color:#faad14}.theater-page .confirm-ending-chip.hidden{background:#f9f0ff;color:#722ed1}.theater-page .confirm-ending-chip.reversal{background:#fff0f6;color:#eb2f96}.theater-page .confirm-card-actions{display:flex;gap:8px;justify-content:flex-end}.theater-page .form-panel{flex:1;display:flex;flex-direction:column;overflow:hidden}.theater-page .form-header{padding:0 24px;background:var(--bg-card);border-bottom:1px solid var(--border);box-shadow:var(--shadow-sm);z-index:10}.theater-page .form-header-actions{display:flex;gap:8px;align-items:center;padding:8px 0;border-bottom:1px solid var(--border-light);flex-wrap:wrap}.theater-page .form-content{flex:1;overflow-y:auto;padding:24px 32px;background:var(--bg-main)}.theater-page .form-content::-webkit-scrollbar{width:6px}.theater-page .form-content::-webkit-scrollbar-thumb{background:#d9d9d9;border-radius:6px}.theater-page .step-nav{display:flex;gap:0;overflow-x:auto}.theater-page .step-tab{padding:12px 20px;font-size:13px;font-weight:500;cursor:pointer;border-bottom:3px solid transparent;color:#999;transition:all .3s;white-space:nowrap;display:flex;align-items:center;gap:6px}.theater-page .step-tab:hover{color:#666}.theater-page .step-tab.active{color:#1890ff;border-bottom-color:#1890ff;background:var(--primary-light);border-radius:var(--radius-sm) var(--radius-sm) 0 0}.theater-page .step-num{width:22px;height:22px;border-radius:50%;background:#f0f0f0;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;transition:all .3s}.theater-page .step-tab.active .step-num{background:#1890ff;color:#fff}.theater-page .form-section{margin-bottom:24px;background:var(--bg-card);padding:20px 24px;border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);border:1px solid var(--border-light)}.theater-page .section-title{font-size:15px;font-weight:700;color:var(--text-main);margin-bottom:14px;display:flex;align-items:center;gap:8px;padding-bottom:12px;border-bottom:1px solid var(--border-light)}.theater-page .section-title .icon{font-size:18px}.theater-page .section-desc{font-size:12px;color:#888;margin-bottom:12px;line-height:1.6;padding:10px 14px;background:var(--primary-light);border-left:3px solid var(--primary);border-radius:0 8px 8px 0}.theater-page .form-item{margin-bottom:14px}.theater-page .form-label{display:block;font-size:13px;color:var(--text-secondary);margin-bottom:6px;font-weight:500}.theater-page .form-label .required{color:#ff4d4f;margin-left:2px}.theater-page .form-input,.theater-page .form-textarea,.theater-page .form-select{width:100%;padding:10px 14px;border-radius:var(--radius-md);border:1px solid var(--border);background:var(--bg-card);font-size:13px;color:var(--text-main);outline:none;transition:border-color .3s,box-shadow .3s;box-sizing:border-box;font-family:inherit;line-height:1.5}.theater-page .form-input:focus,.theater-page .form-textarea:focus,.theater-page .form-select:focus{border-color:var(--primary);box-shadow:0 0 0 3px #1890ff26}.theater-page .form-input::placeholder,.theater-page .form-textarea::placeholder{color:var(--text-placeholder)}.theater-page .form-textarea{min-height:80px;resize:vertical}.theater-page .form-textarea.large{min-height:200px}.theater-page .form-textarea.xlarge{min-height:300px}.theater-page .form-textarea.xxlarge{min-height:450px}.theater-page .form-group{margin-bottom:16px}.theater-page .form-group label{display:block;font-size:13px;color:#666;margin-bottom:6px;font-weight:500}.theater-page .form-group label .required{color:#ff4d4f;margin-left:2px}.theater-page .form-group input,.theater-page .form-group textarea,.theater-page .form-group select{width:100%;padding:10px 14px;border-radius:var(--radius-md);border:1px solid var(--border);background:var(--bg-card);font-size:13px;outline:none;transition:border-color .3s,box-shadow .3s;box-sizing:border-box}.theater-page .form-group input:focus,.theater-page .form-group textarea:focus,.theater-page .form-group select:focus{border-color:#1890ff;box-shadow:0 0 0 3px #1890ff26}.theater-page .form-group textarea{min-height:80px;resize:vertical}.theater-page .form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}.theater-page .form-row-3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px}.theater-page .btn-row{display:flex;gap:8px;margin-bottom:16px;flex-wrap:wrap}.theater-page .btn-secondary{padding:6px 16px;border-radius:var(--radius-md);border:1px solid var(--border);background:var(--bg-card);color:var(--text-main);font-size:13px;cursor:pointer;font-weight:500;transition:all .2s;font-family:inherit}.theater-page .btn-secondary:hover{border-color:var(--primary);color:var(--primary);background:var(--primary-light)}.theater-page .btn-danger-sm{padding:4px 10px;border-radius:6px;border:none;background:#fff2f0;color:#ff4d4f;font-size:12px;cursor:pointer;transition:all .2s;font-family:inherit}.theater-page .btn-danger-sm:hover{background:#ffccc7}.theater-page .tag-input-row{display:flex;gap:8px;align-items:center;margin-top:8px}.theater-page .tag-input-row .form-input{flex:1}.theater-page .tags-container{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}.theater-page .tag-item{display:flex;align-items:center;gap:4px;padding:4px 12px;border-radius:16px;background:#f0f0f0;font-size:12px;color:#666}.theater-page .tag-remove{cursor:pointer;font-size:14px;color:#ff4d4f;margin-left:4px}.theater-page .tag-remove:hover{color:#cf1322}.theater-page .archetype-card,.theater-page .interaction-card,.theater-page .ending-card{background:#fafafa;border:1px solid var(--border);border-radius:12px;padding:16px;margin-bottom:12px;box-shadow:var(--shadow-sm);transition:box-shadow .3s,border-color .3s}.theater-page .archetype-card:hover,.theater-page .interaction-card:hover,.theater-page .ending-card:hover{box-shadow:var(--shadow-md);border-color:var(--primary-border)}.theater-page .archetype-card .card-header,.theater-page .interaction-card .card-header,.theater-page .ending-card .card-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.theater-page .archetype-badge,.theater-page .interaction-badge,.theater-page .ending-badge{padding:3px 10px;border-radius:12px;font-size:11px;font-weight:600}.theater-page .ending-badge.good{background:#f6ffed;color:#52c41a}.theater-page .ending-badge.bad{background:#fff2f0;color:#ff4d4f}.theater-page .ending-badge.normal{background:#fffbe6;color:#faad14}.theater-page .ending-badge.hidden{background:#f9f0ff;color:#722ed1}.theater-page .ending-badge.reversal{background:#fff0f6;color:#eb2f96}.theater-page .interaction-badge.drama{background:#e6f7ff;color:#1890ff}.theater-page .interaction-badge.personal{background:#fff0f6;color:#eb2f96}.theater-page .module-badge{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:6px;font-size:10px;font-weight:600;margin-left:8px}.theater-page .module-badge.custom{background:#e6fffb;color:#13c2c2;border:1px solid #87e8de}.theater-page .var-table{width:100%;border-collapse:collapse;margin-top:8px}.theater-page .var-table th{padding:10px 12px;background:var(--primary-light);border:1px solid var(--border);font-size:12px;color:var(--primary);font-weight:600;text-align:left}.theater-page .var-table td{padding:8px 12px;border:1px solid var(--border-light);font-size:13px}.theater-page .var-table tr:hover td{background:#fafafa}.theater-page .var-table input,.theater-page .var-table select,.theater-page .var-table .form-input{width:100%;padding:6px 8px;border-radius:6px;border:1px solid #d9d9d9;background:#fff;font-size:12px;box-sizing:border-box}.theater-page .btn-add-row{margin-top:10px;padding:8px 16px;border-radius:8px;border:1px dashed #d9d9d9;background:transparent;color:#1890ff;font-size:13px;cursor:pointer;font-weight:500;transition:all .3s;font-family:inherit}.theater-page .btn-add-row:hover{background:#e6f7ff;border-color:#1890ff;box-shadow:0 0 0 2px #1890ff1a}.theater-page .btn-del-row{padding:4px 10px;border-radius:6px;border:none;background:#fff2f0;color:#ff4d4f;font-size:12px;cursor:pointer;transition:all .2s;font-family:inherit}.theater-page .btn-del-row:hover{background:#ffccc7}.theater-page .form-footer{padding:16px 32px;border-top:1px solid #f0f0f0;display:flex;justify-content:space-between;background:#fff;box-shadow:0 -1px 4px #0000000f;z-index:10}.theater-page .cover-upload{width:200px;height:280px;border:2px dashed #d9d9d9;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;transition:border-color .3s,background .3s,box-shadow .3s;background:var(--bg-card);overflow:hidden;position:relative}.theater-page .cover-upload:hover{border-color:#1890ff;background:#e6f7ff;box-shadow:var(--shadow-md)}.theater-page .cover-upload img{width:100%;height:100%;object-fit:cover;position:absolute;top:0;left:0}.theater-page button{font-family:inherit}.theater-page button:disabled{opacity:.5;cursor:not-allowed}@media(max-width:900px){.theater-page{flex-direction:column}.theater-page .ai-panel{width:100%;min-width:auto;height:45vh;border-right:none;border-bottom:1px solid #f0f0f0}.theater-page .form-row{grid-template-columns:1fr}}.theater-page .var-panel{width:260px;min-width:260px;border-left:1px solid var(--border);background:var(--bg-card);display:flex;flex-direction:column;transition:all .3s;overflow:hidden}.theater-page .var-panel.collapsed{width:36px;min-width:36px}.theater-page .var-panel-header{padding:12px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.theater-page .var-panel-header h3{font-size:13px;font-weight:700;margin:0;white-space:nowrap}.theater-page .var-panel.collapsed .var-panel-header{justify-content:center;padding:12px 4px}.theater-page .var-panel-toggle{width:28px;height:28px;border:1px solid var(--border);border-radius:6px;background:var(--bg-section);color:var(--text-tertiary);cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:14px;flex-shrink:0;transition:all .2s}.theater-page .var-panel-toggle:hover{border-color:var(--primary);color:var(--primary)}.theater-page .var-panel-body{flex:1;overflow-y:auto;padding:12px}.theater-page .var-panel-section{margin-bottom:16px}.theater-page .var-panel-section-title{font-size:11px;font-weight:700;color:var(--text-tertiary);text-transform:uppercase;letter-spacing:.5px;padding-bottom:6px;margin-bottom:8px;border-bottom:1px solid var(--border-light)}.theater-page .var-panel-item{padding:6px 10px;font-size:12px;color:var(--text-secondary);background:var(--bg-section);border:1px solid var(--border);border-radius:6px;margin-bottom:4px;cursor:pointer;transition:all .15s;display:flex;align-items:center;justify-content:space-between}.theater-page .var-panel-item:hover{border-color:var(--primary);color:var(--primary);background:var(--primary-light)}.theater-page .var-type{font-size:10px;padding:1px 6px;border-radius:8px;background:#1890ff14;color:var(--primary);font-weight:600}.theater-page .sub-tabs{display:flex;gap:6px;padding:12px 0;margin-bottom:12px;border-bottom:1px solid var(--border-light);flex-wrap:wrap}.theater-page .sub-tab{padding:6px 14px;font-size:12px;font-weight:600;color:var(--text-tertiary);cursor:pointer;border-radius:var(--radius-sm);transition:all .2s;border:1px solid transparent}.theater-page .sub-tab:hover{color:var(--text-main);background:var(--bg-section)}.theater-page .sub-tab.active{color:var(--primary);background:var(--primary-light);border-color:var(--primary-border)}.theater-page .sub-tab-add{color:var(--success);border:1px dashed var(--success);background:transparent}.theater-page .sub-tab-add:hover{background:#52c41a0f}.theater-page .component-layout{display:flex;gap:16px;min-height:400px}.theater-page .component-sidebar{width:200px;flex-shrink:0;background:var(--bg-section);border:1px solid var(--border);border-radius:var(--radius-md);padding:10px;overflow-y:auto;max-height:calc(100vh - 280px)}.theater-page .component-sidebar-title{font-size:11px;font-weight:700;color:var(--text-tertiary);text-transform:uppercase;letter-spacing:.5px;padding:6px 8px;margin-bottom:4px}.theater-page .component-sidebar-item{padding:8px 10px;font-size:12.5px;color:var(--text-tertiary);cursor:pointer;border-radius:var(--radius-sm);transition:all .15s;display:flex;align-items:center;gap:6px;margin-bottom:2px}.theater-page .component-sidebar-item:hover{background:#f5f5f5;color:var(--text-main)}.theater-page .component-sidebar-item.active{background:var(--primary-light);color:var(--primary);font-weight:600}.theater-page .component-sidebar-item .dot{width:6px;height:6px;border-radius:50%;flex-shrink:0}.theater-page .component-detail{flex:1;overflow-y:auto}.theater-page .ending-list-item{display:flex;align-items:center;gap:8px;padding:8px 10px;font-size:12.5px;color:var(--text-tertiary);cursor:pointer;border-radius:var(--radius-sm);transition:all .15s;margin-bottom:2px}.theater-page .ending-list-item:hover{background:#f5f5f5;color:var(--text-main)}.theater-page .ending-list-item.active{background:var(--primary-light);color:var(--primary);font-weight:600}.theater-page .ending-type-badge{font-size:10px;padding:1px 6px;border-radius:8px;font-weight:600;flex-shrink:0}.theater-page .option-rule-card{display:flex;align-items:center;gap:10px;padding:8px 12px;background:var(--bg-section);border:1px solid var(--border);border-radius:var(--radius-sm);margin-bottom:8px}.theater-page .rule-num{width:28px;height:28px;background:var(--primary-light);color:var(--primary);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;flex-shrink:0}.theater-page .rule-input{flex:1}.theater-page .attr-table{width:100%;border-collapse:collapse}.theater-page .attr-table th,.theater-page .attr-table td{padding:8px 10px;text-align:left;font-size:12.5px;border-bottom:1px solid var(--border-light)}.theater-page .attr-table th{color:var(--text-tertiary);font-weight:600;font-size:11.5px}.theater-page .attr-table td input,.theater-page .attr-table td select{width:100%;padding:6px 8px;background:var(--bg-section);border:1px solid var(--border);border-radius:6px;color:var(--text-main);font-size:12.5px}.theater-page .attr-table td input:focus,.theater-page .attr-table td select:focus{outline:none;border-color:var(--primary)}.theater-page .empty-state{text-align:center;padding:40px 20px;color:var(--text-tertiary)}.theater-page .empty-state .icon{font-size:36px;margin-bottom:12px}.theater-page .upload-area{border:2px dashed var(--border);border-radius:var(--radius-md);padding:24px;text-align:center;cursor:pointer;color:var(--text-tertiary);transition:all .2s}.theater-page .upload-area:hover{border-color:var(--primary);background:var(--primary-light)}.theater-page .upload-area.has-file{border-style:solid;border-color:var(--success)}.theater-page .condition-box{background:var(--bg-section);border:1px solid var(--border);border-radius:var(--radius-md);padding:14px;margin-top:8px}.theater-page .syntax-help{background:#1890ff0a;border:1px solid rgba(24,144,255,.15);border-radius:var(--radius-sm);padding:10px 12px;margin-bottom:12px;font-size:11.5px;color:var(--primary);line-height:1.8}.theater-page .syntax-help code{background:#1890ff14;padding:1px 5px;border-radius:4px;font-size:11px}.theater-page .var-tag-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.theater-page .var-tag{padding:4px 10px;font-size:11.5px;background:var(--bg-section);border:1px solid var(--border);border-radius:20px;cursor:pointer;color:var(--text-tertiary);transition:all .15s}.theater-page .var-tag:hover{border-color:var(--primary);color:var(--primary);background:var(--primary-light)}.theater-page .var-tag .var-prefix{color:var(--primary);font-weight:600}.theater-page.theme-dark{--primary: #6366f1;--primary-light: rgba(99,102,241,.12);--primary-border: rgba(99,102,241,.3);--success: #10b981;--danger: #ef4444;--warning: #f59e0b;--bg-main: #0a0e1a;--bg-card: #131829;--bg-section: #1a1f35;--border: #2a3050;--border-light: #1e2440;--text-main: #e2e8f0;--text-secondary: #8892b0;--text-tertiary: #64748b;--text-placeholder: #475569;--shadow-sm: 0 1px 2px rgba(0,0,0,.3);--shadow-md: 0 2px 8px rgba(0,0,0,.3);--shadow-lg: 0 4px 16px rgba(0,0,0,.4)}.theater-page.theme-eye{--primary: #059669;--primary-light: rgba(5,150,105,.1);--primary-border: rgba(5,150,105,.3);--success: #10b981;--danger: #dc2626;--warning: #d97706;--bg-main: #e8f0e2;--bg-card: #f0f7ea;--bg-section: #e5eddf;--border: #b8c9af;--border-light: #c8d6c0;--text-main: #2d3b28;--text-secondary: #5a6b54;--text-tertiary: #728a6a;--text-placeholder: #8fa087;--shadow-sm: 0 1px 2px rgba(0,0,0,.06);--shadow-md: 0 2px 8px rgba(0,0,0,.06);--shadow-lg: 0 4px 16px rgba(0,0,0,.1)}.theater-page .theme-switcher{display:flex;align-items:center;gap:2px;background:var(--bg-section);border:1px solid var(--border);border-radius:var(--radius-sm);padding:2px}.theater-page .theme-btn{padding:4px 8px;font-size:14px;background:transparent;border:none;border-radius:4px;cursor:pointer;opacity:.5;transition:all .2s}.theater-page .theme-btn:hover{opacity:.8;background:var(--bg-card)}.theater-page .theme-btn.active{opacity:1;background:var(--primary-light)}.theater-page.theme-dark .form-input,.theater-page.theme-dark .form-textarea,.theater-page.theme-dark .form-select,.theater-page.theme-eye .form-input,.theater-page.theme-eye .form-textarea,.theater-page.theme-eye .form-select{background:var(--bg-section);border-color:var(--border);color:var(--text-main)}.theater-page.theme-dark .ai-panel-header,.theater-page.theme-eye .ai-panel-header{background:var(--bg-card)}.theater-page.theme-dark .chat-msg.user{background:#6366f126;border-color:#6366f14d}.theater-page.theme-dark .chat-msg.assistant{background:var(--bg-section);border-color:var(--border)}
