* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
    background: #f5f5f5;
    overflow: hidden;
}
#界 {
    display: flex;
    flex-direction: column;
    height: 100vh;
}
#工具 {
    background: #2c3e50;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 50px;
    flex-shrink: 0;
}
.栏左 .标 {
    font-size: 20px;
    font-weight: bold;
}
.栏右 {
    display: flex;
    gap: 10px;
}
.栏右 button {
    padding: 6px 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}
.栏右 button:hover {
    background: #2980b9;
}
#主 {
    display: flex;
    flex: 1;
    overflow: hidden;
}
#左 {
    width: 280px;
    background: white;
    border-right: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}
#左 h2 {
    padding: 15px;
    background: #34495e;
    color: white;
    font-size: 16px;
}
#接口列表 {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}
.接口项 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 32px;
    border-bottom: 1px solid #f1f1f1;
    position: relative;
}
.接口项:hover {
    background: #f8f9fa;
}
.接口名 {
    font-weight: bold;
    color: #f50808;
}
.接口参 {
    font-size: 12px;
    color: #7f8c8d;
    flex: 1;
}
.接口按钮组 {
    display: none;
    gap: 5px;
}
.接口项:hover .接口按钮组 {
    display: flex;
}
.接口插, .接口定位 {
    padding: 4px 8px;
    font-size: 12px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}
.接口定位 {
    background: #e67e22;
}
.接口插:hover {
    background: #229954;
}
.接口定位:hover {
    background: #d35400;
}
#中 {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.板 {
    display: flex;
    flex-direction: column;
    background: white;
    margin: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}
.区头 {
    background: #ecf0f1;
    padding: 10px 15px;
    font-weight: bold;
    color: #2c3e50;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.区钮 {
    display: flex;
    gap: 5px;
}
.区钮 button {
    padding: 4px 10px;
    font-size: 12px;
    background: #95a5a6;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}
.区钮 button:hover {
    background: #7f8c8d;
}
.区体 {
    flex: 1;
    position: relative;
    min-height: 0;
}
#预区 {
    flex: 1;
    margin-top: 0;
}
.预体 {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fafafa;
    padding: 10px;
}
#画布 {
    border: 1px solid #bdc3c7;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 100%;
    max-height: 100%;
}
#右 {
    width: 350px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}
#右 .板 {
    margin: 10px 10px 0 10px;
    flex: 1;
}
#右 .板:last-child {
    margin-bottom: 10px;
}
#片区 {
    min-height: 150px;
}
#片文区 {
    min-height: 200px;
}
#源码区 {
    min-height: 250px;
}
#片断列表, #源码编辑器, #片断编辑器 {
    overflow-y: auto;
}
.片卡 {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 10px;
    transition: all 0.2s;
}
.片卡:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.片卡.片选 {
    border-color: #3498db;
    background: #eaf2f8;
}
.片名 {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}
.片述 {
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 8px;
}
.片码 {
    background: #f8f9fa;
    padding: 8px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    overflow-x: auto;
    margin-bottom: 8px;
}
.片操作 {
    display: flex;
    gap: 8px;
}
.片操作 button {
    flex: 1;
    padding: 5px;
    font-size: 12px;
}
#状态 {
    background: #34495e;
    color: white;
    padding: 8px 20px;
    font-size: 13px;
    flex-shrink: 0;
}
#下载打包钮 {
    background: #9b59b6;
}
#下载打包钮:hover {
    background: #8e44ad;
}
#脚本编辑器,
#片断编辑器,
#源码编辑器 {
    flex: 1;
    min-height: 180px;
    height: 100%;
}