.settings-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.settings-content h2 {
    margin-bottom: 30px;
    color: #333;
}

.settings-header {
    margin-bottom: 30px;
}

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.setting-item {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.setting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.setting-info h3 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 18px;
}

.setting-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.edit-btn {
    background: #1890ff;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.edit-btn:hover {
    background: #40a9ff;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 25px;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.modal-content .close {
    float: right;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 20px;
}

.modal-content .close:hover {
    color: #000;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.edit-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: monospace;
    resize: vertical;
    box-sizing: border-box;
}

.edit-textarea:focus {
    outline: none;
    border-color: #1890ff;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-cancel, .btn-save {
    padding: 10px 25px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-cancel {
    background: #f5f5f5;
    color: #666;
}

.btn-cancel:hover {
    background: #e8e8e8;
}

.btn-save {
    background: #1890ff;
    color: #fff;
}

.btn-save:hover {
    background: #40a9ff;
}
/* ===== WBTools Version Modal ===== */
.version-modal-content {
    max-width: 650px;
    min-height: 400px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.version-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.version-header h2 {
    flex: 1;
    margin: 0;
    font-size: 18px;
}

.btn-close {
    width: 32px;
    height: 32px;
    border: 1px solid transparent;
    background: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #aaa;
    padding: 0;
    flex-shrink: 0;
}

.btn-close:hover {
    border-color: #ddd;
    color: #333;
    background: #f5f5f5;
}

/* 浮动在右上角的关闭按钮（Water Token / 管理员） */
.btn-close-float {
    float: right;
    margin: -8px -8px 0 0;
}

.back-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    padding: 0 5px;
    color: #666;
    line-height: 1;
}

.back-btn:hover {
    color: #333;
}

.version-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #333;
}

.btn-icon:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.btn-delete:hover {
    border-color: #ff4d4f;
    color: #ff4d4f;
}

.version-list-view {
    flex: 1;
    overflow-y: auto;
    min-height: 200px;
}

.version-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.version-item {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.version-item:hover {
    border-color: #1890ff;
    background: #f0f8ff;
}

.version-item.selected {
    border-color: #1890ff;
    background: #e6f7ff;
}

.version-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.version-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.version-code {
    font-size: 12px;
    color: #999;
    background: #f0f0f0;
    padding: 1px 6px;
    border-radius: 3px;
}

.force-tag {
    font-size: 11px;
    color: #ff4d4f;
    background: #fff2f0;
    border: 1px solid #ffccc7;
    padding: 0 5px;
    border-radius: 3px;
    margin-left: auto;
}

.version-desc {
    font-size: 13px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    margin-bottom: 4px;
}

.version-time {
    font-size: 11px;
    color: #bbb;
}

.version-edit-view {
    flex: 1;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: #1890ff;
}

.form-textarea {
    resize: vertical;
    font-family: inherit;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.required {
    color: #ff4d4f;
}

.empty-tip {
    text-align: center;
    color: #999;
    padding: 60px 20px;
    font-size: 14px;
}

/* 编辑按钮禁用状态 */
.edit-btn:disabled {
    background: #d9d9d9;
    color: #999;
    cursor: not-allowed;
}

.edit-btn:disabled:hover {
    background: #d9d9d9;
}
