/**
 * 文件格式和上传功能样式
 */

/* 文件格式管理 */
.zfve-file-formats {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.zfve-formats-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 单个格式项 - 深色主题 */
.zfve-format-item {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
    align-items: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.zfve-format-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border-color: rgba(102, 126, 234, 0.3);
}

.zfve-format-item .format-select-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.zfve-format-item .format-select-group label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

.zfve-format-item select,
.zfve-format-item input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.zfve-format-item select:focus,
.zfve-format-item input[type="text"]:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.zfve-format-item select option {
    background: #2c2c2c;
    color: rgba(255, 255, 255, 0.9);
}

/* 文件格式下拉框的分组标签样式 */
.zfve-format-item select optgroup {
    background: #1a1a1a !important;
    color: rgba(100, 150, 255, 0.9) !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    padding: 8px 10px !important;
    font-style: normal !important;
}

/* 文件格式选择器专属样式 */
.format-type-select optgroup {
    background: #1a1a1a !important;
    color: rgba(100, 150, 255, 0.9) !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    padding: 8px 10px !important;
    font-style: normal !important;
}

.format-type-select option {
    background: #2c2c2c !important;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 8px 10px !important;
    padding-left: 20px !important;  /* 选项缩进 */
}

.zfve-format-item input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* 内容类型选择器 - 深色主题 */
.zfve-content-type {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.zfve-type-selector {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.zfve-type-option {
    flex: 1;
    position: relative;
}

.zfve-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.zfve-type-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.zfve-type-label:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
}

.zfve-type-option input[type="radio"]:checked + .zfve-type-label {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.zfve-type-label i {
    font-size: 18px;
}

/* 模型属性设置 */
.zfve-model-attributes {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.zfve-attributes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.attribute-item {
    display: flex;
    flex-direction: column;
}

/* 复选框样式 - 深色主题 */
.attribute-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    user-select: none;
    min-height: 44px;
}

.attribute-label:hover {
    border-color: #667eea !important;
    background: rgba(102, 126, 234, 0.15) !important;
}

.attribute-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
    flex-shrink: 0;
}

.attribute-label input[type="checkbox"]:checked + span {
    color: #667eea !important;
    font-weight: 600;
}

.attribute-label span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s ease;
    line-height: 1.5;
}

/* 文本标签样式 - 深色主题 */
.attribute-label-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6) !important;
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.attribute-item input[type="number"],
.attribute-item select {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
}

.attribute-item input[type="number"]:focus,
.attribute-item select:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.attribute-item input[type="number"]::placeholder,
.attribute-item select option {
    color: rgba(255, 255, 255, 0.5);
}

.attribute-item select option {
    background: #2c2c2c;
    color: rgba(255, 255, 255, 0.9);
}

/* 响应式 */
@media (max-width: 768px) {
    .zfve-format-item {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .zfve-attributes-grid {
        grid-template-columns: 1fr;
    }
    
    .zfve-type-selector {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .zfve-attributes-grid {
        padding: 10px;
        gap: 10px;
    }
    
    .zfve-type-label {
        padding: 10px 15px;
        font-size: 13px;
    }
}

/* ==================== 引擎属性样式 ==================== */
.zfve-engine-attributes {
    background: rgba(30, 30, 30, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}

.zfve-engine-attributes h4 {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 引擎版本输入框 - 深色样式 */
#zfve_engine_version {
    background: rgba(50, 50, 50, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 12px 14px;
    border-radius: 4px;
    width: 100%;
    font-size: 14px;
    min-height: 46px;
    transition: all 0.3s ease;
}

#zfve_engine_version:focus {
    background: rgba(60, 60, 60, 0.9) !important;
    border-color: rgba(100, 150, 255, 0.6) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(100, 150, 255, 0.1);
}

#zfve_engine_version::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* 引擎特性选择框 - 深色样式 */
#zfve_engine_feature {
    background: rgba(50, 50, 50, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 12px 14px;
    border-radius: 4px;
    width: 100%;
    font-size: 14px;
    min-height: 46px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#zfve_engine_feature:focus {
    background: rgba(60, 60, 60, 0.9) !important;
    border-color: rgba(100, 150, 255, 0.6) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(100, 150, 255, 0.1);
}

#zfve_engine_feature option,
#zfve_engine_feature optgroup {
    background: #2c2c2c !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* 平台选择框 - 深色样式 */
#zfve_platform {
    background: rgba(50, 50, 50, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 12px 14px;
    border-radius: 4px;
    width: 100%;
    font-size: 14px;
    min-height: 46px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#zfve_platform:focus {
    background: rgba(60, 60, 60, 0.9) !important;
    border-color: rgba(100, 150, 255, 0.6) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(100, 150, 255, 0.1);
}

#zfve_platform option {
    background: #2c2c2c !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* 引擎特性标签 */
.engine-feature-label {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 14px;
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
}

/* 引擎属性复选框网格布局 */
.zfve-engine-attributes .zfve-attributes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

/* 引擎独立字段容器 - 三个字段并排在一行 */
.zfve-engine-fields {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.engine-field-item {
    display: flex;
    flex-direction: column;
}

.engine-field-item .attribute-label-text {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 14px;
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
}

/* 模型独立字段容器 - 三个字段并排在一行 */
.zfve-model-fields {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.model-field-item {
    display: flex;
    flex-direction: column;
}

.model-field-item .attribute-label-text {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 14px;
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
}

/* 模型字段输入框深色样式 */
.zfve-model-fields input[type="number"],
.zfve-model-fields select {
    background: rgba(50, 50, 50, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 12px 14px;
    border-radius: 4px;
    width: 100%;
    font-size: 14px;
    min-height: 46px;
    transition: all 0.3s ease;
}

.zfve-model-fields input[type="number"]:focus,
.zfve-model-fields select:focus {
    background: rgba(60, 60, 60, 0.9) !important;
    border-color: rgba(100, 150, 255, 0.6) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(100, 150, 255, 0.1);
}

.zfve-model-fields input[type="number"]::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

.zfve-model-fields select option {
    background: #2c2c2c !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .zfve-engine-attributes .zfve-attributes-grid,
    .zfve-model-attributes .zfve-attributes-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .zfve-engine-attributes {
        padding: 15px;
    }
    
    /* 移动端：独立字段也变为单列 */
    .zfve-engine-fields,
    .zfve-model-fields {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

