MediaWiki

Equipment.css:修订间差异

来自卡厄思梦境WIKI

律Rhyme留言 | 贡献
创建页面,内容为“.equipment-manager { max-width: 1200px; margin: 20px auto; font-family: sans-serif; } .eq-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 2px solid #0645ad; } .eq-header h2 { margin: 0; color: #0645ad; } .eq-btn { display: inline-block; padding: 8px 16px; border-radius: 4px; cursor: pointer; text-align: center…”
 
律Rhyme留言 | 贡献
无编辑摘要
第1行: 第1行:
/* 主容器 */
.equipment-manager {
.equipment-manager {
     max-width: 1200px;
     max-width: 1200px;
     margin: 20px auto;
     margin: 20px auto;
     font-family: sans-serif;
     font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
}


/* 头部 */
.eq-header {
.eq-header {
     display: flex;
     display: flex;
第10行: 第12行:
     align-items: center;
     align-items: center;
     margin-bottom: 20px;
     margin-bottom: 20px;
     padding-bottom: 15px;
     padding: 15px 20px;
     border-bottom: 2px solid #0645ad;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
     border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
}


.eq-header h2 {
.eq-title {
     margin: 0;
     font-size: 24px;
     color: #0645ad;
    font-weight: bold;
     color: white;
}
}


/* 按钮 */
.eq-btn {
.eq-btn {
    display: inline-block;
     padding: 10px 20px;
     padding: 8px 16px;
     border-radius: 6px;
     border-radius: 4px;
     cursor: pointer;
     cursor: pointer;
     text-align: center;
     font-weight: 500;
     transition: all 0.3s;
     transition: all 0.3s ease;
     user-select: none;
     user-select: none;
}
}


.eq-btn-primary {
.eq-btn-primary {
     background-color: #0645ad;
     background: #4CAF50;
     color: white;
     color: white;
}
}


.eq-btn-primary:hover {
.eq-btn-primary:hover {
     background-color: #0b0080;
     background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}
}


.eq-btn-secondary {
.eq-btn-secondary {
     background-color: #f8f9fa;
     background: #6c757d;
     color: #202122;
     color: white;
    border: 1px solid #a2a9b1;
}
}


.eq-btn-secondary:hover {
.eq-btn-secondary:hover {
     background-color: #e9ecef;
     background: #5a6268;
}
}


/* 表格样式 */
.eq-btn-small {
.eq-table {
     display: inline-block;
     border: 1px solid #a2a9b1;
    padding: 5px 12px;
    margin: 0 3px;
     border-radius: 4px;
     border-radius: 4px;
     overflow: hidden;
     cursor: pointer;
     background: white;
     font-size: 13px;
    transition: all 0.2s ease;
}
}


.eq-table-header {
.eq-btn-edit {
    display: flex;
     background: #2196F3;
     background-color: #eaecf0;
     color: white;
     font-weight: bold;
    border-bottom: 2px solid #a2a9b1;
}
}


.eq-table-row {
.eq-btn-edit:hover {
     display: flex;
     background: #0b7dda;
    border-bottom: 1px solid #eaecf0;
}
}


.eq-table-row:hover {
.eq-btn-delete {
     background-color: #f8f9fa;
     background: #f44336;
    color: white;
}
}


.eq-table-row:last-child {
.eq-btn-delete:hover {
     border-bottom: none;
     background: #da190b;
}
}


.eq-cell {
/* 表格 */
     padding: 12px;
.eq-table {
     flex: 1;
     background: white;
     min-width: 0;
     border-radius: 8px;
     word-wrap: break-word;
     overflow: hidden;
     box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
}


.eq-cell:nth-child(1) {
.eq-table-header {
     flex: 0 0 60px;
     display: flex;
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: bold;
    padding: 12px 10px;
}
}


.eq-cell:nth-child(2) {
.eq-th {
     flex: 2;
     flex: 1;
    padding: 0 10px;
    text-align: left;
}
}


.eq-cell:nth-child(3) {
.eq-th-image {
     flex: 0 0 80px;
     flex: 0 0 80px;
}
}


.eq-cell:nth-child(4) {
.eq-th-name {
     flex: 0 0 80px;
    flex: 0 0 150px;
}
 
.eq-th-actions {
     flex: 0 0 140px;
    text-align: center;
}
}


.eq-cell:nth-child(5) {
.eq-table-body {
     flex: 0 0 80px;
     max-height: 600px;
    overflow-y: auto;
}
}


.eq-cell:nth-child(6) {
.eq-table-row {
     flex: 2;
     display: flex;
    padding: 12px 10px;
    border-bottom: 1px solid #e9ecef;
    transition: background 0.2s;
    align-items: center;
}
}


.eq-cell:nth-child(7) {
.eq-table-row:hover {
     flex: 0 0 120px;
     background: #f8f9fa;
}
}


/* 稀有度颜色 */
.eq-td {
.eq-rarity-蓝 {
     flex: 1;
     color: #0645ad;
    padding: 0 10px;
     font-weight: bold;
     word-wrap: break-word;
}
 
.eq-td-image {
    flex: 0 0 80px;
}
}


.eq-rarity-{
.eq-td-name {
     color: #8b00ff;
     flex: 0 0 150px;
     font-weight: bold;
     font-weight: 500;
}
}


.eq-rarity-{
.eq-td-actions {
     color: #ff8c00;
     flex: 0 0 140px;
     font-weight: bold;
     text-align: center;
}
}


/* 操作链接 */
.eq-thumbnail {
.eq-actions {
     width: 60px;
     display: flex;
    height: 60px;
     gap: 10px;
    object-fit: cover;
    border-radius: 6px;
     border: 2px solid #dee2e6;
}
}


.eq-link {
/* 稀有度标签 */
     color: #0645ad;
.eq-rarity {
     cursor: pointer;
     padding: 3px 10px;
     text-decoration: underline;
     border-radius: 12px;
    font-size: 12px;
     font-weight: bold;
}
}


.eq-link:hover {
.eq-rarity-蓝 {
     color: #0b0080;
    background: #e3f2fd;
     color: #1976d2;
}
}


.eq-delete {
.eq-rarity-紫 {
     color: #d33;
    background: #f3e5f5;
     color: #7b1fa2;
}
}


.eq-delete:hover {
.eq-rarity-金{
     color: #a00;
    background: #fff3e0;
     color: #f57c00;
}
}


/* 模态框 */
/* 模态框 */
.eq-modal {
.eq-modal-backdrop {
     position: fixed;
     position: fixed;
     z-index: 1000;
     top: 0;
     left: 0;
     left: 0;
    top: 0;
     width: 100%;
     width: 100%;
     height: 100%;
     height: 100%;
    overflow: auto;
     background: rgba(0,0,0,0.5);
     background-color: rgba(0,0,0,0.4);
    z-index: 9998;
}
 
.eq-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}
}


.eq-modal-content {
.eq-modal-content {
     background-color: #fefefe;
     background: white;
    margin: 5% auto;
     border-radius: 12px;
    width: 90%;
     box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    max-width: 600px;
     border-radius: 8px;
     box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
}


第176行: 第218行:
     justify-content: space-between;
     justify-content: space-between;
     align-items: center;
     align-items: center;
     padding: 20px;
     padding: 20px 25px;
     border-bottom: 1px solid #eaecf0;
     border-bottom: 1px solid #e9ecef;
}
}


.eq-modal-header h3 {
.eq-modal-title {
     margin: 0;
     font-size: 20px;
     color: #0645ad;
     font-weight: bold;
}
}


.eq-close {
.eq-modal-close {
    color: #a2a9b1;
     font-size: 28px;
     font-size: 28px;
    font-weight: bold;
     cursor: pointer;
     cursor: pointer;
    color: #6c757d;
     line-height: 1;
     line-height: 1;
    width: 30px;
    height: 30px;
    text-align: center;
}
}


.eq-close:hover {
.eq-modal-close:hover {
     color: #000;
     color: #000;
}
}


.eq-modal-body {
.eq-modal-body {
     padding: 20px;
     padding: 25px;
    max-height: calc(90vh - 160px);
    overflow-y: auto;
}
 
.eq-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 25px;
    border-top: 1px solid #e9ecef;
}
 
/* 表单 */
.eq-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
}


/* 表单样式 */
.eq-form-group {
.eq-form-group {
     margin-bottom: 20px;
     display: flex;
    flex-direction: column;
    gap: 8px;
}
}


.eq-form-group label {
.eq-label {
     display: block;
     font-weight: 500;
     margin-bottom: 8px;
     color: #495057;
     font-weight: bold;
     font-size: 14px;
    color: #202122;
}
}


.eq-input {
.eq-label-small {
     width: 100%;
     font-weight: 500;
     padding: 8px 12px;
     color: #495057;
    border: 1px solid #a2a9b1;
     font-size: 13px;
    border-radius: 4px;
     margin-bottom: 5px;
     font-size: 14px;
     box-sizing: border-box;
}
}


.eq-input:focus {
/* 可编辑输入框 */
.eq-input,
.eq-input-small {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 10px 12px;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-height: 20px;
     outline: none;
     outline: none;
    border-color: #0645ad;
    box-shadow: 0 0 0 1px #0645ad;
}
}


.eq-input:disabled {
.eq-input:focus,
     background-color: #f8f9fa;
.eq-input-small:focus {
     color: #72777d;
     border-color: #80bdff;
     box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}
}


.eq-textarea {
.eq-input:empty:before,
    width: 100%;
.eq-input-small:empty:before {
    padding: 8px 12px;
     content: attr(data-placeholder);
    border: 1px solid #a2a9b1;
     color: #999;
    border-radius: 4px;
    font-size: 14px;
    font-family: monospace;
     box-sizing: border-box;
     resize: vertical;
}
}


.eq-textarea:focus {
.eq-input-small {
     outline: none;
     padding: 8px 10px;
    border-color: #0645ad;
     font-size: 13px;
     box-shadow: 0 0 0 1px #0645ad;
}
}


/* 单选按钮组 */
/* 自定义下拉框 */
.eq-radio-group {
.eq-select {
     display: flex;
     position: relative;
    gap: 20px;
}
}


.eq-radio-group label {
.eq-select-display {
     display: flex;
     border: 1px solid #ced4da;
     align-items: center;
     border-radius: 6px;
     font-weight: normal;
     padding: 10px 30px 10px 12px;
    background: white;
     cursor: pointer;
     cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    position: relative;
}
}


.eq-radio-group input[type="radio"] {
.eq-select-display:after {
     margin-right: 6px;
    content: '▼';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #6c757d;
}
 
.eq-select-display:hover {
    border-color: #80bdff;
}
 
.eq-select-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
     margin-top: 4px;
    background: white;
    border: 1px solid #ced4da;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}
 
.eq-select-option {
    padding: 10px 12px;
     cursor: pointer;
     cursor: pointer;
    transition: background 0.2s;
}
}


/* 表单操作按钮 */
.eq-select-option:hover {
.eq-form-actions {
     background: #f8f9fa;
     display: flex;
}
    gap: 10px;
 
    justify-content: flex-end;
.eq-select-option:first-child {
     margin-top: 30px;
     border-radius: 6px 6px 0 0;
    padding-top: 20px;
}
     border-top: 1px solid #eaecf0;
 
.eq-select-option:last-child {
     border-radius: 0 0 6px 6px;
}
}


/* 代码区域 */
/* 表单分组 */
.eq-code-section {
.eq-form-section {
     margin-top: 40px;
     margin-top: 20px;
     padding: 20px;
     padding: 20px;
     background-color: #f8f9fa;
     background: #f8f9fa;
     border-radius: 8px;
     border-radius: 8px;
    border: 1px solid #a2a9b1;
}
}


.eq-code-section h3 {
.eq-section-title {
     margin-top: 0;
    font-size: 16px;
    font-weight: bold;
     margin-bottom: 15px;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 8px;
}
 
.eq-level-group {
     margin-bottom: 15px;
     margin-bottom: 15px;
     color: #0645ad;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #667eea;
}
 
.eq-level-title {
    font-weight: bold;
     color: #667eea;
    margin-bottom: 10px;
    font-size: 15px;
}
 
.eq-form-row {
    display: flex;
    gap: 15px;
}
 
.eq-form-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}
 
/* 滚动条样式 */
.eq-modal-body::-webkit-scrollbar,
.eq-table-body::-webkit-scrollbar,
.eq-select-dropdown::-webkit-scrollbar {
    width: 8px;
}
 
.eq-modal-body::-webkit-scrollbar-track,
.eq-table-body::-webkit-scrollbar-track,
.eq-select-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
}


.eq-code-box {
.eq-modal-body::-webkit-scrollbar-thumb,
    background-color: #ffffff;
.eq-table-body::-webkit-scrollbar-thumb,
     border: 1px solid #a2a9b1;
.eq-select-dropdown::-webkit-scrollbar-thumb {
     background: #888;
     border-radius: 4px;
     border-radius: 4px;
    padding: 15px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 15px;
    color: #202122;
}
}


#eq-copy-code {
.eq-modal-body::-webkit-scrollbar-thumb:hover,
     display: inline-block;
.eq-table-body::-webkit-scrollbar-thumb:hover,
.eq-select-dropdown::-webkit-scrollbar-thumb:hover {
     background: #555;
}
}


/* 响应式设计 */
/* 响应式设计 */
@media (max-width: 768px) {
@media (max-width: 768px) {
    .equipment-manager {
        margin: 10px;
    }
   
     .eq-header {
     .eq-header {
         flex-direction: column;
         flex-direction: column;
        align-items: flex-start;
         gap: 10px;
         gap: 10px;
        align-items: stretch;
     }
     }
      
      
第330行: 第457行:
     .eq-table-row {
     .eq-table-row {
         flex-direction: column;
         flex-direction: column;
         padding: 10px;
         padding: 15px;
        gap: 10px;
     }
     }
      
      
     .eq-cell {
     .eq-td {
         padding: 5px 0;
         width: 100%;
        flex: none !important;
        min-width: 100% !important;
     }
     }
      
      
     .eq-cell:before {
     .eq-td:before {
         content: attr(data-label);
         content: attr(data-label);
         font-weight: bold;
         font-weight: bold;
         display: inline-block;
         margin-right: 10px;
        width: 100px;
     }
     }
      
      
     .eq-modal-content {
     .eq-modal {
         width: 95%;
         width: 95%;
        margin: 10% auto;
    }
   
    .eq-radio-group {
        flex-direction: column;
        gap: 10px;
     }
     }
      
      
     .eq-form-actions {
     .eq-form-row {
         flex-direction: column;
         flex-direction: column;
    }
   
    .eq-btn {
        width: 100%;
     }
     }
}
}


/* 加载动画 */
/* 加载动画 */
.eq-loading {
@keyframes spin {
     text-align: center;
     to { transform: rotate(360deg); }
    padding: 40px;
    color: #72777d;
}
}


.eq-loading:after {
.eq-loading {
     content: '...';
     display: inline-block;
     animation: dots 1.5s steps(4, end) infinite;
     width: 20px;
}
     height: 20px;
 
     border: 3px solid rgba(255,255,255,.3);
@keyframes dots {
     border-radius: 50%;
     0%, 20% {
     border-top-color: white;
        content: '.';
     animation: spin 1s linear infinite;
     }
    40% {
        content: '..';
     }
     60%, 100% {
        content: '...';
     }
}
}


第393行: 第499行:
     text-align: center;
     text-align: center;
     padding: 60px 20px;
     padding: 60px 20px;
     color: #72777d;
     color: #6c757d;
}
}


.eq-empty-icon {
.eq-empty-icon {
     font-size: 48px;
     font-size: 48px;
     margin-bottom: 10px;
     margin-bottom: 15px;
     opacity: 0.5;
     opacity: 0.5;
}
}


/* 通知样式增强 */
.eq-empty-text {
.equipment-manager .mw-notification {
     font-size: 16px;
     border-radius: 4px;
}
}

2025年10月17日 (五) 19:05的版本

/* 主容器 */
.equipment-manager {
    max-width: 1200px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 头部 */
.eq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.eq-title {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

/* 按钮 */
.eq-btn {
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    user-select: none;
}

.eq-btn-primary {
    background: #4CAF50;
    color: white;
}

.eq-btn-primary:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.eq-btn-secondary {
    background: #6c757d;
    color: white;
}

.eq-btn-secondary:hover {
    background: #5a6268;
}

.eq-btn-small {
    display: inline-block;
    padding: 5px 12px;
    margin: 0 3px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.eq-btn-edit {
    background: #2196F3;
    color: white;
}

.eq-btn-edit:hover {
    background: #0b7dda;
}

.eq-btn-delete {
    background: #f44336;
    color: white;
}

.eq-btn-delete:hover {
    background: #da190b;
}

/* 表格 */
.eq-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.eq-table-header {
    display: flex;
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: bold;
    padding: 12px 10px;
}

.eq-th {
    flex: 1;
    padding: 0 10px;
    text-align: left;
}

.eq-th-image {
    flex: 0 0 80px;
}

.eq-th-name {
    flex: 0 0 150px;
}

.eq-th-actions {
    flex: 0 0 140px;
    text-align: center;
}

.eq-table-body {
    max-height: 600px;
    overflow-y: auto;
}

.eq-table-row {
    display: flex;
    padding: 12px 10px;
    border-bottom: 1px solid #e9ecef;
    transition: background 0.2s;
    align-items: center;
}

.eq-table-row:hover {
    background: #f8f9fa;
}

.eq-td {
    flex: 1;
    padding: 0 10px;
    word-wrap: break-word;
}

.eq-td-image {
    flex: 0 0 80px;
}

.eq-td-name {
    flex: 0 0 150px;
    font-weight: 500;
}

.eq-td-actions {
    flex: 0 0 140px;
    text-align: center;
}

.eq-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #dee2e6;
}

/* 稀有度标签 */
.eq-rarity {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.eq-rarity-蓝 {
    background: #e3f2fd;
    color: #1976d2;
}

.eq-rarity-紫 {
    background: #f3e5f5;
    color: #7b1fa2;
}

.eq-rarity-金{
    background: #fff3e0;
    color: #f57c00;
}

/* 模态框 */
.eq-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
}

.eq-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.eq-modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.eq-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
}

.eq-modal-title {
    font-size: 20px;
    font-weight: bold;
}

.eq-modal-close {
    font-size: 28px;
    cursor: pointer;
    color: #6c757d;
    line-height: 1;
    width: 30px;
    height: 30px;
    text-align: center;
}

.eq-modal-close:hover {
    color: #000;
}

.eq-modal-body {
    padding: 25px;
    max-height: calc(90vh - 160px);
    overflow-y: auto;
}

.eq-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 25px;
    border-top: 1px solid #e9ecef;
}

/* 表单 */
.eq-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.eq-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.eq-label {
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}

.eq-label-small {
    font-weight: 500;
    color: #495057;
    font-size: 13px;
    margin-bottom: 5px;
}

/* 可编辑输入框 */
.eq-input,
.eq-input-small {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 10px 12px;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-height: 20px;
    outline: none;
}

.eq-input:focus,
.eq-input-small:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.eq-input:empty:before,
.eq-input-small:empty:before {
    content: attr(data-placeholder);
    color: #999;
}

.eq-input-small {
    padding: 8px 10px;
    font-size: 13px;
}

/* 自定义下拉框 */
.eq-select {
    position: relative;
}

.eq-select-display {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 10px 30px 10px 12px;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    position: relative;
}

.eq-select-display:after {
    content: '▼';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #6c757d;
}

.eq-select-display:hover {
    border-color: #80bdff;
}

.eq-select-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: white;
    border: 1px solid #ced4da;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.eq-select-option {
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.eq-select-option:hover {
    background: #f8f9fa;
}

.eq-select-option:first-child {
    border-radius: 6px 6px 0 0;
}

.eq-select-option:last-child {
    border-radius: 0 0 6px 6px;
}

/* 表单分组 */
.eq-form-section {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.eq-section-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 8px;
}

.eq-level-group {
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #667eea;
}

.eq-level-title {
    font-weight: bold;
    color: #667eea;
    margin-bottom: 10px;
    font-size: 15px;
}

.eq-form-row {
    display: flex;
    gap: 15px;
}

.eq-form-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 滚动条样式 */
.eq-modal-body::-webkit-scrollbar,
.eq-table-body::-webkit-scrollbar,
.eq-select-dropdown::-webkit-scrollbar {
    width: 8px;
}

.eq-modal-body::-webkit-scrollbar-track,
.eq-table-body::-webkit-scrollbar-track,
.eq-select-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.eq-modal-body::-webkit-scrollbar-thumb,
.eq-table-body::-webkit-scrollbar-thumb,
.eq-select-dropdown::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.eq-modal-body::-webkit-scrollbar-thumb:hover,
.eq-table-body::-webkit-scrollbar-thumb:hover,
.eq-select-dropdown::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .eq-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .eq-table-header {
        display: none;
    }
    
    .eq-table-row {
        flex-direction: column;
        padding: 15px;
        gap: 10px;
    }
    
    .eq-td {
        width: 100%;
    }
    
    .eq-td:before {
        content: attr(data-label);
        font-weight: bold;
        margin-right: 10px;
    }
    
    .eq-modal {
        width: 95%;
    }
    
    .eq-form-row {
        flex-direction: column;
    }
}

/* 加载动画 */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.eq-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

/* 空状态 */
.eq-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.eq-empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.eq-empty-text {
    font-size: 16px;
}