/* 创建角色整体容器 */
.create-character-container {
    margin-top: 15px;
    background-color: #f0f8ff;
    width: 530px;
    border-radius: 15px;
    padding: 20px;
    border: 1px solid #bbb;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 标题样式 */
.create-character-header {
    text-align: center;
    color: #0056b3;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

/* 内容区域 */
.create-character-content {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

/* 左侧角色预览 */
.create-character-preview {
    flex: 1;
    text-align: center;
    border: 1px solid #0056b3;
    border-radius: 5px;
    padding: 15px;
    background-color: #fff;
}

/* 角色图片容器 */
.create-character-image-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.create-character-image {
    width: 150px;
    height: 150px;
    background-color: #f9f9f9;
    border: 1px solid #0056b3;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.create-character-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.create-character-arrow {
    font-size: 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.create-character-arrow:hover:not(:disabled) {
    background-color: #0056b3;
    transform: scale(1.1);
}

.create-character-arrow:disabled {
    background-color: #dcdcdc;
    cursor: not-allowed;
}

/* 角色名称 */
.create-character-name {
    margin: 15px 0;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

/* 类型选择 */
.create-character-type {
    margin: 15px 0;
    padding: 10px;
    background-color: #f7faff;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.create-character-type-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.create-character-type-label {
    font-size: 14px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.create-character-type-label:hover {
    color: #007bff;
}

.create-character-type-radio {
    margin-right: 5px;
    accent-color: #007bff;
}

/* 输入角色名称 */
.create-character-name-input-container {
    margin-top: 10px;
}

/* 输入框样式 */
#create_character_section .create-character-name-input {
    width: 80%;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #bbb;
    border-radius: 4px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    transition: border-color 0.3s;
}

#create_character_section .create-character-name-input:focus {
    border-color: #007bff;
    outline: none;
}

/* 输入框字数提示 */
.create-character-name-length {
    margin-top: 5px;
    font-size: 12px;
    color: #666;
    text-align: right;
}

/* 右侧属性 */
.create-character-attributes {
    flex: 1;
    border: 1px solid #0056b3;
    border-radius: 5px;
    padding: 15px;
    background-color: #fff;
}

.create-character-attributes-title {
    margin-bottom: 10px;
    color: #0056b3;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

.create-character-attributes-box p {
    font-size: 14px;
    margin: 5px 0;
    color: #333;
}

/* 按钮部分 */
.create-character-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 20px;
}

.create-character-create,
.create-character-return {
    padding: 10px 20px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.create-character-create {
    background-color: #4caf50;
    color: white;
}

.create-character-create:hover {
    background-color: #45a049;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* 创建按钮禁用时的样式 */
.create-character-create:disabled {
    background-color: #ccc; /* 灰色背景 */
    cursor: not-allowed; /* 鼠标指针为禁止符号 */
    color: #666; /* 灰色文字 */
}

.create-character-return {
    background-color: #d9534f;
    color: white;
}

.create-character-return:hover {
    background-color: #c9302c;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .create-character-content {
        flex-direction: column;
        align-items: center;
    }

    .create-character-container {
        width: 100%;
        padding: 15px;
    }

    .create-character-image {
        width: 120px;
        height: 120px;
    }
}
