/* 主容器 */
.ancient-name-gen {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 24px;
    margin-bottom: 24px;
    width: 100%;
    box-sizing: border-box;
}

/* 标题 */
.gen-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

/* 表单项 */
.form-group {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.form-label {
    color: #374151;
    font-size: 14px;
    white-space: nowrap;
    width: 90px;
}

/* 输入框 / 数字框 */
.gen-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.2s;
}
.gen-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}

/* 性别选择 */
.gender-group {
    display: flex;
    align-items: center;
    gap: 16px;
}
.gender-option {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.gender-option input {
    accent-color: #2563eb;
}

/* 生成按钮 */
.gen-btn {
    width: 100%;
    background: #2563eb;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}
.gen-btn:hover {
    background: #1d4ed8;
}
.gen-btn:active {
    background: #1e40af;
}

/* 结果展示区 */
.result-box {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 16px;
    width: 100%;
    min-height: 60px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    box-sizing: border-box;
}
.name-tag {
    padding: 6px 12px;
    background: #f3f4f6;
    border-radius: 6px;
    color: #374151;
    font-size: 14px;
    transition: background 0.2s;
}
.name-tag:hover {
    background: #dbeafe;
}